Rafter Span Calculator
Look up maximum allowable rafter spans by lumber size, species, grade, spacing, and load per IBC/IRC 2024 span tables
Look up the maximum allowable span for a specific lumber size, grade, and loading condition
Quick presets
Total Roof Area
0 sq ft
0.0 roofing squares • Pitch multiplier: 1.054
Professional Calculator
Calculate total area for complex roofs with multiple sections
Total Roof Area
1,389 sq ft
Sections
2
Total Squares
13.9
Cost Breakdown
Detailed Breakdown
How to Use This Calculator
Span Lookup tab: Select a specific lumber size (2x6 through 2x12), species and grade, rafter spacing, and total design load. The calculator returns the maximum allowable horizontal span per the IRC span tables, along with the governing limit (bending stress or deflection). This is the fastest way to check whether a specific lumber size works for your project.
Compare Sizes tab: Select a species/grade, spacing, and load to see the maximum spans for 2x6, 2x8, 2x10, and 2x12 displayed side by side. This makes it easy to see how much additional span you gain by stepping up one lumber size. The comparison also highlights which size is the best value by showing the span gain per dollar of additional lumber cost.
Cost Optimization tab: Enter your required span, design load, and total rafter count. The calculator finds the smallest lumber size that meets the span for each species/grade option and calculates the total lumber cost. It then ranks all viable options from cheapest to most expensive, showing you the most cost-effective way to meet your structural requirements. Sometimes 12" OC spacing with smaller lumber is cheaper than 16" OC with larger lumber — this tab reveals those trade-offs.
The Formula
Maximum Span (simplified engineering basis): Bending: M_max = w × L² / 8 Required S = M_max / Fb (allowable bending stress) Span limited by: S_provided >= S_required
Deflection: Δ_max = 5 × w × L⁴ / (384 × E × I) Δ_allowed = L / 180 (live load) or L / 120 (total load)
Reference spans (SPF #2, 16" OC, 20 psf LL + 10 psf DL): 2x6: 10' 6" 2x8: 13' 11" 2x10: 17' 9" 2x12: 21' 7"
Reference spans (SPF #2, 16" OC, 30 psf LL + 10 psf DL): 2x6: 9' 8" 2x8: 12' 10" 2x10: 16' 4" 2x12: 19' 11"
Reference spans (DF-L #2, 16" OC, 20 psf LL + 10 psf DL): 2x6: 11' 0" 2x8: 14' 6" 2x10: 18' 6" 2x12: 22' 6"
Cost Optimization: Cost per Rafter = Lineal Feet x Price per LF Total Cost = Cost per Rafter x Rafter Count 2026 Lumber Pricing (per LF): 2x6 $0.65, 2x8 $0.95, 2x10 $1.40, 2x12 $1.95
Example Calculation
Rachel needs rafters to span 16 feet horizontally at 16" OC with a 40 psf design load (30 psf snow + 10 psf dead) for her 48-foot long home (62 rafters needed).
Step 1: Check which sizes work
• 2x6 SPF #2 @ 16" OC, 40 psf: Max span 8'10" — NO (too short)
• 2x8 SPF #2 @ 16" OC, 40 psf: Max span 11'8" — NO
• 2x10 SPF #2 @ 16" OC, 40 psf: Max span 15'0" — NO (1 foot short!)
• 2x12 SPF #2 @ 16" OC, 40 psf: Max span 18'3" — YES
Step 2: Try stronger species
• 2x10 DF-L #2 @ 16" OC, 40 psf: Max span 16'7" — YES
• 2x10 SP #2 @ 16" OC, 40 psf: Max span 16'2" — YES (just barely)
Step 3: Cost comparison (62 rafters, 18' boards)
• 62 ea 2x12x18 SPF #2: 62 x 18 x $1.95 = $2,176
• 62 ea 2x10x18 DF-L #2: 62 x 18 x $1.55 = $1,730
• 62 ea 2x10x18 SP #2: 62 x 18 x $1.45 = $1,618
Result: Southern Pine #2 2x10 saves $558 vs SPF #2 2x12 However, SP #2 has only 2 inches of margin. Rachel chooses DF-L #2 2x10 for a safer margin at a moderate price.
Frequently Asked Questions
Where do rafter span tables come from?
How do species and grade affect maximum rafter span?
What is the maximum span for a 2x10 rafter?
What are deflection limits for rafters?
Can I use engineered lumber for longer rafter spans?
Related Calculators
Rafter Calculator
Calculate rafter count and complete material list
Rafter Length Calculator
Calculate cutting length for your rafters
Roof Joist Calculator
Ceiling joist sizing and span requirements
Roof Truss Calculator
Compare trusses vs rafters for your span
Roof Load Calculator
Calculate dead, live, and snow loads on your roof
Roof Framing Calculator
Complete framing material list