Rafter Span Calculator: Check a Rafter by Formula, Then Confirm in the Span Tables

Updated November 12, 2026 · buildcalc.io editorial team

Rafter span calculator (formula check)

1. Rafter and loads (inches, psf on the horizontal projection)
2. Design values for your species and grade (from the NDS Supplement, for example via the AWC calculator)
Load on the rafter
–
Section modulus S, moment of inertia I
–
Span limit from bending
–
Span limit from deflection
–
Shorter of the two (horizontal span)
–

A rafter must carry the roof’s weight and snow or other live load without breaking and without sagging too much. This page does two things. It shows how to check a rafter by the beam formulas with your own lumber values, and it explains how to read the published span tables, which are what the code and your building department actually accept. The calculator is a formula check. It is not a substitute for the tables.

The span tables are the answer

The 2021 International Residential Code, section R802.4.1, says rafters shall be sized from the spans in Tables R802.4.1(1) through R802.4.1(8) and that rafter spans are measured along the horizontal projection of the rafter. For other grades and species and for other loading conditions it refers to the American Wood Council’s span tables (the STJR). The first table’s heading states its basis: a roof live load of 20 psf, a ceiling not attached to the rafters, and a deflection limit of L/180, with separate columns for dead loads of 10 and 20 psf. Later tables cover other loads, including snow and attached ceilings. This page does not reproduce them: they are copyrighted, and the current edition on the ICC’s free-view page is the one to use. Open the ICC’s IRC chapter 8, pick the table whose load and deflection basis matches your roof, then read across by spacing, species and grade to the column for your rafter size.

The American Wood Council publishes a free Span Options Calculator for wood joists and rafters. It works from the design values in the NDS Supplement for all commercially available softwood and hardwood species and grades, and lets you compare several species and grades at once.

The formula check

For a rafter modeled as a single-span, simply supported beam carrying a uniform distributed load w, standard beam mechanics and American Wood Council Design Aid No. 6 (Beam Design Formulas with Shear and Moment Diagrams) give the maximum midspan moment as M = wL² ÷ 8 and the maximum midspan deflection as δ = 5wL⁴ ÷ (384 E I). With the rectangular rafter’s section modulus S = b d² ÷ 6 and moment of inertia I = b d³ ÷ 12 (from the AWC NDS), those two limits rearrange directly into maximum spans:

w (lb/in) = (dead + live psf) × spacing (in) ÷ 144 bending: L = √( 8 × Fb × S ÷ w ) deflection: L = ( 384 × E × I ÷ (5 × w × divisor) )^(1/3) limit = L ÷ divisor horizontal span = the shorter of the two

Because span enters the deflection formula as L⁴ and the limit as L, the deflection span is the cube root of a ratio. That makes it much less sensitive to the load than you might expect: doubling the load shortens the deflection span by only 2^(1/3), about 20%, but shortens the bending span by √2, about 29%. Depth matters most: doubling the depth multiplies I by eight and S by four.

The inputs the calculator wants

  • Actual size. A nominal 2×10 is 1.5 by 9.25 inches. Enter the actual dimensions of your lumber.
  • Spacing. 12, 16 or 24 inches on centre, as framed.
  • Dead load. The weight of the roof covering, sheathing and framing, in psf on the horizontal projection. The IRC’s first table uses columns for 10 and 20 psf.
  • Live or snow load. The roof live load or the design snow load for your site. The first IRC table uses 20 psf. Your building department gives the snow load.
  • Deflection divisor. 180 or 240 as above (IRC Table R301.7).
  • Fb and E. From the NDS Supplement for your species and grade. The calculator leaves these blank on purpose, because inventing a lumber strength would be unsafe. The AWC calculator shows the values for the grade it analyses.

Worked example 1: the formulas with test inputs

The values here are test inputs to show the arithmetic, not design values for any lumber. A 1.5 × 9.25 inch rafter at 16 inches on centre with 10 psf dead and 20 psf live load carries w = 30 × 16 ÷ 144 = 3.333 lb per inch. The section modulus is S = 1.5 × 9.25² ÷ 6 = 21.39 in³. With a test Fb of 1,000 psi, the bending span is √(8 × 1,000 × 21.39 ÷ 3.333) = 226.6 inches, or 18 ft 10.6 in.

Worked example 2: the deflection span

The same rafter has I = 1.5 × 9.25³ ÷ 12 = 98.93 in⁴. With a test E of 1,600,000 psi and the L/180 limit, the deflection span is (384 × 1,600,000 × 98.93 ÷ (5 × 3.333 × 180))^(1/3) = 272.6 inches, or 22 ft 8.6 in. The bending span is the shorter one, so bending governs in this test case and the span limit is 18 ft 10.6 in. At L/240 the deflection span falls to 90.8% of the above, 247.7 inches, and bending still governs. With a lower-grade lumber, which has a lower Fb relative to E, deflection can govern instead. The calculator reports which one does.

Worked example 3: what a heavier load does

Raise the live or snow load from 20 to 50 psf with 10 psf of dead load: the total goes from 30 to 60 psf, so w rises from 3.333 to 6.667 lb per inch. The bending span drops by √(3.333 ÷ 6.667) = 0.707, from 226.6 to 160.2 inches (13 ft 4.2 in). Snow country needs shorter spans or deeper rafters, and the IRC tables have separate pages for snow loads for that reason. Compare your result with the table for your load: a formula answer that is much longer than the table’s means a factor has been missed, not that the table is conservative.

What the formula check leaves out

The calculator does not check shear, bearing at the wall plate, load-duration and other adjustment factors in the NDS, wind or snow drift, or the horizontal thrust on the walls that a rafter roof without a ridge beam or ceiling ties exerts. It assumes a single span, simply supported. It does not handle purlins, knee walls or hip and valley framing. The IRC’s span tables include the adjustments for their stated conditions, which is part of why they are the accepted answer. Cut a rafter to length with the rafter length calculator, which works along the slope, after you have settled the size by span.

Common mistakes

  • Measuring span along the slope. Spans and loads in the tables are on the horizontal projection.
  • Using nominal sizes. Enter actual width and depth.
  • Using the wrong table basis. Dead load, live or snow load and whether a ceiling is attached all change the table.
  • Taking Fb and E from a different grade. A strength value is for one species and grade.
  • Ignoring the deflection limit. A rafter can be strong enough and still sag.
  • Treating a formula as an approval. Your building department accepts the code tables or an engineer’s design.

Before you cut

Rafters hold the roof over people’s heads. Check the spans against the table for your loads, confirm snow and wind loads with your local building department, and have an engineer review anything unusual. This page is for understanding and checking, not for design. Related tools: the roof truss calculator, the hip and valley calculator and the roofing hub.

PartnerJobsite Tool & Fastener Spec Strip
Supplier links may earn a commission at zero extra cost to you · Disclosure
15° Pneumatic / Cordless Coil Roofing Nailer

Drives 1-1/4" galvanized coil nails flush with depth dial

OSHA-Compliant Roof Fall-Protection Harness Kit

Full-body harness, reusable roof anchor, 50 ft lifeline & rope grab

Notched Shingle Tear-Off Shovel & Hook Blades

Pries old shingles and pulls nails cleanly from roof deck

Dimensional Lumber & LVL Section Properties (AWC NDS / PS 20)

Nominal vs. actual dressed dimensions, cross-sectional area A, section modulus S, moment of inertia I, board-foot factor, and unit weights.

Nominal Size Actual (b × d) Area A (in²) Section Mod. S (in³) Inertia I (in⁴) BF / lin ft Dry Wt (lb/ft)
2x41.5" × 3.5"5.253.0635.3590.66671.28
2x61.5" × 5.5"8.257.56320.79712.01
2x81.5" × 7.25"10.87513.14147.6351.33332.64
2x101.5" × 9.25"13.87521.39198.9321.66673.37
2x121.5" × 11.25"16.87531.641177.97924.1
4x43.5" × 3.5"12.257.14612.5051.33332.98
4x63.5" × 5.5"19.2517.64648.52624.68
6x65.5" × 5.5"30.2527.72976.25537.35
1-3/4x9-1/2 LVL1.75" × 9.5"16.62526.323125.0341.66674.85
1-3/4x11-7/8 LVL1.75" × 11.875"20.78141.13244.20726.06
1-3/4x14 LVL1.75" × 14"24.557.167400.1672.33337.15

Reference standard: AWC National Design Specification (NDS) Supplement & NIST PS 20. Click any column header to sort or click a highlighted preset pill inside the calculator to auto-fill values.

Reference Design Values by Structural Wood Species & Grade (AWC NDS)

Baseline bending stress Fb, horizontal shear Fv, compression perpendicular Fc⊥, and modulus of elasticity E.

Species / Material Grade Fb (psi) Fv (psi) Modulus E (psi) Specific Gravity
Douglas Fir-LarchNo. 290018016000000.5
Southern PineNo. 2 (2x8)92517514000000.55
Spruce-Pine-Fir (SPF)No. 287513514000000.42
Hem-FirNo. 285015013000000.43
Douglas Fir-LarchSelect Structural150018019000000.5
Structural LVL2.0E Engineered260028520000000.58
Structural Steel (W-Shape)ASTM A9923000020000290000007.85

Reference standard: AWC NDS Supplement Reference Design Values for Visually Graded Dimension Lumber & Structural LVL. Click any column header to sort or click a highlighted preset pill inside the calculator to auto-fill values.

PartnerHiring Out This Rafter Span Job?
Free quote matching · Zero PII stored on buildcalc.io · Disclosure

Enter your ZIP or postal code to compare bids from vetted local licensed roofing contractors matched to your calculated scope.

Frequently asked questions

How far can a 2×10 rafter span?

It depends on the species and grade, the spacing, the dead and live (or snow) load and the deflection limit, so there is no single answer. The IRC lists spans for common species in Tables R802.4.1(1) through R802.4.1(8), and the American Wood Council's free calculator covers every species and grade in the NDS Supplement. Look up your own lumber rather than relying on a rule of thumb.

Is rafter span measured along the slope or horizontally?

Horizontally. IRC R802.4.1 says rafter spans are measured along the horizontal projection of the rafter, and the loads in the tables are in psf on that horizontal projection. A rafter's length along the slope is longer than its span.

What deflection limit applies to rafters?

IRC Table R301.7 gives L/180 for rafters with a slope greater than 3:12 and a finished ceiling not attached to them, and L/240 for all other structural members, which includes rafters with an attached finished ceiling. Many span tables are published at L/180 or L/240 for those two cases.

What are Fb and E?

Fb is the bending design value and E the modulus of elasticity of the lumber, both from the NDS Supplement for a species and grade. They control the two checks in this calculator: Fb sets the span from bending stress and E sets the span from deflection.

Sources

  1. 2021 International Residential Code, R802.4.1 Rafter size (spans in Tables R802.4.1(1) through R802.4.1(8), measured along the horizontal projection) and the table basis, International Code Council, accessed November 2026.
  2. 2021 International Residential Code, Table R301.7 Allowable deflection of structural members (rafters L/180 with a finished ceiling not attached, L/240 for other members), International Code Council, accessed November 2026.
  3. Span Options Calculator for Wood Joists and Rafters (all species and grades in the NDS Supplement), American Wood Council, accessed November 2026.
  4. National Design Specification (NDS) for Wood Construction & Design Aid No. 6: Beam Design Formulas with Shear and Moment Diagrams (M = wL²/8, Δ = 5wL⁴/(384EI)), American Wood Council, accessed November 2026.