Free calculator · 2026
Roof Truss Calculator
Enter the span and pitch to get the peak height, top chord length with overhang and roof angle — and how many trusses a building needs at 16 or 24 inches on center.
Trusses needed
21
at 24" on center over 40 ft, including both gable ends
Ask your truss supplier for 21 common trusses, 24 ft span at 6/12 with 12" overhangs. They engineer the webs and plates for your local snow and wind loads.
- Peak height (rise)
- 6' 0"
- Roof angle
- 26.6°
- Top chord, wall to peak
- 13.42 ft
- Top chord with overhang
- 14' 6 1/2"
Show the math
- Run (half the span): 24 ÷ 2 = 12 ft
- Rise: 12 × 6/12 = 6 ft (6' 0")
- Top chord: 12 × √(1 + (6/12)²) = 13.42 ft, + 1.12 ft overhang = 14.53 ft
- Count: ⌊40 × 12 ÷ 24⌋ + 1 = 21
Geometry for planning and for talking to a truss supplier. Trusses are engineered products: the manufacturer designs the webs, lumber grade and connector plates for your loads (snow, wind, span), and building codes require their design drawings. Don't cut or alter a truss.
Independent tool — runs in your browser; we don't store your inputs.
Add this roof truss calculator to your website (free)
Copy the code below into any page (WordPress: use a "Custom HTML" block). Free to use — please keep the credit line.
How the truss numbers are worked out
- Run = half the span (wall to the center of the building).
- Rise = run × pitch ÷ 12. This is the peak height above the top of the walls.
- Top chord = run × the pitch factor (√(1 + (pitch ÷ 12)²)), plus the overhang measured along the slope.
- Number of trusses = building length in inches ÷ spacing, plus one so both ends have a truss.
Truss peak height by span and pitch
| Span | 4/12 | 6/12 | 8/12 |
|---|---|---|---|
| 20 ft | 3' 4" | 5' 0" | 6' 8" |
| 24 ft | 4' 0" | 6' 0" | 8' 0" |
| 28 ft | 4' 8" | 7' 0" | 9' 4" |
| 32 ft | 5' 4" | 8' 0" | 10' 8" |
| 36 ft | 6' 0" | 9' 0" | 12' 0" |
Trusses are engineered, not just measured
This calculator gives the geometry so you can plan, compare options and talk to a supplier. The actual truss design — web layout, lumber grade, metal connector plates, bracing and how it bears on the walls — comes from the truss manufacturer and depends on span, snow and wind loads and the roof covering. Building departments generally require the truss design drawings with the permit.
Learn how trusses fit into the rest of the roof in our parts of a roof guide, check slopes with the roof pitch calculator, and estimate materials with the roof square footage calculator.
Frequently asked questions
How far apart are roof trusses?
Most residential trusses are set 24 inches on center. Some designs, heavy roof coverings or high snow loads use 16 inches. Follow the truss design drawings, which specify spacing, bracing and connections.
How do I calculate the height of a truss?
Divide the span by two to get the run, then multiply by the pitch over 12. A 24-foot span at 6/12 has a 12-foot run and rises 12 × 6/12 = 6 feet at the peak, measured from the top of the wall.
Can I cut or modify a roof truss?
No, not without an engineer. Every member of a truss carries load, and cutting a web or chord to make attic storage or fit ductwork can weaken the whole roof. Truss makers can design attic or storage trusses, and an engineer can specify a repair for a damaged truss.
Related guides
Aluminum Fascia Wrap and Metal Fascia: Cost, Pros and Cons
Aluminum fascia wrap vs wood and PVC fascia: how metal fascia works, cost per linear foot, when wrapping hides rot, and how it fits with gutters and drip edge.
2 min readClear Roof Panels: Polycarbonate vs PVC vs Fiberglass
Clear and translucent roof panels for patios, porches and sheds compared: polycarbonate, PVC and fiberglass lifespan, cost, hail and UV resistance, and installation tips.
2 min readDrip Edge: Types, Code Rules and How It Works With Gutters
What roof drip edge does, code requirements, Type C vs D vs F profiles, aluminum vs steel, how it fits with gutters and underlayment, and replacement cost.
3 min read