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.
Related tools
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.