Rafter Length Calculator
Find rafter length from run and roof pitch.
Enter the horizontal run (half the span, for a common rafter) and the roof pitch to get the rafter length and the vertical rise. Add for overhang and subtract for the ridge board separately.
How it works
Rise equals run × pitch ÷ 12. The rafter length is the diagonal: √(run² + rise²). The slope factor — √(pitch² + 144) ÷ 12 — also lets you convert a flat plan area into actual roof area.
Worked example
For a roof with a 12 ft horizontal run and a 6/12 pitch, the rise is 6 ft. The rafter length is √(run² + rise²) = √(144 + 36) = √180 ≈ 13.4 ft before the ridge and overhang. Add your eave overhang (say 1 ft) to each rafter and a little for the plumb and seat cuts.
What changes your estimate
- Pitch sets the length. Steeper pitch means a longer rafter for the same run — the calculator uses the Pythagorean relationship between run, rise, and rafter.
- Overhang. Add your designed eave overhang to the calculated length; it's not part of the run-to-ridge measurement.
- Ridge thickness. Subtract half the ridge-board thickness from each rafter for a tight fit at the peak.
- Birdsmouth cut. The seat cut where the rafter meets the wall plate slightly shortens the effective bearing — account for it when marking.
Frequently asked questions
How do I calculate rafter length?
Find the rise (run × pitch ÷ 12), then take the diagonal √(run² + rise²). A 12-ft run at a 6:12 pitch gives a rafter about 13.4 ft long.
Does this include the overhang?
No — add your eave overhang to the rafter length, and account for the ridge board thickness, separately.
What is the slope factor for?
Multiply a roof's flat footprint area by the slope factor to get the true sloped surface area for material estimates.
Is this calculator free and private?
Yes. Every CubicCabin calculator runs entirely in your browser, so the numbers you enter are never uploaded or stored. There's no sign-up, no limits, and it keeps working even if you lose connection after the page loads.