🪵 Roof Truss Calculator
Estimate truss count, rafter length, and ridge height
Smart Home Calculators — Roof Truss Calculator — smartroofingcalculator.com/roof-truss-calculator/ — printed
6 = 6:12 pitch
24" typical
🛒 Materials for this job
#ad · AmazonAs an Amazon Associate I earn from qualifying purchases.
Calculate above and your quantities fill in here.
- Hurricane tiesTie each truss end to the wall plateShop
- Framing nailerSets trusses and blockingShop
- Speed & framing squaresLayout and plumb checksShop
- Roof fall-protection kitHarness, rope and anchor for working on the roofShop
Framing it yourself? The best framing nailers compared →
Next calculatorHurricane Tie CalculatorConnectors at every truss.📋 Roof trusses at a glance
Updated
| Building length | Commons at 24 in | Total at 24 in | Commons at 16 in | Total at 16 in |
|---|---|---|---|---|
| 24 ft | 11 | 13 | 17 | 19 |
| 30 ft | 14 | 16 | 22 | 24 |
| 36 ft | 17 | 19 | 26 | 28 |
| 40 ft | 19 | 21 | 29 | 31 |
| 48 ft | 23 | 25 | 35 | 37 |
| 60 ft | 29 | 31 | 44 | 46 |
Trusses = building length in inches ÷ spacing, rounded up, + 1; the two end trusses are the gable ends, so commons = total − 2. Snow and wind zones may call for 16-inch centres; the truss maker's drawings decide.
🛠️ How This Calculator Works
Enter building dimensions, pitch, and truss spacing. The calculator determines truss count from length and spacing, calculates rafter length from half-span and pitch using the Pythagorean theorem, and computes ridge height.
📐 Formula
Trusses = ⌈(Length × 12 ÷ Spacing) + 1⌉ | Rafter = √((Width/2)² + (Width/2 × Rise/12)²) + Overhang📝 Example Calculation
For a 30 × 50 ft building at 6:12 pitch, 24" OC: • Trusses: (50 × 12 ÷ 24) + 1 = 26 trusses (24 commons + 2 gable ends) • Ridge height: (15 × 6/12) = 7.5 ft • Rafter length: √(15² + 7.5²) + 1 = ~17.7 ft
💡 Pro Tips from Roofers
- Order 2-3 extra trusses as spares — damaged trusses during delivery/placement are common.
- Verify truss engineering drawings match your actual building dimensions before ordering.
- Plan crane access before delivery day — trusses are too heavy to hand-carry on most spans.
- Brace trusses every 8 feet during installation to prevent domino collapse.
❓ Frequently Asked Questions
How many trusses do I need?
Divide the building length in inches by the spacing, round up and add one. That puts a truss on both end walls, and on a gable roof those two are the gable-end trusses. A 40 ft building at 24 in centres needs 21 trusses: 19 commons and 2 gable ends. At 16 in centres it is 31 (29 commons and 2 gable ends).
What spacing should roof trusses be?
Twenty-four inches on centre is standard in residential construction. Sixteen-inch centres are used under heavy snow loads, tile roofing, or where the sheathing is thinner. Some engineered designs use 19.2 in.
How tall is a roof truss?
Half the span times the pitch over 12, plus the heel. A 30 ft span at 6/12 rises 7.5 ft from the wall plate to the ridge; at 4/12 it rises 5 ft. The truss drawing gives the exact overall height including heel and chord depth.
How much do roof trusses cost?
This site plans on $50 to $200 per standard truss, about $75 to $150 for a 30 ft common truss, plus $500 to $1,500 for delivery and crane placement. Attic, scissor and long-span trusses cost more. A truss plant quote for your exact span and pitch is the figure to budget on.
Are gable end trusses different?
Yes. Gable-end trusses have vertical studs to carry the wall sheathing rather than a load-carrying web pattern, and they are ordered as a separate item from the common trusses.
How long is a rafter or top chord for my roof?
Rafter length = √(run² + rise²) plus the overhang, where the run is half the span. A 30 ft span at 6/12 has a 15 ft run and 7.5 ft rise, so the top chord is about 16.8 ft before the overhang, or about 17.8 ft with a 12 in overhang.
Can I store things in a trussed attic?
Not safely on standard trusses. The bottom chord is designed for the ceiling below plus its own weight, not storage loads, and the webs leave little usable space. For storage or a future room, specify attic or storage-rated trusses at the design stage.
Can I cut or modify a roof truss?
Not without approval. A truss is an engineered assembly, and IRC R802.10.4 does not allow truss members to be cut, notched, drilled, spliced or otherwise altered without the approval of a registered design professional.
📱 Get the Smart Roofing App
Run every calculator offline, save results, and get a personalized project estimate — free, no signup.
🎯 Get a Personalized Estimate📝 Related Articles
About the Smart Calculator Team
We build free, accurate construction calculators for homeowners and contractors. This article is part of our roofing knowledge base — we also publish guides and tools for other home improvement projects:
Shopping for someone? See our gift guide for roofers & DIY homeowners.
Truss Span & Spacing — Quick Reference
| Truss Type | Typical Span | Standard Spacing | Common Pitch |
|---|---|---|---|
| Common Gable | 20 – 60 ft | 24″ OC | 4/12 – 12/12 |
| Hip | 20 – 50 ft | 24″ OC | 5/12 – 8/12 |
| Scissor (vaulted) | 16 – 40 ft | 24″ OC | 8/12 top / 4/12 bot |
| Gambrel (barn) | 20 – 40 ft | 24″ OC | 18/12 lower / 4/12 upper |
| Mono (shed) | 12 – 30 ft | 24″ OC | 2/12 – 6/12 |
| Heavy Snow / Tile | any | 16″ OC | any |
How many roof trusses do I need?
Truss count = (Building Length in inches ÷ Spacing) + 1. For a 50 ft building at 24″ on-center, that's (600 ÷ 24) + 1 = 26 trusses. That count already has a truss on both end walls; on a gable roof those two are the gable-end trusses, so you order 24 commons and 2 gable ends. Always order 2–3 spares — damaged trusses during delivery are common.
How far apart are roof trusses?
24 inches on center is the standard spacing for residential roof trusses, because a truss is engineered to carry its share of the roof at that spacing and 24 in matches the edges of 4 × 8 sheathing. Trusses go to 16 in on center under heavy roof coverings (clay or concrete tile, slate), in heavy snow areas, or wherever the truss drawings say so — the truss maker's sealed drawing sets the spacing, not the framer. Sheathing must be rated for the spacing: the span rating stamped on OSB or plywood (24/16, 32/16…) gives the largest roof support spacing for that panel. The roof truss spacing chart lists the count for every building length.
Attic trusses: how wide is the room?
An attic (room-in-attic) truss leaves an open box in the middle with a floor in the bottom chord. How wide that room can be at full headroom is mostly pitch and span: the underside of the roof only reaches 7 ft above the attic floor at 7 ÷ (rise ÷ 12) feet in from each wall. The IRC counts floor area under a sloped ceiling as habitable only where it is at least 5 ft high, and needs 7 ft over at least half of the required floor area (R304.3, R305.1). The table is that geometry alone — truss depth, heel height and insulation take a few inches more, so treat it as the most you could get and confirm with the attic truss manufacturer.
| Span | 8/12: width at 7 ft | 10/12: width at 7 ft | 12/12: width at 7 ft |
|---|---|---|---|
| 24 ft | 3.0 ft | 7.2 ft | 10.0 ft |
| 28 ft | 7.0 ft | 11.2 ft | 14.0 ft |
| 32 ft | 11.0 ft | 15.2 ft | 18.0 ft |
| 36 ft | 15.0 ft | 19.2 ft | 22.0 ft |
Width = span − 2 × (7 ft ÷ (rise ÷ 12)). At 12/12 the roof reaches 7 ft at 7 ft in from each wall, so a 32 ft span leaves 18 ft.
Scissor trusses: how much ceiling height do you gain?
A scissor truss slopes its bottom chord for a vaulted ceiling. The usual rule is a bottom-chord pitch of no more than half the top pitch (an 8/12 roof over a 4/12 ceiling), and the ceiling rises half the span × bottom pitch ÷ 12 at the center. On a 28 ft span with a 4/12 ceiling that is 4.67 ft (4 ft 8 in) of extra height in the middle; at 3/12 it is 3.5 ft. Scissor trusses push out on the walls more than common trusses, so the bearing and the heel connection are on the truss drawing — see scissor truss for spans and costs, and the truss vs rafter comparison if you are deciding between trusses and stick framing with the rafter calculator.
Truss count by building length
Trusses = building length in inches ÷ spacing, rounded up, plus one. On a gable roof the two end ones are gable-end trusses, so commons are that total minus two. The table is worked from that formula, so it matches the calculator above.
| Building length | Total at 24 in | Commons at 24 in (gable roof) | Total at 16 in | Commons at 16 in (gable roof) |
|---|---|---|---|---|
| 20 ft | 11 | 9 | 16 | 14 |
| 24 ft | 13 | 11 | 19 | 17 |
| 30 ft | 16 | 14 | 24 | 22 |
| 32 ft | 17 | 15 | 25 | 23 |
| 36 ft | 19 | 17 | 28 | 26 |
| 40 ft | 21 | 19 | 31 | 29 |
| 48 ft | 25 | 23 | 37 | 35 |
| 50 ft | 26 | 24 | 39 | 37 |
| 60 ft | 31 | 29 | 46 | 44 |
Metric: 24 in is 610 mm and 16 in is 406 mm. For a building measured in metres, convert the length to millimetres, divide by the spacing in millimetres and add one in the same way.
Truss height: how tall is a truss for my span and pitch?
The rise of a common truss is half the span times the pitch over 12. A 30 ft span at 6/12 rises 15 × 6 ÷ 12 = 7.5 ft. That is the height from the top of the wall plate to the ridge line at the top chord; the heel height (the truss depth over the wall) and the chord lumber add a few inches, and the truss drawing gives the exact overall height.
| Span | 4/12 | 5/12 | 6/12 | 8/12 | 12/12 |
|---|---|---|---|---|---|
| 20 ft | 3 ft 4 in | 4 ft 2 in | 5 ft | 6 ft 8 in | 10 ft |
| 24 ft | 4 ft | 5 ft | 6 ft | 8 ft | 12 ft |
| 26 ft | 4 ft 4 in | 5 ft 5 in | 6 ft 6 in | 8 ft 8 in | 13 ft |
| 28 ft | 4 ft 8 in | 5 ft 10 in | 7 ft | 9 ft 4 in | 14 ft |
| 30 ft | 5 ft | 6 ft 3 in | 7 ft 6 in | 10 ft | 15 ft |
| 32 ft | 5 ft 4 in | 6 ft 8 in | 8 ft | 10 ft 8 in | 16 ft |
| 36 ft | 6 ft | 7 ft 6 in | 9 ft | 12 ft | 18 ft |
| 40 ft | 6 ft 8 in | 8 ft 4 in | 10 ft | 13 ft 4 in | 20 ft |
Related: Roof height calculator (ridge, eave and mean roof height) · Rafter length calculator
Roof truss cost: how to price a truss package
- Count the common trusses for your length and spacing (table above) and add the two gable ends.
- Ask a truss plant for a quote on that count, span, pitch, heel height and overhang. Trusses are engineered and priced per job, so the plant quote is the number to use.
- As a planning figure, this page uses $50 to $200 per standard truss (about $75 to $150 for a 30 ft common truss); attic, scissor and long-span trusses cost more.
- Add delivery and placement. Plan $500 to $1,500 for a crane on most house-sized packages.
- Add the sheathing, underlayment and roof covering. The plywood/OSB, shingles and metal roof calculators price those from the same footprint.
Related: Plywood / OSB sheathing calculator · Shingles calculator · Metal roof cost calculator
Truss types and when to use them
| Type | What it does | Typical use |
|---|---|---|
| Common (Fink / W web) | Triangular truss with W-shaped webs | Standard gable roofs on houses and garages |
| King post | One vertical post from apex to bottom chord | Short spans: porches, sheds, small garages |
| Queen post | Two vertical posts with a straining beam | Medium spans past a king post |
| Scissor | Sloped bottom chord | Vaulted ceilings |
| Attic | Open rectangle in the middle for a room | Room-in-roof or storage |
| Mono | Single slope, one tall end | Shed roofs, lean-tos, additions |
| Raised tie | Bottom chord set above the wall plate | Taller or partly vaulted ceilings |
| Raised heel (energy heel) | Extra depth over the wall | Full-depth attic insulation at the eaves |
Related: Attic truss · Scissor truss · Mono truss · Raised tie truss · King post truss · Queen post truss
Design, bracing and code: what the calculator does not do
- The calculator gives count, geometry and a budget. It does not size members or connector plates. Trusses are engineered by the manufacturer to ANSI/TPI 1, and the IRC (section R802.10) requires truss design drawings to be supplied to the building official and kept on site.
- Install temporary and permanent bracing exactly as the truss design drawings and the BCSI guide (SBCA/TPI, Building Component Safety Information) show. Most collapses during erection happen before the bracing is in.
- Never cut, notch, drill or splice a truss chord or web unless a registered design professional approves it (IRC R802.10.4).
- Raised-heel trusses let insulation reach full depth over the wall. Under IECC R402.2.1, R-38 meets an R-49 ceiling requirement where the full height of uncompressed R-38 extends over the wall top plate at the eaves.
Source: IRC 2021 R802.10 (wood trusses); ANSI/TPI 1; SBCA/TPI BCSI; IECC 2021 R402.2.1.
Framing the door and window openings below? The header span chart sizes each header and its jack studs from IRC Table R602.7(1).
Cutting rafters instead of ordering trusses? The birdsmouth calculator gives the seat cut, heel cut and height above plate, and checks the one-third depth rule.
Each truss needs an uplift connector at both ends — the hurricane tie calculator counts them and checks the tie against your uplift.
How tall will it stand? The roof height calculator gives ridge height, mean roof height and attic volume.
Two pitches per side? Use the gambrel roof and truss calculator — it works out each slope, the ridge height and the truss count for a barn roof.
Framing a hip roof instead? The hip rafter calculator gives the hip length, every jack rafter length and the side cuts.
Stick-framing with rafters? The collar tie calculator gives the upper-third height, tie length and spacing from IRC R802.4.6.
Not sure trusses are the right choice? Truss vs rafter compares cost, build time and attic space.
Ordering trusses by pitch? Measure the existing roof with the roof pitch calculator and its level-and-tape method before you call the truss plant.
Shopping for a framer? See our gifts for carpenters.
Trussed attic to ventilate? Here is how many soffit vents it needs for the intake.
On the job site? The roofing calculator app has the truss and rafter tools offline.
Sheathing the trusses? Count the plywood clips per sheet for 24 in spacing.
Building a lean-to instead? The shed and lean-to roof calculator gives rafter length and pitch.
Counting trusses for an order? See roof truss spacing and how many trusses you need by building length.
Planning a room in the roof? The attic truss calculator gives the room width at 5 ft and 7 ft of headroom and the span you need.
Framing it with rafters? The rafter calculator works out each rafter from span and pitch.
🔗 Related Roofing Calculators
- Gambrel Truss Calculator — Two-pitch barn-style trusses
- Roof Pitch Calculator — Pitch drives rafter length & ridge height
- Plywood / OSB Sheathing Calculator — Decking sheets over trusses
- Snow Load Calculator — Determine if 16″ OC spacing is required
· Reviewed by the Smart Home Calculators editorial team