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

PRO

Professional Calculator

Calculate total area for complex roofs with multiple sections

ft
ft

Total Roof Area

1,389 sq ft

Sections

2

Total Squares

13.9

Cost Breakdown

Section 1: $1,054 (76%)
Section 2: $335 (24%)

Detailed Breakdown

Section 11,054 sq ft
Dimensions40 × 25 ft (footprint: 1,000 sq ft)
Pitch4/12 (×1.054)
Section 2335 sq ft
Dimensions20 × 15 ft (footprint: 300 sq ft)
Pitch6/12 (×1.118)
Total Roof Area1,389 sq ft
Total Squares13.9
Bundles (10% waste)46
How to Use This Calculator
The Rafter Span Calculator provides IBC/IRC 2024 span data in three useful views:

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
The rafter span calculation is based on IBC/IRC 2024 tables:

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
Example: Finding the Cheapest Lumber for a 16' Span in Colorado

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?
Rafter span tables are published in the International Residential Code (IRC) Section R802.4, Table R802.4.1 (for rafters with ceiling attached to create attic) and Table R802.4.3 (for rafters without ceiling, like cathedral). These tables are derived from engineering calculations using the allowable bending stress (Fb), modulus of elasticity (E), and deflection limits for each lumber species and grade as published by the American Wood Council (AWC) in the National Design Specification (NDS) for Wood Construction. The 2024 IRC is the current edition used in most jurisdictions in 2026.
How do species and grade affect maximum rafter span?
Species determines the wood density and strength. Douglas Fir-Larch is the strongest common framing species with Fb = 900 psi for #2 grade. Southern Pine #2 has Fb = 825 psi. SPF #2 has Fb = 875 psi. Grade refers to the number and size of knots and defects. #1 grade allows fewer defects and has 15-25% higher allowable stress than #2. In practical terms, switching from SPF #2 to Douglas Fir-Larch #2 typically gains 6-12 inches of span for the same lumber size. Upgrading from #2 to #1 grade gains 12-18 inches but costs 15-30% more per board.
What is the maximum span for a 2x10 rafter?
The maximum span depends on species, grade, spacing, and load. For common conditions: SPF #2 at 16" OC with 20 psf live load = 17'9". With 30 psf snow load = 16'4". With 40 psf load = 15'0". Douglas Fir-Larch #2 at 16" OC with 20 psf = 18'6". At 12" OC, spans increase by roughly 15%. At 24" OC, spans decrease by roughly 15%. These are horizontal projection spans — the actual rafter length will be longer depending on pitch.
What are deflection limits for rafters?
The IRC limits rafter deflection to L/180 for live loads and L/120 for total (dead + live) loads, where L is the span in inches. For a 14-foot span (168 inches), maximum live load deflection is 168/180 = 0.93 inches, and maximum total deflection is 168/120 = 1.40 inches. In practice, deflection often governs over bending stress for longer spans, meaning a rafter might be strong enough but too "bouncy." This is why span tables sometimes show shorter spans than pure strength calculations would suggest. Some builders use L/240 for a stiffer feel, which reduces allowable spans by about 10%.
Can I use engineered lumber for longer rafter spans?
Yes, engineered lumber products like LVL (Laminated Veneer Lumber), I-joists, and glulam beams can span significantly farther than dimensional lumber. A 1-3/4" x 9-1/4" LVL can span roughly the same as a 2x12 dimensional rafter but with greater consistency and no natural defects. I-joists (TJI) in 9.5" depth can span 16-18 feet at 16" OC. For spans over 20 feet, engineered options become the only practical choice without intermediate supports. LVL costs approximately $3.50-5.50 per lineal foot (vs $1.50-2.50 for 2x10 SPF), but the labor savings from using fewer, longer members often compensates.

Related Calculators

Related Guides & Resources