Rafter Length Calculator
Calculate rafter length, ridge height, cut angle and the number of rafters for a gable roof.
How it's calculated
With half the span as the run, rafter length = (run + overhang) ÷ cos(pitch) and rise = run × tan(pitch). Rafters per side are the building length ÷ spacing + 1, doubled for both sides.
Each measurement has its own unit menu, so you can enter whatever your plans use. Results are shown in several units at once.
Worked example
With building width (span) 8 m, roof pitch 30 degrees, overhang 0.4 m, building length 10 m, rafter spacing 600 mm, the calculator gives: rafter length (with overhang) 5.081 m; ridge height above wall plate 2.309 m; plumb cut angle (to rafter edge) 60.0 °; saw angle (from a square cut) 30.0 °; number of rafters 34; total rafter length 172.7 m.
Good to know
The ridge board thickness is not subtracted, and nothing here checks that the rafter size can span the distance. Use span tables or an engineer for sizing.
Frequently asked
Is the overhang measured along the slope?
No. It is the horizontal distance past the wall, and the tool converts it to a sloping length.
How far apart should rafters be?
Typical spacing is 400 to 600 mm (16 to 24 in), set by the roof covering and rafter size.