Skip to main content
CalcSummitCalcSummit
Project Calculator · Structural · Roof Trusses

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
Live Calculator · Count · Spacing · Lengths

Your roof

Along the ridge. Trusses repeat in this direction.

Outside wall to outside wall.

Horizontal, each side.

Truss layout

Four webs in a W shape.

More options: price per truss

Optional. Type a supplier quote. No prices are built in.

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 name, quantity and length for one truss in the selected layout.
MemberQtyLength
Bottom chord124 ft 0 in
Top chord (with tail)214 ft 6.4 in
Short web23 ft 7.3 in
Long web27 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.

Advertisement

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.

  1. Measure the building length along the ridge. Trusses repeat in this direction.
  2. Multiply the length in feet by 12 to get inches.
  3. Divide by the spacing in inches on center. Round up.
  4. Add one for the truss at the far end.
  5. Check the last bay. A short bay is fine, but tell your supplier.
Number of trusses by building length and spacing in inches on center.
Building length12 in16 in19.2 in24 in
20 ft21161411
30 ft31242016
40 ft41312621
50 ft51393326
60 ft61463931
Truss count for a 40 foot building: 41 at 12 inches, 31 at 16, 26 at 19.2 and 21 at 24 inches on center.
Figure C. Trusses for a 40 foot building by spacing. The 24 inch row matches the Angi list (21 for 40 feet).

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 by step truss count and geometry for a 40 by 24 foot building at 6 in 12.
StepWorkingResult
Length in inches40 x 12480 in
Bays480 / 24, rounded up20 bays
Trusses20 + 121 trusses
Rise12 ft run x 6 / 126 ft
Slope factorsqrt(1 + 0.5 x 0.5)1.118
Top chord with tail(12 + 1) x 1.11814.53 ft
Lumber, Fink, 2x474.70 lf x 0.667 bf per lf49.8 bf per truss
Whole roof49.8 bf x 211,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.

Common truss spacing by roofing material, from Today's Homeowner.
RoofingTypical spacing
Asphalt shingles24 inches on center typically works
Metal roofing24 inches on center is often enough. Panel profile, wind and insulation can call for closer
Wood shakeAbout 24 inches on center. Untreated shakes may need closer
Clay or concrete tile16 to 20 inches on center
SlateAs 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.

Web members, lumber and board feet by truss layout for a 24 foot span at 6 in 12 with a 12 inch overhang.
LayoutWeb membersLumber per truss2x4 board feet
King post1 x center post 6.00 ft, 2 x strut 6.71 ft72.49 lf48.3 bf
Queen post2 x post 4.00 ft, 1 x horizontal strut 8.00 ft69.07 lf46.0 bf
Fink2 x short web 3.61 ft, 2 x long web 7.21 ft74.70 lf49.8 bf
Howe1 x center post 6.00 ft, 2 x side post 3.00 ft, 2 x diagonal 8.49 ft82.04 lf54.7 bf
Pratt1 x center post 6.00 ft, 2 x side post 3.00 ft, 2 x diagonal 6.71 ft78.49 lf52.3 bf
Five truss layouts for a 24 foot span at 6 in 12: King post, Queen post, Fink, Howe and Pratt, with web lengths.
Figure B. The five planning layouts. Descriptions follow Angi and Calcs.com. Panel points are this page's own geometry.
  • 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.

Roof angle, rise, slope factor and top chord length by pitch for a 24 foot span with a 12 inch overhang.
PitchAngleRiseSlope factorTop chord with tail
4 in 1218.43°4.00 ft1.05413.70 ft
5 in 1222.62°5.00 ft1.08314.08 ft
6 in 1226.57°6.00 ft1.11814.53 ft
7 in 1230.26°7.00 ft1.15815.05 ft
8 in 1233.69°8.00 ft1.20215.62 ft
9 in 1236.87°9.00 ft1.2516.25 ft
10 in 1239.81°10.00 ft1.30216.92 ft
12 in 1245.00°12.00 ft1.41418.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.

Board feet for one Fink truss and for 21 trusses by nominal lumber size.
LumberBoard feet per linear footPer truss21 trusses
2x40.66749.8 bf1,046 bf
2x6174.7 bf1,569 bf
2x81.33399.6 bf2,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.

Alex Rivera, PE, PE — CalcSummit expert reviewer

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 →

Frequently asked questions

Advertisement

Advertisement