How to calculate roof pitch
Roof pitch is rise over run, scaled to a 12-inch run:
> pitch = rise ÷ run × 12
- Get the rise. The vertical climb over the distance you measured, in inches or feet.
- Get the run. The level distance under that rise, in the same unit.
- Divide and scale. Rise ÷ run × 12 gives the pitch over 12. A rise of 8 ft over a run of 16 ft is 8 ÷ 16 × 12 = 6, so 6/12.
You don't need a 12-inch run to start with: any matching pair of measurements works, because the calculator scales it. To turn the pitch into degrees, take the arctangent of pitch ÷ 12. A 6/12 roof is arctan(0.5) = 26.57°.
Calculating pitch from a gable's span and rise
On a symmetrical gable roof the run is half the span, the full width between the outside walls. So:
> pitch = total rise ÷ (span ÷ 2) × 12
A roof 28 ft wide that rises 7 ft at the ridge has a run of 14 ft, so 7 ÷ 14 × 12 = 6/12. Pick Span & rise in the calculator and enter the two numbers from your plans or a sketch.
From an angle or a percent
If you only have an angle, from a phone level or a drawing, pitch = 12 × tan(angle). A 22° roof is 12 × tan(22°) = 4.85/12. A 30° roof is 6.93/12, close to 7/12.
A percent slope converts even more simply: pitch = percent ÷ 100 × 12. A 25% slope is 3/12.
Rafter length from the pitch
A common rafter runs along the slope, so it's longer than the level run under it. Multiply the run by the pitch's area factor, √(1 + (pitch ÷ 12)²):
- 14 ft run at 6/12: 14 × 1.1180 = 15.65 ft, about 15' 7 7/8".
- Add a 1.5 ft horizontal overhang: 15.5 × 1.1180 = 17.33 ft, about 17' 4".
- 12 ft run at 9/12: 12 × 1.25 = exactly 15 ft. (That's the 3-4-5 triangle.)
This is the line length only. Real rafters are cut shorter at the ridge for the ridge board and get seat and plumb cuts, so treat the number as a starting point for ordering lumber.
Hip and valley rafters
On a regular hip roof, where both sides have the same pitch, the hip or valley rafter runs diagonally and is longer per foot of common run. The factor is √(pitch² + 288) ÷ 12. At 6/12 that's exactly 1.5, so a 14 ft common run needs a hip about 21 ft long along its line. At 12/12 the factor is 1.7321.
Will your roofing work at this pitch?
Pick a roofing material and the calculator checks your pitch against the International Residential Code minimums (Section R905). It tells you if the pitch is below the minimum, if the code calls for a double layer of underlayment at that pitch, or if it's fine. For the full list of minimums and what low slope means, see the roof pitch chart.
From pitch to roof area
The area factor that gives you rafter length also turns a house footprint into real roof surface. Tap Use this pitch and the roof square footage calculator opens with your pitch filled in, ready for the footprint and overhangs.
Pitch is half the job; the house footprint is the other half, and you can measure the footprint in square feet room by room or from the outside walls.