{
  "version": "v1",
  "source": "https://craftquantities.com",
  "licence": "CC BY 4.0",
  "licenceUrl": "https://creativecommons.org/licenses/by/4.0/",
  "attribution": "Craft Quantities — craftquantities.com",
  "documentation": "https://craftquantities.com/api/",
  "versioning": "Fields are added, never removed or repurposed, within a version. A breaking change becomes /api/v2/ and v1 keeps being built.",
  "slug": "mansard-roof-rafter-calculator",
  "category": "materials-quantities",
  "title": "Mansard Roof Rafter Geometry Calculator",
  "description": "Calculate total rafter length for a mansard roof's steep near-vertical lower segment plus shallow upper segment.",
  "url": "https://craftquantities.com/calculators/materials-quantities/mansard-roof-rafter-calculator/",
  "json": "https://craftquantities.com/api/v1/calculators/mansard-roof-rafter-calculator.json",
  "inputCount": 4,
  "testCaseCount": 2,
  "sourceCount": 1,
  "lastVerified": "2026-09-02",
  "translations": {
    "es-US": "https://craftquantities.com/es/calculators/materials-quantities/mansard-roof-rafter-calculator/"
  },
  "citation": {
    "author": "Craft Quantities",
    "title": "Mansard Roof Rafter Geometry Calculator",
    "version": "1.0.1",
    "sourcesChecked": "2026-09-02",
    "url": "https://craftquantities.com/calculators/materials-quantities/mansard-roof-rafter-calculator/",
    "accessDate": null,
    "accessDateNote": "Add the date you retrieved this. It is deliberately absent: a static file cannot know when you read it, and the build date would be wrong.",
    "permanentVersionedUrl": null,
    "permanentVersionedUrlNote": "Not offered. This site keeps no archive of previous builds, so any such URL would resolve to the current page or to nothing. The version and sourcesChecked fields identify the calculation instead.",
    "formats": {
      "plain": "Craft Quantities. Mansard Roof Rafter Geometry Calculator. Version 1.0.1. Sources checked 2026-09-02. https://craftquantities.com/calculators/materials-quantities/mansard-roof-rafter-calculator/",
      "apa": "Craft Quantities. (2026). Mansard Roof Rafter Geometry Calculator (Version 1.0.1) [Web calculator]. Retrieved from https://craftquantities.com/calculators/materials-quantities/mansard-roof-rafter-calculator/",
      "harvard": "Craft Quantities (2026) Mansard Roof Rafter Geometry Calculator (Version 1.0.1). Available at: https://craftquantities.com/calculators/materials-quantities/mansard-roof-rafter-calculator/",
      "bibtex": "@misc{craftquantities-calculators-materials-quantities-mansard-roof-rafter-calculator,\n  author       = {{Craft Quantities}},\n  title        = {Mansard Roof Rafter Geometry Calculator},\n  version      = {1.0.1},\n  year         = {2026},\n  howpublished = {\\url{https://craftquantities.com/calculators/materials-quantities/mansard-roof-rafter-calculator/}},\n}"
    }
  },
  "inputs": [
    {
      "id": "lowerSlopeAngle",
      "label": "Lower Segment Slope Angle (° from horizontal)",
      "type": "number",
      "defaultValue": 70,
      "min": 45,
      "max": 89,
      "step": 1,
      "help": "How steep the mansard's lower (near-vertical) roof segment is, measured from horizontal."
    },
    {
      "id": "lowerSlopeHeight",
      "label": "Lower Segment Vertical Height",
      "type": "number",
      "dimension": "length",
      "defaultValue": 2,
      "min": 0.01,
      "max": 5,
      "step": 0.1,
      "help": "The vertical rise of the steep lower segment, from the wall top to the break line."
    },
    {
      "id": "upperPitch",
      "label": "Upper Segment Pitch (rise per 12)",
      "type": "number",
      "defaultValue": 3,
      "min": 1,
      "max": 8,
      "step": 0.5,
      "help": "The shallow upper roof segment's pitch, expressed as inches of rise per 12 inches of run."
    },
    {
      "id": "buildingWidth",
      "label": "Building Width",
      "type": "number",
      "dimension": "length",
      "defaultValue": 10,
      "min": 0.01,
      "max": 25,
      "step": 0.1,
      "help": "The overall width of the building, wall to wall."
    }
  ],
  "sources": [
    {
      "label": "The steep lower mansard segment is sized by its slope angle and vertical height (length = height/sin(angle), run = height/tan(angle)); the shallow upper segment uses the standard rise/12 rafter-length formula over the remaining half-width"
    }
  ],
  "testCases": [
    {
      "name": "70° lower slope, 2m height, 3/12 upper, 10m wide",
      "inputs": {
        "lowerSlopeAngle": 70,
        "lowerSlopeHeight": 2,
        "upperPitch": 3,
        "buildingWidth": 10
      },
      "expected": 6.532,
      "toleranceDecimalPlaces": 1,
      "unit": "m",
      "confidence": "high",
      "steps": [
        {
          "label": "Lower segment length",
          "value": 2.1283555449518246,
          "unit": "m"
        },
        {
          "label": "Upper segment length",
          "value": 4.403538171791897,
          "unit": "m"
        }
      ],
      "basis": "sole-source",
      "sourceIndex": 0
    },
    {
      "name": "75° lower slope, 2.5m height, 2/12 upper, 12m wide",
      "inputs": {
        "lowerSlopeAngle": 75,
        "lowerSlopeHeight": 2.5,
        "upperPitch": 2,
        "buildingWidth": 12
      },
      "expected": 7.992,
      "toleranceDecimalPlaces": 1,
      "unit": "m",
      "confidence": "high",
      "steps": [
        {
          "label": "Lower segment length",
          "value": 2.5881904510252074,
          "unit": "m"
        },
        {
          "label": "Upper segment length",
          "value": 5.403649485405011,
          "unit": "m"
        }
      ],
      "basis": "sole-source",
      "sourceIndex": 0
    }
  ]
}
