Rafter Calculator
Calculate common rafter dimensions including length, rise, run, plumb cut angle, birdsmouth cuts, and materials list. Interactive SVG diagram with birdsmouth detail.
Building Dimensions
Roof Pitch
Rafter Diagram
Rafter Length (Line)
14.5 feet
- Cut a pattern rafter first and test fit before cutting all rafters
- Birdsmouth should not cut more than 1/3 into rafter depth
- Allow 1.5" deduction from run for ridge board thickness
- Add 10% waste factor when ordering materials
- Mark rafter tables on lumber for reference during installation
Related Calculators
About This Calculator
Accurate rafter calculations are the foundation of proper roof framing—determining rafter length, rise, run, cut angles, and birdsmouth specifications for safe, code-compliant construction. Our comprehensive Rafter Calculator determines all critical dimensions including the plumb cut angle at the ridge, seat cut width for the birdsmouth, heel height above the plate, tail length for eave overhangs, and total rafter length from ridge to fascia, with an interactive SVG diagram showing birdsmouth detail and all cut angles.
Whether you're framing a new home roof, building an addition that ties into existing rooflines, constructing a shed or outbuilding, or replacing damaged rafters, this calculator provides the precise measurements professional framers rely on. In 2026, dimensional lumber costs for typical rafter sizes (2×6 through 2×12) range from $0.75-$2.50 per linear foot, making accurate calculations essential to minimize waste on projects that may require 50-200+ rafters. Enter your building dimensions, desired pitch, and overhang to generate a complete cutting schedule with all angles and dimensions needed for your speed square or framing square layout.
Trusted Sources
How to Use the Rafter Calculator
- 1Enter the building span (total width from outside wall to outside wall in feet).
- 2Enter the building length for total rafter count calculations.
- 3Select or manually enter your roof pitch as rise per 12 inches of run (e.g., 6/12).
- 4Enter the desired eave overhang (horizontal projection past the wall) in inches.
- 5Specify ridge board thickness if using a ridge board (typically 1.5" for 2× lumber).
- 6Select rafter spacing: 16" on-center (standard) or 24" on-center (some applications).
- 7Choose lumber size from the sizing guide or let the calculator recommend based on span.
- 8Review the interactive diagram showing rafter geometry, birdsmouth detail, and all cut angles.
- 9Switch to "With Costs" mode for complete materials cost estimates including lumber, fasteners, and hardware.
Formula
Rafter Length = √(Rise² + Run²)The Pythagorean theorem calculates the rafter line length from the vertical rise and horizontal run (half the building span). Total rafter length adds the overhang projection calculated along the roof slope (overhang × pitch factor). The ridge board thickness is deducted from the run calculation at the ridge end.
Understanding Roof Pitch and Angles
Roof pitch determines virtually every rafter calculation—rise, run, cut angles, and material quantities:
Pitch Notation Explained: Pitch is expressed as X/12, meaning the roof rises X inches for every 12 inches of horizontal run. A 6/12 pitch rises 6 inches per foot of run.
| Pitch | Degrees | Pitch Factor | Common Uses |
|---|---|---|---|
| 2/12 | 9.5° | 1.014 | Flat roofs, minimum slope for drainage |
| 3/12 | 14.0° | 1.031 | Low slope, requires membrane roofing |
| 4/12 | 18.4° | 1.054 | Ranch homes, standard asphalt shingles |
| 5/12 | 22.6° | 1.083 | Standard residential |
| 6/12 | 26.6° | 1.118 | Most popular residential pitch |
| 7/12 | 30.3° | 1.158 | Good snow shedding |
| 8/12 | 33.7° | 1.202 | Traditional aesthetics |
| 9/12 | 36.9° | 1.250 | Steep, walkable with caution |
| 10/12 | 39.8° | 1.302 | Steep, challenging to walk |
| 12/12 | 45.0° | 1.414 | Maximum walkable pitch |
| 14/12 | 49.4° | 1.537 | Very steep, requires scaffolding |
Using Pitch Factor: The pitch factor converts horizontal measurements to slope measurements:
- Rafter length on slope = Horizontal run × Pitch factor
- Example: 12 ft run at 6/12 pitch = 12 × 1.118 = 13.4 ft on slope
Converting Pitch to Degrees:
Angle (degrees) = arctan(pitch ÷ 12) × (180 ÷ π)
Example: 6/12 pitch = arctan(0.5) × 57.3 = 26.6°
Pitch and Climate Considerations:
| Climate | Minimum Pitch | Recommended |
|---|---|---|
| Heavy snow | 6/12 | 8/12 or steeper |
| Moderate snow | 4/12 | 6/12 |
| Heavy rain | 4/12 | 5/12 |
| Hot/dry | 2/12 | 4/12 |
The Birdsmouth Cut: Critical Details
The birdsmouth is the notch cut where the rafter sits on the wall top plate—proper execution is essential for structural integrity:
Components of the Birdsmouth:
1. Seat Cut (Level Cut):
- Horizontal cut that rests flat on the top plate
- Standard width: 3.5" (width of 2×4 wall plate)
- For 2×6 walls: 5.5" seat cut possible but not required
- Must provide full bearing on plate
2. Plumb Cut (Heel Cut):
- Vertical cut at the back of the birdsmouth
- Height determined by seat cut and pitch
- Creates the "heel" that bears against plate edge
3. Heel Height:
- Vertical distance from top plate to top of rafter
- Affects insulation space at eaves
- Formula: Heel Height = Seat Cut × tan(pitch angle)
The 1/3 Rule (IRC R802.6): Never notch more than 1/3 of the rafter depth:
| Rafter Size | Actual Depth | Max Notch |
|---|---|---|
| 2×6 | 5.5" | 1.83" |
| 2×8 | 7.25" | 2.42" |
| 2×10 | 9.25" | 3.08" |
| 2×12 | 11.25" | 3.75" |
Birdsmouth Calculation Example (6/12 pitch):
- Seat cut: 3.5" (standard)
- Pitch angle: 26.6°
- Heel height: 3.5" × tan(26.6°) = 3.5" × 0.5 = 1.75"
- This is within limits for 2×6 rafters (max notch 1.83")
When to Raise the Birdsmouth:
- Need more insulation space at eaves (raised heel truss)
- Cathedral ceiling with deeper insulation
- Matching existing roofline
- Energy code compliance (R-38+ at eaves)
Rafter Sizing by Span (IRC 2021)
Rafter size depends on span, spacing, species, grade, and roof loads. These tables assume #2 or better SPF (Spruce-Pine-Fir):
Rafter Span Table - 16" OC, 20 PSF Live Load + 10 PSF Dead Load:
| Rafter Size | Max Span (SPF #2) | Max Span (DF #2) |
|---|---|---|
| 2×6 | 10'-6" | 12'-0" |
| 2×8 | 13'-10" | 15'-10" |
| 2×10 | 17'-8" | 20'-3" |
| 2×12 | 21'-6" | 24'-8" |
Rafter Span Table - 24" OC, 20 PSF Live Load + 10 PSF Dead Load:
| Rafter Size | Max Span (SPF #2) | Max Span (DF #2) |
|---|---|---|
| 2×6 | 8'-6" | 9'-9" |
| 2×8 | 11'-3" | 12'-11" |
| 2×10 | 14'-4" | 16'-5" |
| 2×12 | 17'-5" | 20'-0" |
Heavy Snow Load Areas (30 PSF Live + 15 PSF Dead):
| Rafter Size | Max Span 16" OC | Max Span 24" OC |
|---|---|---|
| 2×6 | 8'-6" | 6'-11" |
| 2×8 | 11'-3" | 9'-2" |
| 2×10 | 14'-4" | 11'-9" |
| 2×12 | 17'-5" | 14'-3" |
When to Consult Span Tables:
- Snow loads over 30 PSF
- Tile or slate roofing (heavy dead load)
- Spans exceeding table values
- Cathedral ceilings (no attic storage bracing)
- Point loads (dormers, solar panels)
2026 Rafter Lumber Prices:
| Size | Price per LF | 16' Length | 20' Length |
|---|---|---|---|
| 2×6 | $0.80-1.20 | $13-19 | $16-24 |
| 2×8 | $1.10-1.60 | $18-26 | $22-32 |
| 2×10 | $1.50-2.10 | $24-34 | $30-42 |
| 2×12 | $2.00-2.80 | $32-45 | $40-56 |
Cutting Rafters: Step-by-Step Guide
Accurate rafter cutting ensures proper fit and structural integrity:
Tools Required:
- Framing square or speed square
- Stair gauges (for framing square)
- Circular saw with sharp blade
- Tape measure (25' minimum)
- Pencil
- Calculator or rafter table
Setting Up a Speed Square:
- Locate the "Common" scale on the square
- Find your pitch number on that scale
- Pivot the square so pitch mark aligns with board edge
- Blade edge shows plumb cut angle
- Tongue shows level cut angle
Marking the Four Cuts:
1. Ridge Plumb Cut:
- Starting point for rafter layout
- Mark plumb line at ridge end
- Shorten by half ridge board thickness (typically 3/4")
2. Birdsmouth (Two Cuts):
- Measure down from ridge plumb cut = rafter line length
- Mark plumb cut (heel cut)
- Mark level cut (seat cut) = wall plate width
- Double-check notch depth doesn't exceed 1/3 rule
3. Tail Plumb Cut:
- Measure overhang along top edge from birdsmouth
- Mark plumb cut for fascia attachment
- May need level cut for soffit nailer
The Pattern Rafter System:
- Carefully cut ONE pattern rafter
- Test-fit on actual building
- Verify: Ridge fits, birdsmouth seats, overhang correct
- Make adjustments if needed
- Use pattern to mark ALL remaining rafters
- Gang-cut multiples when possible
Common Cutting Errors to Avoid:
| Error | Result | Prevention |
|---|---|---|
| Wrong pitch setting | All cuts off | Double-check pitch before first cut |
| Measuring to wrong edge | Length error | Measure along TOP edge consistently |
| Forgot ridge deduction | Too long | Deduct half ridge thickness |
| Birdsmouth too deep | Weak rafter | Check 1/3 rule before cutting |
Ridge Board and Ridge Beam Calculations
The ridge supports opposing rafters at the peak—understanding the difference between ridge boards and ridge beams is essential:
Ridge Board (Most Common):
- Provides alignment for opposing rafters
- NOT structural—ceiling joists or collar ties resist thrust
- Size: Minimum 1×6, typically 2× lumber
- Depth: Equal to or greater than rafter cut depth
- Ridge deduction: Subtract half ridge thickness from each rafter run
Ridge Beam (Structural):
- Carries roof load when no ceiling joists provide thrust resistance
- Required for cathedral ceilings without collar ties
- Must be sized by engineer or span tables
- Much larger than ridge board (LVL or built-up)
When Ridge Beams Are Required:
| Situation | Ridge Board OK? | Ridge Beam Required? |
|---|---|---|
| Ceiling joists at every rafter | Yes | No |
| Collar ties at every third rafter | Yes | No |
| Cathedral ceiling, no ties | No | Yes |
| Open floor plan, no bearing | No | Yes |
| Exposed rafters | Maybe | Verify with engineer |
Ridge Board Sizing:
| Rafter Size | Minimum Ridge | Typical Ridge |
|---|---|---|
| 2×6 rafters | 1×6 | 2×6 |
| 2×8 rafters | 1×8 | 2×8 |
| 2×10 rafters | 1×10 | 2×10 |
| 2×12 rafters | 1×12 | 2×12 |
Ridge Board Length Calculation:
Ridge length = Building length - (2 × gable overhang)
For common gable: Ridge = Building length
For barge rafters: Ridge = Building length - (2 × barge extension)
Ridge Height Calculation:
Ridge height above wall plates = Run × (Pitch ÷ 12)
Example: 12' run at 6/12 = 12 × 0.5 = 6 feet
Total height = Wall height + Ridge height above plates
Rafter Quantity and Materials List
Accurate material takeoffs prevent costly job-site delays and excess waste:
Rafter Quantity Formula:
Rafters per side = (Building length in inches ÷ Spacing) + 1
Total rafters = Rafters per side × 2
Add 10% for waste and defects
Example - 40' Building at 16" OC:
- Building length: 40 ft = 480 inches
- Rafters per side: (480 ÷ 16) + 1 = 31 rafters
- Total rafters: 31 × 2 = 62 rafters
- With 10% waste: 62 × 1.10 = 69 rafters
Complete Materials List for Typical Roof:
| Component | Calculation | 40' × 24' Building Example |
|---|---|---|
| Common rafters | As above | 69 each |
| Ridge board | Building length + 10% | 44 LF (3 × 16') |
| Ceiling joists | Same count as rafters | 69 each |
| Collar ties | Every third rafter pair | 23 each |
| Hurricane ties | 2 per rafter | 124 each |
| Rafter hangers | If used | 62 each |
Fastener Requirements (per IRC):
| Connection | Fastener | Quantity |
|---|---|---|
| Rafter to plate | 3-10d toenails | Per rafter |
| Rafter to ridge | 4-16d toenails | Per rafter end |
| Collar tie to rafter | 3-10d each end | Per tie |
| Hurricane tie | 8-10d nails | Per tie |
2026 Hardware Costs:
| Item | Price | Quantity Needed (40×24 roof) |
|---|---|---|
| Hurricane ties | $1.50-2.50 ea | 124 |
| Rafter hangers | $2.00-3.50 ea | Optional |
| Simpson H2.5A | $1.75-2.50 ea | 124 |
| Structural screws (box) | $45-75 | 2 boxes |
Special Rafter Types and Applications
Beyond common rafters, various rafter types handle different roof geometries:
Hip Rafters:
- Run diagonally from corner to ridge
- Longer than common rafters (× 1.414 for 12/12 pitch)
- Require compound angle cuts
- Support jack rafters on both sides
Hip Rafter Length Factor:
Hip factor = √(pitch factor² + 1)
Example at 6/12: √(1.118² + 1) = √2.250 = 1.5
Hip run = Common run × 1.414 (for 45° plan angle)
Hip length = Hip run × Hip factor
Valley Rafters:
- Run diagonally in roof valleys
- Same calculations as hip rafters
- Require different direction compound cuts
- Must handle concentrated water drainage
Jack Rafters:
- Shorter rafters from hip/valley to eave or ridge
- Maintain same pitch as common rafters
- Progressive length change by "common difference"
- Common difference = Spacing × Pitch factor
Jack Rafter Common Difference:
| Spacing | 4/12 | 6/12 | 8/12 | 10/12 |
|---|---|---|---|---|
| 16" OC | 16.9" | 17.9" | 19.2" | 20.8" |
| 24" OC | 25.3" | 26.8" | 28.8" | 31.2" |
Barge (Fly/Rake) Rafters:
- Extend beyond gable end wall
- Supported by lookouts or outriggers
- No birdsmouth cut
- May be decorative/larger dimension
Cripple Jack Rafters:
- Short rafters between two hip/valley rafters
- Found in complex roof intersections
- Both ends cut at compound angles
Raised Heel Trusses and Energy Codes
Modern energy codes often require raised heel details for full insulation depth at eaves:
Standard vs. Raised Heel:
| Heel Type | Insulation at Eave | Energy Code Compliance |
|---|---|---|
| Standard (6/12, 2×6) | R-19 to R-22 | Often fails |
| Raised 6" | R-30 | Marginal |
| Raised 10" | R-38 | Most codes |
| Raised 14" | R-49+ | Cold climates |
2026 Energy Code Requirements (IECC):
| Climate Zone | Ceiling R-Value | Heel Height Needed |
|---|---|---|
| Zone 1-2 | R-38 | 10-11" |
| Zone 3 | R-38 | 10-11" |
| Zone 4-5 | R-49 | 14-15" |
| Zone 6-8 | R-49 | 14-15" |
Achieving Raised Heel with Site-Built Rafters:
- Raise the birdsmouth - Cut seat higher on rafter
- Add vertical block - Above standard birdsmouth
- Use deeper rafters - 2×8 or 2×10 even if 2×6 spans work
- Install blocking - Between rafters at raised heel
Benefits of Raised Heel:
- Full insulation depth to exterior wall
- Eliminates cold/hot spots at eaves
- Prevents ice dams in cold climates
- Required for energy rebates/credits
- Better moisture management
Cost Impact:
- Additional lumber: $50-150 per roof
- Taller fascia: $25-75
- More insulation: Included (it's going in anyway)
- Energy savings: 5-15% heating/cooling
Pro Tips
- 💡Always cut and test-fit ONE pattern rafter before cutting the rest—this catches errors before they multiply across dozens of rafters.
- 💡Deduct half the ridge board thickness from your rafter length—forgetting this common step makes every rafter 3/4" too long.
- 💡Use a framing square with stair gauges clamped at your pitch numbers for consistent, accurate cuts on every rafter.
- 💡Mark the "crown" (slight curve) on each piece of lumber and install all rafters with crown facing UP—this prevents sagging.
- 💡Order rafters 2 feet longer than calculated to allow for cutting variations—16-foot lumber for 14-foot rafters.
- 💡Install hurricane ties at every rafter-to-plate connection—required by code in many areas and cheap insurance everywhere.
- 💡Check your speed square accuracy before starting—drop it once and the pivot can bend, throwing off all your cuts.
- 💡Snap a chalk line across all ceiling joists at rafter locations before starting—this ensures proper alignment during installation.
- 💡Pre-cut all rafters on the ground—working on sawhorses is faster, safer, and more accurate than cutting on the roof.
- 💡For long ridges, use a temporary post at center to support the ridge during installation—remove after several rafters are installed each side.
- 💡Apply construction adhesive at birdsmouth seat before nailing—this dramatically improves uplift resistance.
- 💡Stack cut rafters near their installation location, organized by type—common, hip, jack—to speed installation.
Frequently Asked Questions
For 6/12 pitch with 24' building width: Run = 12' (half span), Rise = 12' × (6÷12) = 6'. Rafter line length = √(12² + 6²) = √180 = 13.4'. Add overhang (e.g., 12" × 1.118 pitch factor = 13.4") and subtract half ridge thickness (0.75"). Total rafter ≈ 14.3 feet. Order 16-foot lumber.

