Home · Construction & Home DIY · Rafter Length Calculator
Rafter Length Calculator
The length of a common rafter from the building span and the roof pitch, with the roof angle and the ridge height alongside.
What this calculator does
The length of a common rafter from the building span and the roof pitch, with the roof angle and the ridge height alongside. Every figure is computed from the formula stated below. Densities, waste percentages and coverage rates appear as editable inputs with their planning defaults stated in the method notes — they are assumptions you can adjust to your supplier and your site, not industry standards.
The formula and method
The rafter's horizontal run is half the span (ridge to wall plate); its length is the run times the slope factor √(1 + (pitch/12)²).
The result is the theoretical length along the top edge from ridge centreline to the outside of the wall plate, before deducting half the ridge thickness and before adding any overhang (tail).
The angle output converts the pitch to degrees, and the ridge height is the rise over the half-span run.
Worked example
With the example inputs this page opens with (building span (ft) 30, roof pitch (rise per 12) 6), the result is 16.77 — rafter length. Change any figure and the result updates with the same formula.
Quick reference
| Building span (ft) | Rafter length |
|---|---|
| 15 | 8.39 |
| 24 | 13.42 |
| 30 | 16.77 |
| 37.5 | 20.96 |
| 45 | 25.16 |
| 60 | 33.54 |
Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.
Common questions
How much do I deduct for the ridge board?
Half the ridge board's thickness, measured horizontally and converted along the slope — for a 1.5 in ridge at 6/12 pitch that is about 0.84 in along the rafter. This calculator gives the centreline length before that deduction.
How do I add the eaves overhang?
Work out the tail the same way: overhang run times the same slope factor √(1 + (pitch/12)²), and add it. A 12 in horizontal overhang at 6/12 adds about 13.4 in of rafter.
How does the Rafter Length Calculator work?
The length of a common rafter from the building span and the roof pitch, with the roof angle and the ridge height alongside. Span (ft) · Pitch (rise per 12) → Rafter length (ft). The result updates as you type, and the formula and method on this page state every assumption used, so you can reproduce the calculation by hand.
What inputs does the Rafter Length Calculator need?
Span (ft) · Pitch (rise per 12) → Rafter length (ft). Densities, waste percentages and coverage rates are editable — adjust them to your supplier's figures. Invalid entries produce a plain-language message instead of a misleading number.