# L-Shaped and T-Shaped Roof Calculator (Area, Ridges, Hips, Valleys, Eaves and Rakes)

> 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.

Page: https://craftquantities.com/calculators/materials-quantities/hip-valley-roof-calculator/ (calculator). This is the page's Markdown copy; the HTML page is the canonical version.

Version 1.0.0, sources checked 2026-10-10, 2 published test vectors.

Roof area on the slope: 1,417 sq ft for Main Roof Length 39 ft and Main Roof Span 26 ft, the page's opening figures; on the metric page, 12 m and 8 m give 134 m². Sources are cited below.

## Inputs

A length, area or volume is entered with its unit. The page opens on the values below: a metric reader sees the metric column, a US customary reader the other.

| Input | id | Opens at (metric) | Opens at (US customary) | Accepts |
|---|---|---|---|---|
| Main Roof Length (along its ridge) | `mainLength` | 12 m | 39 ft | mm, cm, m, in, ft, yd; range 1–100 m |
| Main Roof Span (eave to eave) | `mainWidth` | 8 m | 26 ft | mm, cm, m, in, ft, yd; range 1–40 m |
| Roof Pitch (rise per 12 run) | `pitch` | 6 | 6 | range 1–24 |
| Main Roof Ends | `mainEnds` | Gable ends | Gable ends | `gable`, `hip` |
| First Wing Span (0 for none) | `wing1Width` | 6 m | 19.5 ft | mm, cm, m, in, ft, yd; range 0–40 m |
| First Wing Projection | `wing1Projection` | 4 m | 13 ft | mm, cm, m, in, ft, yd; range 0–40 m |
| Second Wing Span (0 for none) | `wing2Width` | 0 m | 0 ft | mm, cm, m, in, ft, yd; range 0–40 m |
| Second Wing Projection | `wing2Projection` | 0 m | 0 ft | mm, cm, m, in, ft, yd; range 0–40 m |
| Wing Ends | `wingEnds` | Gable ends | Gable ends | `gable`, `hip` |

- **Main Roof Length (along its ridge)**: The main block's long side at the eaves, overhangs included.
- **Main Roof Span (eave to eave)**: The main block's short side at the eaves, overhangs included.
- **Roof Pitch (rise per 12 run)**: One pitch for every plane of the roof.
- **Main Roof Ends**: Whether the main roof stops at gable walls or slopes down to eaves at its ends.
- **First Wing Span (0 for none)**: The wing's width at the eaves; no wider than the main span.
- **First Wing Projection**: How far the wing's eaves stand out past the main roof's eaves.
- **Second Wing Span (0 for none)**: A second wing on the same long side for a U, or opposite it for a T or a cross; 0 for none.
- **Second Wing Projection**: How far the second wing stands out past the main eaves; 0 for none.
- **Wing Ends**: Whether the wings end in a gable or a hip.

## The answer on the opening values

Worked exactly as the page works it, on the values each system opens on.

### Metric

| Result | Value |
|---|---|
| **Roof area on the slope** | 134 m² |
| Plan area at the eaves | 120 m² |
| Slope factor | 1.12 |
| Ridges | 19 m |
| Hips | 0 hips |
| Hips, lineal | 0 m |
| Valleys | 2 valleys |
| Valleys, lineal | 9 m |
| Ridges and hips together (ridge cover) | 19 m |
| Eaves | 26 m |
| Rakes (gable edges) | 24.6 m |

### US customary

| Result | Value |
|---|---|
| **Roof area on the slope** | 1,417 sq ft |
| Plan area at the eaves | 1,267.5 sq ft |
| Slope factor | 1.12 |
| Ridges | 61.75 ft |
| Hips | 0 hips |
| Hips, lineal | 0 ft |
| Valleys | 2 valleys |
| Valleys, lineal | 29.25 ft |
| Ridges and hips together (ridge cover) | 61.75 ft |
| Eaves | 84.5 ft |
| Rakes (gable edges) | 79.94 ft |

## How it is worked out

A main roof with gable ends and one wing with gable ends, every plane at a rise of 6 to a run of 12.

The working the page shows, in order: Plan area at the eaves; Slope factor; Ridges; Hips; Hips, lineal; Valleys; Valleys, lineal; Ridges and hips together (ridge cover); Eaves; Rakes (gable edges); then roof area on the slope.

The method, derived in full:

- [Slope, Pitch and True Surface Area](https://craftquantities.com/methodology/slope-pitch-and-true-area/): Converting a plan footprint into the sloped area a roof actually has — the factor that decides whether a shingle order is right or a third short.

What this calculation does not cover:

- One pitch everywhere. A wing at another pitch, a lean-to or a flat section changes every hip and valley; work such a roof plane by plane.
- The outline is a main rectangle and up to two wings off one long side, measured at the eaves with the overhangs in. A wing off an end, a wing wider than the main span, a courtyard or a wing that meets another wing are not modelled.
- Lengths are the lines of the roof's edges and intersections, not cut lengths of timber or flashing: laps, waste, and the extra at a hip's or valley's ends are the covering's and the trade's.
- Dormers, chimneys and rooflights are not taken off or added; the slope area is the whole roof plane.

## Sources

As the calculator cites them (sources checked 2026-10-10):

- 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 <https://open-exam-prep.com/study-guides/la-roofing-contractor/roofing-estimating-plan-reading-math/surface-area-calculations-squares>

A code or standard has force only where a jurisdiction has adopted it, usually with local amendments; check what is in force with the authority where you build.

## Questions answered on the page

**How do I work out the area of an L-shaped roof?**

Add the plan areas of the rectangles at the eaves and multiply by the slope factor; hips and valleys do not change it when every plane has one pitch. A 12 by 8 m (39.4 by 26.2 ft) main roof with a 6 m (19.7 ft) wing standing 4 m (13.1 ft) out is 120 m² (1,292 sq ft) on plan, and at 6 in 12 that is 134.2 m² (1,444 sq ft) on the slope.

**How long are the valleys?**

Each valley runs the diagonal of the wing's common run in plan, half its span, so its length is that run times the square root of 2 plus the rise per 12 squared: 1.5 at 6 in 12. A 6 m (19.7 ft) wing has two valleys of 3 m (9.8 ft) run, 4.5 m (14.8 ft) each.

**Why does a hipped end shorten the ridge?**

Because the hips rise from the corners to meet the ridge half the span in from each end, so on the main roof the ridge is the length less the span, and on a wing its projection alone.

## Related calculators

- [Roofing Shingle Calculator](https://craftquantities.com/calculators/renovation-construction/roofing-shingle-calculator/)
- [Roof Tile and Slate Calculator (Gauge, Battens and Ridge Tiles)](https://craftquantities.com/calculators/materials-quantities/roof-tile-calculator/)
- [Hip/Valley Rafter Plumb Cut Angular Cutlist](https://craftquantities.com/calculators/materials-quantities/hip-valley-rafter-cutlist-calculator/)
- [Roof Ridge Cap Calculator](https://craftquantities.com/calculators/renovation-construction/roof-ridge-cap-calculator/)

## Run it from a program

- REST: `GET https://api.craftquantities.com/v1/calculate/hip-valley-roof-calculator` with each input as a query parameter, a length, area or volume with its unit; `https://api.craftquantities.com/v1/describe/hip-valley-roof-calculator` lists the inputs.
- MCP: the `calculate` tool at https://api.craftquantities.com/mcp with `slug` `hip-valley-roof-calculator`.
- Definition and test vectors: https://craftquantities.com/api/v1/calculators/hip-valley-roof-calculator.json

---
Source: https://craftquantities.com/calculators/materials-quantities/hip-valley-roof-calculator/
Craft Quantities: free to read, cite and link to; the pages are not licensed for republication. Quantities only: no prices, no design and no certification.
