Rafter Length Calculator

Reviewed by the My Roof Pitch editorial team · Updated · Free, no sign-up, works offline after first load

Rafter length is the hypotenuse of the rise and run triangle: √(rise² + run²). For a 24 ft span at 6:12, the run is 12 ft, rise is 6 ft, and the line length is 13.42 ft. Add the overhang along the same slope to get the cut length.

Your measurements

Enter the values you know — results update live.

Outside-to-outside width of the building at the wall plates.

Enter 6 for a 6:12 roof.

Horizontal projection past the wall. The tool converts it to slope length for you.

Analysis

Live results from your measurements.

Live data
Rafter line length
13.347ft
Total length with overhang
15.024ft
Total rise
5.969ft
Run after ridge deduction
11.938ft
Plumb cut angle
63.43°
Seat cut angle
26.57°
Stock length to buy
16ft
ridge · 26.4°Gable roof · footprint 40 × 28
Show the working
  1. Run: 24 ÷ 2 − 0.125 ÷ 2 = 11.938 ft
  2. Rise: 11.938 × (6 ÷ 12) = 5.969 ft
  3. Line length: √(11.938² + 5.969²) = 13.347 ft
  4. Overhang along slope: 1.5 × 1.118 = 1.677 ft
  5. Total rafter: 13.347 + 1.677 = 15.024 ft
  6. Plumb cut: 90° − 26.57° = 63.43°

What this calculator does

A common rafter runs from the wall plate straight up to the ridge, perpendicular to both. Its line length is measured from the outside face of the wall plate to the centre of the ridge, along the top edge of the rafter. That line length plus the sloped overhang gives the piece you actually cut. Two cuts define it: the plumb cut at the ridge, which is vertical when the rafter is in place, and the birdsmouth seat cut that lands flat on the wall plate. Both angles come from the same roof pitch.

How to use it

  1. Measure the building span from outside face to outside face of the wall plates.
  2. Halve the span to get the run, then subtract half the ridge board thickness.
  3. Multiply the run by the pitch ratio (rise ÷ 12) to get the total rise.
  4. Take the square root of run squared plus rise squared for the line length.
  5. Multiply the horizontal overhang by the pitch multiplier and add it for the total cut length.
  6. Set the plumb cut to 90 minus the roof angle and the seat cut to the roof angle.

The formula

Rafter line length

line length = sqrt(run^2 + rise^2)

Pythagoras on the run and rise of one roof plane.

Shortcut using the multiplier

line length = run × sqrt(rise^2 + 144) / 12

The pitch multiplier converts run straight into rafter length.

Ridge deduction

run = span / 2 - ridge thickness / 2

The rafter stops at the face of the ridge board, not its centreline.

Worked example

A 28 ft span at 8:12 with a 2 ft overhang and a 1.5 in ridge board.

  1. Run: 28 ÷ 2 − 0.0625 = 13.9375 ft
  2. Rise: 13.9375 × 0.6667 = 9.2917 ft
  3. Line length: √(13.9375² + 9.2917²) = 16.75 ft
  4. Overhang along slope: 2 × 1.2019 = 2.404 ft
  5. Total: 16.75 + 2.404 = 19.154 ft

Cut each common rafter at 19 ft 1 7/8 in overall; buy 20 ft stock.

Reference chart

Common rafter line length per foot of run, by pitch
PitchLength per ft of run12 ft run16 ft runAngle
3:121.030812.3716.4914.04°
4:121.054112.6516.8718.43°
5:121.08331317.3322.62°
6:121.11813.4217.8926.57°
7:121.157713.8918.5230.26°
8:121.201914.4219.2333.69°
9:121.25152036.87°
10:121.301715.6220.8339.81°
12:121.414216.9722.6345°
Common rafter line length per foot of run, by pitch

Maximum common rafter span for No. 2 Douglas fir-larch, 40 psf roof load

Maximum common rafter span for No. 2 Douglas fir-larch, 40 psf roof load
Rafter size16 in on centre24 in on centre
2×612 ft 6 in10 ft 3 in
2×816 ft 6 in13 ft 6 in
2×1020 ft 2 in16 ft 6 in
2×1223 ft 5 in19 ft 1 in
Maximum common rafter span for No. 2 Douglas fir-larch, 40 psf roof load — Source: Indicative values in the range published by IRC Table R802.5.1; use your local adopted span table and species grade for design.

Common mistakes

  • Using the full span as the run. The run is half the span on a symmetrical gable.
  • Skipping the ridge board deduction, which leaves every rafter about 3/4 in too long.
  • Adding the overhang horizontally rather than along the slope.
  • Cutting the birdsmouth deeper than one third of the rafter depth, which the IRC does not allow.
  • Measuring the line length along the bottom edge instead of the top edge of the rafter.
  • Using a common rafter length for a hip or valley rafter — those run on a 17-unit base, not 12.

Assumptions and limits

  • A symmetrical gable with both plates at the same height.
  • The rafter is a straight, uniform-depth member with a standard birdsmouth.
  • Span tables shown are indicative and not a structural design.
  • The overhang is a level projection past the wall face.

Frequently asked questions

How long is a rafter for a 24 foot span at 6/12?

The run is 12 ft and the rise is 6 ft, so the line length is √(144 + 36) = 13.42 ft, or 13 ft 5 inches. Add the sloped overhang to get the length you cut.

What is the plumb cut angle for a 6/12 roof?

The roof angle is 26.57 degrees, so the plumb cut is 63.43 degrees from the rafter edge — set a circular saw bevel to 26.57 degrees off square to make it.

Do I subtract the ridge board from the rafter length?

Yes. Subtract half the ridge thickness from the run before calculating. A 1.5 inch ridge board means the run drops by 0.75 inches on each side.

What is rafter line length?

It is the distance from the outside face of the wall plate to the centreline of the ridge, measured along the top edge of the rafter. Overhang and ridge deduction are handled separately.

How do I calculate a hip rafter length?

A hip rafter runs diagonally, so its run per foot is 16.97 inches rather than 12. Use √(rise² + 16.97²) ÷ 16.97 as the multiplier against the hip run.

How deep can a birdsmouth cut be?

The seat cut should not remove more than one third of the rafter depth. On a 2×8, which is 7.25 inches deep, that limits the seat cut to about 2.4 inches.

Related guides

Last updated 2026-08-05. Results are estimates for planning and are not a substitute for a licensed engineer or local code review.