Understanding the roof pitch and area calculator — concept and principle
This calculator converts a building's footprint, roof pitch and eave overhang into the sloped roof area, the pitch expressed as rise per 12, the rafter length and the ridge height. It is used to estimate roofing materials such as tiles, shingles, membranes and underlay, and to sketch the basic geometry of a pitched roof.
How it is calculated
- Plan area = (length + 2 × overhang) × (width + 2 × overhang).
- Roof area = plan area ÷ cos(pitch).
- Rise per 12 = tan(pitch) × 12.
- Rafter length = (width ÷ 2 + overhang) ÷ cos(pitch).
- Ridge height = (width ÷ 2) × tan(pitch).
Lengths are in metres and the pitch in degrees. The ridge is assumed to run along the length, with two equal slopes (a gable roof).
The principle
A sloped surface covers more area than its shadow on the ground. If you tilt a plane by an angle θ, its horizontal projection shrinks by cos θ, so the true area is the plan area divided by cos θ. The same applies to every plane of a hip roof with equal pitches, so the total area formula holds for those too. Rafter length and ridge height come from the right triangle formed by half the span, the rise and the rafter: the run is the adjacent side, the rise the opposite side and the rafter the hypotenuse.
Worked example
Default inputs: footprint 10 m × 8 m, pitch 30°, overhang 0.3 m.
- Plan area = 10.6 × 8.6 = 91.16 m².
- cos 30° = 0.8660, so roof area = 91.16 ÷ 0.8660 = 105.26 m².
- Rise per 12 = tan 30° × 12 = 0.5774 × 12 = 6.93 (about 7:12).
- Rafter = (4 + 0.3) ÷ 0.8660 = 4.97 m.
- Ridge height = 4 × 0.5774 = 2.31 m above the wall plate.
| Footprint length (m) | Roof area, gable (m²) |
|---|---|
| 2.5 | 30.78 |
| 5 | 55.61 |
| 7.5 | 80.44 |
| 10 | 105.26 |
| 12.5 | 130.09 |
| 15 | 154.91 |
| 20 | 204.57 |
How to read the result
Steeper pitches increase area quickly: the same footprint at 45° gives about 128.9 m². Add waste for cutting, ridges, hips and valleys, often 10–15%, and more for complex roofs. Each roofing product has a minimum pitch, so check that your angle suits tiles, slates or metal sheeting. The rafter length here is measured along the slope to the eave edge and does not include extra for the ridge connection or the tail cut.
Common mistakes
- Using the footprint without the overhang.
- Confusing degrees with rise-per-12 or percent slope.
- Applying a single-pitch formula to roofs with different pitches on each side.
- Treating ridge height as the height above the ground.
Frequently asked questions
How do I convert roof pitch in degrees to x:12?
Multiply the tangent of the angle by 12. 30° is about 6.9:12, and 45° is 12:12.
Does the formula work for hip roofs?
Yes for total area, as long as all planes have the same pitch; rafter lengths differ for hips.
How much extra roofing material should I buy?
Roughly 10% for a simple gable and 15% or more for roofs with hips and valleys.
Sources: Francis D. K. Ching, Building Construction Illustrated (Wiley)