Rafter Length Calculator
Work out the common rafter length for a gable roof before you cut. Enter the building width and pitch to get the run, the rise, the roof angle in degrees, and the length along the slope — with the overhang added and half the ridge board already deducted.
Your project
Estimate
Rafter length to cut · Along the slope, overhang in, half the ridge out
- Run (half the span)
- 12ft
- Rise at the ridge
- 6ft
- Roof angle
- 26.6°
Estimates are guidance only and exclude tax, labor, and site conditions unless stated. Confirm with a local pro.
How it's calculated
No black boxes — here is the exact math behind your estimate, so you can check it or adapt it for your own quote.
- 1
Run = building width ÷ 2 - 2
Rise = run × (pitch ÷ 12) - 3
Line length = √( run² + rise² ) - 4
Slope factor = √( 1 + (pitch ÷ 12)² ) - 5
Rafter length = line length + (overhang ÷ 12) × slope factor − (ridge ÷ 2 ÷ 12) × slope factor
Worked example
A 24 ft wide gable roof at 6/12 pitch, 12-inch overhang, framed to a 2x ridge board.
Inputs
- Building width (span)
- 24 ft
- Roof pitch
- 6
- Overhang (eave)
- 12 in
- Ridge board thickness
- 1.5 in
Result
- Rafter length to cut
- 14.46 ft
- Run (half the span)
- 12 ft
- Rise at the ridge
- 6 ft
- Roof angle
- 26.6 °
Tools & materials for this project
As an Amazon Associate we may earn from qualifying purchases, at no extra cost to you.
- Speed square (rafter square) Lays out plumb, seat, and birdsmouth cuts straight off the pitch.
- Circular saw Cuts the plumb and birdsmouth angles on framing lumber.
Compare local pros for rafters
An estimate gets you a budget. A few competing quotes get you the real price. Tell us about the job and we'll help you find vetted contractors nearby.