Skip to content
Omnikalc

Roof truss calculator: number of trusses and top chord length

Enter the building width and length, the truss spacing, the roof pitch and the overhang to get the number of trusses, the rise, the roof angle, the top chord length and the cost.

Updated on
Your inputs
ft

Value out of range

ft

Value out of range

ft

Value out of range

$

Value out of range

Results

Trusses needed

21

Cost of the trusses

$3,990

Rise from the wall plate to the ridge
7.00 ft
Roof angle
26.6 °
Top chord length per side, with overhang
17.33 ft
Chord lumber for all trusses (top and bottom, no webs)
1,316 ft

A roof built with trusses goes up fast, but you must order the right number. This roof truss calculator takes the building width and length, the truss spacing, the roof pitch, the overhang and the price per truss to give the number of trusses, the rise, the roof angle, the top chord length, the chord lumber and the cost.

How the calculation works

  • Trusses needed = building length in inches ÷ spacing, rounded up, plus 1 for the end of the row.
  • Rise to the ridge = half the span × pitch ÷ 12, and the roof angle = arctangent of the pitch ÷ 12.
  • Top chord length = √[(half the span + overhang)² + rise²], with the rise taken to the end of the overhang.
  • Chord lumber = trusses × (2 top chords + the bottom chord), and cost = trusses × price per truss.

Example

A 28 ft wide, 40 ft long building with trusses at 24 inches on center and a 6/12 pitch needs 40 × 12 ÷ 24 + 1 = 21 trusses. The rise to the ridge is 14 × 6 ÷ 12 = 7 ft, at an angle of 26.6°. With a 1.5 ft overhang, each top chord is 17.33 ft long, so the chord lumber is 21 × (2 × 17.33 + 28) = 1,316 ft. At $190 per truss, the trusses cost $3,990.

Why it matters

Trusses are made in a factory to order, so a missing or extra truss means a delay or a wasted cost. Knowing the count, the rise and the chord length before you order lets you compare quotes, check the height of the roof against local limits and plan the crane or lifting. The chord lumber figure helps compare site-built framing with factory trusses.

Good to know

The chord lumber figure ignores the web members, the gussets and the waste, so it is a lower bound for site framing. Engineered trusses are stamped for specific loads, and the spacing, span and pitch on the drawing must match your plan. Roofs with hips, dormers or an attic need special trusses, and the count here assumes a simple gable roof. Bracing is required during installation to keep trusses vertical, and the lateral bracing plan comes with the truss package. Local codes set snow and wind loads.

The roofing calculator finds the area, squares and shingles, the rafter length calculator frames a stick-built roof and the floor joists calculator covers the joists below.

Frequently asked questions

How many trusses do I need?

Divide the length of the building by the spacing and round up, then add one. At 24 inches on center, a 40 ft building needs 21 trusses. Gable ends sometimes use special end trusses, which are counted in the total.

What spacing should I use?

Residential trusses are usually 24 inches on center, and 16 or 19.2 inches are used for heavy snow, heavy roofing or short spans. The truss designer states the maximum spacing.

What is the roof pitch?

It is the rise in inches for every 12 inches of horizontal run. A 6/12 roof rises 6 inches per foot, about 26.6 degrees. Steeper roofs shed snow better but cost more and need more material.

Can I design the truss myself?

No. Roof trusses are engineered, and the manufacturer provides a stamped drawing for the span, the loads and the local snow and wind codes. This tool only estimates quantities and cost.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.