Roof Pitch & Rafter Length Calculator
Exact Pythagorean common rafter length, ridge deduction, IRC R802.7.1 birdsmouth & overhang check, and tail blueprint.
StairStringer Rafter Cut Sheet (GABLE · 6/12 Pitch · 2x8) Span: 24' | Effective Run: 11' 11 1/4" (after 1.5" ridge deduction) Ridge Rise: 5' 11 5/8" | Common Line Length: 13' 4 3/16" Overhang Tail (16" OH): 17 7/8" | Total Rafter: 14' 10 1/16" (Order 16' 2x8 stock) Plumb Cut: 63.4° | Seat Cut: 26.6° | Birdsmouth Seat: 3 1/2" | Perp Notch: 1 9/16" (Rem 5 11/16") | HAP: 6 3/8"
Common US Roof Pitch & Rafter Reference Table
Pre-calculated gable rafters assuming a 1 1/2" ridge board, 16" horizontal eave overhang, and 2×4 (3 1/2") exterior walls.
| Roof Configuration | Pitch Angle | Common Line | Total w/ Tail | Birdsmouth HAP | Order Stock |
|---|---|---|---|---|---|
| 4/12 Low Gable (24' span) | 18.4° | 12' 7" | 13' 11 7/8" | 6 1/2" | 16' 2x8 |
| 6/12 Standard Garage (24' span) | 26.6° | 13' 4 3/16" | 14' 10 1/16" | 6 3/8" | 16' 2x8 |
| 8/12 Classic Cabin (28' span) | 33.7° | 16' 9" | 18' 4 1/4" | 8 13/16" | 20' 2x10 |
| 12/12 Steep Cape (20' span) | 45.0° | 14' 5/8" | 15' 11 1/4" | 12 7/16" | 18' 2x12 |
Jobsite Rafter Layout Steps & Worked IRC R802 Examples
- Sight and crown every board first: Inspect each rafter along its edge and orient the slight upward bow (crown) toward the roof sheathing so gravity settles the member flat under load.
- Scribe the ridge plumb line: Place a framing square along the top edge with the pitch rise on the tongue and 12" on the blade, mark the ridge cut, and deduct half the ridge thickness (3/4" for a 2x ridge) measured square from that plumb line.
- Pull total common line length along the top edge: Hook a tape on the shortened ridge point and mark the building-line plumb cut at the exact common rafter length before stepping out the eave overhang tail.
- Lay out the birdsmouth using the executable seat cut: Measure the level seat inward from the building-line plumb mark, verify HAP across every common rafter, and never over-cut past the inside heel corner with a circular saw—finish the corner with a handsaw or jigsaw.
Worked 24' Garage Gable & Capped Birdsmouth Examples
On a 24-foot gable garage at 6/12 pitch with a 1 1/2" ridge board and 16" horizontal overhang, half-span run is 144" minus 3/4" ridge deduction = 143.25". Multiplying by 6/12 yields a 71.625" ridge rise and a 160.158" common line length. Adding the 16" eave tail along the slope (16 / cos(26.57°) = 17.889") brings total rafter length to 178.047" (14' 10 1/16"), which fits standard 16-foot 2×8 stock.
When a full 3 1/2" top-plate seat exceeds prescriptive limits in 2021 IRC Chapter 8 (R802.7.1 & R802.7.1.1), this calculator floors the capped seat cut down to the nearest 1/16" so field cuts stay strictly inside code limits. On a 2×6 (5 1/2" depth) at 8/12 pitch with 0" overhang, the end-notch limit is 5.5 / 4 = 1.375" (exact max seat 2.479"), so the executable seat floors to 2 7/16" (actual perpendicular notch 1.352" ≤ 1.375"). On a steep 24/12 cantilevered 2×6 with a 16" overhang, preserving 3 1/2" uncut depth yields an exact max seat of 2.236", flooring cleanly to 2 3/16" (remaining depth 3.543" ≥ 3.50").
For full structural span sizing by lumber species, snow load, and deflection limits, verify against the American Wood Council (AWC) Span Options Calculator. Once your rafter count is final, price the lumber order in our Board Foot Calculator or lay out interior access stairs on the Stair Stringer Calculator.
Rafter Framing Formulas, IRC R802 Limits & FAQs
Pythagorean Rafter Formulas & Engineering Scope Boundaries
Effective Run (Shed) = Span × 12
Total Rise = Effective Run × (Pitch Rise / 12)
Common Rafter = sqrt(Effective Run² + Total Rise²)
Tail Length = Overhang / cos(atan(Pitch / 12))
End-Bearing Notch (0" OH · IRC R802.7.1 / R502.8.1): Perp Notch = Seat × sin(Pitch) ≤ D / 4
Cantilever Eave Exception (0 < OH ≤ 24" · IRC R802.7.1.1): Full Plate OK if Remaining Depth ≥ 3 1/2"
Overhang > 24": Outside prescriptive exception — structural / engineering verification required
Capped Seat Cut = floor((Max Allowed Perp Notch / sin(Pitch)) × 16) / 16 (floored to 1/16" max executable cut)
HAP = (Rafter Depth / cos(Pitch Angle)) - Heel Cut Depth
Limitations & what this calculator does not size: This tool computes geometric cut lengths and separates prescriptive 2021 IRC R802.7.1 end-bearing notches (0" overhang: ≤ 1/4 perpendicular depth) from IRC R802.7.1.1 sawn-lumber cantilevered eaves (overhang ≤ 24" with ≥ 3 1/2" remaining perpendicular depth), capping standard yard stock at 24'. Overhangs over 24" or rafters over 24' require engineered lumber, trusses, or structural verification. It does not check regional snow loads (psf), wind uplift ties, ceiling-joist/rafter-tie tension, or lumber species span tables (IRC Table R802.4.1).
Why do I subtract half the ridge board thickness before measuring common rafter length?
The centerline of the roof runs down the middle of the ridge board, not the face of it. On a standard 1 1/2" thick 2x ridge board, each side's horizontal run stops 3/4" short of center. Skipping that 3/4" deduction pushes the rafters outward and opens a visible gap at the birdsmouth seat cut.
How deep can I cut a birdsmouth notch under IRC R802.7.1 and R802.7.1.1?
2021 IRC separates two cases. Without an eave overhang (0"), IRC R802.7.1 (referencing R502.8.1) limits an end notch to one-fourth (1/4) of the actual perpendicular rafter depth (for example, 1 3/8" on a 2×6 or 1 13/16" on a 2×8). With a cantilevered sawn-lumber overhang up to 24", IRC R802.7.1.1 permits a full-plate birdsmouth cut as long as at least 3 1/2" of uncut perpendicular rafter depth remains above the notch. Overhangs over 24" exceed the prescriptive exception and require structural verification.
What is Height Above Plate (HAP) and why does it matter during roof framing?
HAP is the vertical plumb measurement from the top of the exterior wall plate straight up to the top edge of the rafter. Keeping the HAP identical across every common, hip, and valley rafter ensures all roof sheathing planes meet cleanly at the fascia and ridge.
How do I set a circular saw or miter saw for the ridge plumb cut?
On a standard framing square, align the pitch rise (e.g., 6") on the tongue and 12" on the blade along the top edge of the rafter; the tongue edge marks the ridge plumb cut and the blade edge marks the level seat cut. On a miter saw whose 0° mark is square (90°), set the saw angle to the roof pitch angle (26.6° for 6/12) to cut the plumb bevel.