Gable roof formulas
rafter (eave edge to ridge) = (W + 2e) ÷ 2 × √(1 + (p ÷ 12)²)
each plane = (L + 2r) × rafter
ridge height above the plate = W ÷ 2 × p ÷ 12
rakes = 4 × rafter, eaves = 2 × (L + 2r)Example
40 × 28 ft, 8/12, 12-in overhangs
Rafter 18.03 ft; two planes of 42 × 18.03 = 1,514 sq ft (15.1 squares). Ridge 42 ft, rakes 72.1 ft, eaves 84 ft. The gable rises 9.33 ft above the wall plate.

What a gable roof needs that a hip does not
- Rake drip edge – the IRC requires drip edge on rakes as well as eaves (R905.2.8.5), installed over the underlayment at rakes and under it at eaves.
- Rake starter – required by some shingle wind warranties.
- Gable-end wall – siding or sheathing on the triangle, often forgotten in a roofing budget.
On the plus side, the gable has the lowest cap length and the least cutting waste of any common shape. Compare it in hip vs gable roof.
Questions
How do I calculate a gable roof's square footage?
Rafter length (half the width with overhangs × slope factor) × ridge length with rake overhangs × 2 planes.
Sources
- International Code Council, 2021 International Residential Code, Chapter 9 Roof Assemblies (R905, R908) – 2021 edition.
All sources checked on November 28, 2026.