Rafter calculator

On a 24 ft span with a 6/12 pitch and a 1-1/2" ridge board, each common rafter is 13' 4-3/16" from ridge to plate, 14' 5-9/16" with a 12 in overhang. Buy 16 ft boards.

FREE · NO ADS · NO SIGN-UP · FEET, INCHES & FRACTIONS

/12
Rafter with tail
14' 5-9/16"
Ridge to plate
13' 4-3/16"
Tail
1' 1-7/16"
Rise
5' 11-5/8"
Plumb cut
26.6°
Seat cut
63.4°
Board to buy
16 ft
Open in the free app
riserunspanrafter

How it's calculated

Run = span ÷ 2 − ridge thickness ÷ 2. Rafter length = run × slope factor, where slope factor = √(1 + (pitch ÷ 12)²). Tail = level overhang × slope factor. Plumb cut angle = arctan(pitch ÷ 12); seat cut = 90° − plumb.

Worked example. A 16' 8" shed span at 9/12: run = 100 − 0.75 = 99.25 in; × 1.25 = 10' 4-1/16". A 16 in overhang adds 1' 8", so 12' 1/16" in all; plumb cut 36.9°.

Rafter length per foot of run
PitchAngleGradeInches per foot of run
2/129.5°16.7%12.17
3/1214°25%12.37
4/1218.4°33.3%12.65
5/1222.6°41.7%13
6/1226.6°50%13.42
7/1230.3°58.3%13.9
8/1233.7°66.7%14.42
9/1236.9°75%15
10/1239.8°83.3%15.62
12/1245°100%16.97
Source: Computed: 12 × slope factor. Checked 2026-11-23.

Measuring along the rafter

The length given is measured along the top edge from the ridge plumb cut to the plate line, then along the tail. Lay it out from the ridge end and mark the bird's mouth where the line crosses the wall plate.

Bird's mouth

The seat cut sits flat on the wall plate and the heel cut is plumb. Keep at least two thirds of the rafter depth above the seat cut.

Questions

How do I calculate rafter length?

Take the run (half the span less half the ridge), multiply by the slope factor for your pitch, then add the tail.

What is the rafter run?

The level distance from the outside of the wall plate to the center of the ridge, minus half the ridge board.

What size rafter do I need?

It depends on span, spacing, species and loads. Use the IRC span tables (R802) or an engineer; this calculator gives length, not size.

Related calculators

Formulas tested on the same cases as the Stud app. Professional review pending. How we check the math. Embed this calculator on your site: /embed/rafter-calculator/. Last checked 2026-11-23.

Same math in your pocket. Works with zero bars.

DOWNLOAD FREE iPhone · No trial, no ads, no account