A roof engineering monograph
Essay · 6 min read

Roof Truss Calculator: How Many Trusses You Need

Find out how many roof trusses a building needs with the count formula, a worked example, and a table across common lengths and spacing.

RoofHelm Content Team ·
Rows of wooden roof trusses set in place during construction under a clear blue sky.
Photo by Ulrick Trappschuh on Pexels
Key takeaways
  • Common truss count = ceil(building length / spacing) + 1, then add 2 more if the roof has gable ends.
  • A 30-ft building at 24-inch spacing with gable ends needs 18 total trusses: 16 common trusses plus 2 gable-end trusses.
  • 16-inch spacing suits heavier roof loads and shingle roofing; 24-inch spacing suits lighter loads and metal roofing, but usually needs thicker roof sheathing to hold the same span rating.
  • Wider spacing means fewer trusses and lower material cost, but always confirm the sheathing span rating before switching from 16 to 24-inch on-center.
  • Gable-end trusses close off the flat vertical ends of the roof and are counted separately from the load-bearing common trusses in the middle.

Order too few trusses and a delivery gets held up mid-build waiting on a second truck; order too many and the extras sit in a yard as wasted cost. The count comes down to one formula: how many times your spacing fits into the building length, plus a starting truss, plus two more if the roof needs gable ends. This guide walks through that formula, a worked example that matches the roof truss calculator exactly, and a full table across common building lengths and spacing options.

The Truss Count Formula

Trusses are set at a regular interval called the spacing, measured on-center (o.c.), commonly 16, 19.2, or 24 inches. The number of common, load-bearing trusses across a building of a given length works out to: commonTrusses = ceil(length / spacing) + 1, where the spacing is converted to the same unit as the length (feet) before dividing, and ceil rounds any fractional result up to the next whole truss.

The plus-one accounts for the starting truss at one end of the building; without it, the formula would only count the gaps between trusses, not the trusses themselves. If the roof has gable ends, meaning the flat vertical wall sections at each end rather than the roof simply sloping straight down to a common truss, add 2 more trusses to close those ends: totalTrusses = commonTrusses + 2 (or + 0 if there are no gable ends).

Worked Example: 30-ft Building at 24-Inch O.C.

Take a 30-ft-long building, trusses spaced at 24 inches on-center, with gable ends on both sides. First convert the spacing to feet: 24 inches / 12 = 2 ft. Divide the building length by that spacing: 30 / 2 = 15 exactly, so ceil(15) = 15. Add 1 for the starting truss: 15 + 1 = 16 common trusses.

Since this building has gable ends, add 2 more: 16 + 2 = 18 total trusses. A second example without gable ends: a 40-ft building at 16-inch o.c. First, spacing in feet: 16 / 12 = 1.333 ft. Then 40 / 1.333 = 30 exactly, so ceil(30) = 30, plus 1 for the starting truss gives 31 common trusses, and 31 total since there are no gable ends to add.

A third example shows how a non-round spacing rounds up: a 20-ft building at 19.2-inch o.c., no gable ends. Spacing in feet: 19.2 / 12 = 1.6 ft. Then 20 / 1.6 = 12.5, which is not a whole number, so ceil(12.5) = 13. Add 1 for the starting truss: 13 + 1 = 14 common trusses, and 14 total. That extra truss from rounding up, rather than just truncating to 12, is the whole reason the ceiling function matters: a building always needs a full truss to close the last partial bay, never a fraction of one.

Why Spacing Choice Matters

16-inch on-center spacing puts more trusses across the same building length, which increases material and labor cost but gives the roof sheathing shorter unsupported spans between trusses. That makes 16-inch spacing the safer default for heavier roofing materials like asphalt shingles, tile, or slate, and for regions with heavy snow loads where the roof sheathing itself carries significant weight between supports.

24-inch on-center spacing uses roughly a third fewer trusses across the same length, which cuts material cost and speeds up the set, and is common under lighter roofing like standing-seam metal. The tradeoff is a longer unsupported span for the sheathing between trusses, so 24-inch spacing typically needs thicker roof sheathing, often 5/8-inch instead of 1/2-inch panels, to hold the same span rating a 16-inch layout would achieve with thinner panels. 19.2-inch spacing sits between the two and shows up as a middle-ground option on some engineered designs.

What Gable-End Trusses Add

A gable-end truss looks different from the common trusses in the field. Instead of open webbing, it usually has vertical studs spaced to match the wall framing below, since it doubles as both a structural roof truss and the framing for the flat, vertical wall at each end of the building. That is why it gets counted separately in the formula: it is not spaced along the roof length like the common trusses, it closes off each end.

Not every roof has gable ends. Hip roofs, where all four sides slope down to the eaves instead of two ends staying vertical, do not use gable-end trusses at all, and the truss layout for a hip roof follows a different, more complex pattern with hip and jack trusses that this formula does not cover.

Reading a Truss Layout Drawing

A truss manufacturer's layout drawing shows every truss position along the building length, each labeled and numbered, along with its exact spacing from the next one. The count this guide's formula produces should match that drawing's truss count once the manufacturer finalizes the design, though the manufacturer's engineer may adjust spacing slightly near openings, valleys, or load-bearing points to satisfy the specific loads on that section of roof.

It helps to bring your own count, from the formula or the calculator, to the conversation with the truss supplier, both as a sanity check on their quote and as a way to catch a mismatch early, before delivery, if the supplier's layout assumes a different spacing than what you specified.

Does Truss Spacing Affect Roof Strength?

Truss spacing affects how much of the roof's total load each individual truss carries, not the strength of any single truss itself. Closer spacing (16 inches) spreads the same total roof load across more trusses, so each one carries less; wider spacing (24 inches) spreads the same total load across fewer trusses, so each one carries more and, along with the sheathing between them, has to be engineered accordingly. A truss designed for 24-inch spacing is not a weaker version of a 16-inch truss, it is a different design built to carry a larger tributary load.

How Much Does a Roof Truss Cost?

Truss pricing varies widely by span, pitch, engineering complexity, lumber market conditions, and region, so there is no single reliable number to quote here. What stays consistent is the relationship in this guide: total truss cost scales with total truss count, and total truss count scales with building length divided by spacing, so widening spacing from 16 to 24 inches (where the sheathing and load conditions allow it) directly reduces the truss line item on a bid. Get a manufacturer quote for exact pricing once your spacing and building length are set.

Delivery and crane time add to the total beyond the per-truss price, and both scale more with the number of deliveries and the complexity of the set than with truss count alone. A single delivery of 18 trusses for a simple gable roof is usually cheaper per truss to set than the same 18 trusses split across two deliveries because of a scheduling change, which is one more reason to lock in your final spacing and count before the manufacturer starts production.

If you are still deciding between a truss roof and a stick-framed rafter roof, see rafter vs truss for a full comparison. Once you have settled on trusses, confirm your exact count with the roof truss calculator before placing an order.

Building Length16 in o.c.19.2 in o.c.24 in o.c.
20 ft161411
30 ft242016
40 ft312621
50 ft393326
Common truss count by building length and spacing (add 2 more for gable ends)
Run the numbers

Get your design roof snow load in seconds with the free ASCE 7-22 calculator.

Open the calculator

Frequently asked

01What's the difference between 16-inch and 24-inch on-center spacing?+

16-inch spacing places more trusses across a given building length, which increases cost but keeps spans between trusses shorter, better suited to heavier roofing and snow loads. 24-inch spacing uses fewer trusses and costs less, but usually needs thicker sheathing to hold the same span rating.

02Do hip roofs use the same truss count formula?+

No. This formula covers gable roofs with common trusses running the length of the building. Hip roofs use a different layout with hip and jack trusses at the sloped ends, which a truss manufacturer engineers as part of a full roof package.

03Can I mix truss spacing on one roof?+

It is unusual but not impossible on a complex design, for example a main roof at 24-inch spacing with a porch or dormer section at 16-inch spacing to match a different sheathing or load requirement. Most residential roofs use one consistent spacing throughout for simplicity.

Sources

  1. 1. National Association of Home Builders (NAHB)
  2. 2. APA: The Engineered Wood Association
  3. 3. International Code Council (ICC)

Related