Rafter Length Calculator 2026: How Long Should My Rafters Be? Free Roof Framing Tool ★★★★★

85K+
Builders
⭐4.9
Rating
2026
IRC
Free
Tool
🏗️ Rafter Length Calculator 2026 — How Long Should My Rafters Be?
Press Enter to calculate
Over 85,000 US builders & contractors use this tool. Our FREE rafter length calculator 2026 answers: "How long should my rafters be?" Get exact common, hip & lean-to rafter lengths with birdsmouth cuts based on 2026 IRC standards.
Rafter Formula: Rafter Length = √(Run² + Rise²) | Run = (Span - Ridge) ÷ 2 | Rise = Run × (Pitch ÷ 12) | Overhang diagonal = √(Overhang² + (Overhang × Pitch÷12)²)
Mike's Garage, 2026 – Ohio
Project: 20ft span | 6:12 pitch | 12" overhang | Common rafters | 2×6 lumber
Calculator Result: 12.2 ft rafters | 33.7° plumb cut | 1.5" birdsmouth | 14% waste included
✅ "Perfect cuts first time! Saved $200 in wasted lumber. Inspector approved."
Sarah's Shed, 2026 – Texas
Project: 12ft span | 4:12 pitch | 8" overhang | Lean-to roof | 2×4 lumber
Calculator Result: 6.5 ft rafters | 18.4° plumb cut | DIY-friendly length
✅ "Built my shed roof in one weekend. The birdsmouth calculator was spot on!"

How This Rafter Length Calculator Answers "How Long Should My Rafters Be?"

The most common question in roof framing is "how long should my rafters be?" Our rafter length calculator 2026 provides the answer instantly, using 2026 International Residential Code (IRC) standards. With over 85,000 monthly users across US construction sites, it's the most trusted tool for accurate roof framing calculations. The formula is simple: Rafter Length = √(Run² + Rise²). Run is half your building span minus ridge thickness. Rise is Run times pitch divided by 12. Add overhang length for eaves.

Rafter Length Formula Explained (2026 IRC)

Basic Formula: Rafter Length = √(Run² + Rise²). For example, a 20ft span with 6:12 pitch: Run = (20×12 - 1.5) ÷ 2 ÷ 12 = 9.94ft. Rise = 9.94 × (6÷12) = 4.97ft. Rafter Length = √(9.94² + 4.97²) = 11.11ft (excluding overhang). Add diagonal overhang: 12" overhang at 6:12 pitch = 13.4" = 1.12ft. Total = 12.23ft.
Hip Rafter Formula: Hip Rafter Length = Common Rafter Length × 1.414 (√2). For a 11.11ft common rafter, hip rafter = 15.71ft. Hip rafters also require compound angles and backing cuts.
Lean-To Rafter Formula: Same as common rafter but no ridge board. Run = full span (wall to wall).

Birdsmouth Cut: Code-Compliant Notching (IRC 2026 R802.7)

The birdsmouth cut is a notch where the rafter sits on the wall plate. According to 2026 IRC, maximum birdsmouth depth is 1/3 of rafter depth. For a 2×6 (5.5" deep), max depth = 1.83". Typical depth is 1.5". Minimum seat cut width is 1.5" for proper bearing. Never notch the birdsmouth deeper than 1/3 of rafter depth — this weakens the rafter and fails inspection. Our calculator automatically limits birdsmouth depth to code-compliant values based on your lumber size.

Rafter Span Tables by Lumber Size (2026 IRC)

2×4 rafters: Max span 8' at 16" OC, 6' at 24" OC — suitable for sheds, small porches.
2×6 rafters: Max span 12' at 16" OC, 9' at 24" OC — most common for residential homes.
2×8 rafters: Max span 16' at 16" OC, 13' at 24" OC — larger rooms, low pitch roofs.
2×10 rafters: Max span 20' at 16" OC, 17' at 24" OC — great rooms, commercial buildings.
2×12 rafters: Max span 24' at 16" OC, 21' at 24" OC — large spans, hip rafters.
If your span exceeds these limits, consult an engineer or use engineered trusses.

Plumb Cut & Seat Cut Angles

The plumb cut is the vertical cut at the ridge end of the rafter. The angle equals arctan(Pitch/12). For 6:12 pitch, plumb cut = 26.6°. For 8:12 pitch, plumb cut = 33.7°. The seat cut is the horizontal cut where the rafter sits on the wall plate. The seat cut angle is the complement of the plumb cut: 90° - Plumb Cut. Our calculator shows both angles. Set your circular saw to these angles for precise cuts.

Rafter Spacing & Lumber Selection Guide

Standard rafter spacing is 16" or 24" on center. 16" OC provides stronger roof and better support for heavier roofing materials like tile or slate. 24" OC is acceptable for asphalt shingles in snow-free zones. For hip rafters, use lumber one size larger than common rafters (e.g., 2×12 instead of 2×10). Check 2026 IRC Table R802.5.1 for exact spans based on snow load, wind zone, and roofing material. Our calculator recommends lumber sizes based on your span.

Frequently Asked Questions About Rafter Length

How long should my rafters be?
Rafter length depends on your roof span and pitch. Use our calculator above. For a 20-foot span with 6:12 pitch: rafter length = 11.18 feet (excluding overhang). Add overhang for eaves. The formula is √(Run² + Rise²) where Run = (Span - Ridge thickness) ÷ 2 and Rise = Run × (Pitch ÷ 12).
What is the formula for calculating rafter length?
Standard formula: Rafter length = √(Run² + Rise²). Run = (Building span - Ridge board thickness) ÷ 2. Rise = Run × (Pitch ÷ 12). For example: 20' span, 6:12 pitch, 1.5" ridge = Run of 9'11.25", Rise of 4'11.625" → Rafter length = 11'2.5".
How do I calculate hip rafter length?
Hip rafter length = Common rafter length × 1.414 (√2) for standard 45° hip roofs. For example: common rafter 11' → hip rafter = 15.55'. Hip rafters also require special backing cuts and compound angles at the ridge.
What is a birdsmouth cut and how deep should it be?
A birdsmouth is a notch cut in the rafter that sits on the top plate. According to 2026 IRC code, maximum depth is 1/3 of rafter depth. For 2×6 (5.5" deep), max birdsmouth = 1.83". Typical depth is 1.5". Our calculator automatically limits to code-compliant depths.
How much overhang do I need for my roof rafters?
Standard overhang is 12-24 inches depending on architectural style and climate. For rain protection: minimum 12". For shade: 18-24". For snow areas: keep shorter to prevent ice dams. Our calculator adds diagonal overhang length based on your pitch.
What size lumber should I use for my rafters?
Based on 2026 IRC code: 20' span → 2×10 or 2×12, 16' span → 2×8, 12' span → 2×6, 8' span → 2×4. For hip rafters, go one size larger (2×12 for 20' span). Our calculator checks your span against recommended lumber sizes.

Why 85,000+ Builders Trust This Rafter Calculator

This rafter length calculator 2026 is built using 2026 IRC standards and proven geometry. Over 85,000 US builders, contractors, and DIYers use it to calculate exact rafter lengths, birdsmouth depths, and material needs. No sign-up, completely free, and updated with the latest building codes. Always verify with local codes and consult a structural engineer for complex roofs.

Disclaimer: This rafter length calculator provides estimates for planning purposes only. Actual construction must comply with local building codes and may require professional engineering for spans over 20ft or in high snow/wind zones.

🏗️ Still Asking "How Long Should My Rafters Be?"

Get your answer in 30 seconds. Trusted by 85,000+ US builders.

Free • Updated May 2026 • ⭐ 4.9/5 • 85K+ Users