Overview

Common rafters run from the top of the wall to the ridge. Their length depends on the building span, the roof pitch and how far the eaves overhang.

This calculator gives the full rafter length (measured along the top edge), the overhang tail and the board length to buy.

Worked examples

InputsResult
UnitsImperial (ft, in)Building span (ft or m)24Roof pitch (rise per 12)6Overhang, horizontal (in or cm)12Ridge board thickness (in or cm)1.5Rafter length: 173.57 in (14 ft 5.56 in, 4.409 m)Ridge to wall: 160.16 inOverhang tail: 13.42 inRise at the wall: 71.63 inBuy at least 16 ft boards
Show 2 more examples
UnitsImperial (ft, in)Building span (ft or m)30Roof pitch (rise per 12)8Overhang, horizontal (in or cm)18Ridge board thickness (in or cm)1.5Rafter length: 237.06 in (19 ft 9.06 in, 6.021 m)Ridge to wall: 215.43 inOverhang tail: 21.63 inRise at the wall: 119.5 inBuy at least 20 ft boards
UnitsMetric (m, cm)Building span (ft or m)8Roof pitch (rise per 12)4Overhang, horizontal (in or cm)40Ridge board thickness (in or cm)4.5Rafter length: 4.614 m (15 ft 1.69 in)Ridge to wall: 4.19 mOverhang tail: 42.16 cmRise at the wall: 1.33 mBuy boards at least 4.8 m long

Rafter length by building span

With the calculator's starting values, the rafter length is 173.57 in. The table shows how it changes with the building span.

Building span (ft)Rafter length
15113.2 in
20146.74 in
24starting value173.57 in
25180.28 in
30213.82 in
35247.37 in

Other inputs: Units: Imperial (ft, in) · Roof pitch: 6 rise per 12 · Overhang, horizontal: 12 in · Ridge board thickness: 1.5 in. Change them in the calculator above for your own numbers.

How it works

The horizontal run of one rafter is half the span minus half the ridge board thickness. Multiplying by the pitch multiplier √(1 + (pitch ÷ 12)²) gives its sloped length; the overhang is converted the same way and added.

The formula

Rafter = (Span ÷ 2 − Ridge ÷ 2 + Overhang) × √(1 + (Pitch ÷ 12)²)
SpanOutside of wall to outside of wall
RidgeThickness of the ridge board, often 1½ in
OverhangHorizontal eave projection beyond the wall

Practical tips

  • Cut one pattern rafter, test-fit it on both sides, then use it to mark the rest.
  • Rafter size depends on span, spacing, snow load and wood species; check a span table.
  • The bird’s mouth cut should not remove more than a third of the rafter depth.

Frequently asked questions

How long is a rafter for a 24 ft span with a 6/12 pitch?

About 13.3 ft from ridge to wall plus about 1.1 ft for a 12 in overhang, so roughly 14.5 ft. Buy 16 ft boards.

Is this the length along the top or bottom edge?

Along the top edge (the line length).