{
  "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": "hip-valley-roof-calculator",
  "category": "materials-quantities",
  "title": "L-Shaped and T-Shaped Roof Calculator (Area, Ridges, Hips, Valleys, Eaves and Rakes)",
  "description": "The slope area and the length of every ridge, hip, valley, eave and gable edge of a roof over an L- or T-shaped house, gabled or hipped, at one pitch.",
  "url": "https://craftquantities.com/calculators/materials-quantities/hip-valley-roof-calculator/",
  "json": "https://craftquantities.com/api/v1/calculators/hip-valley-roof-calculator.json",
  "inputCount": 9,
  "testCaseCount": 2,
  "sourceCount": 1,
  "lastVerified": "2026-10-10",
  "translations": {
    "es-US": "https://craftquantities.com/es/calculators/materials-quantities/hip-valley-roof-calculator/"
  },
  "citation": {
    "author": "Craft Quantities",
    "title": "L-Shaped and T-Shaped Roof Calculator (Area, Ridges, Hips, Valleys, Eaves and Rakes)",
    "version": "1.0.0",
    "sourcesChecked": "2026-10-10",
    "url": "https://craftquantities.com/calculators/materials-quantities/hip-valley-roof-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. L-Shaped and T-Shaped Roof Calculator (Area, Ridges, Hips, Valleys, Eaves and Rakes). Version 1.0.0. Sources checked 2026-10-10. https://craftquantities.com/calculators/materials-quantities/hip-valley-roof-calculator/",
      "apa": "Craft Quantities. (2026). L-Shaped and T-Shaped Roof Calculator (Area, Ridges, Hips, Valleys, Eaves and Rakes) (Version 1.0.0) [Web calculator]. Retrieved from https://craftquantities.com/calculators/materials-quantities/hip-valley-roof-calculator/",
      "harvard": "Craft Quantities (2026) L-Shaped and T-Shaped Roof Calculator (Area, Ridges, Hips, Valleys, Eaves and Rakes) (Version 1.0.0). Available at: https://craftquantities.com/calculators/materials-quantities/hip-valley-roof-calculator/",
      "bibtex": "@misc{craftquantities-calculators-materials-quantities-hip-valley-roof-calculator,\n  author       = {{Craft Quantities}},\n  title        = {L-Shaped and T-Shaped Roof Calculator (Area, Ridges, Hips, Valleys, Eaves and Rakes)},\n  version      = {1.0.0},\n  year         = {2026},\n  howpublished = {\\url{https://craftquantities.com/calculators/materials-quantities/hip-valley-roof-calculator/}},\n}"
    }
  },
  "inputs": [
    {
      "id": "mainLength",
      "label": "Main Roof Length (along its ridge)",
      "type": "number",
      "dimension": "length",
      "defaultValue": 12,
      "min": 1,
      "max": 100,
      "step": 0.1,
      "help": "The main block's long side at the eaves, overhangs included."
    },
    {
      "id": "mainWidth",
      "label": "Main Roof Span (eave to eave)",
      "type": "number",
      "dimension": "length",
      "defaultValue": 8,
      "min": 1,
      "max": 40,
      "step": 0.1,
      "help": "The main block's short side at the eaves, overhangs included."
    },
    {
      "id": "pitch",
      "label": "Roof Pitch (rise per 12 run)",
      "type": "number",
      "defaultValue": 6,
      "min": 1,
      "max": 24,
      "step": 0.5,
      "help": "One pitch for every plane of the roof."
    },
    {
      "id": "mainEnds",
      "label": "Main Roof Ends",
      "type": "select",
      "defaultValue": "gable",
      "options": [
        {
          "value": "gable",
          "label": "Gable ends"
        },
        {
          "value": "hip",
          "label": "Hipped ends"
        }
      ],
      "help": "Whether the main roof stops at gable walls or slopes down to eaves at its ends."
    },
    {
      "id": "wing1Width",
      "label": "First Wing Span (0 for none)",
      "type": "number",
      "dimension": "length",
      "defaultValue": 6,
      "min": 0,
      "max": 40,
      "step": 0.1,
      "help": "The wing's width at the eaves; no wider than the main span."
    },
    {
      "id": "wing1Projection",
      "label": "First Wing Projection",
      "type": "number",
      "dimension": "length",
      "defaultValue": 4,
      "min": 0,
      "max": 40,
      "step": 0.1,
      "help": "How far the wing's eaves stand out past the main roof's eaves."
    },
    {
      "id": "wing2Width",
      "label": "Second Wing Span (0 for none)",
      "type": "number",
      "dimension": "length",
      "defaultValue": 0,
      "min": 0,
      "max": 40,
      "step": 0.1,
      "help": "A second wing on the same long side for a U, or opposite it for a T or a cross; 0 for none."
    },
    {
      "id": "wing2Projection",
      "label": "Second Wing Projection",
      "type": "number",
      "dimension": "length",
      "defaultValue": 0,
      "min": 0,
      "max": 40,
      "step": 0.1,
      "help": "How far the second wing stands out past the main eaves; 0 for none."
    },
    {
      "id": "wingEnds",
      "label": "Wing Ends",
      "type": "select",
      "defaultValue": "gable",
      "options": [
        {
          "value": "gable",
          "label": "Gable ends"
        },
        {
          "value": "hip",
          "label": "Hipped ends"
        }
      ],
      "help": "Whether the wings end in a gable or a hip."
    }
  ],
  "sources": [
    {
      "label": "Open Exam Prep, Louisiana roofing contractor guide, 3.2 Surface Area Calculations, Roofing Squares, Pitch Multipliers and Slope Formulas: actual sloped surface area = horizontal footprint area x the pitch multiplier sqrt(12² + R²) / 12; a standard hip roof has the same surface area as a gable roof over the same footprint, overhangs and slope; the hip and valley multiplier sqrt(12² + 12² + R²) / 12 from the 17-inch diagonal run (1.500 at 6:12); length of one hip rafter = common run x the hip multiplier",
      "url": "https://open-exam-prep.com/study-guides/la-roofing-contractor/roofing-estimating-plan-reading-math/surface-area-calculations-squares"
    }
  ],
  "testCases": [
    {
      "name": "Opening: a 12 x 8 m main gable with a 6 m wing standing out 4 m, at 6 in 12",
      "inputs": {
        "mainLength": 12,
        "mainWidth": 8,
        "pitch": 6,
        "mainEnds": "gable",
        "wing1Width": 6,
        "wing1Projection": 4,
        "wing2Width": 0,
        "wing2Projection": 0,
        "wingEnds": "gable"
      },
      "expected": 134.164,
      "toleranceDecimalPlaces": 3,
      "unit": "m²",
      "confidence": "high",
      "steps": [
        {
          "label": "Plan area at the eaves",
          "value": 120,
          "unit": "m²"
        },
        {
          "label": "Slope factor",
          "value": 1.118033988749895
        },
        {
          "label": "Ridges",
          "value": 19,
          "unit": "m"
        },
        {
          "label": "Hips",
          "value": 0,
          "unit": "hips"
        },
        {
          "label": "Hips, lineal",
          "value": 0,
          "unit": "m"
        },
        {
          "label": "Valleys",
          "value": 2,
          "unit": "valleys"
        },
        {
          "label": "Valleys, lineal",
          "value": 9,
          "unit": "m"
        },
        {
          "label": "Ridges and hips together (ridge cover)",
          "value": 19,
          "unit": "m"
        },
        {
          "label": "Eaves",
          "value": 26,
          "unit": "m"
        },
        {
          "label": "Rakes (gable edges)",
          "value": 24.596747752497688,
          "unit": "m"
        }
      ],
      "basis": "cited",
      "sourceIndex": 0
    },
    {
      "name": "A 40 x 28 ft hip roof with two 20 ft wings, 12 and 8 ft out, hipped, at 8 in 12",
      "inputs": {
        "mainLength": 12.192,
        "mainWidth": 8.5344,
        "pitch": 8,
        "mainEnds": "hip",
        "wing1Width": 6.096,
        "wing1Projection": 3.6576000000000004,
        "wing2Width": 6.096,
        "wing2Projection": 2.4384,
        "wingEnds": "hip"
      },
      "expected": 169.7165,
      "toleranceDecimalPlaces": 2,
      "unit": "m²",
      "confidence": "high",
      "steps": [
        {
          "label": "Plan area at the eaves",
          "value": 141.2126208,
          "unit": "m²"
        },
        {
          "label": "Slope factor",
          "value": 1.2018504251546631
        },
        {
          "label": "Ridges",
          "value": 9.7536,
          "unit": "m"
        },
        {
          "label": "Hips",
          "value": 8,
          "unit": "hips"
        },
        {
          "label": "Hips, lineal",
          "value": 45.748439155013806,
          "unit": "m"
        },
        {
          "label": "Valleys",
          "value": 4,
          "unit": "valleys"
        },
        {
          "label": "Valleys, lineal",
          "value": 19.06184964792242,
          "unit": "m"
        },
        {
          "label": "Ridges and hips together (ridge cover)",
          "value": 55.502039155013804,
          "unit": "m"
        },
        {
          "label": "Eaves",
          "value": 53.644800000000004,
          "unit": "m"
        },
        {
          "label": "Rakes (gable edges)",
          "value": 0,
          "unit": "m"
        }
      ],
      "basis": "cited",
      "sourceIndex": 0
    }
  ]
}
