How it works
A common rafter is the hypotenuse of the triangle made by the run and the rise. The pitch tells you how many inches the roof rises for every 12 inches of run, so divide the pitch by 12 and multiply by the run to get the rise. Add the overhang, measured along the rafter itself. Cut allowances for the ridge board and the wall plate are not included, so subtract half the ridge thickness if the rafter sits against it.
Formula
rafter length = √(run² + rise²)
total = rafter length + overhang
roof angle = atan(pitch ÷ 12)
Sources
Example
Run 12 ft with a 6/12 pitch: rise = 6 ÷ 12 × 12 = 6 ft. Length = √(144 + 36) = 13.416 ft. With a 1.5 ft overhang the total is 14.916 ft. Angle = atan(0.5) = 26.57°. Check: 12 ÷ cos(26.57°) = 13.416 ft.
Frequently asked questions
What is the run?
Half the building span, measured level from the wall to the ridge line.
Does the length include the ridge board?
No. Subtract half the ridge thickness yourself if the rafter butts against it.
What does a 6/12 pitch mean?
6 inches of rise for every 12 inches of run.
What about hip rafters?
They need a different formula, because they run diagonally across the plan.