Rafter Length Calculator

Common rafter length from the building width and roof pitch, with overhang and cut angles.

ft

Outside of wall to outside of wall.

/12
in

1.5 in for a 2x ridge board, 0 for a truss-style peak.

in

Horizontal, measured from the wall.

Rafter length14' 5 9/16"

at 6/12 pitch, overhang included

Ridge to wall
13' 4 3/16"
Overhang (tail)
1' 1 7/16"
Rafter run
11' 11 1/4"
Roof rise
6' 0"
Plumb cut angle
26.6°
Seat cut angle
63.4°
Lumber to buy
16 ft boards

How it works

Rafter length = (span ÷ 2 − ridge ÷ 2 + overhang) × √(1 + (pitch ÷ 12)²)

Example: Building width 24 ft · Roof pitch 6 · Ridge board thickness 0 in · Overhang 0 in → 13' 5" (ridge to wall: 13' 5", overhang (tail): 0", rafter run: 12' 0", roof rise: 6' 0", plumb cut angle: 26.6°, seat cut angle: 63.4°, lumber to buy: 14 ft boards).

A common rafter is the hypotenuse of a right triangle: its run is half the building width, minus half the thickness of the ridge board, and its rise follows the pitch. Multiply the run by the pitch multiplier, √(1 + (rise ÷ 12)²), to get the length along the rafter.

The overhang is measured horizontally from the wall, so it is multiplied by the same factor and added to the length. The plumb cut at the ridge is the roof angle, and the seat cut of the birdsmouth is 90° minus that angle.

Lumber is sold in even lengths from 8 to 24 feet, so buy the next length up and leave a little for trimming the tail.

Questions

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

About 13' 5" from ridge to wall with no ridge board (12 ft run × 1.118). With a 12 in overhang it reaches 14' 6", so buy 16 ft boards.

What is a pitch multiplier?

The ratio between the rafter length and its horizontal run: √(1 + (rise ÷ 12)²). It is 1.054 for 4/12, 1.118 for 6/12 and 1.414 for 12/12.

Do I subtract the ridge board from the rafter length?

Yes. Each rafter stops at the face of the ridge board, so take half its thickness off the run: 0.75 in for a 1.5 in thick 2x ridge.

What angle do I cut a rafter at?

The plumb cut equals the roof angle: 26.6° for 6/12 and 45° for 12/12. The seat cut of the birdsmouth is 90° minus that angle.