Rafter calculator

The span, pitch, overhang, ridge board and spacing in. The rafter's length, its cuts, the board to buy and the count out.

Result

Each rafter is 14' 6" long.

13' 4" from the ridge to the wall and 1' 1" of tail, at 6/12.

What to buy

  • 62 rafters, 31 a side at 16 inches on center
  • Cut from 16 ft boards

The rafter

Run
11' 11"
Rise
6' 0"
Slope factor
1.118
Plumb cut
26.6°
Seat cut
63.4°
Span, wall to wall
Building length
Overhang, measured level
RunRiseOverhang
One rafter from the ridge board down over the wall. The run is level, from the wall to the ridge; the rise is straight up; the overhang is level, from the wall out to the tail.

How the length is worked out

  1. The run is half the span less half the ridge board: on a 24 foot span with a 1 1/2 inch ridge board, 12 feet less 3/4 inch.
  2. The slope factor is how much longer the rafter is than its run: √(pitch² + 12²) ÷ 12. At 6/12 it's 1.118.
  3. The length to the wall is the run times the factor, and the tail is the overhang times the same factor. Together they're the rafter's length along its top edge, before the plumb cut at the ridge and the cut at the tail.
  4. The cuts: the plumb cut at the ridge is the pitch's angle, the arctangent of the rise over 12, and the seat cut where the rafter sits on the wall is its complement.
  5. The count is the building's length divided by the spacing, plus one, for each side of the ridge.

What the code says about rafters

  • Size: rafters are sized from the span tables, and the span is measured level, along the rafter's horizontal projection (IRC R802.4.1). A Douglas fir-larch No. 1 2×8 at 12 inches on center, under a 20 psf live load and 10 psf dead load with the ceiling not attached, spans up to 22' 5" (Table R802.4.1(1)).
  • Ridge board: at least 1 inch nominal thick and no shallower than the cut end of the rafter (IRC R802.3).
  • Framing: rafters are framed opposite each other at the ridge, offset no more than 1 1/2 inches (IRC R802.4.2).
  • Bearing: each end rests on at least 1 1/2 inches of wood or metal (IRC R802.6).

Common questions

How long is a rafter on a 24 foot span?

At 6/12 with a 1 foot overhang and a 1 1/2 inch ridge board, 14' 6", cut from 16 foot stock. At 12/12, 18' 4".

How do I figure rafter length without a calculator?

Multiply the run in feet by the pitch's slope factor: 1.118 at 6/12, 1.202 at 8/12, 1.414 at 12/12. Add the overhang times the same factor. The roof pitch calculator gives the factor for any pitch.

What spacing do rafters use?

The code's span tables list 12, 16, 19.2 and 24 inches on center, and closer spacing lets the same rafter span farther. A Douglas fir-larch No. 1 2×8 spans up to 22' 5" at 12 inches, 19' 5" at 16, 17' 9" at 19.2 and 15' 10" at 24, under a 20 psf live load and 10 psf dead load with the ceiling not attached (IRC Table R802.4.1(1)).

Does the length include the birdsmouth?

The length runs along the rafter's top edge from the ridge cut to the tail. The birdsmouth is cut into the bottom edge where the rafter sits on the wall and doesn't change it.

Measure the roof from the address.

Order an EagleView roof report in BluMatrix. Pitch, area and every edge come into the estimate, $7.99 a report. 3 days free.

Bid the roof without the ladder.

An EagleView report or the satellite sketch from the address. Squares, pitch and every edge go into the estimate, and the client signs online. EagleView is $7.99 a report. 3 days free.

See the roof's size from the address.

Order an EagleView roof report in BluMatrix: pitch, area and every edge, $7.99 a report. 3 days free.