How to use the rafter calculator
- Enter the building span measured outside wall to outside wall.
- Enter the pitch and the horizontal overhang beyond the wall.
- Enter the ridge board thickness (or 0).
- Use the plumb cut angle to set your speed square or saw.
Formula
Run = span ÷ 2 − ridge thickness ÷ 2. Rafter length = (run + overhang) × √(1 + (pitch ÷ 12)²). Plumb cut angle = arctan(pitch ÷ 12); seat cut = 90° − plumb angle.
Worked example
A 24 ft span at 6/12 with no ridge deduction and a 1 ft overhang: (12 + 1) × 1.118 = 14.53 ft (14 ft 6⅜ in) — buy 16 ft lumber.
Tips for using the rafter calculator
- Measure the span from outside of wall to outside of wall, as the calculator expects.
- Buy rafters at the next standard lumber length above the calculated length.
- Rafter size and spacing come from your code’s span tables or an engineer, not from length alone.

Rafter Calculator FAQs
What size rafters do I need?
That depends on span, spacing, lumber grade and your area's snow and dead loads, and must come from your local code's rafter span tables or an engineer.
Is the overhang measured along the rafter?
No — enter it horizontally (level). The calculator applies the slope.
Does this work for hip rafters?
No. Hip and valley rafters run at 45° in plan and use a different multiplier. This tool is for common rafters.
