Roof Truss Calculator

Roof Truss Calculator

Growing AI Skill PRO

Enter Calculation

Formula

Trusses=⌈Roof Length (ft)Truss Spacing (ft)⌉+1\text{Trusses} = \left\lceil \frac{\text{Roof Length (ft)}}{\text{Truss Spacing (ft)}} \right\rceil + 1
Usage stats

Advertisement

Results

Trusses Required
21
truss units (including both end gables)
Roof length 40 ft
Truss spacing 2 ft
Number of bays 20

Report an error on this page

What Is a Roof Truss Calculator?

A roof truss calculator estimates how many prefabricated roof trusses you need to frame a roof of a given length. Trusses are installed at a regular on-center spacing along the building, and this tool counts the trusses required including one at each end.

Pitched roof with a row of evenly spaced triangular trusses
Roof trusses are the evenly spaced triangular frames that support the roof.

How to Use It

Enter the roof length (the distance the trusses span across, in feet) and the truss spacing (the on-center distance between trusses — commonly 2 ft / 24 in). The calculator divides length by spacing, rounds up to a whole number of bays, then adds one because trusses sit at both ends of every bay.

The Formula Explained

The core equation is $$\text{Trusses} = \left\lceil \frac{\text{Roof Length (ft)}}{\text{Truss Spacing (ft)}} \right\rceil + 1$$ Dividing length by spacing gives the number of gaps (bays). Rounding up ensures the last partial bay still gets a truss. Adding 1 accounts for the fence-post effect: if you have N gaps, you need N+1 posts (trusses) to bound them.

Advertisement
Top view of roof length divided by truss spacing with end truss highlighted
Trusses are placed at on-center spacing along the roof length, plus one extra truss at the end.

Worked Example

For a 40 ft roof with trusses spaced 2 ft on center: \(40 \div 2 = 20\) bays. Adding 1 gives 21 trusses. If the roof were 41 ft, \(\left\lceil 41 \div 2 \right\rceil = 21\) bays, so you would need 22 trusses.

Truss Count by Roof Length and Spacing

Each value below uses the calculator's formula: \(\text{Trusses} = \lceil \text{Length} \div \text{Spacing} \rceil + 1\). The length and spacing are both in feet. The rounded-up bay count is the number of gaps between trusses, and the +1 adds the final truss at the end of the roof. Common on-center spacings are 16 in (entered as 1.333 ft), 19.2 in (1.6 ft) and 24 in (2 ft).

Roof length (ft) 16 in o.c. (1.333 ft) 19.2 in o.c. (1.6 ft) 24 in o.c. (2 ft)
20 17 14 11
30 24 20 16
40 32 26 21
50 39 33 26
60 47 39 31

Worked example: a 30 ft roof at 2 ft spacing gives \(\lceil 30 \div 2 \rceil + 1 = 15 + 1 = 16\) trusses. A 50 ft roof at 1.6 ft spacing gives \(\lceil 50 \div 1.6 \rceil + 1 = \lceil 31.25 \rceil + 1 = 32 + 1 = 33\) trusses.

Note on rounding: 16 in is exactly 1.3333… ft. Entering 1.333 makes the quotient slightly larger, so a length that divides evenly (20, 40 or 60 ft) rounds up one extra bay. With exact 16 in spacing the counts would be 16, 24, 31, 39 and 46 for 20, 30, 40, 50 and 60 ft. Check which end-truss layout your supplier uses before you order.

Advertisement

Practical Ordering Tips

  • Confirm against the truss drawings. Treat this result as an estimate. The manufacturer's stamped layout drawings determine the final count, truss types and positions.
  • Add special trusses. The basic formula covers a simple gable run only. Hips, valleys, girder trusses, overhangs and gable end frames (or flat-top end trusses) are usually extra or substituted pieces. Add them separately.
  • Convert inches to feet first. Enter spacing in feet: 16 in ≈ 1.33 ft, 19.2 in = 1.6 ft, 24 in = 2 ft. Entering 16 or 24 directly will give a wrong, far too small count.
  • Consider a spare. Trusses can be damaged in transit or while being lifted. Some builders add one extra, or confirm the supplier's replacement policy.
  • Check code and engineering. Spacing depends on roof load (snow, wind, roofing weight), truss design and sheathing or ceiling material. Local building codes and the truss engineer set the allowed spacing. Do not pick a wider spacing just to reduce the count.

This is general information, not professional engineering advice. A licensed engineer or truss manufacturer should confirm the design for your project.

FAQ

Does this include gable-end trusses? Yes — the +1 ensures a truss sits at each end of the roof.

What spacing should I use? 24 inches (2 ft) on center is standard for residential roofs, but 16 in (1.33 ft) is used for heavier loads. Always confirm with your structural engineer and local building code.

Is this an exact material order? No. It is a planning estimate. Final counts should follow stamped truss-manufacturer layout drawings and account for hips, valleys, and overhangs.

Last updated:

Most popular in Industry-Specific

View all Industry-Specific calculators