How to calculate rafter length
A common rafter is the hypotenuse of a right triangle. The run is half the span, less half the ridge board thickness. The calculator multiplies that run by the pitch multiplier, then adds the tail for the overhang:
Run = span ÷ 2 − ridge thickness ÷ 2
Rafter (ridge to plate) = run × √(1 + (pitch ÷ 12)²)
Tail = level overhang × same multiplier
For a 24 ft span at 6/12 with a 1.5 in ridge and 12 in overhang: run is 11.94 ft, ridge to plate is 13.35 ft, and the total is 14.46 ft (14' 5-9/16"), so you buy 16 ft stock.
Need the pitch first? Use the roof pitch calculator. Rafter size and spacing depend on span, snow load and lumber grade, so check IRC Table R802.4 or your engineer.
Frequently asked questions
How long is a rafter for a 24 ft span at 6/12?
About 13.35 ft from ridge to plate with a 1.5 in ridge board, plus the tail for your overhang.
Why subtract the ridge board?
Rafters butt against each side of the ridge board, so each run is shortened by half the board's thickness.
What is the plumb cut angle?
It equals the roof angle. For 6/12 that is 26.57 degrees, set on a speed square using the 6 on the common scale.