Quick answer Rafters are usually spaced 16 or 24 inches on center, and span is measured as the horizontal distance between supports, not the length along the slope. A 40 ft building needs 31 rafters per side at 16 in and 21 at 24 in. Pick the lumber from the span tables in IRC R802.4 or the American Wood Council's span calculator, which use the span, spacing, species, grade and loads.
Spacing and span, defined
Rafter spacing is the distance from the center of one rafter to the center of the next, written as "16 in on center" or "16 o.c.". Rafter span is the horizontal distance between the supports a rafter bridges, usually the outside wall plate and the ridge line or a purlin brace. It is measured along the level, as if you looked straight down on the roof.
The distinction matters because the length of a rafter along the slope is longer than its span. A rafter on a 6:12 roof that spans 14 ft horizontally is 15.65 ft long. Span tables use the span. Lumber lengths and cuts use the length. Mixing them up leads to either a rafter that is too small or a board that is too short, and they are different numbers.
| Span | 4:12 | 6:12 | 8:12 | 12:12 |
|---|---|---|---|---|
| 8 ft | 8.43 ft | 8.94 ft | 9.61 ft | 11.31 ft |
| 10 ft | 10.54 ft | 11.18 ft | 12.02 ft | 14.14 ft |
| 12 ft | 12.65 ft | 13.42 ft | 14.42 ft | 16.97 ft |
| 14 ft | 14.76 ft | 15.65 ft | 16.83 ft | 19.8 ft |
| 16 ft | 16.87 ft | 17.89 ft | 19.23 ft | 22.63 ft |
The numbers in the table are the span times the pitch multiplier, and exclude the overhang. The rafter calculator adds the overhang and the ridge deduction.
Why 16 and 24 inches?
Spacing exists because the sheathing, the lumber and the loads all work together. Structural panels come 48 inches wide, and both 16 and 24 divide 48 evenly, so every panel edge lands on a rafter. Roof sheathing carries a span rating, written as two numbers such as 24/16, where the first is the maximum rafter spacing in inches for roofs. A rating of 24/16 sheathing therefore works on rafters at 24 in or closer.
The second reason is cost. Doubling the spacing from 12 to 24 inches halves the rafters but each one carries twice the load, so it needs a deeper or stronger board or a shorter span. The common choices are:
- 12 in on center. Rare in new work, used for short spans or heavy roof coverings such as tile.
- 16 in on center. The traditional spacing for stick-framed roofs, with the most common lumber sizes.
- 19.2 in on center. Five spaces in 8 ft, used by some builders to save material.
- 24 in on center. Standard for trusses and for advanced framing; it uses the least lumber but needs the most careful sizing.
In the UK and Europe rafters are normally spaced at 400 mm or 600 mm centers, which are close to 16 and 24 in. Sizes come from span tables published for the national codes.
How many rafters you need
The count comes from the length of the building and the spacing. One rafter sits at the start of the run, and one more is needed for each spacing after it, rounded up:
rafters per side = the whole number above (length ÷ spacing) + 1 total commons = rafters per side × 2 (a gable roof, two sides)
For a 40 ft building, 480 in ÷ 16 = 30, so 31 rafters per side and 62 in all. At 24 in the figure is 480 ÷ 24 = 20, so 21 per side and 42 in all. The extra rafter at the end is the one that sits on the gable end wall.
| Length | 12 in | 16 in | 19.2 in | 24 in | Both sides: 16 in / 24 in |
|---|---|---|---|---|---|
| 20 ft | 21 | 16 | 14 | 11 | 32 / 22 |
| 24 ft | 25 | 19 | 16 | 13 | 38 / 26 |
| 30 ft | 31 | 24 | 20 | 16 | 48 / 32 |
| 36 ft | 37 | 28 | 24 | 19 | 56 / 38 |
| 40 ft | 41 | 31 | 26 | 21 | 62 / 42 |
| 48 ft | 49 | 37 | 31 | 25 | 74 / 50 |
The table counts commons only. Hip roofs add hip and jack rafters, and openings for skylights or chimneys add headers and doubled rafters. Add 5% to 10% for crown and defect, since you will cull bad boards. For trusses the count is the same, but trusses are engineered and set by the maker.
Measuring the span from the plan
Rafter span is not the building width. For a gable roof with a ridge board and rafters that rest on the exterior walls, the span is half the building width, measured from the outside of the wall plate (or the inside of the wall, depending on the table) to the center of the ridge. If a purlin or brace supports the middle, the span is the distance between supports.
building width 28 ft, rafters meet at a ridge: horizontal span = 28 ÷ 2 = 14 ft rafter length at 6:12 = 14 × 1.118 = 15.65 ft with a 1 ft overhang and a 1½ in ridge board: a 2×10 rafter needs a 18 ft board
The rafter calculator takes the run, the pitch, the overhang and the ridge thickness, and returns the length, the cuts and the stock size of board you need. Use how to cut rafters for the layout of the cuts.
Rafter ties, collar ties and what keeps the walls in
A pitched roof pushes outward at the bottom of each rafter. Rafter ties, usually ceiling joists nailed to the rafters near the plate, hold the walls together. Under the IRC, rafter ties are installed in the lower third of the attic height. Collar ties near the top of the rafters stop them from lifting in wind, and the code asks for them in the upper third. A ridge board does not carry load; if you want an open vaulted ceiling you need a structural ridge beam, or the walls will spread.
Ties, ridge beams and rafter size are structural. The table and calculator can size a simple gable, but get an engineer's review for vaulted ceilings, wide spans or heavy snow.
Sizing the lumber
Rafter size depends on the span, spacing, species and grade of the lumber, and the loads on the roof. The IRC provides span tables for common conditions in Chapter 8 (R802.4), and the American Wood Council's span calculator gives the same answers for other cases. Both use the horizontal span. To read them you need four inputs:
- The horizontal span of the rafter, in feet and inches.
- The spacing, 12, 16, 19.2 or 24 in.
- The species and grade of the lumber, as stamped on the board.
- The roof loads: live load or snow load, the dead load of the covering, and whether the ceiling is attached to the rafters.
Closer spacing allows a longer span from the same board. If a table does not give a long enough span at 24 in, try 16 in before you move to a deeper board. Both options add cost: one needs more boards, the other a deeper section. A birdsmouth cut takes depth from the rafter, and R802.7.1 limits a notch to one quarter of the depth of the board, so a 2×6 rafter cannot take a deep seat cut. The cutting guide covers that check.
Laying out the spacing on the plates
- Mark the first rafter at the gable end, then mark every spacing along the top plate with a tape and a square.
- Start from the end that must line up with a sheathing edge. If the building length is not a multiple of the spacing, the last spacing is shorter, and that is fine.
- Mark both sides of each rafter position, with an X on the side the rafter sits on, so the board does not end up on the wrong side of the line.
- Transfer the marks to the opposite plate by measuring from the same end. A tape that starts on the same end avoids the build-up of small errors.
- Check the first rafter pair with a level, and check the ridge height before setting the rest.
Mistakes to avoid
- Using the slope length as the span. Tables use the horizontal projection.
- Ignoring the ceiling attachment. Rafters with no ties behave differently, and the table reflects that.
- Picking a size from a rule of thumb. Loads, grade and species change the answer.
- Notching deeper than a quarter. The birdsmouth must leave enough depth.
- Forgetting snow. Snow load can be higher than the live load the table assumes.
A worked count: a 28 ft building
Rafters run the length of the building along each side of the ridge. A 28 ft wall at 16 in on center needs 22 rafters per side: 28 × 12 ÷ 16 = 21 spaces, plus one to close the last space. That makes 44 rafters for both sides. At 24 in it is 15 per side, or 30 in total, which is 14 fewer pieces to buy, cut and nail. Add rafters at gable ends or where the plan calls for doubled members.
Wider spacing saves lumber but moves load onto each rafter and onto the roof sheathing between them. Only use 24 in where the span table for your lumber, species and load allows it.
Spacing and roof sheathing
The sheathing spans between the rafters, so its rating limits the spacing. Structural panels carry a span rating stamp such as 32/16 or 24/0. The first number is the maximum rafter spacing in inches when the panel is used for roofs, and the second is the maximum joist spacing when used for floors. Check the stamp on the panel against the spacing you plan. Thin sheathing on wide rafters sags between supports, and the shingles show it as waves over a few years.
Edge support matters too. Panels meeting between rafters often need clips or blocking, which is another reason to keep the spacing tight on a roof with heavy snow.
Rafters or trusses?
A stick-framed roof uses rafters cut on site. A truss is an engineered frame built in a plant, with webs that carry the load, so it can span farther with smaller lumber. Trusses are usually placed at 24 in on center or as the designer specifies. They are not cut or altered on site, and a truss cannot be notched or have a web removed to make attic space without the engineer's approval. If the plan shows trusses, the spacing and the bearing points are on the truss drawings and not in a rafter table.
Sources and further reading
- International Residential Code 2021, Chapter 8: Roof-Ceiling Construction (R802.7.1 notches)
- American Wood Council, Span Options Calculator for Wood Joists and Rafters
This guide does not print span tables, because they depend on species, grade and loads. Use IRC R802.4 or the AWC calculator. Rafter tie and collar tie locations are from IRC R802.3; check the edition your authority enforces.