Homeโ€บCalculatorsโ€บConstructionโ€บRoof Truss Calculator

Roof Truss Calculator

Construction

Calculate the number of roof trusses needed for your building based on its length and truss on-center spacing. Get an instant materials count for framing.

6300
1248

Number of Trusses

21
Building Length
40

This calculator computes your Number of Trusses, Building Length from the values you enter.

Inputs
Building LengthTruss Spacing (on-center)
Outputs
Number of TrussesBuilding Length

What is a Roof Truss?

A Roof Truss Calculator determines how many prefabricated roof trusses you need for a building, based on its length and the chosen on-center truss spacing. Trusses are placed at regular intervals along the building's length, and getting the count right is essential before placing what's often a custom, made-to-order material purchase.

Unlike stick-framed rafters cut on-site, trusses are typically engineered and fabricated off-site to exact specifications, making an accurate initial count important to avoid costly reorders or delays. Pair this calculator with the Rafter Length Calculator if comparing against stick-framing, or the Roof Pitch Calculator for related roof geometry planning.

How to use this Roof Truss calculator

  1. Enter your Building Length in feet.
  2. Enter your Truss Spacing (on-center) in inches โ€” check your engineered truss design or building code for the required spacing.
  3. Review the Number of Trusses result for your material order.
  4. Confirm the exact count and specifications with a truss engineer or manufacturer before finalizing your order.
  5. Coordinate your roof sheathing choice with your truss spacing, since wider spacing may require thicker sheathing.

Formula & Methodology

The calculator divides building length by spacing and adds one truss for the end:

Number of Trusses = โŒˆ(Building Length ร— 12) รท Truss SpacingโŒ‰ + 1

Worked example: For a 40 ft building with 24 in on-center truss spacing:

Number of Trusses = โŒˆ(40 ร— 12) รท 24โŒ‰ + 1 = โŒˆ480 รท 24โŒ‰ + 1 = 20 + 1 = 21 trusses

Frequently Asked Questions

The number of trusses needed depends on your building's length divided by the truss on-center spacing, plus one extra truss to close out the run. This calculator handles that calculation automatically once you enter your building length and chosen spacing.
On-center spacing is the distance measured from the center of one truss to the center of the next, and it's the standard way truss spacing is specified in construction โ€” common spacings are 16, 19.2, and 24 inches on-center, with the choice affecting both material cost and roof load capacity.
24 inch on-center spacing is common for residential roofs with standard roof sheathing thickness, while 16 inch spacing provides more structural capacity for heavier roof loads or longer spans, at the cost of needing more trusses. Check your engineered truss design or local building code for the specific spacing required for your span and load conditions.
Trusses are placed at both ends of the building as well as at each interval along the length, so the number of spacing intervals is always one less than the number of trusses โ€” this calculator adds that extra truss automatically so the count reflects actual trusses needed, not just spacing intervals.
Prefabricated trusses are engineered for consistent load capacity and are often faster to install than stick framing individual rafters, though stick framing (calculated with tools like the [Rafter Length Calculator](/rafter-length-calculator/)) offers more flexibility for custom roof shapes and can sometimes cost less for simple designs.
Yes, wider truss spacing (like 24 inches) generally requires thicker roof sheathing than tighter spacing (like 16 inches) to adequately span between trusses without excessive deflection โ€” check your sheathing manufacturer's span rating table against your chosen truss spacing.
A longer building requires proportionally more trusses for the same spacing, since more spacing intervals fit along a longer run โ€” doubling your building length roughly doubles your truss count for the same on-center spacing.
Trusses are typically custom-engineered and ordered to an exact count based on architectural plans rather than with significant extra margin, since they're expensive to overstock โ€” confirm your exact count with a truss engineer or supplier before finalizing an order.
Also known as
how many trusses do I needtruss spacing calculatorroof truss count calculatortruss quantity calculatorroof framing truss calculator