Skip to content
Free, no signup. Imperial and metric. Formulas shown.
Browse calculatorsBrowse

Rafter Length Calculator

Work out the length of a common rafter from the roof span and pitch, then add the overhang and read the pitch angle and the plumb and seat cuts. Enter your measurements in feet, inches, metres or centimetres.

Dimensions

Measure by

Pitch angle: 26.57°

Rafter length

13.42ft

Overhang: none added

Feet and inches
13 ft 5 in
Metres
4.09 m
Run
12.00 ft
Slope factor
1.118
Pitch angle
26.57°
Plumb cut
26.57°
Seat cut
63.43°

Formula

Run: 24 ft ÷ 2 = 12.00 ft

Slope factor: square root of (144 + 6²) ÷ 12 = 1.118

Rafter length: 12.00 ft × 1.118 = 13.42 ft

Pitch angle: arctan(6 ÷ 12) = 26.57°

Seat cut: 90° - 26.57° = 63.43°

Quick answer

To find a rafter's length, multiply the run, which is half the building width, by the slope factor for your pitch. The slope factor is the square root of 144 plus the rise squared, divided by 12. For a 24 ft span the run is 12 ft, and at a 6 in 12 pitch the slope factor is 1.118, so the rafter is 12 x 1.118 = 13.42 ft, or 13 ft 5 in, before the overhang.

How to use the rafter length calculator

  1. Enter the span (the full building width) or the run (half the span) directly.
  2. Enter the pitch as rise over 12, for example 6 for a 6 in 12 roof.
  3. Add the overhang if the rafter extends past the wall.
  4. Read the rafter length, the total length with overhang, the pitch angle, and the plumb and seat cut angles.
  5. Enter the span in feet or metres; the pitch stays as rise in 12 either way.

Worked example

A building is 24 ft wide with a 6 in 12 pitch and no overhang.

  1. 1.Run: 24 / 2 = 12 ft
  2. 2.Slope factor: square root of (144 + 36) / 12 = 1.118
  3. 3.Rafter length: 12 x 1.118 = 13.42 ft, or 13 ft 5 in
  4. 4.Pitch angle: 26.57 degrees. Plumb cut 26.57 degrees, seat cut 63.43 degrees

When to use this

  • Building a shed, garage or porch roof: turn the span and pitch into the rafter length and the cuts.
  • Adding an extension: match the pitch of an existing roof and read the plumb and seat cut angles.
  • Ordering timber: use the length with overhang to pick a board length that cuts in one piece.

The formula

The rafter length is the run times the slope factor:

slope factor = square root of (144 + rise squared) / 12, then rafter length = run x slope factor.

The pitch angle is the angle whose tangent is rise over 12. The plumb cut matches the pitch angle, and the seat cut is 90 degrees minus the pitch angle. The overhang is multiplied by the same slope factor and added to the length.

Slope factor and pitch angle by roof pitch

Multiply the run by the slope factor to get the rafter length.

Pitch Slope factor Pitch angle
3 in 12 1.031 14.04 deg
4 in 12 1.054 18.43 deg
5 in 12 1.083 22.62 deg
6 in 12 1.118 26.57 deg
7 in 12 1.158 30.26 deg
8 in 12 1.202 33.69 deg
9 in 12 1.250 36.87 deg
10 in 12 1.302 39.81 deg
12 in 12 1.414 45.00 deg

Swipe sideways to see all columns

Turning the length into an order

The calculator gives the length of one rafter along the slope. To order timber, round each rafter up to the next length you can buy, since boards come in fixed sizes, so a 13 ft 5 in rafter is cut from a 14 ft board and leaves a short offcut. If the roof has an overhang, measure to the end of the tail, not the wall, so one board covers the birdsmouth and the tail in a single piece. For the number of rafters, divide the roof length by the spacing, usually 16 or 24 inches (400 or 600 mm) on centre, then add one for the final rafter. Order a few spares for knots and mistakes.

Common mistakes

  • Using the span instead of the run. The run is half the span for a common gable rafter.
  • Forgetting the overhang. The tail past the wall adds to the rafter length along the slope.
  • Ignoring the ridge board. For a precise cut, subtract half the ridge thickness from the run.
  • Confusing the cuts. The plumb cut is vertical at the ridge; the seat cut is the horizontal part of the birdsmouth on the wall.
  • Mixing pitch forms. Enter the pitch as rise over 12, not as a percentage.

Frequently asked questions

Multiply the run, half the building width, by the slope factor for your pitch. At a 6 in 12 pitch the slope factor is 1.118, so a 12 ft run gives a 13.42 ft rafter before the overhang.

References. The formulas and figures here follow standard construction references. See our Methodology for how we check them. Rafter geometry uses the standard slope-factor method.

Estimates only. Check supplier specs and local codes before you order or build.