How the math works
Run = span ÷ 2 − half the ridge thickness.Slope factor = √(12² + pitch²) ÷ 12.Line length = run × slope factor.Add overhang × slope factor for the tail.Round up to the next even stock length.
Trade pro tips
- Always deduct half the ridge thickness from each run.
- Order rafters 2 ft longer than calculated if you plan fascia trimming in place.
Frequently asked questions
How do you calculate rafter length?
Run (half the span, minus half the ridge) × slope factor for your pitch, plus overhang × slope factor.
What is the run of a rafter?
The horizontal distance from the outside of the wall to the center of the ridge — half the building span minus half the ridge board.
What is line length?
The rafter length along its top edge from the ridge plumb line to the heel of the birdsmouth, before overhang.
How long can a 2x8 rafter span?
It depends on species, grade, spacing and loads — check the IRC rafter span tables in Section R802. Rafter span tables use horizontal run, not rafter length.