Measuring and cutting lumber? Tape measures and speed squares on Amazon (opens in a new tab)

Rafter Length Calculator

Find the rafter length, overhang, plumb and seat cut angles and board length from the run and the roof pitch.

ft

Level distance from the outside of the wall to the center of the ridge: half the building width for a gable roof.

in
/12

A 6/12 roof rises 6 in for every 12 in of run.

in

Half its thickness comes off each rafter.

ft

Along the ridge, to count the rafters.

Rafter length —
Rafter length by roof pitch for this run

How to use the rafter length calculator

  1. Enter the run: the level distance from the outside of the wall to the center of the ridge. For a gable roof that is half the width of the building.
  2. Enter the pitch as inches of rise per 12 in of run, such as 4, 6 or 8.
  3. Enter the overhang, measured level from the wall to the end of the tail, and pick the ridge board. Half the ridge thickness comes off each rafter.
  4. Optionally, enter the building length and the spacing to count the rafters.

The rafter length calculator gives the length along the top edge of the rafter, the cut angles and the shortest standard board that will do.

The formula

Rafter length = run × √(rise² + 12²) ÷ 12

The part after the run is the slope factor: how much longer the rafter is than its level run.

Example: a 24 ft wide building has a 12 ft run. Subtract half of a 1-1/2 in ridge board: 144 − 0.75 = 143.25 in. At 6/12 the slope factor is 1.118, so the rafter is 143.25 × 1.118 = 160.16 in, or 13 ft 4-3/16 in from the ridge to the birdsmouth. A 12 in overhang adds 13-7/16 in, for 14 ft 5-9/16 in in total. Buy 16 ft boards.

Slope factors and angles

PitchAngleSlope factor
3/1214.0°1.031
4/1218.4°1.054
5/1222.6°1.083
6/1226.6°1.118
7/1230.3°1.158
8/1233.7°1.202
9/1236.9°1.250
10/1239.8°1.302
12/1245.0°1.414

Marking the cuts

  • Plumb cut at the ridge: pivot a speed square on its pivot point until the edge reads the pitch on the common scale, and draw along the edge. The line is at the roof angle from a square cut.
  • Birdsmouth: a plumb line where the rafter meets the outside of the wall, and a level seat cut at right angles to it. Do not cut deeper than about a third of the rafter depth.
  • Tail: measure the overhang length along the top edge from the birdsmouth plumb line and cut plumb or square, to suit the fascia.

Cut one pattern rafter, test it at both ends of the building, then use it to mark the rest.

Sizing the rafters

This calculator gives length, not strength. The rafter size and spacing depend on the span, the snow load, the roofing and the species; check your code’s rafter span table. For floor and ceiling joists, use the joist span calculator.

Frequently asked questions

Is the rafter length measured on the top or the bottom edge?

The figure here is along the top edge (the measuring line in this method), from the ridge plumb cut to the tail.

What angle is a 4/12 pitch?

18.4°. A 6/12 pitch is 26.6° and a 12/12 pitch is 45°.

Share this

More lumber calculators