Framing

Roof Truss Calculator

Count the roof trusses for a house, garage, shed or barn from the building length and spacing, split into common and gable end trusses, with hurricane ties and cost.

Quick answer

Trusses = building length (in) ÷ spacing, rounded up, + 1. A 40 ft building at 24 in on center needs 21 trusses.

That is 19 common trusses and 2 gable ends, with about 42 hurricane ties.

Trusses Needed

Results update as you type

Along the ridge, the direction the trusses are spaced. Add overhangs only if trusses sit on them.

24 in is standard for trusses; 16 in for heavy loads or some roofing.

Usually 2 for a gable roof; 0 for a hip roof with hip sets.

From your truss supplier's quote; 0 to skip.

Gable ends cost more because of the vertical studs.

Your result (planning estimate)

Total trusses —
Common trusses—
Gable end trusses—
Hurricane ties (2 per truss)—
Truss cost—

Truss Count Formula

Trusses = building length (ft) × 12 ÷ spacing (in), rounded up, + 1

The "+ 1" adds the truss at the far end, because a row of spaces always has one more truss than spaces. If the length is not an exact multiple of the spacing, the last space is shorter. The two end trusses are usually gable end trusses with vertical studs for sheathing and siding; the rest are common trusses.

Design comes from the truss maker

Trusses are engineered for the span, pitch, snow and wind loads where you build. This calculator counts them for planning and budgeting; the truss supplier's drawings set the real design, the spacing, the bracing and the connectors.

Trusses by Building Length

Includes both gable ends.

Building lengthAt 24 in o.c.At 16 in o.c.Hurricane ties (24 in)
20 ft111622
24 ft131926
30 ft162432
36 ft192838
40 ft213142
50 ft263952
60 ft314662

Truss Tips

  • Brace as you set: temporary bracing is needed until the sheathing and permanent bracing are on.
  • Lift at the panel points the maker marks; never lift a truss flat by its middle.
  • Do not cut or notch a truss member without the engineer's approval.
  • Roof deck next? Use the sheathing calculator.

Truss FAQ

How many trusses do I need?

Divide the building length in inches by the spacing, round up and add one. A 40 ft building at 24 in on center needs 21 trusses.

How many trusses for a 24x24 garage?

13 trusses at 24 in on center (11 common and 2 gable ends), or 19 at 16 in.

How many trusses for a 30 ft building?

16 at 24 in on center, or 24 at 16 in on center.

Are trusses 16 or 24 inches on center?

Most roof trusses are designed for 24 in on center. Some loads, tile roofs or ceiling finishes call for closer spacing.

How many hurricane ties per truss?

Usually one at each bearing end, so 2 per truss. Use the connector your plans and local code call for.

How we built this calculator: trusses = length × 12 ÷ spacing, rounded up, + 1; commons = total − gable ends; hurricane ties = 2 per truss. It is a planning estimate: confirm quantities with your supplier or contractor. Written and checked by the YardsCalculator editorial team.