Rafter Length Calculator

Common rafter length from building span and pitch, with the ridge deduction, overhang, cut angles, board length and matching hip rafter.

Roof Dimensions

Outside of wall to outside of wall

Enter 6 for a 6/12 roof

Tip

Lengths are along the rafter's measuring line, from the ridge plumb cut to the building line. Check the first rafter pair against the ridge height before cutting the rest.

Results

Total rafter length (with tail)

-

Ridge to building line

-

Overhang tail

-

Run (after ridge deduction)

-

Rise

-

Plumb cut angle

-

Seat (level) cut angle

-

Board to buy

-

Hip / valley length

-

Roof Section (to scale)

How rafter length is calculated

A common rafter is the hypotenuse of a right triangle. The horizontal leg is the run (half the building span, less half the ridge board), the vertical leg is the rise, and the pitch tells you how the two are related: a 6/12 roof rises 6 inches for every 12 inches of run. Everything else follows from the Pythagorean theorem.

run = span ÷ 2 − ridge thickness ÷ 2

rise = run × pitch ÷ 12

rafter = √(run² + rise²) = run × √(1 + (pitch ÷ 12)²)

tail = overhang × √(1 + (pitch ÷ 12)²)

plumb cut angle = arctan(pitch ÷ 12)

The factor √(1 + (pitch ÷ 12)²) is the rafter multiplier: the length of rafter needed for each unit of run. It depends only on the pitch, which is why framers memorise it, or read it as "length per foot of run" from the table stamped on a framing square.

Worked example: 24 ft span, 6/12 pitch, 12 in overhang

  1. Half the span is 12 ft = 144 in. With a 1½ in ridge board, run = 144 − 0.75 = 143.25 in.
  2. Rise = 143.25 × 6 ÷ 12 = 71.63 in (5' 11-5/8").
  3. Multiplier = √(1 + 0.5²) = √1.25 = 1.1180.
  4. Rafter, ridge to building line = 143.25 × 1.1180 = 160.16 in (13' 4-3/16").
  5. Tail = 12 × 1.1180 = 13.42 in (13-7/16").
  6. Total = 160.16 + 13.42 = 173.57 in (14' 5-9/16"), so buy 16 ft boards.
  7. Plumb cut = arctan(0.5) = 26.57°; the level seat cut is 90° − 26.57° = 63.43° from the rafter edge.

Rafter multipliers by pitch

PitchRoof angleCommon rafter multiplierCommon length per 12 in of runHip / valley length per 12 in of run
2/129.46°1.013812.17 in17.09 in
3/1214.04°1.030812.37 in17.23 in
4/1218.43°1.054112.65 in17.44 in
5/1222.62°1.083313.00 in17.69 in
6/1226.57°1.118013.42 in18.00 in
7/1230.26°1.157713.89 in18.36 in
8/1233.69°1.201914.42 in18.76 in
9/1236.87°1.250015.00 in19.21 in
10/1239.81°1.301715.62 in19.70 in
11/1242.51°1.356616.28 in20.22 in
12/1245.00°1.414216.97 in20.78 in

Common multiplier = √(1 + (pitch/12)²). Hip and valley length per 12 in of common run = 12 × √(2 + (pitch/12)²).

Hip and valley rafters

A hip rafter crosses the corner of the building at 45° in plan, so its horizontal run is the common run × √2. It climbs the same rise as the common rafters, which makes its slope flatter: a 6/12 roof has 6/16.97 hips. The line length is run × √(2 + (pitch ÷ 12)²). Treat the calculator's hip figure as the theoretical length to the centre of the ridge; the actual cut is shortened for the ridge and for half the hip's own thickness measured at 45°.

Before you cut

  • Measure the span at the top plates, in several places. Walls are rarely perfectly parallel, and the rafter follows the real span, not the drawing.
  • The birdsmouth seat should not remove more than about one third of the rafter depth; deeper notches weaken the rafter at its most loaded point.
  • Cut one pair, test it against the ridge, and use it as the pattern for the rest.
  • Rafter size and spacing are structural. Use the span tables in your local building code (IRC R802 in the U.S.) or an engineer for snow and wind loads.

Need the pitch first? Use the roof pitch calculator to convert between rise/run, degrees and X/12, or read the roof pitch trigonometry guide.

Frequently Asked Questions

How do I calculate rafter length?

Take half the building span as the run, subtract half the ridge board thickness, then multiply by √(1 + (pitch/12)²). For a 24 ft span at 6/12 with a 1½" ridge: run = 144 − 0.75 = 143.25 in, multiplier = 1.118, rafter = 160.16 in, or 13' 4-3/16". Add the overhang tail to get the full board length.

Why do I subtract half the ridge board thickness?

The rafters meet the ridge board, not each other. A 1½" ridge board takes ¾" of horizontal run away from each side, so each rafter's run is ¾" shorter than half the span. Leaving this out makes every rafter about 13/16" too long on a 6/12 roof and the ridge will not sit at the designed height.

How much longer is the rafter for the overhang?

Overhang is measured level (horizontally) from the building line, but the rafter tail runs on the slope, so multiply the overhang by the same pitch multiplier. A 12" overhang on a 6/12 roof needs 12 × 1.118 = 13.42 in of rafter tail.

What are the plumb cut and seat cut angles?

The plumb cut (at the ridge and at the tail) is the roof angle: arctan(pitch/12). The seat cut of the birdsmouth is level, so it is 90° minus the roof angle measured from the rafter edge. For 6/12 that is 26.57° and 63.43°. On a speed square, set the common scale to the pitch number instead.

How long is a hip or valley rafter?

A hip runs diagonally across the corner, so for every 12 in of common run it covers 16.97 in (12√2) horizontally. Its length is the common run × √(2 + (pitch/12)²). For a 143.25 in run at 6/12 that is 143.25 × 1.5 = 214.88 in, or 17' 10-7/8", before any deduction for the ridge and the hip's own thickness.

What size board should I buy?

Round the total rafter length (including the tail) up to the next stock length; framing lumber is sold in 2 ft steps from 8 ft to 24 ft. The calculator does this for you. Board depth (2×6, 2×8, 2×10…) is a structural question that depends on span, spacing, species and snow load, so take it from the span tables in your building code, not from geometry.

Related Guides

View all articles

Deepen your understanding of triangles and trigonometry with our guides and tutorials:

Formulas and results last reviewed . How we check accuracy · Corrections log · Report an error

Advertisement

Related Calculators

All calculators