Rafter Span Calculator

Quick answer

A rafter span calculator looks up the maximum allowable span for a rafter from published span tables. You choose the lumber size, on-center spacing, species group and roof live load, and it returns the longest horizontal span, then checks your planned span against it. A 2×8 SPF at 16 inches on center spans 13 ft 9 in at 20 psf.

Updated 2026-10-17By Shakeel Muzaffar | Reviewed by Prof. Dr. Khalil Mudassar, PhD
Try
Your details
Lumber, Framing and Carpentry
Nominal size of the rafter. Larger depth allows a longer span.
Distance between rafter centers. Closer spacing allows a longer span.
Wood species group, Grade No. 2. Check the grade stamp on your lumber.
Design roof live or snow load in pounds per square foot. Use the value your local code requires.
ft
Enter the rafter span you are planning, or leave blank to just see the maximum.
Your results

Maximum allowable span

—
Lumber size—
Spacing—
Species group—
Span check—

Calculations run in your browser. Inputs are not sent to our servers; anything you Save stays in this browser only.

Saved results (0)
Calculator GuideMethod, worked examples, factors and FAQ
How this calculator works1Your inputs2Verified formulameasurementfactor3Result
How it works: your measurements run through a verified formula to give the result.

How to Use the Rafter Span Calculator

  1. Pick the lumber size, from 2×6 up to 2×12.
  2. Choose the on-center spacing: 12, 16 or 24 inches.
  3. Select the species group stamped on your lumber and the roof live load your code requires.
  4. Optionally type your planned span in feet to get a pass or fail check.
  5. Read the maximum allowable span in feet and inches.

Here is what each result line means:

ResultWhat it means
Maximum allowable spanThe longest horizontal rafter span the table allows for your choices.
Lumber sizeThe nominal rafter size the value was looked up for.
SpacingThe on-center spacing used in the lookup.
Species groupThe species group and the No. 2 grade assumed.
Span checkPass or fail for your planned span, if you entered one.

Remember that the span is measured horizontally, not along the slope of the rafter. If you need the actual rafter length, run the planned span through a rafter length tool afterward.

What Is a Rafter Span?

A rafter span is the horizontal distance a rafter can safely cross between its supports, usually the exterior wall plate at the bottom and a ridge board, ridge beam or interior bearing wall at the top. It is measured on the level, not along the sloped length of the board. This is what the span tables mean when they list a maximum span for a given size of lumber.

What is the maximum, and who sets it? Building codes publish span tables so that a builder does not need to run structural calculations for every ordinary roof. The tables account for the strength of the wood, how much the rafter is allowed to bend under load, the weight of the roofing and sheathing, and the live load from snow or maintenance traffic. Pick a size, spacing, species and load, and the table gives the longest span that is acceptable.

A rafter that is too long for its size will sag over time, crack finishes, and in a heavy snow can fail. A rafter that is far larger than needed wastes lumber and money. The calculator helps you land on the right size the first time.

How the Rafter Span Lookup Works

Table lookup method (no formula)
Max Span = Lookup(size, spacing, species, load) from AWC/IRC span tables

Unlike a beam formula, the rafter span is not computed from a single equation on this page. The values come from published tables, which were produced by the American Wood Council using engineering formulas for bending, shear and deflection. The calculator stores the relevant rows and returns the match for your four selections.

  1. Take the lumber size, spacing, species group and live load you chose.
  2. Find the matching entry in the built-in reference table.
  3. Show the value in feet and inches.
  4. If you entered a planned span, compare it with the maximum and report pass or fail.

The reference values assume Grade No. 2 lumber, a deflection limit of span over 240 (L/240) and a 10 psf dead load on the roof. Those are the common assumptions for ceilings that are not finished with brittle materials. Different assumptions give different spans, which is why the disclaimer below matters.

Rafter Span Example

Suppose you plan a shed roof using 2x8 Spruce-Pine-Fir rafters at 16 inches on center, designed for a 20 psf live load, and the horizontal span from the wall plate to the ridge support is 14 ft.

Worked example: 2×8 Spruce-Pine-Fir at 16 in on center, 20 psf live load
Max Span = Lookup(2×8, 16 in OC, SPF, 20 psf) = 13 ft 9 in

Lookup: the table gives 13 ft 9 in for this combination, which is 13.75 feet. Your planned span of 14 feet is 3 inches too long, so the check returns a fail.

Fixes: move the rafters to 12 inches on center, where the same 2×8 SPF reaches 15 ft 1 in, or step up to 2×10 lumber, which spans 17 ft 6 in at 16 inches on center. Either option passes with room to spare.

Factors That Change Rafter Span

Species Group

Southern Pine and Douglas Fir-Larch are stiffer and stronger than Spruce-Pine-Fir and Hem-Fir, so they reach farther at the same size. The difference can be a foot or more on a 2×8.

Lumber Grade

The reference values here assume Grade No. 2. Select Structural, No. 1 or No. 3 lumber and the allowable span changes. Check the grade stamp before you rely on a number.

On-center Spacing

Closer rafters share the load among more members, so each carries less. Dropping from 24 inches to 16 inches on center can add several feet to the span.

Roof Load

A 30 psf live load, common where snow is heavier, cuts the allowable span by roughly 10 to 12 percent compared with 20 psf. Dead load from heavy roofing such as tile also reduces the span.

Deflection Limit

The tables limit sag to span divided by 240. A stricter limit, such as L/360 for a plastered ceiling, shortens the allowable span further.

Ceiling Attachment

Rafter ties or ceiling joists at the wall plate resist outward thrust. Without them, a different table or an engineered design is needed.

Rafter Span Comparison by Lumber Size

The same species and spacing can reach very different distances depending on the depth of the board. These values are for Spruce-Pine-Fir No. 2 at 16 inches on center and a 20 psf live load.

Lumber sizeMaximum spanTypical use
2×610 ft 4 inSmall sheds, porch roofs and short spans
2×813 ft 9 inGarages, additions and medium spans
2×1017 ft 6 inLarger rooms and cathedral-style roofs
2×1221 ft 5 inLong spans and deep insulation cavities

Moving from a 2×8 to a 2×10 adds about 3 ft 9 in of span, and from a 2×10 to a 2×12 adds about 4 ft. Deeper lumber costs more per board, but it can let you drop an interior bearing wall or a beam, so compare the whole framing system rather than only the price per piece.

When to Use a Rafter Span Calculator

Planning a New Roof

Use a rafter span calculator early to choose a size before you order lumber.

Checking an Existing Plan

Confirm that rafters drawn on a set of plans fit within the tabulated span.

Comparing Options

Compare 16 and 24 inch spacing, or a different species, and see how much span each option buys.

Shed, Garage and Porch Projects

This is a typical use case for small structures where a quick reference is enough to plan a permit drawing.

Remodels and Re-roofing

Check whether old rafters can carry a heavier roof or a higher snow load before you start.

Common Mistakes with Rafter Span

1. Measuring Along the Slope

Tables use the horizontal span. Measuring along the sloped length of the board overstates the span and sends you to a bigger size than needed.

2. Ignoring the Grade

The reference values are for No. 2 lumber. Using them for a lower grade can overstate what the wood can do.

3. Forgetting the Snow Load

Choosing 20 psf where your location needs 30 psf or more is one of the most common and most serious errors.

4. Mixing Species

Do not assume Southern Pine values for a pile of Hem-Fir. Read the grade stamp on the actual boards.

5. Skipping Rafter Ties

A table span assumes the walls are tied together. Without ties or a ridge beam, the roof can push the walls outward.

6. Treating the Result as Final

Local amendments, wind and a changed code edition can alter the answer. Always confirm with your building official.

Accuracy and Limitations

The values are reference figures derived from the AWC span tables. They are rounded to the nearest inch and are meant for planning, not for final design or permit submission.

What it covers

  • 2×6, 2×8, 2×10 and 2×12 rafters
  • 12, 16 and 24 inch spacing
  • Four common species groups at Grade No. 2
  • 20 and 30 psf roof live loads

What it does not cover

  • Other grades, such as Select Structural or No. 3
  • Heavy roofing, high wind or seismic loads
  • Engineered lumber, trusses or I-joist rafters
  • Your local code edition or amendments

How We Look Up Rafter Span

Method
Table lookup of the maximum allowable horizontal rafter span by lumber size, on-center spacing, species group and roof live load. No formula is evaluated.
Inputs used
Lumber size, spacing, species group, live load and an optional planned span.
Assumptions
Grade No. 2, deflection limit L/240, 10 psf dead load, roof slopes with ceiling joists or rafter ties.
Rounding
Table spans are stored in decimal feet and shown to the nearest inch.
Edge cases
A blank or zero planned span skips the pass or fail check and shows the reference maximum only.
Sources
See the Sources list below.
Last reviewed
2026-10-28.

Frequently Asked Questions About Rafter Span

How far can a 2×8 rafter span?

It depends on species, spacing and load. For Spruce-Pine-Fir No. 2 at 16 inches on center and 20 psf, a 2×8 reaches about 13 ft 9 in. Southern Pine reaches about 15 ft 8 in.

How far can a 2×6 rafter span?

A 2×6 spans roughly 9 to 13 feet depending on species and spacing. At 16 inches on center and 20 psf, Spruce-Pine-Fir reaches about 10 ft 4 in.

How far can a 2×10 rafter span?

A 2×10 at 16 inches on center and 20 psf spans about 17 ft 6 in in Spruce-Pine-Fir and about 20 ft in Southern Pine, for No. 2 grade.

How far can a 2×12 rafter span?

A 2×12 at 16 inches on center and 20 psf spans about 21 ft 5 in in Spruce-Pine-Fir, and up to about 24 ft 4 in in Southern Pine, for No. 2 grade.

Is the rafter span measured along the slope?

No. The span is the horizontal distance between supports. The sloped length of the board is longer, so do not use it in the span tables.

Which species group is strongest?

Southern Pine and Douglas Fir-Larch generally allow the longest spans. Spruce-Pine-Fir allows the shortest of the four groups on this page.

What does 16 inches on center mean?

It means the centers of neighboring rafters are 16 inches apart. Closer spacing, such as 12 inches, lets each rafter carry less load and span farther.

Do I need rafter ties?

Often yes. Table spans assume the exterior walls are held together by ceiling joists or rafter ties. Without them, a different design is needed. Ask your building official.

Does a 30 psf load change the span?

Yes. Moving from 20 to 30 psf shortens the allowable span by roughly 10 to 12 percent in the reference values used here.

Is my data saved?

No. The calculation runs entirely in your browser and nothing you enter is stored or sent anywhere.

Sources
Reviewed and sourcedClear, comparable resultsReviewed and sourced
Every figure is checked against cited sources and reviewed by a qualified expert.

Related Calculators

Looking for more framing tools?

Explore all framing calculators

This calculator shows reference rafter spans from the AWC Span Tables for Joists and Rafters (2021 edition) for Grade No. 2 lumber. Actual allowable spans depend on the edition of the IRC adopted in your jurisdiction, local amendments, snow and wind loads, ceiling attachment, and lumber grade and moisture content. Always confirm rafter size and span with your local building official and a qualified professional. Spotted an error? Let us know.