sodcalculator

08 Everyday Math

Truss Spacing Calculator: How to Find It

Tag 08-4674 · Updated · Standard formula, shown below

Number of trusses 21 trusses
Spacing intervals
20
Result
Building length
40 ft
You entered
Truss spacing (o.c.)
24 in
You entered
You enter
Building length, Truss spacing (o.c.)
You get
Number of trusses, Spacing intervals
Rounding
0 dp

A truss spacing calculator works out the number of trusses you need for a roof or floor by taking the building length and the centre-to-centre spacing you plan to use. You enter the length of the building and the desired spacing (usually 12, 16, or 24 inches), and it returns the number of trusses required, including the end trusses. This article explains the simple arithmetic behind the calculation, how to choose a spacing, and what to watch out for so you order the right quantity.

Formula

The number of trusses is found with this formula:

Number of trusses = ⌈(L × 12) / S⌉ + 1

Where:

  • L = building length in feet (the dimension parallel to the trusses)
  • S = truss spacing in inches, measured centre-to-centre (o.c.)
  • ⌈ ⌉ = ceiling function, meaning round up to the next whole number
  • +1 = the extra truss at the far end of the building

The factor 12 converts the length from feet to inches so both units match. The result is the total number of trusses to order, counting the two end trusses.

Worked Example

Using the default values from the calculator above: building length = 40 ft, spacing = 24 in o.c.

  1. Convert length to inches: 40 × 12 = 480 inches.
  2. Divide by spacing: 480 ÷ 24 = 20 intervals.
  3. Round up if needed: 20 is already a whole number, so it stays 20.
  4. Add the end truss: 20 + 1 = 21 trusses.

The calculator returns 21 trusses, which matches the manual calculation. If the length were 40 ft and the spacing 16 in, you would get (480 ÷ 16) = 30 intervals, plus 1 = 31 trusses.

Why Truss Spacing Matters

Truss spacing determines how much load each truss carries and how many trusses you need to buy. Closer spacing (12 or 16 inches) means more trusses, each carrying less load, which allows lighter lumber in some members. Wider spacing (24 inches) uses fewer trusses but requires thicker sheathing or purlins to span the gaps. The spacing also affects the size of the ceiling joists, the type of insulation you can fit between trusses, and the overall cost of the roof system.

Residential roof trusses are most commonly spaced at 24 inches on centre. Floor trusses, which carry heavier loads, are often spaced at 19.2 or 24 inches, depending on the floor sheathing thickness. Pole barns and agricultural buildings might use 48-inch spacing with heavier trusses and purlins. The spacing is chosen by the structural engineer or truss manufacturer based on local snow loads, wind loads, and the strength of the sheathing.

How to Choose the Right Spacing

If you are designing a new building, you typically start with the sheathing or decking material. For example, ½-inch plywood or OSB is rated to span 24 inches on centre for roof sheathing, so 24-inch truss spacing is common. If you plan to use �-inch sheathing, you might still use 24 inches, but if you want to reduce the number of trusses, you need to check the sheathing span rating. For floors, the subfloor thickness and the live load rating determine the maximum spacing.

Insulation is another factor. Standard fiberglass batts come in widths for 16-inch or 24-inch spacing, so choosing a spacing that matches the insulation width avoids cutting. If you plan to use spray foam or blown-in insulation, spacing is less critical. The truss manufacturer can also recommend a spacing based on the specific truss design and the loads in your area.

Common Mistakes and Misconceptions

A frequent error is forgetting to add the end truss. The formula gives the number of spaces between trusses, and you need one more truss than spaces. For example, a 40-foot building with 24-inch spacing has 20 spaces, but you need 21 trusses. Another mistake is mixing units: if you enter the length in feet and the spacing in inches without converting, you will get a wildly wrong number. Always convert to the same unit before dividing.

Some people think that truss spacing is the same as the distance between the outer faces of the trusses, but it is actually measured centre-to-centre. The difference is small (about 1½ inches per truss), but over a long roof it can shift the position of the last truss by several inches. Always measure from the centre of one truss to the centre of the next.

Another misconception is that you can simply divide the length by the spacing and round down. That would leave you one truss short. Always round up to the next whole number of intervals, then add the end truss. If your calculation gives 20.3 intervals, you need 21 intervals, which means 22 trusses.

How to Read the Result

The calculator returns the total number of trusses, which is what you order from the manufacturer. The result includes both end trusses, so if you are buying trusses for a gable roof, you will have two gable-end trusses and the rest are common trusses. If you have a hip roof, you will need hip and jack trusses, which are not counted here—this calculator only gives the number of common trusses for a simple rectangular building.

The result is a whole number, so you cannot order a fraction of a truss. The ceiling function in the formula ensures that you always round up. For example, a 30-foot building with 24-inch spacing gives 15 intervals, plus 1 = 16 trusses. A 30-foot building with 16-inch spacing gives 22.5 intervals, rounded up to 23, plus 1 = 24 trusses.

Limits of the Calculator

This calculator assumes a simple rectangular building with trusses running perpendicular to the length. It does not account for overhangs, gable ends, or complex roof shapes. If your building has a hip roof, dormers, or a non-rectangular footprint, you will need to consult a truss designer. The calculator also assumes that the first truss is placed at the very end of the building. In practice, you might set the first truss a few inches from the end to allow for a gable overhang, which would change the count slightly.

The spacing you enter must be a realistic value. Most residential trusses are spaced at 12, 16, 19.2, or 24 inches. Spacing wider than 24 inches is rare for roofs and requires special engineering. The calculator allows up to 120 inches, but that is only for unusual agricultural or temporary structures. Always verify the final truss count with your truss manufacturer or a structural engineer before ordering.

Frequently Asked Questions

Do I need to add one truss for the end?

Yes. The calculation gives the number of spaces between trusses, and you need one more truss than spaces. For a 40-foot building with 24-inch spacing, you have 20 spaces, so you need 21 trusses. The end truss is the one at the far gable.

Can I use 24-inch spacing for floor trusses?

Yes, but only if the floor sheathing is rated for that span. Most ¾-inch plywood or OSB is rated for 24-inch on-centre floor joists, but you should check the sheathing manufacturer’s span rating. Heavier loads, such as tile or a large aquarium, may require 16-inch spacing.

What is the difference between 16-inch and 24-inch spacing?

Sixteen-inch spacing uses more trusses (about 50% more) but allows lighter sheathing and smaller lumber in some members. Twenty-four-inch spacing uses fewer trusses, reducing material cost, but requires thicker sheathing or additional purlins. The choice depends on your budget, insulation, and local building codes.

Does the calculator account for gable overhangs?

No. The calculator assumes the first truss is at the very end of the building. If you have a gable overhang, you may need to set the first truss a few inches inside, which could change the count. Consult your truss manufacturer for exact placement.

Can I use this for a hip roof?

No. Hip roofs have hip and jack trusses that are shorter and angled. This calculator only works for simple gable or shed roofs with common trusses all the same size. For a hip roof, you need a truss layout from a manufacturer.

What if my building length is not a multiple of the spacing?

You round up to the next whole number of intervals. For example, a 30-foot building with 16-inch spacing gives 22.5 intervals, so you round up to 23 intervals and then add 1 for the end truss, giving 24 trusses. The last interval will be slightly less than 16 inches, which is fine.

Related

Formula used
in l | Building length | ft | 40 | 0 | 100000
in s | Truss spacing (o.c.) | in | 24 | 6 | 120
out n | Number of trusses | trusses | ceil(round(l * 12 / s, 6)) + 1 | 0
out span_count | Spacing intervals | - | ceil(round(l * 12 / s, 6)) | 0

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More in this bed

The whole Everyday Math bed →