Roof Truss Spacing Calculator
Count the roof trusses you need for a building from its length and your truss spacing, 16 or 24 inches on center.
Reviewed by the ToolNestr Editorial Team — July 2026
How the truss spacing calculator works
Roof trusses stand upright along the length of a building at even spacing, much like wall studs but spanning the full roof width as one engineered unit. The count works the same way as a stud layout: divide the building length by the spacing, then add one truss to close the far end of the run.
The calculator reports this as the count of common trusses — the repeating structural trusses along the roof — separate from the gable-end trusses, which sit at each end of the building and support the gable wall rather than carrying the full roof load. Gable-end trusses are typically ordered as two additional, differently designed units on top of the common truss count.
24 inches on center is the most common residential truss spacing, and it is chosen partly because standard 4-foot-wide roof sheathing panels land their edges cleanly on 24-inch centers. Heavier roofing materials, longer truss spans, or specific engineering may call for tighter 16-inch spacing — always follow the truss manufacturer's engineered spacing for your specific design.
Truss spacing, sheathing fastening, and bracing requirements follow IRC Chapter 8 (Roof-Ceiling Construction) and the Truss Plate Institute's ANSI/TPI 1 chord bracing standard.
Enter the length
The building's length along the direction the trusses run.
Pick the spacing
Use the spacing from your engineered truss drawings.
Order common + gable
Add the two gable-end trusses to the common truss count.
The formula explained
Common truss count
= floor(length⁄spacing) + 1. A 40 ft building at 24″: floor(480⁄24) + 1 = 20 + 1 = 21 trusses.
Total with gable ends
21 common + 2 gable-end trusses = 23 trusses total to order.
Worked example
A 60 ft pole barn at 16″ on center.
Where truss spacing matters
New home construction
Most production home builders default to 24 inches on center because it balances truss count, labor, and material cost against sheathing and shingle-nailing patterns that are also engineered around 24-inch spacing.
Pole barns and outbuildings
Agricultural and storage buildings often use wider 4- or 6-foot post spacing tied to truss placement, trading a denser truss layout for fewer, larger trusses supported directly on posts rather than a continuous wall plate.
Heavy snow-load regions
Engineers in high snow-load zones frequently specify 16-inch on-center spacing instead of 24, adding roughly 50% more trusses to keep the load per truss and the deflection under a heavier roof within code limits.
Re-roofing and additions
When tying a new truss run into an existing roof, matching the original spacing keeps the sheathing pattern continuous and avoids mismatched fastening schedules at the seam between old and new framing.
Real-world context
A 28 ft detached garage at standard 24-inch spacing needs floor(336⁄24) + 1 = 15 common trusses, plus the 2 gable-end trusses, for 17 total — a small enough order that most truss manufacturers can build and deliver it in a single flatbed load.
A 50 ft pole barn built at tighter 16-inch spacing for a heavier metal roof and regional snow load needs floor(600⁄16) + 1 = 38 common trusses, for 40 total with gable ends — nearly double what the same building would need at 24 inches, which is a major reason truss spacing is one of the first line items an estimator checks when pricing a heavy-roof building.
An 80 ft commercial pole building at 24-inch spacing needs floor(960⁄24) + 1 = 41 common trusses, for 43 total. At that length, crews typically stage and set trusses in sections rather than one continuous run, and the truss count directly drives the crane or forklift schedule for the day.
Truss count also feeds directly into the material takeoff for everything installed on top of the trusses. Sheathing sheet count, roofing underlayment rolls, and even the hurricane-tie or seismic hardware quantity are typically priced per truss connection, so an accurate truss count early in the estimate keeps the downstream material orders from being padded with guesswork.
Common misconceptions
"Tighter truss spacing is always stronger, so it's a safe default even if not engineered." Not necessarily useful, and not free. Spacing tighter than the engineered design adds unnecessary material and labor cost without a corresponding load-capacity benefit unless the truss design itself was re-engineered for that spacing — always match the spacing on the sealed truss drawings.
"You can count trusses by just dividing length by spacing." That undercounts by one. Dividing length by spacing gives the number of gaps (bays) between trusses, not the number of trusses — you need one more truss than bays to close both ends of the run, which is why the formula adds 1. It is the same off-by-one logic used for fence post counts and stud layouts.
Related calculators
Frequently asked questions
How many roof trusses do I need?
Divide the building length in inches by the truss spacing, then add one for the starting truss at the gable end. A 40-foot building at 24 inches on center needs about 21 trusses.
What is standard truss spacing?
Roof trusses are commonly spaced 24 inches on center for residential roofs, since a truss is an engineered structural unit that can span farther than a stick-framed rafter. Some designs use 16 inches on center for heavier roofing materials or shorter trusses.
Does truss spacing affect sheathing?
Yes. Roof sheathing panels are sized to land their edges on truss centers, so spacing must match a dimension the sheathing divides into evenly — 24 inches on center works cleanly with standard 4x8 sheets.
Are gable-end trusses different?
Yes. The trusses at each gable end are usually a different, flat-topped design that supports the gable wall framing, while the trusses in between are the common structural roof trusses. Order gable-end trusses separately from your truss supplier.
Sources & references
This tool uses standard formulas and reference values from:
- • American Concrete Institute — ACI 318, Building Code Requirements for Structural Concrete. concrete.org
- • ICC — International Residential Code (IRC), span, footing and framing tables. codes.iccsafe.org
- • APA – The Engineered Wood Association, allowable span and load guidance.
Estimates for planning only. Span, load and code values vary by jurisdiction — verify against your local adopted code and a licensed engineer before building.