Roof Truss Calculator
A roof truss calculator turns building length, span and pitch into a truss count, roof angle and member lengths. A 40 foot building at 24 inches on center needs 21 trusses. A 24 foot span at 6 in 12 has a 26.6 degree angle, a 6 foot rise and a 14.53 foot top chord with a 12 inch overhang.
This tool is part of our project calculators. Use it to plan a truss order and compare supplier quotes. A truss designer sets the real design.
- Updated October 2026
- Sources Cited
- No Login Required
- Free to Use
Your trusses
Trusses for this roof
21 trusses
20 bays at 24 in on center. Last bay 24 in.
- Roof angle
- 26.57°
- Rise, heel to peak
- 6 ft 0 in
- Top chord, with tail
- 14 ft 6.4 in
- Slope factor
- 1.118
- Lumber per truss
- 74.7 lf
- Board feet per truss
- 49.8 bf
- Board feet, all trusses
- 1,046 bf
Fink layout, member lengths
| Member | Qty | Length |
|---|---|---|
| Bottom chord | 1 | 24 ft 0 in |
| Top chord (with tail) | 2 | 14 ft 6.4 in |
| Short web | 2 | 3 ft 7.3 in |
| Long web | 2 | 7 ft 2.5 in |
Planning layout from geometry. A truss designer sets the real panel points, lumber grades and plates.
Truss count
Length in inches over spacing, rounded up, plus one.
Five layouts
King post, Queen post, Fink, Howe and Pratt member lengths.
Board feet
Nominal 2x4, 2x6 or 2x8 lumber for one truss and the whole roof.
Results are for planning and quote checks. They do not size members, plates or bracing. Prices are never built in. You type them.
How to calculate how many roof trusses you need
Convert the building length to inches. Divide by the truss spacing and round up to get the bays. Add one truss to close the last bay. A 40 foot building is 480 inches. At 24 inches on center that is 20 bays and 21 trusses. At 16 inches it is 30 bays and 31 trusses.
- Measure the building length along the ridge. Trusses repeat in this direction.
- Multiply the length in feet by 12 to get inches.
- Divide by the spacing in inches on center. Round up.
- Add one for the truss at the far end.
- Check the last bay. A short bay is fine, but tell your supplier.
| Building length | 12 in | 16 in | 19.2 in | 24 in |
|---|---|---|---|---|
| 20 ft | 21 | 16 | 14 | 11 |
| 30 ft | 31 | 24 | 20 | 16 |
| 40 ft | 41 | 31 | 26 | 21 |
| 50 ft | 51 | 39 | 33 | 26 |
| 60 ft | 61 | 46 | 39 | 31 |
To check the roof surface above the trusses, use our roofing calculator. For wall studs and plates below them, use the framing calculator.
Worked example: a 40 by 24 foot building
The building is 40 feet long and 24 feet wide, with a 6 in 12 roof, a 12 inch overhang and trusses at 24 inches on center. The count is 21 trusses. Each truss has a 26.6 degree roof angle, a 6 foot rise and a 14.53 foot top chord. The Fink layout uses 74.70 linear feet of lumber per truss.
| Step | Working | Result |
|---|---|---|
| Length in inches | 40 x 12 | 480 in |
| Bays | 480 / 24, rounded up | 20 bays |
| Trusses | 20 + 1 | 21 trusses |
| Rise | 12 ft run x 6 / 12 | 6 ft |
| Slope factor | sqrt(1 + 0.5 x 0.5) | 1.118 |
| Top chord with tail | (12 + 1) x 1.118 | 14.53 ft |
| Lumber, Fink, 2x4 | 74.70 lf x 0.667 bf per lf | 49.8 bf per truss |
| Whole roof | 49.8 bf x 21 | 1,046 bf |
A 31 foot building at 24 inches is 372 inches. That is 15.5 bays, which rounds to 16 bays and 17 trusses. The last bay is 12 inches.
Truss spacing by roofing material
Most residential roofs use 24 inches on center, measured from the middle of one truss to the middle of the next. Heavier roofing can call for closer spacing. Steeper roofs, heavy rainfall and attic storage can too. Local code and your truss designer set the final number.
| Roofing | Typical spacing |
|---|---|
| Asphalt shingles | 24 inches on center typically works |
| Metal roofing | 24 inches on center is often enough. Panel profile, wind and insulation can call for closer |
| Wood shake | About 24 inches on center. Untreated shakes may need closer |
| Clay or concrete tile | 16 to 20 inches on center |
| Slate | As close as 12 inches on center |
Source: Today's Homeowner, read October 2026. Pole barns have no fixed standard. The same source gives 4 to 12 or 16 feet. Closer spacing raises the count: a 40 foot building needs 21 trusses at 24 inches and 31 at 16 inches.
Truss types and member lengths
The truss type changes the web members, not the chords. For a 24 foot span at 6 in 12, every layout has a 24 foot bottom chord and two 14.53 foot top chords. The Fink uses 74.70 linear feet, the King post 72.49 and the Howe 82.04.
| Layout | Web members | Lumber per truss | 2x4 board feet |
|---|---|---|---|
| King post | 1 x center post 6.00 ft, 2 x strut 6.71 ft | 72.49 lf | 48.3 bf |
| Queen post | 2 x post 4.00 ft, 1 x horizontal strut 8.00 ft | 69.07 lf | 46.0 bf |
| Fink | 2 x short web 3.61 ft, 2 x long web 7.21 ft | 74.70 lf | 49.8 bf |
| Howe | 1 x center post 6.00 ft, 2 x side post 3.00 ft, 2 x diagonal 8.49 ft | 82.04 lf | 54.7 bf |
| Pratt | 1 x center post 6.00 ft, 2 x side post 3.00 ft, 2 x diagonal 6.71 ft | 78.49 lf | 52.3 bf |
- King post: one center post, with two struts to the top chords. Angi describes it as limited in span.
- Queen post: two posts joined by a horizontal strut. Here the posts sit one third of the span from each heel.
- Fink: four webs in a W shape. Angi calls it cost-effective for wide spans.
- Howe and Pratt: vertical posts with diagonals. Calcs.com says Pratt diagonals slope toward the center and Howe diagonals slope away. The Howe diagonal here is 8.49 ft and the Pratt diagonal is 6.71 ft.
Source spans disagree with each other, so this page gives no span limits. Ask a truss supplier what each layout can carry for your loads.
Pitch, rise and top chord length
Pitch is inches of rise per 12 inches of run. The roof angle is atan(pitch / 12). The top chord is the run plus the horizontal overhang, times the square root of one plus the pitch squared over 144. A 6 in 12 roof is 26.57 degrees, matching Inch Calculator.
| Pitch | Angle | Rise | Slope factor | Top chord with tail |
|---|---|---|---|---|
| 4 in 12 | 18.43° | 4.00 ft | 1.054 | 13.70 ft |
| 5 in 12 | 22.62° | 5.00 ft | 1.083 | 14.08 ft |
| 6 in 12 | 26.57° | 6.00 ft | 1.118 | 14.53 ft |
| 7 in 12 | 30.26° | 7.00 ft | 1.158 | 15.05 ft |
| 8 in 12 | 33.69° | 8.00 ft | 1.202 | 15.62 ft |
| 9 in 12 | 36.87° | 9.00 ft | 1.25 | 16.25 ft |
| 10 in 12 | 39.81° | 10.00 ft | 1.302 | 16.92 ft |
| 12 in 12 | 45.00° | 12.00 ft | 1.414 | 18.38 ft |
Rise is measured from the heel to the peak over a 12 foot run. For other conversions between pitch, angle and percent, use the roof pitch calculator.
Board feet per truss
A board foot is nominal thickness times nominal width times length in feet, divided by 12. A 2x4 is 0.667 board feet per linear foot, a 2x6 is 1.0 and a 2x8 is 1.333. The Fink truss above uses 74.70 linear feet, so 49.8 board feet in 2x4 stock.
| Lumber | Board feet per linear foot | Per truss | 21 trusses |
|---|---|---|---|
| 2x4 | 0.667 | 49.8 bf | 1,046 bf |
| 2x6 | 1 | 74.7 bf | 1,569 bf |
| 2x8 | 1.333 | 99.6 bf | 2,092 bf |
These figures use one lumber size for every member and add no waste. Real trusses mix sizes and grades. For site-built framing lumber, see the lumber calculator.
When you need a truss designer
Every manufactured truss needs a truss designer. The design drawings show joint locations, bearing widths, design loads, reactions, and the lumber size, species and grade of each member. IRC R802.10.1 says the drawings go to the building official at inspection and arrive with the shipment.
- The building designer supplies the loads, including snow drift. The truss designer designs each truss for those loads (Brent Maxfield, S.E., STRUCTURE magazine).
- ANSI/TPI 1 and BCSI-B3 put continuous lateral bracing on the building designer (same source).
- Use this calculator to count trusses and check a quote. Do not cut your own trusses from these lengths.
The IRC text is read through the South Carolina regulation that reproduces it. Your jurisdiction may use a different edition, so ask your building department.
What this calculator does not cover
This page counts trusses and finds geometry for a symmetric gable roof. It does not size members, plates or bearing, check loads or bracing, or give span limits. It does not cover hip, scissor, attic, mono or gambrel roofs, and it has no metric input yet. Prices appear only if you type a price per truss. Consult your truss supplier or a structural engineer before you order or build.
For roof sheathing, use the plywood calculator. For a shed roof budget, use the shed cost calculator.
Methodology and sources
Published October 2026. Last updated October 2026. Next review October 2027.

Reviews: volume calculators · 38 calculators reviewed
Alex Rivera is a Licensed Professional Engineer (PE) with 18 years of structural and civil engineering experience. He holds PE licenses in California (#C-89412) and Texas (#P.E.-98765). He previously served as Engineer of Record on 250+ residential foundation designs at Thornton Tomasetti. At CalcSummit, he writes and personally reviews every structural, concrete, rebar, deck, and framing calculator against current IRC and ACI 318 standards.
Full profile →