Skip to content
CalcShown

Popular

    Roofing

    Roof Truss Calculator

    Get the number of trusses for your building, plus the top chord (rafter) length with overhang, the height at the peak and the roof angle, for any span and pitch.

    Verified · 6 tests · 2 sources · Updated

    What verified means on this page

    • Tested. 6 automated tests check this calculator against official examples, published tables or hand-worked answers every time the site changes (last run December 3, 2026).
    • Sourced. The formulas and data come from the 2 sources listed below, checked against a second source.
    • Shown. "Show the Math" lists every step with your own numbers, so you can check the answer yourself.
    • Open to correction. Spot an error? Tell us. We fix it, add a test so it can't come back, and log it.
    How we verify every calculator →

    Building

    Trusses

    Truss Count

    trusses = ceil(building length (in) ÷ spacing (in)) + 1
    
    Building length 24 in o.c. 16 in o.c.
    24 ft 13 19
    30 ft 16 24
    40 ft 21 31
    60 ft 31 46

    The two end trusses are often gable-end trusses, built with vertical studs for sheathing and siding. Order them separately.

    Rafter (Top Chord) Length and Height

    run          = span ÷ 2
    rise         = run × pitch ÷ 12
    top chord    = (run + overhang) × √(1 + (pitch ÷ 12)²)
    
    Span Pitch Rise Top chord, no overhang With 1 ft overhang
    20 ft 4/12 3.33 ft 10.54 ft 11.60 ft
    24 ft 6/12 6.00 ft 13.42 ft 14.53 ft
    28 ft 6/12 7.00 ft 15.65 ft 16.77 ft
    30 ft 8/12 10.00 ft 18.03 ft 19.23 ft
    32 ft 12/12 16.00 ft 22.63 ft 24.04 ft

    Lengths are measured along the top edge and ignore the ridge and heel cuts. Your truss maker’s drawings give exact dimensions.

    Common Truss Types

    • Common (Fink / W): the standard gable truss, efficient up to about a 40 ft span.
    • Scissor: a sloped bottom chord for vaulted ceilings.
    • Attic: an open center bay you can use as a room, with a heavier floor load.
    • Hip (step-down) set: used to frame hip roofs.

    Ordering Tips

    • Give the supplier span, pitch, overhang, heel height, spacing, roof covering (shingle, metal or tile) and your local snow and wind loads.
    • Lead times run 1–4 weeks. Trusses arrive banded, so plan a crane or a crew to set them.

    Frequently Asked Questions

    How many roof trusses do I need?

    Divide the building length in inches by the spacing, round up, and add 1. A 40 ft building at 24 inches on center needs 480 ÷ 24 = 20, + 1 = 21 trusses, including the two gable ends.

    What is the standard roof truss spacing?

    24 inches on center is standard for engineered trusses in homes and garages. 16 inch spacing is used for heavy snow loads, tile roofs or when the drawings call for it.

    How do I calculate rafter length?

    Rafter length = (half the span + overhang) × √(1 + (pitch ÷ 12)²). For a 24 ft span at 6/12 with a 1 ft overhang, (12 + 1) × 1.118 = 14.53 ft.

    How tall is a roof truss?

    Peak height above the wall = half the span × pitch ÷ 12. A 24 ft span at 6/12 rises 12 × 6 ÷ 12 = 6 ft, plus the heel height of the truss.

    Can I build my own roof trusses?

    Most building departments require engineered trusses with a sealed design from the manufacturer (IRC R802.10). Site-built trusses need a design by a licensed engineer. Use this calculator for planning and pricing.

    Sources

    1. International Residential Code R802.10, Wood trusses
    2. Structural Building Components Association, Truss basics