Skip to Main Content
Roofing & Siding Planning Tools•Free Web App

Rafter Length Calculator

For a 24 ft span at a 6/12 pitch with a 2x ridge board and a 12 in. overhang, each common rafter is 14 ft 5-5/8 in long: 13 ft 4-1/8 in from ridge to wall plus a 1 ft 1-3/8 in tail. Buy 16 ft boards and cut the plumb ends at 26.6°. A 40 ft long building at 16 in. on center needs 62 rafters.

Formulas and figures reviewed · How we check our calculators

This calculator handles the parts that most often go wrong when laying out common rafters: the ridge board deduction, measuring the overhang level rather than along the slope, and converting decimal feet into a tape-measure length to the nearest 1/8 in. It also gives the cut angles and the number of rafters, so you can order lumber in one go.

1 · Project Specifications

Building

A gable rafter runs half the span; a shed rafter runs the full span.

24

Measured across the rafters, over the top plates.

40

Used to count rafters. Same unit as the span. Enter 0 to skip.

Roof Slope

6 in 12

Used in Pitch mode. Not sure? Use the roof pitch calculator first.

26.57 °

Used in Angle mode. Common metric roofs are 15°, 22.5°, 30°, 35° and 45°.

Each gable rafter is shortened by half this thickness, measured level.

Overhang & Spacing

12

Measured horizontally, not along the slope. 12–24 in. (30–60 cm) is typical.

2 · Material Estimates

Example result for the default values. Enter your own measurements and press Calculate.

Estimation Results

Rafter Length (with overhang)
14 ft 5-5/8 in (4.41 m)

Line length plus tail, measured along the top edge of the rafter.

Line Length (ridge to wall)

From the ridge plumb cut to the outside of the wall (the birdsmouth heel).

13 ft 4-1/8 in (4.07 m)
Tail Length (overhang)
1 ft 1-3/8 in (0.34 m)
Board Length to Buy

Next standard length with at least 2 in. spare for cuts.

16 ft (4.88 m)
Rafters Needed
62rafters
Plumb Cut Angle

Set a speed square to this angle for the ridge and tail plumb cuts.

26.6°
Seat (Level) Cut Angle

Measured from the rafter edge; the seat cut is square to the plumb cut.

63.4°
Rise to Ridge

Top plate line to ridge center line (add heel height for the actual ridge height).

6 ft (1.83 m)
Pitch Multiplier
1.118×

✓ Recommendations

Mark the plumb cut at 26.6° on a speed square, measure 13 ft 4-1/8 in along the top edge to the heel, then 1 ft 1-3/8 in more for the tail.

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

Notes

Rafter size (2x6, 2x8, 2x10…) depends on span, spacing, species and snow load. Check the IRC rafter span tables (Section R802) or your local code.

Estimates include recommended safety waste margins. Double-check measurements before purchasing materials.

Detailed Project Guide & Calculation Methodology

Calculation Formulas & Methodology

Rafter run

Run = Span ÷ 2 − Ridge thickness ÷ 2 (shed roof: Run = Span)

The level distance one rafter covers, from the outside of the wall to the face of the ridge board.

Pitch multiplier

Multiplier = √(1 + (Pitch ÷ 12)²)

How much longer a sloped line is than its level run. A 6/12 roof has a multiplier of 1.118.

Rafter length

Line length = Run × Multiplier; Tail = Overhang × Multiplier; Total = Line + Tail

Lengths are measured along the top edge of the rafter. Overhang is the level projection past the wall.

Step-by-step

  1. 124 ft span, 6/12 pitch, 1-1/2 in. ridge: run = 12 ft − 3/4 in. = 11.9375 ft
  2. 2Line length = 11.9375 × 1.118 = 13.347 ft = 13 ft 4-1/8 in
  3. 312 in. overhang: tail = 1 × 1.118 = 1 ft 1-3/8 in
  4. 4Total = 14 ft 5-5/8 in → buy 16 ft boards

Cut angles and rafter count

Plumb cut = arctan(Pitch ÷ 12); Seat cut = 90° − Plumb cut; Rafters per side = ⌊Length ÷ Spacing⌋ + 1

A 6/12 roof has a 26.6° plumb cut. A 40 ft building at 16 in. on center needs 31 rafters per side, 62 in total.

How It Works

  1. 1Pick gable or shed and enter the outside span over the top plates.
  2. 2Enter the pitch (X in 12) or the roof angle in degrees.
  3. 3Choose the ridge board thickness and the level eave overhang.
  4. 4Enter the building length and rafter spacing to count rafters.
  5. 5Press Calculate, then mark one pattern rafter and test it before cutting the rest.

Rafter length per foot of run by pitch

Multiply the level run in feet by the multiplier to get the rafter length. The table also gives the length per foot of run in inches, which is the number printed on many framing squares, and the plumb cut angle.

PitchAngle / plumb cutMultiplierRafter length per ft of runSeat cut
3/1214.0°1.03112.37 in.76.0°
4/1218.4°1.05412.65 in.71.6°
5/1222.6°1.08313.00 in.67.4°
6/1226.6°1.11813.42 in.63.4°
7/1230.3°1.15813.89 in.59.7°
8/1233.7°1.20214.42 in.56.3°
9/1236.9°1.25015.00 in.53.1°
10/1239.8°1.30215.62 in.50.2°
12/1245.0°1.41416.97 in.45.0°

Seat cut angle is measured from the rafter edge. Multiplier = √(1 + (pitch/12)²).

Common rafter lengths for typical spans (6/12 pitch)

These assume a gable roof, a 1-1/2 in. ridge board and a 12 in. level overhang. Lengths are along the top edge, to the nearest 1/8 in.

SpanLine lengthWith 12 in. overhangBoard to buy
12 ft6 ft 7-5/8 in7 ft 9-1/8 in8 ft
16 ft8 ft 10-1/2 in9 ft 11-7/8 in12 ft
20 ft11 ft 1-3/8 in12 ft 2-3/4 in14 ft
24 ft13 ft 4-1/8 in14 ft 5-5/8 in16 ft
28 ft15 ft 7 in16 ft 8-3/8 in18 ft
32 ft17 ft 9-7/8 in18 ft 11-1/4 in20 ft

Spans of 28 ft and more usually need larger or engineered rafters, purlins or trusses. Check the span tables.

How to lay out a common rafter

  • •Snap or pencil a measuring line along the face of the board, set down from the top edge by the heel height you want above the wall.
  • •At the top end, mark the ridge plumb cut at the roof angle.
  • •Measure the line length along the measuring line and mark a second plumb line: this is the outside face of the wall (heel of the birdsmouth).
  • •Mark the seat cut square to that plumb line, as wide as the top plate, keeping the notch no deeper than about one-third of the rafter depth.
  • •From the heel plumb line, measure the tail length and mark the tail plumb cut (or a level cut for a soffit).
  • •Cut, test-fit at both ends of the wall, adjust if needed, then use it as the pattern for the rest.

Frequently Asked Questions

✓ Pro Tips

  • •Crown the boards: sight down each rafter and install with the bow facing up.
  • •Measure the actual span at both ends of the building; walls are rarely perfectly parallel.
  • •Buy one or two spare boards for test cuts and knots in the wrong place.
  • •For metric roofs, use Angle mode and enter the span in meters and overhang in cm.

⚠ Common Mistakes

  • •Forgetting the half-ridge deduction, which raises the ridge and opens the birdsmouth joints.
  • •Measuring the overhang along the slope instead of level, which makes the tails too long.
  • •Measuring rafter length along the bottom edge of the board.
  • •Cutting the birdsmouth seat too deep and weakening the rafter at the wall.