Skip to content
Press Equals

How to calculate rafter length

Run, rise and pitch to rafter length with the ridge board and overhang, worked for 6/12 and 12/12 roofs, and the board length to buy.

Open the Rafter Length calculator

A common rafter is the sloped side of a right triangle. The run is half the building's span, the rise is the run × pitch ÷ 12, and the rafter is √(run² + rise²), plus the overhang. On a 24 ft span with a 6/12 pitch, that's about 13.3 ft to the ridge and 14.46 ft with a 12 in overhang.

The steps

  1. Run = span ÷ 2, minus half the ridge board's thickness. For a 24 ft span and a 1½ in ridge board: 12 ft − ¾ in = 11.94 ft.
  2. Rise = run × pitch ÷ 12. A 6/12 pitch rises 6 in for every 12 in of run.
  3. Rafter to the ridge = √(run² + rise²), or run × √(1 + (pitch ÷ 12)²).
  4. Overhang: add the overhang's length along the slope, which is the level overhang × the same factor.

24 ft span, 6/12 pitch, 12 in overhang: the slope factor is √(1 + 0.5²) = 1.118. (11.94 + 1) × 1.118 = 14.46 ft, or 14 ft 5.625 in, at 26.6°. Buy 16 ft boards.

Steeper roofs

The same span at 12/12 is a 45° roof. The ridge sits 12 ft above the walls, and each rafter is 18.3 ft.

What this doesn't include

This is the line length along the top of the rafter. Cutting the birdsmouth seat and the plumb cut at the ridge, and the exact tail cut for your fascia, are marked on the board; a framing square or your plans give those. Check rafter size and spacing against your local building code.

Work it out

Enter the span, pitch and overhang in the rafter length calculator. For the pitch itself, use the roof pitch calculator.

Updated

All guides by topic