# Roof Truss Spacing & Count Calculator

> Count the roof trusses a building length takes at your spacing, the gable-end trusses among them, a wing's trusses and the bracing's lineal run.

Page: https://craftquantities.com/calculators/materials-quantities/roof-truss-spacing-calculator/ (calculator). This is the page's Markdown copy; the HTML page is the canonical version.

Version 1.0.1, sources checked 2026-10-11, 3 published test vectors.

Trusses needed: 21 trusses for Building Length 39 ft and Truss Spacing 24 in, the page's opening figures; on the metric page, 12 m and 609.6 mm give 21 trusses. Sources are cited below.

## Key facts

- Truss count = ⌈run ÷ spacing⌉ + 1: dividing the run by the on-center spacing counts the gaps, rounding up keeps every gap at or under that spacing, and the extra truss closes the far end. ([Craft Quantities truss count formula](https://craftquantities.com/methodology/spacing-pitch-and-count/): Truss count = ceil(building length ÷ spacing) + 1, the standard method for spacing repetitive framing members along a run)
- A 39 ft (11.9 m) run at 24 in (610 mm) on center takes 21 trusses: 468 in ÷ 24 in is 19.5 gaps, rounded up to 20, plus one. ([Craft Quantities truss count, 24 in centres](https://craftquantities.com/methodology/spacing-pitch-and-count/): Truss count = ceil(building length ÷ spacing) + 1, the standard method for spacing repetitive framing members along a run)
- The same 39 ft (11.9 m) run at 16 in (406 mm) on center takes 31 trusses, ten more than at 24 in (610 mm): 468 in ÷ 16 in is 29.25 gaps, rounded up to 30, plus one. ([Craft Quantities truss count, 16 in centres](https://craftquantities.com/methodology/spacing-pitch-and-count/): Truss count = ceil(building length ÷ spacing) + 1, the standard method for spacing repetitive framing members along a run)

## Inputs

A length, area or volume is entered with its unit. The page opens on the values below: a metric reader sees the metric column, a US customary reader the other.

| Input | id | Opens at (metric) | Opens at (US customary) | Accepts |
|---|---|---|---|---|
| Building Length | `buildingLength` | 12 m | 39 ft | mm, cm, m, in, ft, yd; range 0.01–60 m |
| Truss Spacing (o.c.) | `trussSpacing` | 609.6 mm | 24 in | mm, cm, m, in, ft, yd; range 0.3048–0.6096 m |
| Gable-End Trusses Among Them | `gableEnds` | 2 | 2 | range 0–4 |
| Lateral Bracing Lines | `bracingLines` | 2 | 2 | range 0–20 |
| First Wing's Length (0 for none) | `wing1Projection` | 0 m | 0 ft | mm, cm, m, in, ft, yd; range 0–40 m |
| Second Wing's Length (0 for none) | `wing2Projection` | 0 m | 0 ft | mm, cm, m, in, ft, yd; range 0–40 m |

- **Building Length**: The length of the building run the trusses are spaced along.
- **Truss Spacing (o.c.)**: The on-center spacing between trusses, per your design (commonly 24 in / 610 mm for roof trusses).
- **Gable-End Trusses Among Them**: How many of the counted positions are gable ends: 2 on a gable roof, 0 on a hip roof.
- **Lateral Bracing Lines**: How many runs of continuous lateral bracing the truss drawings call for; two is an example.
- **First Wing's Length (0 for none)**: From a wing's end wall to the main roof's wall line, for an L, T or U-shaped house.
- **Second Wing's Length (0 for none)**: A second wing's length to the main wall line; 0 for none.

## The answer on the opening values

Worked exactly as the page works it, on the values each system opens on.

### Metric

| Result | Value |
|---|---|
| **Trusses needed** | 21 trusses |
| Whole truss bays along the run | 19 |
| Short bay left at one end | 417.6 mm |
| Common trusses | 19 trusses |
| Gable-end trusses | 2 trusses |
| Lateral bracing, lineal | 24 m |

### US customary

| Result | Value |
|---|---|
| **Trusses needed** | 21 trusses |
| Whole truss bays along the run | 19 |
| Short bay left at one end | 12 in |
| Common trusses | 19 trusses |
| Gable-end trusses | 2 trusses |
| Lateral bracing, lineal | 78 ft |

## Formula with your numbers

1. **Lay the spacing along the run**: 39 ft ÷ 24 in = 19 whole bays and a short bay of 12 in
2. **Round up and close the run**: ⌈39 ft ÷ 24 in⌉ bays + 1 truss on the main run, plus a truss per spacing along any wing
3. **Split out the gable ends**: 19 trusses common + 2 trusses gable-end = 21 trusses

Worked on the figures the page opens on; the page re-works each step on the reader's own.

## How to calculate roof truss spacing & count in 3 steps

1. **Lay the spacing along the run**: Divide the run the trusses are spaced along by the on-center spacing from the truss design: the whole number is the full bays, and the remainder is the short bay left at one end.
2. **Round up and close the run**: Round the bays up so that no gap exceeds the spacing, add the one truss that closes the far end, and add each wing's trusses from its end wall inward.
3. **Split out the gable ends**: The gable-end trusses stand at the first and last positions, so they are part of the count, ordered as their own line.

## Trusses for common building lengths

Page defaults, not your figures above.

| Building length | Trusses needed |
|---|---|
| 24 ft (7.32 m) | 13 trusses |
| 30 ft (9.14 m) | 16 trusses |
| 36 ft (10.97 m) | 19 trusses |
| 40 ft (12.19 m) | 21 trusses |
| 48 ft (14.63 m) | 25 trusses |
| 60 ft (18.29 m) | 31 trusses |
| 8 m (26.25 ft) | 15 trusses |
| 10 m (32.81 ft) | 18 trusses |
| 12 m (39.37 ft) | 21 trusses |
| 15 m (49.21 ft) | 26 trusses |

## How it is worked out

The working the page shows, in order: Whole truss bays along the run; Short bay left at one end; Common trusses; Gable-end trusses; Lateral bracing, lineal; then trusses needed.

The method, derived in full:

- [Spacing, Pitch and the Count That Follows](https://craftquantities.com/methodology/spacing-pitch-and-count/): Why a run divided by a spacing gives the number of gaps and not the number of things, why the division rounds up rather than to nearest, and what the leftover bay at the end does to both.
- [Fastener Schedules, Supports and Counting Over a Grid](https://craftquantities.com/methodology/fastener-schedules-and-grid-counts/): Why a fixing count is never area divided by spacing, why the edges of a panel supply more fasteners than its middle, and why the tighter schedule at a roof corner is a requirement rather than caution.

What this calculation does not cover:

- The length asked for is the run the trusses are spaced along, not the distance each truss spans. Entering the building width instead returns a count that looks perfectly reasonable but belongs to a roof turned ninety degrees, and nothing in the result flags the swap.
- The short bay above is the whole remainder, pushed into one end rather than eased along the run: an 11.8 m run at 24 in centres is nineteen full bays and about 220 mm left. Which end it lands on is the part still missing, and it is a real decision — a gable end, a girder truss or a hip set can each require the odd bay at one particular end, and the page does not know which you have.
- Spacing is treated as an instruction and never tested. The load carried by each truss rises in proportion to its centres, so a truss certified at 610 mm under a light covering is not automatically valid at those centres under concrete tile, and the page will count members at any spacing from 305 mm to 610 mm without reference to the truss design, span or snow and wind loading it belongs to.
- The trusses are counted, and the lateral bracing as runs the length of the roof at the number of lines entered. The rest of the stability bracing the truss designer specifies, the diagonal rafter bracing and the chevron web bracing, and the truss clips, wall-plate straps and hangers, are a separate timber and metalwork take-off.
- A wing's trusses are counted from its end wall to the main roof's wall line; the valley set framed over the main trusses where the wing meets them, and any girder carrying them, are the truss maker's layout.

A professional must decide:

- Structure: sizes, thicknesses, spans, reinforcement and bearing are a structural engineer's or the building official's decision. This is a quantity, not a design.

## Sources

As the calculator cites them (sources checked 2026-10-11):

- Truss count = ceil(building length ÷ spacing) + 1, the standard method for spacing repetitive framing members along a run

A code or standard has force only where a jurisdiction has adopted it, usually with local amendments; check what is in force with the authority where you build.

## Questions answered on the page

**Why add 1 to the truss count?**

A truss sits at both ends of the run as well as at every spacing interval in between — dividing the length by the spacing gives the number of gaps, so one additional truss is needed to cap both ends of the run.

**Why is truss spacing rounded up to the next whole gap?**

Rounding up (ceiling) ensures no gap between trusses exceeds your specified maximum on-center spacing — the last gap may end up slightly tighter than the target spacing, which is the standard, conservative approach to laying out repetitive framing.

**Does this account for gable-end trusses or hip sets?**

The gable ends are among the count, split out in the breakdown. The +1 in the formula already places a member at each END of the run, which is exactly where the two gable-end frames sit, so they occupy the first and last positions rather than adding to them; they are a different frame, studded under the top chord, ordered as their own line. Hip corner sets and any girder trusses over openings ARE additional, and come off your truss layout drawing.

**How many trusses does a 39 ft building take at 24 in centers?**

21 trusses. 39 ft is 468 in, which is 19.5 spacings of 24 in; rounding up gives 20 bays, and one more truss closes the far end. Laid out from one end, that is 19 full bays and a 12 in short bay at the other, and two of the 21 are the gable-end trusses. In metric, a 12 m run at 610 mm centres also takes 21.

**Can I space trusses at 24 in instead of 16 in to need fewer?**

Only if the truss design is drawn for it: the spacing comes from the truss designer and the truss maker's drawings, and this page counts at whatever spacing you enter without checking it. On the default 39 ft run, 16 in (406 mm) centres take 31 trusses against 21 at 24 in (610 mm), but each truss at wider centres carries more roof, and the sheathing, battens and ceiling below have span limits of their own. Ask the truss supplier or an engineer, and your building department, before changing it.

**What does the lateral bracing figure measure?**

The lineal run of continuous lateral bracing: the number of lines you enter times the building length, plus each wing's length. Two lines on the default 39 ft run come to 78 ft, or 24 m on a 12 m run in metric. Where the lines go, which webs or chords they fix to, and the diagonal bracing that stiffens them are set by the truss design drawings, so take the line count from those rather than from the example of two.

## Related calculators

- [Ceiling Joist Spanning Lineal Lumber Aggregator](https://craftquantities.com/calculators/materials-quantities/ceiling-joist-linear-footage-calculator/)
- [Purlin Row Spacing Calculator](https://craftquantities.com/calculators/materials-quantities/purlin-spacing-calculator/)

## Run it from a program

- REST: `GET https://api.craftquantities.com/v1/calculate/roof-truss-spacing-calculator` with each input as a query parameter, a length, area or volume with its unit; `https://api.craftquantities.com/v1/describe/roof-truss-spacing-calculator` lists the inputs.
- MCP: the `calculate` tool at https://api.craftquantities.com/mcp with `slug` `roof-truss-spacing-calculator`.
- Definition and test vectors: https://craftquantities.com/api/v1/calculators/roof-truss-spacing-calculator.json

---
Source: https://craftquantities.com/calculators/materials-quantities/roof-truss-spacing-calculator/
Craft Quantities: free to read, cite and link to; the pages are not licensed for republication. Quantities only: no prices, no design and no certification.
