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°.
| Pitch | Angle | Grade | Inches per foot of run |
|---|---|---|---|
| 2/12 | 9.5° | 16.7% | 12.17 |
| 3/12 | 14° | 25% | 12.37 |
| 4/12 | 18.4° | 33.3% | 12.65 |
| 5/12 | 22.6° | 41.7% | 13 |
| 6/12 | 26.6° | 50% | 13.42 |
| 7/12 | 30.3° | 58.3% | 13.9 |
| 8/12 | 33.7° | 66.7% | 14.42 |
| 9/12 | 36.9° | 75% | 15 |
| 10/12 | 39.8° | 83.3% | 15.62 |
| 12/12 | 45° | 100% | 16.97 |
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.