BuildNook Hub
RoofingFormulas Shown

Roof Truss Calculator

Calculate truss quantities, peak heights, rafter lengths, and geometric lumber requirements.

Roof Truss Calculator Interactive Tool

Interactive Calculator

Enter your project dimensions below. Results update instantly.

Currently measured in ft. Exterior wall length along the truss run.
Currently measured in ft. Exterior wall width supported by truss bottom chord.
Advanced settings(Truss spacing: 24 in, Pitch rise: 4 in/12 in, Overhang: 12 in)▼
typical value, change to match your productCurrently measured in in. Center-to-center spacing between trusses. Our calculator starts at 24 inches.
typical value, change to match your productCurrently measured in in / 12 in. Vertical rise in inches per 12 inches run.
typical value, change to match your productCurrently measured in in. Truss tail overhang past outside wall.
What to buy / main result

Buy 21 engineered roof trusses (2 gable-end trusses and 19 common trusses).

Results

Total Trusses Needed

21

20 spacing bays + 1 closing truss
Common Trusses

19

Interior trusses between the two gable-end trusses
Top Chord / Rafter Length

13.6 ft

4.2 mIncludes 12 in eave overhang
Apex Peak Height

4 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²) + Overhang

Formula 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.

Length:40 ft
Span:24 ft
Spacing:24 inches
Pitch:4:12
Overhang:12 inches (1 ft)
  1. Calculate spaces along length: (40 ft × 12 in/ft) ÷ 24 in = 20 spaces.
  2. Add 1 starting end truss: 20 + 1 = 21 trusses total (2 gable end trusses + 19 common trusses).
  3. Half span (run): 24 ft ÷ 2 = 12 ft.
  4. Peak height above wall plate: 12 ft × (4 ÷ 12) = 4.00 ft rise.
  5. Calculate rafter top-chord length: √(12² + 4²) = √(144 + 16) = √160 = 12.65 ft.
  6. Add 1 ft overhang: 12.65 + 1.00 = 13.65 ft top chord length.
Requires 21 engineered trusses, peak height is 4.0 ft, and top chord length is ~13.65 ft.

Related Calculators

Related estimation tools for roofing and complementary construction planning:

Related Material & Construction Guides

In-depth guidance on measurement standards, formulas, and material depths:

Input Explanations & Measurement Guidelines

Building Length

Typical: Your own measurement

Overall exterior framing length along the eaves.

Building Clear Span

Typical: Your own measurement

Exterior bearing wall to exterior bearing wall distance.

On-Center Spacing

Typical: Our calculator starts at 24 inches

Distance 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.
Published by BuildNook HubMath checked by hand against our published formulas (How we calculate)Last updated: 17 November 2026Found a mistake? Tell us

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.