Calculators · Roof Truss Calculator
RoofingRoof 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.
Trusses needed
—
Estimate the cost optional
Type the prices from your supplier and the calculator works out the total. Prices change by store and region, so we do not fill them in for you. Nothing you type is saved or sent.
Fill in the calculator above first.
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.
| Step | Formula |
|---|---|
| 1. Bays | length (in) ÷ spacing (in), rounded up |
| 2. Trusses | bays + 1 |
| 3. Total | trusses of every roof length + extra trusses |
| 4. Even spacing | length ÷ 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.
| Step | Operation | Result |
|---|---|---|
| Length in inches | 25.5 × 12 | 306 in |
| Bays | 306 ÷ 24 = 12.75, rounded up | 13 |
| Trusses | 13 + 1 | 14 |
| Even spacing | 306 ÷ 13 | 23.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 length | 12 in | 16 in | 24 in |
|---|---|---|---|
| 20 ft | 21 | 16 | 11 |
| 24 ft | 25 | 19 | 13 |
| 30 ft | 31 | 24 | 16 |
| 32 ft | 33 | 25 | 17 |
| 40 ft | 41 | 31 | 21 |
| 48 ft | 49 | 37 | 25 |
| 60 ft | 61 | 46 | 31 |
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.
| Value | Formula |
|---|---|
| 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.
Types of roof trusses
The Structural Building Components Association (SBCA), the trade association of the companies that make trusses and other framing components, sorts trusses into two basic types. The pitched or common truss has a triangle shape and is the one most often used for roofs. The parallel chord or flat truss has a top and a bottom chord that run parallel. It is often used for floors, but it can also be used on roofs. SBCA adds that some common trusses are named after the pattern of their webs, such as the King Post, Fan, Fink or Howe truss, and that the chord size and the web pattern are set by the span, the load and the spacing. We read it in October 2026. Here are some of the shapes from its list, in our own words.
| Truss | What it is used for |
|---|---|
| Common | The basic triangle, the type most often used for roofs. Its peak is in the center. |
| Mono | A single slope, with a vertical member over the bearing at the high end. Popular in farm and commercial buildings, and two of them on a center bearing can replace one long common truss. |
| Scissors | A pitched bottom chord, for a vaulted or cathedral ceiling. |
| Scissor mono (half scissors) | A mono truss with a pitched bottom chord, for a vaulted ceiling or to step the ceiling up to a higher wall inside the building. |
| Vault | A pitched bottom chord over only part of the span, when the truss crosses several rooms and only one of them gets a sloped ceiling. |
| Studio vault | A bottom chord that slopes one way with no peak, for a sloped ceiling without a peak or a taller wall to hang art. |
| Vaulted parallel chord | Top and bottom chords at the same pitch, made possible by a raised heel, for a steep vaulted ceiling. |
| Room-in-attic (attic) | An open space inside the truss for a room, with a bottom chord designed for live loads like a floor. |
| Gambrel | A steep pitch from the walls that turns into a low pitch near the peak, like a barn. The tall shape leaves room for webs or, often, an attic space. |
| Hip | For a roof that slopes down to an eave on every side. The trusses step down in height toward each end wall and have a flat top section. |
| Tray or coffer | A bottom chord pitched for a short distance on two sides and then flat, for a tray ceiling in a bedroom or a dining room. |
| Piggyback (multi-piece) | A base truss with a cap truss on top, used when one truss would be too tall to build or ship. |
The count on this page works the same for any of these shapes, because it only uses the roof length and the spacing. The peak height and top chord do not. SBCA’s terminology page says the peak of a common truss is in the center and the peak of a mono truss is at one end, and that the truss type decides where the pitch changes. So the formulas above only fit a symmetric common truss. For any other shape, the sizes come from the truss design drawings. On a hip roof, the trusses near each end wall form a hip set, a series of step-down trusses of the same span that get lower toward the end. The calculator counts positions along the length. It does not say which ones are hip trusses or girder trusses, the trusses designed to carry other framing members. Your supplier’s layout does.
Trusses for a vaulted ceiling or a room in the attic
For a vaulted or cathedral ceiling, SBCA points to scissors trusses. It says the bottom chord pitch depends on the top chord pitch, the span and the heel height, and that most scissor trusses use a bottom chord pitch of one-half the top chord pitch. On a 6/12 roof that is a 3/12 ceiling. A steeper ceiling needs a taller heel or more triangulation between the chords and the webs. If only one room gets the sloped ceiling, a vault truss can do it. If you want the ceiling to slope one way with no peak, look at the studio vault, and for a ceiling as steep as the roof, the vaulted parallel chord truss. SBCA also notes that the bearing width matters with scissors trusses. If the bearing under them is not the width used in the truss design, the ceiling where it meets the wall can need changes when the drywall goes up.
For a room inside the roof, like a bonus room over a garage, the traditional option is the room-in-attic truss. In an SBCA article from 2021, an engineering manager at a truss manufacturer describes another way. The floor of the bonus room is framed like a normal floor, with floor trusses where possible, and the roof above it is framed with separate, smaller roof trusses. The article notes that the room also needs stairs and a way to carry the floor loads down to the foundation. We read it in October 2026. Which option fits your house is a design decision for your truss supplier and designer, and in both cases the number of trusses comes from their plans.
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. To price the job, type the prices from your supplier into “Estimate the cost” under the result. 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.
What is a scissor truss?
A scissor truss has a pitched bottom chord, so the ceiling under it slopes up into a vaulted or cathedral ceiling. The Structural Building Components Association says most scissor trusses use a bottom chord pitch of one-half the top chord pitch, and that a steeper ceiling needs a taller heel or more triangulation between the chords and the webs. The count on this page works the same for scissor trusses, but their dimensions come from the truss design.
What is an attic truss?
An attic truss, or room-in-attic truss, leaves an open space inside the truss that can be finished as a room. The Structural Building Components Association says its bottom chord is made larger and designed for live loads, like a floor. It adds that attic trusses are popular over garages or anywhere people want more living or storage space without adding another floor.
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. To price the job, type the prices from your supplier into “Estimate the cost” under the result.
More calculators
- Roof Pitch Calculator Convert rise and run to pitch, angle and slope factor, and find rafter length.
- Roofing Calculator Estimate roof area, roofing squares and shingle bundles from your roof size and pitch.
- Shingle Calculator Estimate shingle bundles, starter strip and ridge caps from your roof planes, with waste.