Calculators · Roof Truss Calculator

Roofing

Roof Truss Calculator

Enter the roof length and the truss spacing to get how many trusses fit, plus an optional peak height and top chord length.

Roof length 1
Length along the ridge

Use the spacing on your plans or from your truss supplier. 24 in is preselected only as an example.

Whole number of extra trusses your plans call for. Empty means 0.

Distance between the two bearing points, for the peak height and top chord.

The rise per 12 in of run, like 6 for 6/12. Needed with the span.

How to calculate how many roof trusses you need

Trusses stand in a row along the length of the roof, one every so many inches. The number depends on the length of the roof and on the on-center spacing, which is the distance from the center of one truss to the center of the next. It does not depend on the span.

StepFormula
1. Bayslength (in) ÷ spacing (in), rounded up
2. Trussesbays + 1
3. Totaltrusses of every roof length + extra trusses
4. Even spacinglength ÷ bays

The plus one is the truss at the last end. If the roof is 40 ft long, that is 480 inches. At 24 inches on center that is 20 bays, so 21 trusses. Add one row for each separate roof length, like the main house and a garage wing, and the calculator adds them up. Measurements can be typed as 40'6" or 40 ft 6 in.

Example: a 25.5 ft roof at 24 inches on center

The roof is 25.5 ft long, which is 306 inches, and the trusses are on 24 inch centers.

StepOperationResult
Length in inches25.5 × 12306 in
Bays306 ÷ 24 = 12.75, rounded up13
Trusses13 + 114
Even spacing306 ÷ 1323.54 in

Because 306 is not a multiple of 24, the last bay is short if you keep 24 inches between the first trusses. If you spread the 14 trusses equally, they sit 23.54 inches apart. Ask your supplier which layout they want.

Trusses by roof length and spacing

Roof length12 in16 in24 in
20 ft211611
24 ft251913
30 ft312416
32 ft332517
40 ft413121
48 ft493725
60 ft614631

Trusses at the spacing in the column header, with no extra trusses added.

How far apart are roof trusses?

The spacing is decided in the design, not by this calculator. In a Journal of Light Construction answer, Frank Woeste, P.E., a professor emeritus at Virginia Tech, discusses spacings of 12, 16 and 24 inches. He says the roof snow load dictates the truss design, and that once the builder or architect specifies the loads, the spacing and the shape, truss engineering takes over. A 16 inch spacing means a lower lumber grade than 24 inches, and he says the wider 24 inch spacing is the most economical for residential construction. We read it in October 2026. The menu offers those three spacings and a custom one, so you can type the spacing from your own plans.

Peak height and top chord length

If you type the span and the pitch, the calculator also gives the geometry of a symmetric gable truss, with the span measured between the bearing points and no overhang. Half the span is the run of each side.

ValueFormula
Peak height(span ÷ 2) × (rise ÷ 12)
Top chord, each side(span ÷ 2) × √(1 + (rise ÷ 12)²)

A 24 ft span at 6/12 has a half span of 12 ft. The peak is 12 × 6 ÷ 12 = 6 ft above the bearing line, and each top chord is 12 × 1.1180 = 13.42 ft long. These are theoretical line lengths. They do not include the heel height, the lumber depth or any overhang, and are not cutting lengths. To go from a pitch to degrees or the other way, use the roof pitch calculator. For the roof area and the roofing material, use the roofing calculator, the shingle calculator or the metal roofing calculator.

What this calculator does not do

It counts trusses from a length and a spacing, and it gives the plain geometry of one symmetric truss. It does not design trusses, check spans or loads, choose lumber, or count girders, bracing or hardware. It does not give prices. Trusses are engineered for each roof, so use your plans and your truss supplier for the final count.

Frequently asked questions

How many trusses do I need for a 40 foot long roof?

At 24 inches on center you need 21 trusses, because 480 inches ÷ 24 inches = 20 bays and 20 + 1 = 21. At 16 inches on center you need 31, and at 12 inches on center you need 41.

What is the formula for the number of roof trusses?

Divide the length of the roof in inches by the on-center spacing in inches, round up, and add 1 for the truss at the other end. The plus one is there because a row of bays always has one more truss than bays.

How far apart should roof trusses be?

The spacing is part of the truss design, so your truss supplier and designer set it. In a Journal of Light Construction answer, Frank Woeste, P.E., says that what drives the design is the roof snow load, that the builder or architect specifies the loads, the spacing and the shape, and that truss engineering then takes over. He also says the wider 24 inch spacing is the most economical for residential construction. Type any spacing you were given.

Does this calculator design trusses or check that they are strong enough?

No. It only counts how many trusses fit in a length at the spacing you type. It does not check loads, spans or lumber. Trusses are engineered for each roof, so ask your truss supplier for the design of yours.

Do I need extra trusses at the gable ends?

It depends on your plans and on how your supplier builds the gable ends, and we could not verify a single rule that fits every roof. The calculator counts a truss at each end of the length. If your plans list extra trusses, type that number in the extra box and it is added to the total.

What if the length is not a multiple of the spacing?

The count is rounded up so the whole length is covered. The result also shows the even spacing you would get if you spread the trusses equally, which is always at or under the spacing you typed. Ask your supplier which layout they want.

How do I find the peak height and the top chord length?

For a symmetric gable truss, the peak height is half the span times the rise divided by 12, and the top chord on each side is half the span times the square root of 1 plus (rise ÷ 12) squared. A 24 ft span at 6/12 gives a peak 6 ft above the bearing line and a top chord of 13.42 ft per side, before any overhang.

How much do roof trusses cost?

Prices change by region, span, pitch, lumber and design, so this calculator does not show them. Take the number of trusses from the result and ask truss suppliers for a quote based on your plans.

We use our own technical cookies and, if you allow it, Google Analytics cookies to see which calculators are used most. Press “Accept” to allow analytics, “Reject” to refuse them or “Configure” to choose. If you don’t accept, we still measure visits without cookies and with approximate figures. You can change your mind at any time from the footer. More details in the cookie policy.