Rafter span calculator

Pick the wood, grade, spacing and roof load, type the span between supports, and see the smallest rafter that spans it, from the IRC 2021 rafter tables.

Every span is a cell of the IRC 2021 tables, checked against the American Wood Council before it is shown.

The rafters

As stamped on the lumber.
Your building department gives the ground snow load.
Higher ties shorten the span (Table R802.4.1(9)). Higher than a third of the way up is outside Table R802.4.1(9): have the roof designed.
Rafter span you need Level distance from the wall to the ridge or the next support, not along the slope.
Length of the roof Optional: to count rafters for both sides.

Price

Price Optional. What one rafter costs, to see the total.
Free for your own website, with no account and no ads.

Put the rafter span calculator on your website

Paste this code into an HTML or embed block on any page. Your visitors use the calculator right there, the same as here: free, no sign-up, no ads, and nothing they type is sent anywhere.

Preview it

It fits any width from a phone up to 640 px and grows to the calculator's height. The line under it links to this page, so your visitors can see where it comes from. Every calculator you can embed

Free calculator by Billsmith

Rafter size
Spans up to
See the working

Rafter spans, from the code

How the tables work

IRC 2021 prints eight rafter tables, R802.4.1(1) to (8): one pair for a 20 psf roof live load and one pair each for 30, 50 and 70 psf ground snow loads, each pair split by whether the ceiling is attached to the rafters (stiffer limit, L/240) or not (L/180). Find your wood, grade and spacing, read across at your dead load, and the first size that reaches your span is the one. Rafter span is measured level, along the horizontal projection.

A worked example

A 14 ft span, Douglas fir-larch No. 2 at 16 in on center, no snow, 10 psf dead load, ceiling not attached: the row reads 2x4 9 ft 10 in, 2x6 14 ft 7 in, 2x8 18 ft 5 in. A 2x6 spans it. With a 50 psf ground snow load the 2x6 reaches only 9 ft 10 in and the 2x8 12 ft 6 in, so 2x10 (15 ft 3 in).

Douglas fir-larch No. 2, 16 in on center

IRC 2021 rafter spans, Douglas fir-larch No. 2, 16 in on center, 10 psf dead load, ceiling not attached
Load2x62x82x102x12
20 psf live14-718-522-626-0
30 psf snow12-115-418-921-8
50 psf snow9-1012-615-317-9
70 psf snow8-710-1013-315-4

Feet and inches, IRC 2021 Tables R802.4.1(1), (3), (5) and (7), 10 psf dead load, ceiling not attached.

Ties higher up the roof

The tables assume ceiling joists or rafter ties at the top of the walls. Raise them and the rafters push the walls out harder, so Table R802.4.1(9) cuts the span: × 0.90 at a sixth of the height to the ridge, 0.83 at a fifth, 0.76 at a quarter, 0.67 at a third. Between those, the calculator takes the next one up. With no ceiling joists or ties at all, as in many cathedral ceilings, the ridge must be a beam designed by an engineer (IRC R802.3).

Metric and the UK

Switch to meters to type and read meters. The tables are for US lumber and US loads. In the UK, size rafters from the TRADA span tables or have an engineer do it, and building control signs off. Check your local code and have a structural engineer or building control sign off.

Where the figures come from

IRC 2021 text as adopted in the Seattle Residential Code, shown only where the span worked from the American Wood Council's 2021 design values agrees within an inch. A few cells are left out, among them two misprints in the code text: read those in your code book. For the board length along the slope, use the rafter length calculator.

Questions

How far can a 2x6 rafter span?

At 16 in on center with a 20 psf roof live load, 10 psf dead and the ceiling not attached: 14 ft 7 in in Douglas fir-larch No. 2 (IRC 2021 Table R802.4.1(1)). With a 30 psf ground snow load, 12 ft 1 in.

How far can a 2x8 rafter span?

Douglas fir-larch No. 2 at 16 in on center: 18 ft 5 in with a 20 psf roof live load, 15 ft 4 in under 30 psf ground snow, 12 ft 6 in under 50 psf.

How far can a 2x10 rafter span?

Douglas fir-larch No. 2 at 16 in on center: 22 ft 6 in with a 20 psf roof live load, 18 ft 9 in under 30 psf ground snow, 15 ft 3 in under 50 psf and 13 ft 3 in under 70 psf.

Is rafter span measured along the slope?

No: the IRC measures rafter span level, along the horizontal projection, from the support to the ridge or the next support. The rafter itself is longer.

What is a ground snow load?

The weight of snow on the ground that your area is designed for, in pounds a square foot. Your building department gives it (IRC Figure R301.2(6) maps it); the rafter tables use 30, 50 and 70 psf.

Are these spans allowed where I live?

They are the IRC 2021 tables, which most US states adopt, often with changes. Check your local code and have a structural engineer or building control sign off.