Four numbers decide your rafter size: span, spacing, snow load and roofing weight. Enter them here and the calculator returns the minimum lumber dimension, rafter count, total board feet and estimated cost.
Rafter Calculator - Lumber Size, Count & Board Feet
Four numbers decide your rafter size: span, spacing, snow load and roofing weight. Enter them here and the calculator returns the minimum lumber dimension, rafter count, total board feet and estimated cost.
Parameters
Enter data for calculations
💡 Fill in all required fields to unlock the calculate button
Rafter sizing at a glance
How to use this calculator - step by step
- Rafter span - horizontal distance from the bearing wall to the ridge. For a 28 ft wide house with a center ridge, the span is 14 ft.
- Spacing - center-to-center distance between rafters. Standard is 16 in. Use 12 in for tile roofs or 24 in for light metal roofs.
- Roof pitch - angle in degrees. Common: 4/12 pitch = 18 deg, 6/12 = 27 deg, 8/12 = 34 deg.
- Roofing material - weight per square foot. Metal is lightest (1.5 psf), clay tile heaviest (12 psf).
- Ground snow load - from ASCE 7 maps or local building code. The calculator adjusts for roof slope automatically.
- Building length - dimension along the ridge, for counting total rafters.
- Lumber price - optional, per board foot for cost estimate.
- Read results: minimum lumber size, rafter count, total board feet and cost.
Rafter span table - SPF No.2, 16 in o.c., 30 psf snow, asphalt shingles
| Lumber size | Actual (in) | Section modulus (in3) | Max span (ft) |
|---|---|---|---|
| 2x6 | 1.5 x 5.5 | 7.56 | ~9 |
| 2x8 | 1.5 x 7.25 | 13.14 | ~12 |
| 2x10 | 1.5 x 9.25 | 21.39 | ~15 |
| 2x12 | 1.5 x 11.25 | 31.64 | ~19 |
Max span values are approximate for SPF No.2 at the stated conditions. Actual spans depend on load duration, deflection limits and local code. Always verify with IRC span tables or an engineer.
Things most people get wrong
Practical examples
Result: 2x8, 62 rafters, rafter length 15 ft, total 843 bf
Result: 2x8, 56 rafters, rafter length 18.5 ft, total 939 bf
Result: 2x6, 26 rafters, rafter length 12.5 ft, total 223 bf
Result: 2x6, 62 rafters, rafter length 17.5 ft, total 746 bf
Result: 2x6, 102 rafters, rafter length 13 ft, total 912 bf
FAQ - Frequently asked questions
Related tools
Decking Calculator
Calculate deck board quantity, linear footage and material cost - Open calculator
Wood Stain Calculator
How many gallons of stain, oil or sealant for your wood project - Open calculator
Roof Calculator
Estimate roofing material, underlayment and flashing for any roof shape - Open calculator
Roof Pitch Calculator
Convert between degrees, percent slope and rise/run ratios - Open calculator
Insulation Calculator
Calculate R-value, insulation thickness and material for walls and attics - Open calculator
Ready-made calculations
The most searched variants of this calculator. Each link opens it with the value already filled in, ready to calculate.