Home · Construction & Home DIY · Roof Truss Calculator

Roof Truss Calculator

How many roof trusses a building needs at a given spacing, with the top-chord (rafter) length of each truss from the span and pitch.

Your figures

Example result — edit the figures to make it yours

16

Trusses needed

Top chord (rafter) length per truss18 ft

What this calculator does

How many roof trusses a building needs at a given spacing, with the top-chord (rafter) length of each truss from the span and pitch. Every figure is computed from the formula stated below. Densities, waste percentages and coverage rates appear as editable inputs with their planning defaults stated in the method notes — they are assumptions you can adjust to your supplier and your site, not industry standards.

The formula and method

Trusses = ceil(span · 12 / spacing) + 1; rafter length = (span/2) · √(1 + (pitch/12)²) + overhang/12

Trusses are counted like fence posts: one at each end plus one at every spacing interval along the span dimension entered.

Spacing (default 24 in) is the usual truss spacing; 16 in is used for heavier loads.

The rafter length is the top chord from ridge to wall plate plus the overhang added directly along the slope — a simplification that slightly understates a long overhang's true sloped length.

Worked example

With the example inputs this page opens with (building length / truss run (ft) 30, truss spacing (in) 24, roof pitch (rise per 12) 6, overhang (in) 12), the result is 16 — trusses needed. Change any figure and the result updates with the same formula.

Quick reference

Quick reference — varying building length / truss run (ft)
Building length / truss run (ft)Trusses needed
159
2413
3016
37.520
4524
6031

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

Why is there one more truss than the number of spaces?

A truss sits at both gable ends as well as between them. Thirty feet at 24 in spacing makes 15 spaces and needs 16 trusses, including both end (gable) trusses.

Does the truss count set the truss design?

No. Trusses are engineered products; span, pitch, spacing and loads determine the chord and web design, which the truss manufacturer works out. This tool only counts them and estimates chord length.

How does the Roof Truss Calculator work?

How many roof trusses a building needs at a given spacing, with the top-chord (rafter) length of each truss from the span and pitch. Span (ft) · Truss spacing (in) · Pitch · Overhang (in) → Trusses needed. The result updates as you type, and the formula and method on this page state every assumption used, so you can reproduce the calculation by hand.

What inputs does the Roof Truss Calculator need?

Span (ft) · Truss spacing (in) · Pitch · Overhang (in) → Trusses needed. Densities, waste percentages and coverage rates are editable — adjust them to your supplier's figures. Invalid entries produce a plain-language message instead of a misleading number.