Roof Truss Calculator
Calculate truss quantities, peak heights, rafter lengths, and geometric lumber requirements.
Roof Truss Calculator Interactive Tool
Enter your project dimensions below. Results update instantly.
Advanced settings(Truss spacing: 24 in, Pitch rise: 4 in/12 in, Overhang: 12 in)▼
Buy 21 engineered roof trusses (2 gable-end trusses and 19 common trusses).
Results
21
20 spacing bays + 1 closing truss19
Interior trusses between the two gable-end trusses13.6 ft
4.2 mIncludes 12 in eave overhang4 ft
1.22 mElevation above wall (2 gable ends)Truss Quantity & Rafter Geometry Formulas
Truss Count = ⌈(Building Length × 12) ÷ Spacing⌉ + 1 | Peak Height = (Span ÷ 2) × (Rise ÷ 12) | Rafter Length = √((Span ÷ 2)² + Peak Height²) + OverhangFormula Variables:
- Building Length:Total length of framing wall supporting the trusses.
- Span:Total exterior bearing-to-bearing wall width.
- Spacing:Distance between truss centers. Our calculator starts at 24 inches.
This calculator provides geometric layout estimates. Trusses often need a licensed engineer to size them, so ask your local building office.
Step-by-Step Worked Example
Example: 40-foot building length, 24-foot span, 24-inch on-center spacing, 4:12 pitch
Planning truss orders for a detached garage measuring 24 ft wide by 40 ft long with a 4:12 pitch and 12-inch overhangs.
- Calculate spaces along length: (40 ft × 12 in/ft) ÷ 24 in = 20 spaces.
- Add 1 starting end truss: 20 + 1 = 21 trusses total (2 gable end trusses + 19 common trusses).
- Half span (run): 24 ft ÷ 2 = 12 ft.
- Peak height above wall plate: 12 ft × (4 ÷ 12) = 4.00 ft rise.
- Calculate rafter top-chord length: √(12² + 4²) = √(144 + 16) = √160 = 12.65 ft.
- Add 1 ft overhang: 12.65 + 1.00 = 13.65 ft top chord length.
Related Calculators
Related estimation tools for roofing and complementary construction planning:
Roof Pitch Calculator
Determine slope ratio, pitch angle, and surface multipliers from vertical rise and horizontal run.
Roof Area Calculator
Calculate true sloped surface area from footprint dimensions, overhang depth, and roof pitch.
Roofing Squares Calculator
Convert sloped roof square footage into contractor squares and 3-bundle per square estimates.
Related Material & Construction Guides
In-depth guidance on measurement standards, formulas, and material depths:
How to Calculate Roof Area: Pitch Multipliers and Examples
Roof area = (length + 2 × overhang) × (width + 2 × overhang) × pitch multiplier. A 30 × 50 ft house with a 1 ft overhang at 5:12 has a footprint of 1,664 sq ft and a roof area of about 1,803 sq ft.
How Many Roof Trusses Do I Need? Spacing and Count
Change the building length to inches, divide by the truss spacing, round up, then add 1 truss. A 35 ft long building at 24 inch spacing needs 19 trusses.
Input Explanations & Measurement Guidelines
Building Length
Typical: Your own measurementOverall exterior framing length along the eaves.
Building Clear Span
Typical: Your own measurementExterior bearing wall to exterior bearing wall distance.
On-Center Spacing
Typical: Our calculator starts at 24 inchesDistance between truss centers, measured center to center.
Assumptions & Limitations
- Assumes uniform on-center spacing across a rectangular building envelope.
- Includes two gable end trusses plus common internal trusses.
- Does not calculate mechanical wind uplift, snow load deflection, or metal gusset plate sizing.
Safety & Professional Notes
- Trusses can fall over before they are braced. Follow the bracing instructions from your truss maker and ask a licensed professional.
- Roof work is dangerous. Use proper fall protection or hire a professional.
Frequently Asked Questions
Why is there a +1 in the truss count formula?
Dividing length by spacing counts the number of bays between trusses. You need an additional truss to close the final bay at the end wall.
Can I build my own roof trusses without an engineer?
Trusses often need a licensed engineer to size them, and snow and wind loads vary by location. Ask your local building office what your project needs.