Rafter Size Calculator

Rafter Size Calculator
Estimate the minimum rafter size for your roof using simplified IRC-style span tables.
Estimates only, based on simplified span tables. Always check your local building code and consult a structural engineer before building.

If you are framing a roof, one of the first questions you face is what size rafter to use. Lumber that is too small can sag, bounce underfoot, or fail an inspection. Oversized lumber wastes money and steals depth you might want for insulation. The Rafter Size Calculator above gives you a fast estimate from your span, spacing, total load, and lumber species.

This guide explains what those inputs mean, how rafter span tables work, and why a 2×8 that is plenty in one roof is not enough in another. You will find typical recommendations, a plain-English walkthrough of span tables, and answers to the questions builders ask most often.

What Rafter Size Means

When carpenters talk about rafter size, they mean the nominal cross-section of the lumber, such as 2×6 or 2×10. The size tells you how deep the member is, and depth is what gives a rafter most of its strength. A deeper board resists bending far better than a wider one, which is why rafters are always installed with the deep dimension running vertically.

Size alone never decides whether a rafter works. The same 2×8 can safely span 13 feet on one roof and fail at 10 feet on another, depending on rafter spacing, roof weight, and lumber species. Sizing is always a package deal, never a single number pulled from memory.

Nominal vs Actual Lumber Dimensions

Lumber names are nominal, not exact. A 2×8 is not 2 inches by 8 inches, and knowing the real dimensions helps you read span tables correctly and plan how much insulation will fit between rafters.

Why a 2×8 Is Not Really 8 Inches Wide

A rough-sawn 2×8 starts life close to its name, but surfacing and kiln drying shrink it to 1.5 inches by 7.25 inches. Span tables are built on these actual dimensions, so the published spans already account for the difference and you do not need to adjust for it yourself.

The key lesson is that stiffness comes from actual depth. Losing three quarters of an inch from the nominal 8 inches matters, which is exactly why tables use tested engineering values instead of the name stamped on the board. Always size from the table, never from the nominal name.

Actual Sizes of Common Rafter Lumber

Here are the real cross-sections you will buy at the lumberyard. Every size is 1.5 inches thick; only the depth changes, and depth does almost all of the structural work.

  • 2×6: 1.5 in x 5.5 in, the minimum for most rafter spans
  • 2×8: 1.5 in x 7.25 in, the workhorse of residential roofs
  • 2×10: 1.5 in x 9.25 in, nearly double the bending strength of a 2×8
  • 2×12: 1.5 in x 11.25 in, the deepest standard dimensional rafter

Notice that stepping from a 2×8 to a 2×10 adds only 2 inches of depth but roughly doubles bending strength, because strength grows with the square of depth. That is why small size changes solve span problems so effectively.

How Span and Rafter Size Are Related

Span is the horizontal distance the rafter must bridge, usually measured from the outside face of the supporting wall to the ridge board. Roofers measure span horizontally, not along the slope, because every span table is written that way. A steeper roof needs a longer board for the same span, but the load on each rafter is unchanged.

As span grows, bending stress climbs fast. Doubling a rafter’s span quadruples the bending stress, which is why a small increase in span pushes you to the next lumber size sooner than most people expect. Deflection grows even faster, so a rafter can be strong enough on paper yet still feel springy underfoot.

The rule of thumb is simple: find the smallest lumber size whose maximum span is at least as long as your span. Many builders then go one size deeper when the roof will carry tile, heavy snow, or thick insulation, buying stiffness and insulation depth for a modest cost increase.

Load Factors That Change the Answer

Every roof carries two kinds of weight. Live loads come and go, such as snow and workers. Dead loads are always there, such as the roofing and sheathing. Span tables combine them into a single total load measured in pounds per square foot (psf).

Snow and Other Live Loads

Across most of the United States, rafter tables assume a 20 psf roof live load, which covers a maintenance worker plus a modest snow load. In snow country, design loads of 30, 50, or even 70 psf are common, and deeper rafters are required for the same span. This is why the calculator asks for your total load instead of guessing your climate.

Codes also require roofs to handle concentrated loads, such as a worker with tools standing at mid-span. Span tables already include this check, so you do not add anything extra for it.

Dead Loads From Roofing Materials

Dead load is the weight of everything permanently attached to the roof. Typical values make the choice of roofing a real structural decision:

  • Asphalt shingles over plywood sheathing: about 10 psf
  • Standing-seam metal roofing: about 7 to 8 psf
  • Clay or concrete tile: about 15 to 20 psf
  • Natural slate: 20 psf or more

Switching from shingles to tile can add as much load as a light snowfall, so always size rafters for the roofing you will actually install, not the lightest option.

Total Load Is What the Table Reads

Span tables are printed for a combined load, usually 20 psf live plus 10 psf dead, for a 30 psf total. When your total is higher, the allowable span shrinks. The calculator derates table spans for totals above 30 psf with the standard load-ratio adjustment, which is a simplified but reasonable planning estimate.

Spacing Interaction: 16-Inch vs 24-Inch On Center

On center means the distance from the middle of one rafter to the middle of the next. Standard choices are 12, 16, and 24 inches. Each rafter carries the strip of roof between it and its neighbors, so wider spacing loads every rafter harder.

Moving from 16-inch to 24-inch spacing cuts the rafter count by a third, but it usually costs you one full lumber size. A span that works with 2x8s at 16 inches on center often needs 2x10s at 24 inches. Tighter 12-inch spacing goes the other way, letting the same lumber span farther, and it is common under heavy tile, slate, or high snow loads.

  • 24 inches on center: fewer rafters, but deeper lumber is required
  • 16 inches on center: the residential default and the best balance of cost and strength
  • 12 inches on center: spans farthest with a given size, suited to heavy roofing

Species and Grade Effects

Not all 2x8s are equal. A Douglas fir 2×8 is stronger and stiffer than a spruce-pine-fir 2×8 of the same grade, so the species stamped on the board changes the maximum span in the table.

How Common Species Compare

Three species dominate residential framing in North America, and the calculator includes span data for all three:

  • Spruce-Pine-Fir (SPF) #2: the baseline, widely available, with the shortest spans of the three
  • Douglas Fir-Larch #2: roughly 5 percent longer spans, a good upgrade where stocked
  • Southern Yellow Pine #2: strong and stiff with the longest spans, common in the Southeast

Availability is regional, so confirm what your lumberyard stocks before you finalize the design. There is no benefit in sizing for a species you cannot buy.

What the Grade Stamp Tells You

The grade, usually #2 or better for rafters, describes the lumber’s defects: knot size, slope of grain, and wane. Higher grades such as Select Structural span farther because the wood is more consistent, while utility grades are not permitted for structural rafters.

The stamp also shows the species, the mill, and the accredited grading agency. Never use ungraded lumber for rafters, because without a grade there is no tested strength value to design from.

How to Read Rafter Span Tables

A span table looks intimidating but follows one logic. Each row is a lumber size, each column a spacing, and each cell is the maximum horizontal span in feet and inches. Work through it in order:

  1. Confirm the table’s load basis, usually 20 psf live plus 10 psf dead.
  2. Find the section for your lumber species and grade.
  3. Find the column for your rafter spacing.
  4. Read down the size rows until a maximum span meets or exceeds your span.
  5. Choose the smallest size that qualifies.
  6. Check the deflection limit in the table notes, often L/240 or L/360.

The calculator above automates these steps for three common species, including the derating math for heavier total loads.

Common Rafter Size Recommendations

These starting points assume a 20 psf live plus 10 psf dead load with SPF #2 at 16 inches on center. Treat them as orientation before you run the table, not as a final answer.

  • Spans up to about 10 ft: 2×6 rafters
  • Spans up to about 13 ft: 2×8 rafters
  • Spans up to about 17 ft: 2×10 rafters
  • Spans up to about 21 ft: 2×12 rafters
  • Spans beyond 21 ft: engineered lumber or an intermediate bearing wall
  • Heavy snow, tile, or slate: go one size deeper than the table minimum

When to Call a Structural Engineer

Span tables cover straightforward roofs with standard loads. Bring in a licensed structural engineer when any of the following apply:

  • Your span exceeds the published table values.
  • The design is a cathedral ceiling with no ceiling joists tying the walls together.
  • The roof carries concentrated loads such as solar arrays or rooftop equipment.
  • The geometry is unusual, with hips, valleys, long cantilevers, or spliced rafters.
  • Your building department asks for sealed calculations with the permit.

A Note on Estimates and Building Codes

The calculator and the span values in this article are simplified estimates for planning purposes only. They are not a substitute for your local building code, which may require different design loads, deflection limits, or lumber grades. Always verify requirements with your building department and consult a licensed structural engineer for final rafter sizing before you build.

Frequently Asked Questions

What size rafter do I need for a 16-foot span?

For a typical 30 psf total load with SPF #2 at 16 inches on center, a 16-foot span needs a 2×10 rafter. At 24-inch spacing the same span usually requires a 2×12. Heavier snow loads or tile roofing can push the requirement one size deeper, so run your exact numbers through the calculator.

Can I use 2×6 rafters for a roof?

Yes, 2×6 rafters work for short spans, typically up to about 10 feet at 16 inches on center under normal loads. They are common on sheds, porches, and small additions. For main house roofs with longer spans, 2×8 is usually the practical minimum, and many codes effectively require it.

Is 24-inch spacing OK for rafters?

Yes, 24-inch spacing is code-compliant when the rafter size is selected from the 24-inch column of the span table. Expect to use lumber one size deeper than you would at 16 inches on center. The wider spacing also means sheathing must span farther, so check that your sheathing thickness is rated for 24-inch supports.

How far can a 2×8 rafter span?

A 2×8 SPF #2 rafter at 16 inches on center spans about 13 feet 7 inches under a standard 30 psf total load. At 24 inches on center the maximum drops to about 11 feet 1 inch. Stronger species such as Douglas fir or Southern yellow pine add roughly another half foot to a foot.

How far can a 2×10 rafter span?

A 2×10 SPF #2 rafter at 16 inches on center spans about 17 feet 4 inches under a standard 30 psf total load, and about 14 feet 2 inches at 24 inches on center. This makes the 2×10 the most common choice for typical residential spans between 13 and 17 feet.

How far can a 2×12 rafter span?

A 2×12 SPF #2 rafter at 16 inches on center spans about 21 feet 1 inch under a standard 30 psf total load, and about 17 feet 2 inches at 24 inches on center. It is the deepest standard dimensional rafter, so anything beyond its reach calls for engineered lumber or intermediate support.

Does roof pitch change the required rafter size?

Pitch does not change the table span, because span is measured horizontally from wall to ridge. A steeper roof needs a longer board to cover the same horizontal span, so you buy longer lumber, but the required cross-section stays the same. Very low slopes deserve a second look at ponding and deflection, however.

What does on center mean for rafter spacing?

On center is the distance from the center of one rafter to the center of the next one. A 16-inch on-center layout means every rafter is 16 inches from its neighbor, measured center to center. This standardizes the load each rafter carries and keeps sheathing edges landing on solid framing.

Should I use SPF or Douglas fir for rafters?

Use whichever species your span table and lumberyard support. Douglas fir is stronger and spans about 5 percent farther than SPF of the same grade, which can save you a lumber size on borderline spans. SPF is more widely available and usually cheaper, so it is the default choice in many regions.

How do snow loads affect rafter size?

Higher snow loads raise the total design load, which shortens every allowable span in the table. A roof designed for 50 psf of snow needs noticeably deeper rafters than the same roof in a 20 psf zone. Always use your local ground snow load, converted to roof load per code, rather than guessing.

Can I sister rafters to increase their span?

Sistering, which means fastening a second rafter alongside the existing one, can strengthen a roof but it is not a simple span upgrade. The connection must transfer load along the full length, which usually requires an engineer’s nailing or bolting schedule. For new construction, buying the right size up front is cheaper and simpler.

What is the difference between a rafter and a truss?

A rafter is an individual sloped framing member cut and installed on site, while a truss is a factory-built triangular assembly of smaller members. Trusses span longer distances without interior support and go up faster, but rafters leave the attic open and are easier to modify. Both must be sized or designed for the same loads.

Do I need an engineer to size my rafters?

Not usually for a simple gable roof within published span tables and standard loads. You need an engineer when spans exceed the tables, when the design includes cathedral ceilings without ties, when heavy equipment or solar arrays add concentrated loads, or when your building department requires sealed calculations.

Are span table results the same as code approval?

No. Span tables are a design aid that reflects the code’s engineering requirements, but approval comes from your building department through the permit and inspection process. Local amendments can change design loads, deflection limits, or nailing schedules, so the table gets you close and the inspector gets you approved.

Can rafters be spaced 12 inches on center?

Yes, 12-inch spacing is permitted and it lets a given lumber size span farther than at 16 or 24 inches. Builders use it under heavy tile or slate, in high snow zones, or when they want an exceptionally stiff roof. It uses more lumber, so compare the cost against simply going one size deeper at 16 inches on center.