Skip to main content
LAYOUTCALCULATOR SCALE 1/16" CAD
2024 IRC Section R802 • SCALE: 1/16" FRACTIONAL
IRC R802 Birdsmouth Check Framing & Carpentry

Rafter Calculator: Rafter Length, Pitch & Birdsmouth Cut

Interactive 2D SVG roof rafter calculator for pitch, ridge deduction, plumb/tail cuts, HAP, and 2024 IRC R802.7.1 D/3 birdsmouth notch depth checks.

Calculation notes
Checked against: 2024 IRC Section R802
Published by LayoutCalculator. Confirm with your local building official.
REV DATE:
IRC R802.4 & R802.7 2D SVG Roof Rafter & Birdsmouth Drafting Console
Line Len 13' 4-3/16"
HAP 6-3/8"
IRC R802 PASS (6/12)
24' (288")
8' (Shed) 16' (1-Car) 24' (2-Car) 48' (Barn)
6/12 (26.6°)
3/12 (Low) 6/12 (Ranch) 9/12 (Steep) 12/12 (45°)
16" Horiz
✓ PASSES 2024 IRC R802.7.1 NOTCH LIMIT 26.6° Plumb

3-1/2" full plate bearing produces a 1-9/16" perpendicular notch (≤ 2-7/16" max D/3 limit for 2x8). HAP is 6-3/8".

2D IRC R802 Roof Rafter Span, Rise, Line Length & Birdsmouth HAP Blueprint Interactive scale CAD drawing of a gable roof framing cross-section showing exterior walls, ridge board deduction, common rafter line length, soffit tail, collar tie zone, and birdsmouth Height Above Plate. COLLAR TIE (UPPER 1/3) Rise: 5' 11-5/8" Net Run: 11' 11-1/4" Building Span: 24' 0" (288") + 16" Soffits PITCH: 6/12 (26.6°) | LINE: 13' 4-3/16" Total Cut w/ Tail: 14' 10-1/16" • HAP: 6-3/8"
Rafter Line Len
13' 4-3/16"
Run: 143-1/4"
Total Cut + Tail
14' 10-1/16"
Buy 16-ft 2x8
Height Above Plate
6-3/8"
Heel Cut: 1-3/4"
Plumb / Seat Angle
26.6° / 63.4°
Rise: 5' 11-5/8"
Total Rafters
50 pcs
25/side @ 16" OC

Hooked Tape-Measure Rafter Layout Schedule 13.42" / ft Run

Cut the ridge plumb angle at the top tip (0"), hook your tape on the long point of the crown edge, and pull down the board:

Cumulative Hooked Tape-Measure Marks Along Roof Rafter Top Edge
Layout Station Cumulative Mark Shop Saw / Square Spec
1. Ridge Plumb Cut (Peak) 0" (Hook Board Tip) 26.6° Miter Angle
2. Collar Tie Zone (Upper 1/3) 53-3/8" (53.39") IRC R802.4.6 Strap Limit
3. Birdsmouth Heel Plumb Line 160-3/16" (13' 4-3/16") HAP: 6-3/8"
4. Birdsmouth Level Seat Cut 3-1/2" Level Bearing 63.4° Seat • 1-3/4" Heel
5. Fascia Soffit Tail Plumb Cut 178-1/16" (14' 10-1/16") Tail: +17-7/8"

Required Bill of Materials (BOM) & Hardware

Auto-Calculated Quantities
  • 50 × 16-ft 2x8 #2 Kiln-Dried Framing Rafters 25 rafters per slope @ 16" OC across 32-ft ridge
  • 33 Sheets × 4x8 (7/16" or 5/8") APA Structural Roof Sheathing Covers 950 sq ft sloped roof deck (+10% gable/starter waste)
  • 50 × Simpson Strong-Tie H2.5A Hurricane Rafter Ties Plus 9 × 1x6/2x4 Collar Ties (4ft OC) & 2 × 16-ft Ridge Boards

Independent Field Spec Notice: Geometry and birdsmouth notch limits follow 2024 IRC Sections R802.4, R802.6, and R802.7.1. Verify snow-load lumber spans against local R802.4.1 tables.

Need full-scale Jobsite Cut Sheet + Vector .SVG blueprint?

Pre-Calculated Roof Rafter Calculator Blueprints (12 Field Specs)

Select any standard jobsite specification below to load its exact 2D SVG diagram and engineering tables:

Contractor & Instructor Widget

Embed This 2D SVG Instrument on Your Website (Ad-Free)

Carpentry instructors, trade schools, and builders can embed the standalone ad-free version of this 2D CAD calculator with one HTML snippet.

2024 IRC Section R802 Common Rafter, Birdsmouth Notch & HAP Engineering Manual

Position-Zero Formula Summary • 2024 IRC Section R802.4 & R802.7.1

How Do You Calculate Common Roof Rafter Length and Birdsmouth Cuts?

To calculate common rafter length, subtract your ridge board thickness (1.5" for a 2x ridge) from the total building width and divide by 2 for Net Horizontal Run. Multiply Net Run by the pitch secant factor √(12² + Pitch²) ÷ 12 for line length, add soffit overhang tail length, and limit the Birdsmouth notch to ≤ 1/3 rafter depth per IRC R802.7.1.

Framing a stick-built gable or shed roof from dimensional 2x6, 2x8, 2x10, or 2x12 lumber requires exact trigonometric alignment between the ridge plumb cut at the peak and the birdsmouth seat-and-heel notch resting on the exterior top wall plate. Under 2024 IRC Section R802.6, every rafter must achieve at least 1-1/2 inches of horizontal bearing on wood plates, while Section R802.7.1 prohibits end notches from exceeding one-fourth to one-third of the member depth (and birdsmouth seat cuts must leave at least two-thirds of the rafter cross-section intact as the Height Above Plate, or HAP).

1. Rafter Line Length, Plumb Angle & Birdsmouth Equations

1. Net Horizontal Run (R_net) = (Building_Width_Inches - Ridge_Board_Thickness) ÷ 2
2. Roof Slope Angle (θ) = arctan( Pitch_Rise ÷ 12 ) [Plumb Miter Saw Cut = θ; Level Seat Cut = 90° - θ]
3. Framing Square Unit Secant Factor = √( 12² + Pitch_Rise² ) ÷ 12
4. Rafter Line Length (Ridge Plumb Face to Outer Building Line) = R_net × Secant_Factor
5. Soffit Overhang Tail Length (L_tail) = Horizontal_Overhang_Inches × Secant_Factor
6. Birdsmouth Plumb Heel Cut = Seat_Cut_Width × (Pitch_Rise ÷ 12) [Perpendicular notch ≤ Depth ÷ 3 per IRC R802.7.1]
7. Height Above Plate (HAP) = [ Rafter_Actual_Depth ÷ cos(θ) ] - Birdsmouth_Heel_Cut

2. Common Roof Pitch Multiplier, Plumb Cut Degree & Framing Square Table

← Swipe table horizontally → IRC R802.4
Roof Pitch to Degree Angle, Unit Rafter Length per Foot of Run, and Secant Multiplier Table
Roof Pitch Plumb Angle (θ) Line Length / Ft Run Secant Multiplier IRC Underlayment / Walkability
3 / 12 Pitch14.04°12.37" / ft1.0308×Double underlayment req. (R905.2.2)
4 / 12 Pitch18.43°12.65" / ft1.0541×Standard walkable shingle min
5 / 12 Pitch22.62°13.00" / ft1.0833×Exact 5-12-13 Pythagorean triangle
6 / 12 Pitch26.57°13.42" / ft1.1180×Classic ranch / garage pitch
8 / 12 Pitch33.69°14.42" / ft1.2019×Roof jacks & harness required
10 / 12 Pitch39.81°15.62" / ft1.3017×High attic loft / 2x10+ rafters
12 / 12 Pitch45.00°16.97" / ft1.4142×45° Craftsman / Tudor gable

3. Two Worked Jobsite Roof Framing Examples

Example A: 24-Ft Garage Gable Roof at 6/12 Pitch (2x8 Rafters)

Building width is 288.0" with a 1.5" 2x10 ridge board, giving Net Run = (288 - 1.5) ÷ 2 = 143.25" (11'-11-1/4"). Multiplying by the 6/12 secant (1.11803) yields a 160.16" (13'-4-3/16") line length. Adding a 16" soffit overhang (16 × 1.118 = 17.89") gives a total stock length of 178.05" (14'-10-1/16")—requiring 16-foot 2x8 lumber.

Example B: Steep 12/12 Cabin Roof Over-Notch Trap on 2x6s

On a 45-degree (12/12) pitch, cutting a full 3-1/2" level birdsmouth seat into a 2x6 rafter (actual 5.50" depth) slices 3.5" × sin(45°) = 2.47" perpendicular into the board—exceeding the 1.83" (D/3) IRC R802.7.1 limit! Upsizing to 2x8 or 2x10 rafters restores full HAP throat strength and attic insulation depth.

4. Field Layout, Ridge Sizing & Hurricane Tie Code Checklist

  • Ridge Board Depth Rule (IRC R802.3): A non-structural ridge board must be at least 1-inch nominal thickness and deep enough to contact the entire sloped plumb cut face of the rafters. Because a 2x8 cut at a 8/12 pitch has an 8.71" plumb face, you must step up one lumber size to a 2x10 ridge board (9.25")!
  • Ceiling Joist / Rafter Ties vs. Collar Ties (IRC R802.5.2): Unless you engineer a structural LVL/glulam ridge beam supported by posts down to footings, rafters require horizontal ceiling joists or rafter ties in the bottom third of attic height to resist outward wall spread, plus 1x4/2x4 collar ties at 48" OC in the upper third against wind uplift.
  • Uplift Connectors (IRC R802.11): Toe-nailing rafters to top plates alone frequently fails high-wind uplift tables. Install galvanized Simpson Strong-Tie H2.5A or H1 hurricane ties at every rafter-to-plate bearing point before sheathing.

Official Building Code & Industry Standard Citations

  • ICC International Residential Code (IRC R311, R312, R403, R602, R802) Stairways, 4" guardrail spheres, frost-line footings, stud framing, and rafter birdsmouths. Reference: ICC Digital Codes (codes.iccsafe.org).
  • NFPA 70 / National Electrical Code (NEC Article 690) Solar PV cold-temperature Voc correction (690.7) and 156% OCPD sizing (690.8). Reference: National Fire Protection Association (nfpa.org).
  • ACI 318 Concrete & TCNA / ANSI A108.02 Standards Structural concrete footings, rebar cover, symmetrical tile layout centering, and EJ171 joints. Reference: ACI (concrete.org) & TCNA (tcnatile.com).
  • AWI Woodwork, APA Engineered Wood & AWC NDS Finish millwork tolerances, panel kerf allowances, and wood span design values. Reference: AWI (awinet.org) & AWC (awc.org).

Field Manuals & Code Tables for Roof Rafter Calculator

Index of All 107 Manuals →
2024 IRC Section R802.7.1 & Framing Square Math 11 min read

Common Rafter Length & Birdsmouth Cut Formula (IRC R802)

Calculate common rafter line length by pitch (4/12–12/12), half-ridge deduction, HAP height above plate, and 2024 IRC R802.7.1 birdsmouth notch limits.

2024 IRC Section R802.4 & Framing Square Diagonal Geometry 11 min read

Hip & Valley Rafter Length: 17-Inch Factor Layout Guide

Master hip and valley rafter layout using the 16.97-inch diagonal base run, unit length factors from 4/12 to 12/12, double-45 cheek cuts, and ridge drops.

2024 IRC Section R802.4 & Compound Bevel Trigonometry 10 min read

Jack Rafter Common Difference: 16" & 24" OC Pitch Chart

Calculate hip and valley jack rafter common difference for 16" and 24" OC spacing from 3/12 to 12/12 pitch, plus compound saw bevel and miter angles.

2024 IRC Sections R802.3, R802.4.6 & R802.5.2 11 min read

Collar Tie vs. Rafter Tie Placement (2024 IRC R802.5)

Learn the structural difference between lower-third rafter ties and upper-third collar ties per 2024 IRC R802.5, with raised-tie span reduction math.

2024 IRC Sections R802.7.1, R802.6 & Monoslope Plate Geometry 10 min read

Shed & Lean-To Rafter Layout: Birdsmouth & Wall Math

Frame shed monoslope and porch lean-to roofs with exact high-to-low wall plate height math, dual equal-HAP birdsmouth notches, and ledger hanger layouts.

2024 IRC Section R802, BCSI-B1 Truss Guide & Cantilever Mechanics 10 min read

Gable Overhang Framing: Dropped Truss & Lookout Rules

Frame sag-free gable overhangs past 12 inches using a 3.5-inch dropped gable end rafter, 2x4 cantilevered lookout outriggers, and 2:1 back-span ratios.

Frequently Asked Questions (Roof Rafter Calculator)

How deep can I cut a birdsmouth notch in a roof rafter under the 2024 IRC?

▼

Under 2024 International Residential Code (IRC) Section R802.7.1, notches at the ends of structural rafters for bearing over a wall top plate cannot exceed one-fourth of the depth in interior spans or one-third of the actual rafter depth (D/3) directly over the wall bearing plate, while maintaining at least 1-1/2 inches of level bearing per IRC R802.6.

How do you deduct a 2x ridge board when calculating common rafter run and line length?

▼

Subtract the actual thickness of the ridge board (1-1/2 inches for 2x framing lumber or 1-3/4 inches for a structural LVL ridge beam) from the total outside-to-outside building span before dividing by two. Multiplying that net horizontal run by the roof pitch secant gives the true plumb-to-plumb rafter line length.

What is Height Above Plate (HAP) and why must every rafter on a roof share the same HAP?

▼

Height Above Plate (HAP) is the plumb vertical height of the rafter measured directly up from the outside top corner of the wall plate after cutting the birdsmouth. Matching the exact HAP across common, hip, and valley rafters ensures the roof sheathing plane stays dead flat over the exterior walls.

What miter saw angle do I set for the plumb ridge cut on a 6/12 pitch roof?

▼

A 6/12 roof rises 6 inches for every 12 inches of horizontal run, producing a slope angle of arctan(6 / 12) = 26.6 degrees. Set your circular saw bevel to 0 degrees and pivot your speed square to the 6-inch common rafter mark (26.6 degrees from square) for both the ridge plumb cut and fascia tail plumb cut.

Where do collar ties and ceiling joists go according to IRC Section R802.4.6?

▼

Ceiling joists or rafter ties sit in the lower third of the attic near the top plates to resist outward wall thrust, whereas 1x4 or 2x4 collar ties must be installed in the upper third of the attic space at 4 feet on-center maximum to prevent ridge separation under wind uplift.

How do I calculate roof soffit overhang tail length along the sloped rafter?

▼

Measure your desired horizontal soffit projection perpendicular to the exterior wall (for example, 16 inches) and multiply by the pitch secant factor, √(12² + Pitch²) / 12. On a 6/12 pitch, a 16-inch horizontal overhang requires adding 17-7/8 inches along the sloped top edge of the rafter past the outer wall plumb line.