stairstringerchart

Rafter length calculator & roof pitch chart

Rafter length calculator for gable and shed roofs: line length, tail, plumb and seat cuts, birdsmouth and height above plate. A 6/12 roof on a 24 ft span with a 1-1/2" ridge needs 13' 4-3/16" of rafter line, pitched at 26.57°; a 3-1/2" seat cuts a 1-3/4" heel and leaves 6-3/8" HAP on a 2x8.

Drawing the layout…
Quick-snap pitch
in

24.00 ft wall to wall

in
in

≥ 1-1/2″ bearing

in
in

30.0 ft of ridge

Rafter spacing

Gable · 6/12 · 24' 0" span

Rafter line 13' 4-3/16"
16 ft boards

Line length (ridge to heel)
13' 4-3/16"
160.158" · 4068 mm
Pitch angle
26.57°
6 on the tongue, 12 on the body
Height above plate
6-3/8"
Heel 1-3/4", seat 3-1/2"
Birdsmouth
1-9/16"
5-11/16" of 7-1/4" left
  • Seat ≥ 1-1/2" bearingCarpenter standard
  • Notch ≤ 1/4 depthIRC R802.7.1

Lengths

Run
12' 0"Half the span; 143-1/4" after half the ridge
Line length
13' 4-3/16"Run × 1.1180
Tail
13-7/16"12" level overhang
Overall
14' 5-9/16"Board 16 ft
Peak above plate
78-3/8"Top edge at the ridge centre line

Cuts

Plumb cut
6 / 1226.6° off square; speed square: 6 on COMMON
Seat cut
63.4°Square to the plumb line
Heel (plumb) cut
1-3/4"3-1/2" seat × 6/12
Notch square to edge
1-9/16"Limit 1-13/16" (1/4 of 7-1/4")
Longest seat allowed
4-1/16"Keeps 3/4 of the depth intact
Height above plate (HAP)
6-3/8"Same on every rafter: sets the ridge height

Roof pitch chart 14 rows

Sort any column, print a shop sheet, download CSV. Click a row to load it in the calculator.

05 / Field guide

Pitch sets the angle,
run sets the length.

Common rafters all come off one pattern, so the job is to get that pattern right: the line length from ridge to wall, the plumb cut at the top, the birdsmouth that seats on the plate and the tail. A 6/12 roof on a 24 ft building with a 1-1/2" ridge works out to 13' 4-3/16" of rafter line at 26.57°, and the whole rafter including a 12" overhang comes out of a 16 ft board.

Rafter length from pitch and run

Pitch is rise per 12" of run. The rafter is the hypotenuse, so every foot of run needs √(144 + pitch²) inches of rafter: 13.42" at 6/12, 15.62" at 10/12. On a gable the run is half the building span, less half the ridge board thickness measured level.

line length = run × √(1 + (pitch ÷ 12)²) run (gable) = span ÷ 2 − ridge ÷ 2 tail = overhang × the same factor

Plumb and seat cuts

Hold the framing square with 12 on the body and the pitch on the tongue, both on the rafter’s top edge: the tongue gives the plumb cut and the body the level (seat) cut. On a speed square, pivot on the pitch number on the COMMON scale.

The birdsmouth

The birdsmouth is a seat cut that bears on the wall plate and a heel cut that drops plumb from it. Bear at least 1-1/2" on the plate. Keep the notch shallow: measured square to the rafter edge it should not exceed one quarter of the rafter depth, so at least three quarters of the depth stays intact above it (IRC R802.7.1 limits end notches in sawn rafters to 1/4 of the depth).

The height above plate (HAP) is the plumb distance from the top of the plate to the top edge of the rafter at the heel line. It is the same on every rafter, and it sets the ridge height: on the example roof the HAP is 6-3/8".

heel = seat × pitch ÷ 12 notch = seat × sin θ ≤ depth ÷ 4 HAP = depth ÷ cos θ − heel

What this calculator does not do

It lays out rafters; it does not size them. Rafter size and spacing for your snow load, dead load and span come from the IRC rafter span tables (R802.4) or an engineer. Ceiling joists or rafter ties are also needed to stop the walls spreading on most gable roofs.

Questions

Answered plainly.

01How do you calculate rafter length?+

Multiply the run by √(1 + (pitch ÷ 12)²). For a gable, the run is half the building span minus half the ridge thickness. Add the overhang times the same factor for the tail.

02What angle is a 6/12 roof pitch?+

26.57°. A 4/12 is 18.43°, an 8/12 33.69°, a 10/12 39.81° and a 12/12 45°.

03How deep can a birdsmouth cut be?+

Keep the notch, measured square to the rafter edge, to no more than one quarter of the rafter depth so at least three quarters stays intact, and bear at least 1-1/2" on the plate.

04What is height above plate (HAP) on a rafter?+

The plumb distance from the top of the wall plate to the top edge of the rafter where it crosses the outside of the wall. Keeping it the same on every rafter keeps the roof plane flat and sets the ridge height.

05How do you mark a plumb cut with a speed square?+

Put the pivot on the rafter’s top edge and rotate the square until the pitch number on the COMMON scale lines up with the same edge; mark along the pivot side.

06How much rafter do I need per foot of run?+

At 4/12, 12.65"; at 6/12, 13.42"; at 8/12, 14.42"; at 12/12, 16.97". The roof pitch chart lists every pitch from 1/12 to 16/12.

Browse all 36 stair spec sheets and 14 railing layouts

Compare every height in one table →