Rafter Span Calculator

Maximum allowable rafter spans from the 2021 IRC prescriptive tables — R802.4.1(1) at 20 psf roof live load and R802.4.1(3) at 30 psf ground snow, No. 2 grade Douglas fir-larch, hem-fir, southern pine, and SPF at 12 to 24 inches on center — with a pass/fail check against your required span and a reverse lookup of every size-and-spacing combination that works.


2021 IRC R802.4.1 · Tables R802.4.1(1) & (3)

Rafter Inputs (IRC R802.4.1)

in

Table basis: dead load 10 psf, ceiling not attached to rafters, L/Δ = 180, No. 2 grade, rafter ties at the plate. Span is the horizontal projection, plate to ridge support. Prescriptive-table check per the 2021 IRC — not a substitute for engineering design; raised rafter ties need the Table R802.4.1(9) factors.

Allowable Span vs Required

15 ft 1 in
Max allowable span
181in
Max span
12 ft 0 in
Required span
79.6%
Utilization
PASSES: 12 ft 0 in ≤ 15 ft 1 in allowable

Allowable Span by Size @ 16" o.c. (ft)

2x42x62x82x102x1206121824

About Rafter Span Calculator (IRC R802.4.1)

The rafter span calculator reads the 2021 IRC prescriptive rafter span tables so you can check a common rafter the way a plans examiner would. Pick the load case — Table R802.4.1(1) for a 20 psf roof live load or Table R802.4.1(3) for a 30 psf ground snow load, both for ceilings not attached to the rafters at an L/Δ = 180 deflection limit and a 10 psf dead load — then the species group, member size (2x4 to 2x12), and spacing (12, 16, 19.2, or 24 inches on center). The tool returns the maximum allowable span and a pass/fail verdict against the span you actually need. Spans are measured along the horizontal projection of the rafter, not along the slope (IRC R802.4.1).

Every encoded value is the No. 2 grade row of the published table, verified cell by cell against two independent reproductions of the 2021 code. The scope is deliberately the everyday case: light roofing (10 psf dead load covers typical asphalt-shingle assemblies), no ceiling loading the rafters, and the two most common load columns. Select Structural/#1/#3 grades, the 50 and 70 psf snow tables, 20 psf dead-load assemblies like tile or slate, and raised rafter ties (Table R802.4.1(9) adjustment factors) are outside this tool — use the full code tables or an engineered design for those. This is a prescriptive-table check, not a substitute for engineering design.

How It Works

  1. Choose the load case. Table R802.4.1(1) applies where the roof live load is 20 psf — the construction/maintenance load that governs in low-snow country. Table R802.4.1(3) applies at a 30 psf ground snow load. If your jurisdiction's ground snow load exceeds 30 psf, the 50 and 70 psf tables of the full code apply and this tool will overstate the span.
  2. Pick the species group and No. 2 grade size. The four groups — Douglas fir-larch, hem-fir, southern pine, and spruce-pine-fir — are the table's named species; No. 2 is the grade lumberyards actually stock. Note that in the 2021 tables southern pine No. 2 spans are shorter than SPF at the same size, a consequence of the 2013 southern pine design-value revision.
  3. Set the spacing: 12, 16, 19.2, or 24 inches on center — the four table columns. Tighter spacing buys span; a 2x8 SPF rafter under the snow table spans 17 ft 5 in at 12 in o.c. but only 12 ft 4 in at 24 in o.c.
  4. Enter the required span — the HORIZONTAL distance from the wall plate to the ridge support, not the sloped rafter length. Divide the building width by two for a symmetric gable with a structural ridge or ridge board with ties. The verdict compares table span and required span at the displayed ft-in precision.
  5. Flip to "find a rafter" mode to go the other way: enter the required span and the tool lists every size-and-spacing combination in the chosen table that works, smallest member first with utilization, so you can pick the cheapest adequate rafter. Cells the code prints as Note b (beyond 26 ft) always qualify and are shown as 26 ft+.

Worked Example

A gable roof in 30 psf ground-snow country has a 29-ft-wide footprint with a properly tied ridge, so each common rafter must cover a horizontal span of about 14 ft 6 in (174 in). The framing plan calls for spruce-pine-fir No. 2 2x8s at 16 in on center, and the attic has no attached ceiling. Table R802.4.1(3) gives SPF #2 2x8 @ 16 in o.c. = 15 ft 1 in (181 in), so the check passes at 174 ÷ 181 = 96.1% utilization. Reverse mode shows the full menu for 174 in: 2x8 at 12 or 16 in o.c. (the 19.2 in column, 13 ft 9 in, falls short), every 2x10 row — even 24 in o.c. squeaks by at 15 ft 1 in — and every 2x12 row. The 2x8 @ 16 is the least lumber that clears the span.

Formulas

Allowable rafter span (table lookup)
L_R = TableR802.4.1(1 | 3)[DL 10 psf][species, No. 2][size][spacing]
Utilization (pass/fail)
U = L_req / L_R × 100%, PASS when L_req ≤ L_R at ft-in precision
Table basis (not a computation)
spans assume: ceiling not attached, L/Δ = 180, dead load 10 psf, No. 2 grade, rafter ties at the plate

Standards & References

  • 2021 IRC R802.4.1 / Table R802.4.1(1) — rafter spans, roof live load 20 psf, ceiling not attached to rafters, L/Δ = 180 (this tool: dead load 10 psf block, No. 2 grade)
  • 2021 IRC Table R802.4.1(3) — rafter spans, ground snow load 30 psf, ceiling not attached, L/Δ = 180 (dead load 10 psf block, No. 2 grade)
  • 2021 IRC Table R802.4.1(9) — span adjustment factors where ceiling joists or rafter ties sit above the plate (outside this tool; flagged in results)

Frequently Asked Questions

How far can a 2x8 rafter span?

Under the 2021 IRC with a 20 psf roof live load, no attached ceiling, and 10 psf dead load, a No. 2 grade 2x8 at 16 in on center spans 18 ft 5 in in Douglas fir-larch, 17 ft 11 in in hem-fir, 18 ft 2 in in spruce-pine-fir, and 17 ft 1 in in southern pine. At a 30 psf ground snow load those drop to 15 ft 4 in, 14 ft 11 in, 15 ft 1 in, and 14 ft 2 in. Spacing matters as much as species — the same snow-country SPF 2x8 spans 17 ft 5 in at 12 in o.c. but 12 ft 4 in at 24 in o.c.

Is the 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 — from the inside face of the support at the plate to the ridge support, as seen in plan. The actual board is longer than the tabulated span by the pitch factor (multiply the horizontal run by √(1 + (rise/12)²) — the roof-pitch calculator does this), but the code check uses the horizontal number.

What does "ceiling not attached to rafters" mean, and which table do I use for a cathedral ceiling?

The tables this tool encodes — R802.4.1(1) and (3) — assume the rafters carry roof loads only, with any ceiling framed separately on ceiling joists below, and allow L/Δ = 180 deflection. If drywall is fastened directly to the rafters (a cathedral or vaulted ceiling), the code moves you to Tables R802.4.1(2) and (4), which hold deflection to L/Δ = 240 and give shorter spans. Those attached-ceiling tables are outside this tool's scope.

What dead load should I assume — and when is 10 psf wrong?

This tool encodes the 10 psf dead-load blocks, which cover common light assemblies such as asphalt shingles over sheathing. Heavy roofs — clay or concrete tile, slate, or multiple built-up layers — push the dead load toward 20 psf, and the code's 20 psf columns give materially shorter spans. If your assembly exceeds 10 psf, use the full code table's 20 psf block or an engineered design rather than this tool.

My rafter ties are raised above the top plate — do the table spans still apply?

Not directly. Footnote a to the rafter tables assumes ceiling joists or rafter ties at the bottom of the attic space, resisting the outward thrust at the plate. Where ties sit higher, Table R802.4.1(9) multiplies the tabulated span by a reduction factor that drops as low as 0.50 when the ties are two-thirds of the way up, and structural ridge beams change the load path entirely. This tool flags the assumption but does not apply the factors.

Why do southern pine No. 2 rafters span less than spruce-pine-fir in these tables?

Because the Southern Pine Inspection Bureau's 2013 design-value revision lowered southern pine No. 2 bending values, and the IRC tables have reflected that since the 2015 edition. In the 2021 tables a southern pine #2 2x6 at 16 in o.c. under the 20 psf live-load case spans 13 ft 6 in versus 14 ft 4 in for SPF #2. Older span charts based on the 2012 IRC or earlier still show the longer pre-2013 southern pine numbers — one reason to check against the current code rather than a legacy chart.