Roof pitch and rafter calculator
Find rafter length, angle and slope from the roof pitch.
Optional. Adds the overhang to the rafter length.
- Pitch
- 6 : 12
- Angle
- 26.5651°
- Slope
- 50%
- Total rise
- 2 m (6.56168 ft)
- Common rafter length
- 4.47214 m (14.6724 ft)
Formula
θ = atan(pitch / 12), rise = run × tan θ, rafter = run / cos θ = √(run² + rise²)Pitch is written as rise over 12 units of run, so a 6/12 roof rises 6 for every 12 across. The rafter is the hypotenuse of the right triangle formed by the run and the rise.
Diagram
How it is calculated
- Enter the horizontal run, which is half the span for a symmetrical roof.
- Give the slope as a pitch (rise per 12), an angle or a total rise, and the tool finds the angle θ.
- Rise = run × tan θ.
- Common rafter = run / cos θ. Any overhang adds overhang / cos θ.
Angles for common pitches: 4:12 = 18.4°, 6:12 = 26.6°, 8:12 = 33.7° and 12:12 = 45°.
Worked examples
A 6:12 roof
4 m run at 6:12: rise = 2 m, slope 50%, angle 26.57°, and a common rafter of √(4² + 2²) = 4.472 m.
From an angle
A 30° roof over a 4 m run rises 2.309 m (about 6.93:12) and needs a rafter 4.619 m long.
With an overhang
Add a 0.5 m horizontal overhang to the 6:12 roof. The overhang adds 0.559 m along the slope, so the total rafter length is 5.031 m.
Key terms
- Pitch
- Roof steepness written as rise over 12 of run, such as 6:12.
- Run
- The horizontal distance from the wall to the ridge.
- Span
- The full width between the walls. For a symmetrical gable roof, run is half the span.
- Rise
- The vertical height from the top of the wall to the ridge.
- Common rafter
- A rafter that runs straight from the wall plate to the ridge.
- Overhang
- The part of the roof that extends beyond the wall.
Assumptions and limits
Geometry only, measured to the rafter's centreline, with no allowance for the ridge board, birdsmouth or fascia. Structural sizing, spans, snow and wind loads and codes need a qualified designer. See the disclaimer.