How to use this calculator
- Fill in Run, wall to ridge, Roof pitch and Overhang, measured level.
- Use the Imperial and Metric switch if you measure in meters and centimeters.
- The result updates as you type. Tap Calculate to run it again.
- Tap Save or print results to keep a copy or add it to your project sheet.
The formula
Rafter length = run × √(1 + (pitch ÷ 12)²). The overhang is multiplied by the same factor.
Worked example
With the starting numbers on this page (Run, wall to ridge: 12 ft; Roof pitch: 6; Overhang, measured level: 12 in), the result is Total rafter length 14.53 ft. It also shows Pitch multiplier: 1.118x; Rafter, wall to ridge: 13.42 ft; Overhang along the slope: 1.12 ft.
Good to know
- Run is half the building width for a centered ridge. Buy the next stock length up, and subtract half the ridge board thickness when you cut.
- Common pitch multipliers: 4/12 is 1.054, 6/12 is 1.118, 8/12 is 1.202, and 12/12 is 1.414.
- This is the length along the top edge of the rafter. The birdsmouth cut at the wall does not change it.
Common questions
How do I calculate rafter length?
Multiply the horizontal run by the pitch multiplier, which is the square root of 1 + (pitch ÷ 12) squared. A 12 ft run at a 6/12 pitch gives a 13.42 ft rafter before the overhang.
What is the run of a rafter?
The level distance from the outside of the wall to the center of the ridge. On a simple gable roof it is half the width of the building.
What size lumber do I need for rafters?
That depends on span, spacing, roof load, and wood species, and it is set by span tables in your building code. This calculator gives length only.
Related calculators
More measuring & area calculators → All calculators →
Estimates are a starting point for shopping, not a substitute for a contractor's exact measurement. Always round up, check the coverage printed on your product, and keep your receipt for returns.