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.

Reviewed by the thecalcu.com team ยท Last updated August 1, 2026

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.

Why Use a Roof Truss Calculator?

Miscounting truss quantity on an order can mean expensive delays waiting for a custom fabricator to produce additional units, since trusses aren't typically stocked in bulk like standard lumber. This calculator gives you a quick, reliable count based on your building length and spacing before you finalize an order with a truss manufacturer.

It's also useful for comparing how different spacing choices affect total truss count and, by extension, project cost, tighter spacing means more trusses (and more cost) but greater structural capacity.

Who Should Use This Calculator?

General contractors and builders use this calculator to verify truss quantities on architectural plans before placing orders with truss manufacturers. DIY pole barn or shed builders use it to estimate truss needs for their project's specific dimensions. Truss manufacturers and suppliers use similar spacing-based calculations when quoting custom orders. Architects and designers use it during planning to compare how different spacing choices affect material cost. Building inspectors reference truss spacing against structural plans to verify code compliance during framing inspections.

What Insights Does the Roof Truss Calculator Give You?

The Number of Trusses result is the primary figure, the total count of trusses needed to span your building's length at the chosen spacing, ready to use for a manufacturer order or material budget. The Building Length output echoes your entered dimension for quick reference alongside the truss count, useful when comparing multiple buildings or planning phased construction. Comparing results across different spacing options shows the trade-off between truss count (cost) and structural spacing capacity.

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.
Show formula & methodology โ†“Show less โ†‘

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

How many roof trusses do I need?
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.
What is truss on-center 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.
What truss spacing should I use?
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.
Why do I need one extra truss beyond the simple division?
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.
Are prefabricated trusses better than stick-framed rafters?
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.
Does truss spacing affect roof sheathing requirements?
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.
How does building length affect truss count?
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.
Should I order extra trusses beyond the calculated count?
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