Rafter Length Calculator

Enter the building span and roof pitch to get the common rafter length, including the overhang and ridge board deduction. You also get the plumb and seat cut angles, the board length to buy, and how many rafters the roof needs, with every step of the math shown.

Measurements

Results

Total rafter length

14 ft 5 5/8 in

Buy 16 ft boards

Rafter body (ridge to wall)
13 ft 4 1/8 in
Overhang (along rafter)
1 ft 1 3/8 in
Total rise
6 ft 0 in
Plumb cut angle
26.57°
Seat cut angle
63.43°
Rafters needed
Add building length

How we got this

  1. Run = span ÷ 2 = 288 ÷ 2 = 144 in
  2. Adjusted run = 144 − 1.5 ÷ 2 = 143.25 in
  3. Multiplier = √(6² + 12²) ÷ 12 = 1.1180
  4. Rafter body = 143.25 × 1.1180 = 160.16 in
  5. Overhang = 12 × 1.1180 = 13.42 in
  6. Total = 160.16 + 13.42 = 173.57 in (14 ft 5 5/8 in)

Pitch triangle

26.57°Run: 12 inRise: 6 inPitch: 6/12

Rafter length chart

Common rafter length from the center of the ridge to the outside of the wall for a gable roof, before overhang and ridge board deduction. Use the calculator above for exact cut lengths.

Span4/126/128/1210/1212/12
12 ft6 ft 3 7/8 in6 ft 8 1/2 in7 ft 2 1/2 in7 ft 9 3/4 in8 ft 5 7/8 in
16 ft8 ft 5 1/4 in8 ft 11 3/8 in9 ft 7 3/8 in10 ft 5 in11 ft 3 3/4 in
20 ft10 ft 6 1/2 in11 ft 2 1/8 in12 ft 0 1/4 in13 ft 0 1/4 in14 ft 1 3/4 in
24 ft12 ft 7 3/4 in13 ft 5 in14 ft 5 1/8 in15 ft 7 1/2 in16 ft 11 5/8 in
28 ft14 ft 9 1/8 in15 ft 7 7/8 in16 ft 9 7/8 in18 ft 2 5/8 in19 ft 9 5/8 in
32 ft16 ft 10 3/8 in17 ft 10 5/8 in19 ft 2 3/4 in20 ft 9 7/8 in22 ft 7 1/2 in
36 ft18 ft 11 5/8 in20 ft 1 1/2 in21 ft 7 5/8 in23 ft 5 1/8 in25 ft 5 1/2 in

Rafter length formula

Run
run = span ÷ 2 − ridge thickness ÷ 2
Each rafter covers half the building, minus the half of the ridge board it butts into.
Multiplier
multiplier = √(rise² + 12²) ÷ 12
How much longer a sloped rafter is than its level run. 6/12 gives 1.118.
Rafter body
body = run × multiplier
The length from the ridge face to the outside of the wall plate.
Overhang
tail = overhang × multiplier
The eave past the wall, measured level, converted to length along the rafter.

How to measure for rafters

  1. Measure the span from the outside of one wall top plate to the outside of the opposite one.
  2. Find the pitch. On an existing roof, hold a level against a rafter in the attic, mark 12 inches along it, and measure straight down to the rafter. That number is the rise. Or use the roof pitch calculator.
  3. Pick the overhang, measured level from the wall to the fascia. 12 to 24 inches is typical.
  4. Note the ridge board thickness: 1.5 inches for a 2x board, 0 if rafters meet tip to tip.

Plumb cut, seat cut, and birdsmouth

The plumb cut is the vertical cut where the rafter meets the ridge. Its angle from the rafter edge equals the roof angle. The birdsmouth is the notch that sits on the wall plate: its seat cut is level and its heel cut is plumb. On a speed square, pivot to the rise number on the common scale and both cuts line up automatically.

Rafter size (2x6, 2x8, 2x10) depends on span, spacing, wood species, and snow load. Check your local span tables or code official before you buy lumber.

Rafter calculator FAQ

How do you calculate rafter length?

Divide the building span by 2 to get the run, subtract half the ridge board thickness, then multiply by the pitch multiplier √(rise² + 12²) ÷ 12. Add the overhang (level distance) times the same multiplier to get the full board length.

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

Without overhang or ridge deduction, each rafter is 13 ft 5 in. With a 1.5 in ridge board and a 12 in overhang it is 14 ft 5 5/8 in, so you would buy 16 ft boards.

Do you subtract the ridge board from rafter length?

Yes. Each rafter stops at the face of the ridge board, so subtract half the ridge thickness from the run (0.75 in for a 1.5 in board) before multiplying by the pitch multiplier.

What are the plumb and seat cut angles on a rafter?

The plumb cut at the ridge equals the roof angle (26.57° for 6/12). The seat cut of the birdsmouth is 90° minus that angle (63.43° for 6/12). On a speed square you can simply set the pitch number, such as 6, on the common scale.

How many rafters do I need?

Divide the building length in inches by the rafter spacing, round up, and add one for the end. For a 40 ft building at 16 in on center that is 31 pairs, or 62 rafters for a gable roof.

Does rafter length include the overhang?

Only if you add it. Rafter length from ridge to wall is the body; the overhang (eave) adds its level distance times the pitch multiplier. This calculator shows both and the total.

Related tools: roof pitch calculator, roof pitch chart, roof replacement cost calculator, metal roof cost calculator, snow load calculator.