BuildCalcs

Rafter Length Calculator — Span, Pitch & Overhang

Who this is for: For framing crews and owner-builders laying out a gable roof — how long a 2×10 or 2×12 rafter stock you need before the lumber yard asks.

Enter building span, pitch, and overhang — get the pitched rafter length per side, the run it covers, and a cutting allowance note.

Quick answer: Rafter length = (half-span + overhang) × pitch multiplier. A 24-ft gable at 6/12 with 1-ft eaves → 14.5-ft rafters (order 16-ft stock). Ridge height = half-span × rise/12.

ft

Wall to wall, outside faces

in / 12

6 for a 6/12 roof

ft

12-24 in typical eaves

Rafter length
14.53 ft
pitched, incl. overhang
Run per side
13 ft
half span + overhang
Order stock
2×12 @ 16 ft
next standard length
Ridge height above plates6.00 ft
Formula(24/2 + 1) × pitch multiplier
This is an ordering and planning length — actual rafters need a birdsmouth seat over the plate and a plumb cut at the ridge, laid out from the real top plates. Add local practice allowances for ridge board thickness.
Core facts
Formulalength = (span/2 + overhang) × √(1+(rise/12)²)
Example24' span, 6/12, 1' overhang → 14.53 ft
StockOrder next standard length (14/16/18 ft)
Ridge height(span ÷ 2) × rise ÷ 12

How is rafter length calculated?

A gable rafter runs from the ridge board down the slope to the wall plate, plus the overhang past the wall. The calculator takes the horizontal run (half the building span, plus the overhang projected on the slope) and multiplies by the pitch multiplier — the same √(1+(rise/12)²) factor as the pitch calculator — because the rafter is the hypotenuse of the run-rise triangle. Example: a 24-foot span at 6/12 with a 1-foot overhang gives a 13-foot run and a 14.53-foot rafter, which is why 16-foot stock covers most single-story gables. Add roughly a rafter-depth allowance for the plumb cut and birdsmouth, and lay out from the actual top plates — this number is for ordering and planning, not a cut list.

Common uses

  • Ordering rafter stock length before framing a gable
  • Checking whether shed or porch rafters fit standard lengths
  • Estimating ridge height from span and pitch
  • Sanity-checking a truss quote against stick framing

Frequently Asked Questions

How long is a rafter for a 24-foot span at 6/12?
Half-span run is 12 feet; with a 1-foot overhang the pitched run is about 13 feet, and 13 × 1.118 = 14.5 feet per rafter. Sixteen-foot 2×10/2×12 stock covers it with room for the plumb cut.
Does the rafter length include the overhang?
Yes — enter the overhang separately and the calculator adds it into the pitched run. The classic allowance is 12-24 inches of overhang for eave protection; your drawings may differ.
How do I find ridge height?
Ridge height above the plate = half-span × rise/12. A 24-foot span at 6/12 rises 6 feet at the ridge; add the heel/plate height for total height off grade.
Is this a cut list?
No — it's an ordering and planning length. Actual rafters need a birdsmouth seat cut over the plate and a plumb cut at the ridge; layout starts from the building, not the calculator.

More roofing calculators