Rafter LengthCalculator
Common RafterHip RafterValley RafterJack RafterShed & Lean-ToBirdsmouthRafter AngleRoof PitchRafter SpanRafter SizeGambrel RafterRafter Length ChartHow-To GuideAboutReport an Error
Home › Rafter Span Calculator
Code Tables

Rafter Span Calculator

Check how far a rafter can span against the actual code tables — IRC 2021 Tables R802.4.1(3) and (4), for four No. 2 species, three spacings, both ceiling conditions and both standard dead loads.

Rafter Span Calculator

Results update as you type

Southern Pine #2 · 2×8 · 16″ on-center

Maximum span (horizontal)
14 ft 2 in
TableIRC R802.4.1(3)
Southern Pine #212″ o.c.16″ o.c.24″ o.c.
2×48 ft 7 in7 ft 6 in6 ft 1 in
2×612 ft 11 in11 ft 2 in9 ft 2 in
2×816 ft 4 in14 ft 2 in11 ft 7 in
2×1019 ft 5 in16 ft 10 in13 ft 9 in
2×1222 ft 10 in19 ft 10 in16 ft 2 in

Ground snow load 30 psf, dead load 10 psf, ceiling not attached. Spans are horizontal projection, per the 2021 IRC. For other snow loads use the full tables R802.4.1(1)–(8) or the AWC calculator.

What It Checks

A span is a horizontal measurement

Ask a framer how far a rafter spans and the answer is a horizontal number. The IRC measures rafter span along the horizontal projection of the rafter — bearing point to bearing point, as if the roof were flat. On a 6/12 roof the board itself is about 12% longer than its span; on a 12/12 roof, 41% longer. This checker follows the code and works in horizontal spans throughout, so the number you enter is the horizontal distance between the bearing points of your walls or beams, never a tape laid along the slope.

That also means span is not the same as run, though the two are related. On a simple gable roof with a ridge board, each rafter's span is its run — half the building width. Add a structural ridge beam or a mid-span purlin and the span becomes the longest unsupported stretch between bearings, which is the figure the table cares about.

The Data

IRC 2021 Tables R802.4.1(3) and (4), in full

The numbers behind this checker are transcribed from the 2021 International Residential Code: Table R802.4.1(3) for rafters with no ceiling attached (deflection limit L/180) and Table R802.4.1(4) where a ceiling is attached to the rafters (L/240). Both are written for a 30 psf ground snow load, and each publishes two dead-load halves — 10 psf for a standard shingle roof and 20 psf for heavy coverings. All four species are No. 2 grade: Douglas Fir-Larch, Hem-Fir, Southern Pine and Spruce-Pine-Fir, in sizes 2×4 through 2×12 at 12, 16 and 24 in spacing.

One row shows the shape of the data. A Southern Pine #2 2×8 under a 10 psf dead load with no ceiling attached is permitted to span 16 ft 4 in at 12 in spacing, 14 ft 2 in at 16 in, and 11 ft 7 in at 24 in. Spacing is doing heavy work in those numbers — the same board loses nearly 5 ft of span when the spacing doubles.

Southern Pine #2, 2×8 — DL 10 psf, ceiling not attached12 in o.c.16 in o.c.24 in o.c.
Maximum horizontal span16 ft 4 in14 ft 2 in11 ft 7 in
Reading the Result

Pass, fail, and the size of the margin

The checker returns the tabulated maximum for your exact combination and sets your span against it. A pass means the code table permits that member at that spacing — nothing more and nothing less. Treat a pass with only an inch or two to spare as a prompt to think about what the table cannot see: an unusually heavy roof build-up, a long overhang, or lumber that is graded No. 2 but visibly poor. Tables assume sound, correctly graded material.

A fail is not a verdict on the roof, just on that combination. The same span usually passes at closer spacing or one size up, and the margin shown tells you how far short the combination falls. Once the size is settled, work out its length and cut angles with the common rafter calculator, which turns the horizontal span into the actual board.

Conditions

What these tables cover — and what they do not

Every span table is a bundle of assumptions, and using one outside its assumptions is worse than using none. These two tables assume a 30 psf ground snow load. That covers a large share of the country, but snow-belt regions designed for 50 or 70 psf live in Tables R802.4.1(5) through (8), and warm regions where snow never governs use the roof-live-load Tables (1) and (2). Nothing on this page should be stretched to cover them.

The tables also assume ceiling joists or rafter ties right at the wall plate, resisting the outward push of the rafters. Raise the ties into the attic — for a vaulted look or storage — and Table R802.4.1(9) applies reduction factors to every span here. And a practical warning from the code's own footnote territory: spans past 20 ft call for lumber lengths many yards do not stock, so a passing result can still be a board you cannot buy.

Data on this page: IRC 2021 Tables R802.4.1(3) and (4) only — 30 psf ground snow load, dead load 10 or 20 psf, No. 2 grade, ceiling attached (L/240) or not attached (L/180). For 50 or 70 psf snow, roof-live-load-only regions, other grades, or engineered lumber, use the full IRC tables R802.4.1(1)–(8) or the AWC span calculator, and always check local code amendments.
Dead Load and Deflection

Why the ceiling and the roof covering change the answer

Two roofs with identical rafters can have different legal spans. If a gypsum ceiling is fixed directly to the rafters, the code tightens the deflection limit from L/180 to L/240, because a sagging rafter telegraphs straight into cracked plaster. That is the whole difference between Table (4) and Table (3) — the lumber is the same, the tolerance for bend is not.

Dead load is the other lever. It is the weight of the roof itself — decking, underlayment and covering — before snow or anyone sets foot on it. Tile and slate roughly double the standard allowance, and the 20 psf half of each table exists for them. Choose the half that matches your covering, not the one that gives the answer you want.

Methods & Sources

How we calculate

Every result on this page comes from the method described above, using standard framing geometry and the published data credited below. Found a number that looks wrong? Use Report an Error — every report is read.

• International Residential Code (2021), Chapter 8 — Roof-Ceiling Construction — https://codes.iccsafe.org/content/IRC2021P2/chapter-8-roof-ceiling-construction
• American Wood Council — Span Tables for Joists and Rafters — https://awc.org
Questions

FAQs

Is the span measured along the slope of the rafter?

No. Rafter spans in the IRC tables are measured along the horizontal projection of the rafter — the run, not the slope. A rafter on a 6/12 roof whose horizontal span is 14 ft is checked against the 14 ft figure even though the board itself is over 15 ft long.

My ground snow load is 50 psf. Can I use these results?

Not with this checker. Tables R802.4.1(3) and (4) are built on a 30 psf ground snow load. Heavier snow country is covered by Tables R802.4.1(5) through (8), and regions governed by roof live load alone use Tables (1) and (2) — use the full tables or the AWC span calculator for those conditions rather than stretching this data.

What if my ceiling joists or rafter ties sit above the wall plate?

Then the tabulated spans no longer apply directly. Footnote (a) to both tables assumes ties at the plate; ties raised into the attic must apply the adjustment factors of Table R802.4.1(9), which shorten the permitted span — the higher the tie, the bigger the reduction.

Does the species and grade really change the span that much?

Yes, twice over. The four species differ by up to a foot on the same size, and these tables are for No. 2 grade only. No. 1 or Select Structural would span further, No. 3 less — the grade stamp on the actual lumber is what counts.

My rafter fails the check. What are my options?

Three usual fixes, in order of cost: move to closer spacing (24 in to 16 in buys back a lot of span), go one size deeper, or switch to a stronger species. The size calculator on this site runs the same tables backwards and finds the smallest option that passes.

Does the span include my eaves overhang?

No. The table span is the horizontal distance between the bearing points of the supports. The eaves overhang cantilevers past the wall and is not part of the tabulated span, though very long overhangs have their own limits in the code.

The Full Family

More rafter calculators