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.

Your figures

Example result — edit the figures to make it yours

16.77

Rafter length

Roof angle26.57 °
Ridge height above wall plate7.50 ft

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

Rafter length = (span/2) · √(1 + (pitch/12)²)

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

Quick reference — varying building span (ft)
Building span (ft)Rafter length
158.39
2413.42
3016.77
37.520.96
4525.16
6033.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.