Roofing calculator
Roof Truss Calculator
This roof truss calculator works out the truss count, peak height, top-chord length and lumber takeoff for your building, so you can take a clear order to your truss manufacturer or engineer. Enter your building length and width, truss spacing and roof pitch. A building 40 ft long and 28 ft wide, with trusses at 24 in on-center and a 6/12 pitch, needs 21 trusses. This is a planning estimate, not a truss design.
- Free to use
- No sign-up
- Formula and sources shown

Got the number? Save it before it gets lost.
A result on a screen is easy to lose. Save this estimate in the app and it stays with the project, ready when you order.
The direction the trusses repeat along, usually the long side.
Outside of wall to outside of wall, the span the trusses cross.
6 means a 6/12 pitch: 6 in of rise for every 12 in of run.
Trusses needed (including 2 gable ends)
21 trusses
28 ft span · 6/12 pitch · 7.00 ft peak height · 15.65 ft top chord
Truss lumber
1,686 lin ft
With 10% waste
1,855 lin ft
Board feet (2×4 equiv.)
1,124 bf
Lumber per truss
80.30 lin ft
Planning estimate only. The truss manufacturer or a licensed engineer designs the trusses for your snow, wind and dead loads and your local code. Never cut, notch or drill a truss without their written approval. Confirm the count, pitch, overhang and gable ends before ordering.
Turn this result into a priced plan
Save it to a project, add the rest of your materials, and send a client-ready quote. No retyping, no spreadsheet, no lost numbers.
Formula
Trusses = ceil[Length × 12 ÷ Spacing] + 1; Rise = (Span ÷ 2) × (Pitch ÷ 12); Top chord = √[(Span ÷ 2)² + Rise²]
Worked example. A building 40 ft long and 28 ft wide, trusses at 24 in on-center, 6/12 pitch (the calculator's default inputs): 40 × 12 ÷ 24 = 20 intervals + 1 = 21 trusses. Rise = 14 × 0.5 = 7 ft. Top chord = √(14² + 7²) = 15.65 ft. Lumber per truss ≈ 80.30 ft; total 1,686 ft, or 1,855 ft with 10% waste.
Count trusses by spacing, then turn the count into lumber. A building 40 ft long and 28 ft wide, with trusses at 24 in on-center and a 6/12 pitch, needs 21 trusses. The count is one truss at each end plus one every spacing interval along the length, and the rest of the page is the geometry that turns the count into an order: the rise, the peak height, the top chord lengths and the total lumber. This is a planning estimate, not a truss design: the manufacturer engineers each truss for your snow, wind and dead loads.
Key takeaways
- •Truss count = (building length in inches ÷ spacing in inches), rounded up, plus 1 for the far end. A 40 ft building at 24 in spacing needs 21 trusses.
- •The rise is half the span times the pitch over 12. A 28 ft span at 6/12 pitch rises 7 ft, and the peak of the roof sits 7 ft above the wall top.
- •Each top chord is the hypotenuse of half the span and the rise: 15.65 ft on a 28 ft span at 6/12 pitch.
- •The 40 ft × 28 ft example roof contains about 1,686 linear feet of truss lumber, or 1,855 ft with a 10% waste allowance, about 1,124 board feet on a 2×4 equivalent.
- •24 in on-center is the standard spacing for roof trusses; 16 in is used for heavier loads, and 19.2 in is a common engineered spacing.
- •Gable-end trusses are different from common trusses: they carry the gable wall framing and are usually built as a ladder or studded end, so confirm the end details with the manufacturer.
- •This page counts and measures. It does not design trusses. The truss manufacturer or a licensed engineer designs the truss for your loads and your local code. Always confirm before ordering.
How to use the roof truss calculator
- Measure the building length in feet, the direction the trusses repeat along, usually the long side of the building.
- Measure the building width in feet, the span the trusses cross, from outside of wall to outside of wall.
- Pick the truss spacing in inches: 24 in is the standard, 16 in is for heavier loads, 19.2 in is an engineered spacing used with some floor and roof systems.
- Enter the roof pitch as the rise over a 12 in run: 6 means a 6/12 pitch, which rises 6 in for every 12 in of horizontal run.
- Set the waste allowance. 10% is the default, and it covers off-cuts, damaged pieces and layout adjustments.
- Read the truss count, the rise and peak height, the top-chord length, and the lumber takeoff with and without waste.
Roof truss formulas
The count comes from the spacing, the geometry comes from the pitch, and the lumber comes from adding up the members. The rise is half the span times the pitch divided by 12, because the pitch is defined as rise over a 12-inch run. The top chord is the hypotenuse of the right triangle formed by half the span and the rise. The lumber estimate counts two top chords, one bottom chord spanning the full width, and web members estimated at three-quarters of the span per truss. A planning allowance, not a member-by-member takeoff, because the real web layout depends on the truss design.
Truss count = ceil[ Building length (ft) × 12 ÷ Spacing (in) ] + 1
Rise (ft) = (Span ÷ 2) × (Pitch ÷ 12)
Top chord (ft) = √[ (Span ÷ 2)² + Rise² ]
Lumber per truss (ft) ≈ 2 × Top chord + Span + 0.75 × Span
Worked example 1: 40 ft × 28 ft garage
A garage is 40 ft long and 28 ft wide, with trusses at 24 in on-center and a 6/12 pitch. The count is 40 × 12 ÷ 24 = 20 intervals, plus 1 for the far end, giving 21 trusses. The half-span is 14 ft, so the rise is 14 × (6 ÷ 12) = 7 ft. The peak sits 7 ft above the wall plates. The top chord is √(14² + 7²) = √245 = 15.65 ft. Each truss contains about 2 × 15.65 + 28 + 0.75 × 28 = 31.30 + 28 + 21 = 80.30 ft of lumber, and 21 trusses contain 21 × 80.30 = 1,686 ft. With the 10% waste allowance that is 1,855 ft, or about 1,124 board feet on a 2×4 equivalent. Enter these exact inputs in the calculator and you will see 21 trusses, a 7 ft peak, a 15.65 ft top chord and 1,686 ft of lumber.
Worked example 2: 30 ft × 24 ft house, 16 in spacing, 8/12 pitch
A house is 30 ft long and 24 ft wide, with trusses at 16 in on-center and an 8/12 pitch, a steeper roof, more common where snow load matters. The count is 30 × 12 ÷ 16 = 22.5 intervals, rounded up to 23, plus 1, giving 24 trusses. The half-span is 12 ft, so the rise is 12 × (8 ÷ 12) = 8 ft. The top chord is √(12² + 8²) = √208 = 14.42 ft. Each truss contains about 2 × 14.42 + 24 + 0.75 × 24 = 28.84 + 24 + 18 = 70.84 ft of lumber, and 24 trusses contain 1,700 ft, or 1,870 ft with 10% waste. Compare the two examples: the steeper, tighter-spaced roof uses three more trusses but shorter chords, and the total lumber is almost the same, spacing and pitch trade off against each other, which is why a count-only calculator is not enough.
Truss spacing: 16, 19.2 or 24 inches
| Spacing | When to use it | Effect on the count |
|---|---|---|
| 16 in on-center | Heavier snow or wind loads, tile or slate roofing, or where the code or engineer requires it. | Most trusses: a 40 ft building needs 31. |
| 19.2 in on-center | Engineered spacing used with some sheathing and framing systems; five spaces per 8 ft sheet. | In between: a 40 ft building needs 26. |
| 24 in on-center | The standard for most residential gable roofs with asphalt shingles. | Fewest trusses: a 40 ft building needs 21. |
The spacing is not a free choice: it is set by the loads, the roofing material and the sheathing span rating, and the truss manufacturer will confirm it. Wider spacing saves trusses but needs thicker roof sheathing and stronger trusses; tighter spacing costs more trusses but spreads the load. Never widen the spacing to save money without the manufacturer's approval. The spacing is part of the engineered design.
Roof pitch and peak height
| Pitch | Rise per 12 in run | Peak height on a 28 ft span | Top chord on a 28 ft span |
|---|---|---|---|
| 4/12 | 4 in | 4.67 ft | 14.76 ft |
| 6/12 | 6 in | 7.00 ft | 15.65 ft |
| 8/12 | 8 in | 9.33 ft | 16.83 ft |
| 10/12 | 10 in | 11.67 ft | 18.20 ft |
| 12/12 | 12 in | 14.00 ft | 19.80 ft |
Pitch is written as rise over run, with the run always 12 inches: a 6/12 roof rises 6 inches for every 12 inches of horizontal distance. The peak height is the rise itself. On a 28 ft span, a 6/12 pitch gives a 7 ft peak and a 12/12 pitch gives a 14 ft peak. Steeper pitches shed snow and rain better and give more attic space, but they use longer top chords, more sheathing and more roofing, and they are harder and slower to build on. Low pitches are cheaper and easier to roof but need better waterproofing and shed snow poorly. The pitch also decides the attic: a 6/12 roof on a 28 ft span gives a usable attic only in the middle, while a 10/12 or 12/12 roof can hold a room.
Lumber takeoff: what the number means
The lumber figure is a planning takeoff, and it is worth saying exactly what it counts. Each truss is estimated as two top chords, one bottom chord at the full span, and web members at three-quarters of the span. The webs are the diagonal and vertical pieces inside the triangle, and their real total depends on the truss design, so three-quarters of the span is a planning allowance rather than a count of named members. The board-feet figure converts the linear feet to a 2×4 equivalent, which is how truss lumber is usually ordered. What the takeoff does not include is the roof sheathing, the fascia and barge boards, the ridge board or beam, the lookouts and overhang framing, the bracing, or the gable-end framing, all of which are real lumber on the roof, and all of which your framing takeoff should add separately. Use the truss count and the chord lengths to talk to the manufacturer, and use the lumber figure to sanity-check the quote, not to place the order.
Gable ends and overhangs
The two end trusses are gable-end trusses, and they are built differently from the common trusses in the middle. A gable-end truss is usually a ladder-framed or studded truss that carries the gable wall framing and the siding, and it is often set with its face flush to the outside of the wall rather than centered on it. The calculator counts both gable ends in the total; a 40 ft building needs 21 trusses including the two ends, but confirm the end-truss type with the manufacturer, because some builders use a dropped gable end or a framed gable wall instead of a truss. Overhangs are the other detail the count does not show: the eave overhang and the gable overhang are formed by the truss tails and the lookouts, and they add length to the top chord and lumber to the job. If your roof has a 2 ft overhang all round, say so when you order, because the truss design changes.
Planning estimate. Confirm with the manufacturer and your code
This tool is a planning estimate, and that disclaimer is not boilerplate. A roof truss is an engineered product: the manufacturer designs each truss for the ground snow load, the wind speed and exposure, the dead load of the roofing, the ceiling loads, and the span and spacing you give them, and the design is stamped by their engineer. The span tables in the building code, the snow-load maps, and the manufacturer's own software all have the final say, and none of them are on this page. Before ordering, give the manufacturer the building dimensions, the pitch, the spacing, the roofing material, the ceiling finish, the location and the local code edition, and build from their stamped truss drawings, not from this calculator. The relevant standards are the International Residential Code (IRC) Chapter 8 for roof-ceiling construction, IRC Section R802.10 for wood trusses, and the Truss Plate Institute's design standards for metal-plate-connected wood trusses.
How this page compares with the top calculators
The current top results for roof truss calculators are RoofingCalculatorHQ, MyCalculators.store, CtrlCalculator, Whiz.tools and Arkancs, with RoofTrussCalculator.net just behind them, small niche sites, no big brand, and no dominant authority, which is why this is a genuinely open keyword. The strongest of them already bundles a cost estimate with the count, which shows the intent is there, but the rest are count-only tools: length and spacing in, a number out. This page beats them on both depth and features: the count comes with the rise, the peak height, the top-chord length and a lumber takeoff with waste, two fully worked examples, spacing and pitch tables, a gable-end explanation and the manufacturer disclaimer. A builder who only needs a count will get it in seconds; a builder planning an order will get the geometry and the takeoff that the count-only pages never provide.
Common truss mistakes
- •Forgetting the +1 in the count: the far-end truss is a real truss, and a 40 ft building at 24 in spacing needs 21 trusses, not 20.
- •Measuring the span to the inside of the walls instead of the outside. The truss spans the full width, and a foot of missing span changes the rise and the chord.
- •Cutting or notching a truss on site: never cut, drill or notch a truss without the manufacturer's engineer approving it in writing. A cut web can fail the whole truss.
- •Storing trusses flat or unsupported: trusses must be stored upright, braced and covered, or they warp before they are installed.
- •Skipping the bracing: trusses need temporary bracing during installation and permanent bracing in the finished roof, exactly as the manufacturer's drawings show.
- •Ordering from the count alone without confirming the pitch, the overhang, the gable ends and the loads. The count is the start of the order, not the order.
Truss types: common, attic, scissor and mono
The common fink truss is the default roof truss, a triangle with a W-shaped web inside, and it is what the calculator's lumber estimate assumes. It is cheap, strong and spans up to about 40 ft, but it fills the attic with webs, so the attic is storage space at best. The attic truss is the answer when the roof needs a room: it is built with a rectangular opening in the middle, so the center of the attic is clear for a bedroom or office, and it costs more because the webs are heavier and the design is more complex. The scissor truss has a bottom chord that slopes upward, which gives a vaulted ceiling inside without raising the roofline outside. Popular in living rooms and great rooms, and it changes the geometry, because the peak height inside is lower than the roof peak. The mono truss is a single-slope truss for a lean-to or a shed roof, with one high wall and one low wall instead of a peak. The calculator counts trusses the same way for all four types, because the count depends on length and spacing, not on the web layout, but the lumber per truss and the price change with the type, so name the type when you order. For a simple gable roof, the common truss is the right default; for a room in the roof, ask for an attic truss; for a vaulted ceiling, ask for a scissor truss.
Truss types also decide what you can do with the roof later. A common truss roof cannot take a room conversion without engineering, because the webs are structural and the bottom chord is not designed as a floor. An attic truss roof is designed for the room from the start, with the floor load built into the bottom chord. A scissor truss gives the vaulted look but leaves no flat attic at all. And a mono-pitch roof sheds water one way, which simplifies the gutters but needs a taller wall on one side. None of this changes the count on this page, but it changes the order, so decide the truss type before you ask for a price, not after, and bring the manufacturer's drawings to the framing crew so everyone builds the same roof.
Related calculators
Price the roof covering with the roofing calculator and the metal roof cost calculator, count the framing lumber with the lumber calculator and the wall stud calculator, and check the venting with the roof vent calculator.
Assumptions
- •Truss count = ceil(building length ÷ spacing) + 1, including both gable-end trusses.
- •Lumber per truss = 2 top chords + bottom chord (full span) + webs estimated at 0.75 × span; a planning allowance, not a member-by-member takeoff.
- •Board feet are a 2×4 equivalent (0.667 board feet per linear foot).
- •PLANNING ESTIMATE ONLY: truss design, spacing and bracing must be confirmed by the truss manufacturer or a licensed engineer and your local code before ordering or building.
Sources✓ Verified
- International Residential Code (IRC) Chapter 8 and Section R802.10. Roof-ceiling construction and wood truss requirements.
- Truss Plate Institute (TPI), design standards for metal-plate-connected wood trusses. How trusses are engineered and braced.
- Standard geometric formulas. Pythagoras for the top-chord length; rise from pitch over a 12 in run.
Formula reviewed November 2026.
Divide the building length in inches by the truss spacing, round up, and add 1 for the far end. A 40 ft building at 24 in spacing needs 21 trusses; at 16 in spacing it needs 31.
24 in on-center is the standard for most residential gable roofs. 16 in is used for heavier loads or heavier roofing, and 19.2 in is an engineered spacing used with some sheathing systems. The manufacturer confirms the spacing for your loads.
Peak height equals the rise: half the span times the pitch over 12. On a 28 ft span at 6/12 pitch, the rise is 14 × 0.5 = 7 ft, so the peak is 7 ft above the wall plates.
It is the hypotenuse of half the span and the rise. On a 28 ft span at 6/12 pitch, that is √(14² + 7²) = 15.65 ft. The calculator gives the chord length for your span and pitch.
No. Never cut, notch or drill a truss without written approval from the truss manufacturer's engineer. Trusses are engineered as a system, and cutting one member can overload the rest. If a truss does not fit, call the manufacturer.
No. It counts the trusses, works out the geometry and estimates the lumber. The truss design itself; member sizes, plate sizes and bracing for your snow, wind and dead loads, is done by the truss manufacturer or a licensed engineer.
Converters to use with the Roof Truss Calculator
Switch units, compare bulk and bagged quantities, or check coverage, without leaving BuildCova.
RoofingRoofing Squares to Square Feet Converter1 square = 100 sq ft, plus bundles.
RoofingRoof Pitch to Degrees Converter6/12 pitch is 26.57°, any pitch.
RoofingShingle Bundles to Squares Converter3 bundles make 1 square (100 sq ft).More roofing calculators
RoofingRoof Tile CalculatorA roof tile calculator that turns your plan size and pitch into a full roofing order, tiles or slates plus battens, membrane and ridge tiles. Enter the footprint, pick the pitch and tile type, and get the true sloping roof area, the tile count with waste, batten length in standard 16 ft lengths, membrane rolls and ridge and hip tiles. Plain tiles, concrete interlocking, clay pantiles, natural slate and large-format tiles are each counted from their own coverage and batten gauge.
RoofingFlat Roof Insulation CalculatorA flat roof insulation calculator that sizes a warm-deck flat roof in one pass. Pick the deck, the membrane and the U-value you need to hit, and get the PIR thickness in millimetres, the U-value you will actually achieve, and the full warm-deck build-up, boards, vapour control layer, fixings and membrane, counted for your roof, with the minimum fall checked.
RoofingRafter CalculatorA rafter calculator that turns your span and pitch into every cut length on the roof: common, hip, valley and jack rafters, plumb and level cut angles, birdsmouth seat and heel cuts, rafter count, ridge board and total lumber. The overhang is included, so the lengths you read are the lengths you cut. One wrong rafter length wastes lumber and a day of rework, so get the whole roof from one set of numbers before you pick up the saw.
RoofingGambrel Roof CalculatorA gambrel roof calculator that works out both slopes of a gambrel roof from the span, building length and the two pitches: both rafter lengths and angles, ridge height, roof area in squares and shingle bundles, rafter count, attic volume and headroom. Those numbers decide whether the barn loft is a usable room or a crawl space, so check them before you order lumber or shingles.
RoofingBirdsmouth Cut CalculatorA birdsmouth cut calculator that works out the notch that lets a rafter sit flat on the wall plate. Enter the pitch, seat width and rafter size, and get the heel cut, notch depth, height above plate and the code check. Cut the first rafter right and it becomes the pattern for the whole roof, so check the notch before you cut, not after.
RoofingSnow Load CalculatorA snow load calculator that works out what your roof actually carries in winter, in pounds per square foot, under the ASCE 7 method. Enter your ground snow load, roof pitch and site factors, and get the flat-roof and sloped-roof snow load, the total weight on the whole roof and the snow depth it represents. Size the roof for the load it will hold, not the load you hope for.Was this calculator helpful?
Material requirements can vary based on product specifications and job conditions. Verify quantities with your supplier before ordering.