Roof Pitch and Rafter Length Explained
Last reviewed 2026-10-17
A roof is a pair of right triangles. Once you know the run and the pitch, the rise and the rafter length follow from simple trigonometry.
How pitch is written
Pitch is the rise for every 12 units of horizontal run. A 6:12 roof rises 6 for every 12 across. A steeper roof has a bigger first number.
Pitch, angle and slope
The angle is atan(pitch / 12). Common values: 4:12 is 18.4° (33% slope), 6:12 is 26.6° (50%), 8:12 is 33.7° (67%) and 12:12 is 45° (100%). The slope percent is rise / run × 100.
Run, span and rise
The run is the horizontal distance from the wall to the ridge. For a symmetrical gable roof it is half the span, the full width between the walls. The rise is run × tan θ.
The rafter length
The common rafter is the hypotenuse of the triangle: run / cos θ, or √(run² + rise²). A 4 m run at 6:12 rises 2 m, so the rafter is √(16 + 4) = 4.472 m.
Overhangs
An overhang extends the rafter beyond the wall. A horizontal overhang of 0.5 m adds 0.5 / cos θ along the slope. On a 6:12 roof that is 0.559 m, for a total of 5.031 m.
What this leaves out
The length is measured to the rafter's centreline. It does not account for the ridge board thickness, the birdsmouth notch, the fascia or the eave detail. Add those when you mark and cut.
Common mistakes
Using the span instead of the run. Measuring along the slope when a formula expects the horizontal distance. Mixing units. Forgetting that structural sizing, spans and snow and wind loads must come from a qualified designer and your building code.