Roofing Calculator

Roof Truss Calculator

Last updated: October 3, 2026
Daniel Brooks

Daniel Brooks is a civil engineer with 10 years of experience and the founder of RoofPitchCalculator.org. He develops the site's calculators and technical guides around transparent formulas, geometry and clearly stated assumptions.

About Daniel →
0 people found this calculator helpful
💬 Feedback
On this page
    Roof Truss Calculator Calculate truss geometry, height, chord lengths, roof angle, spacing layout, truss count and optional quoted cost.
    Geometry & quantity planning
    Units
    1. Choose the roof/truss profile
    2. Building dimensions & layout
    ft
    ft
    in
    in
    Span is an input, not an allowable-span result. This calculator does not determine whether a truss can structurally span the entered distance.
    3. Truss spacing
    The calculator uses your selected spacing as a maximum layout spacing, then rounds the number of spaces up so both building ends receive a truss. The actual evenly distributed spacing may therefore be slightly smaller.
    4. Common gable slope
    :12
    Optional order & quoted cost
    $
    $
    Cost is calculated only from the supplier price you enter. The calculator does not invent a national truss price because span, truss type, loads, lumber, plates and local fabrication all affect pricing.
    Quick answer

    A roof truss calculator can accurately work out the outside geometry and repeated truss quantity when you know the building span, roof pitch, building length and intended truss spacing. For a common centred gable, the horizontal run is half the span, the rise is the run multiplied by the roof slope, and the top-chord length follows from the Pythagorean theorem. Truss count is based on the building length and maximum on-centre spacing. What a simple online calculator cannot safely determine is the engineered web layout, member sizes, connector plates, allowable structural span or snow/wind capacity.

    How to Use the Roof Truss Calculator

    Our roof truss calculator is intended for geometry, layout and quantity planning. It supports a common gable, a two-slope gambrel or barn profile, and a mono / shed profile in both imperial and metric units.

    1. Choose the roof profile. Select Common Gable, Gambrel / Barn or Mono / Shed.
    2. Enter the truss span. Use the wall-to-wall bearing span for the geometry you want to model.
    3. Enter the building length. This is the direction in which the trusses repeat.
    4. Select the maximum on-centre spacing. Choose 16, 19.2 or 24 inches in imperial mode, 400, 450 or 600 mm in metric mode, or enter a custom spacing.
    5. Enter the roof slope. Common gable and mono modes accept pitch or degrees. Gambrel mode uses separate lower and upper pitches plus the break-point position.
    6. Review the geometry and quantity. The calculator returns rise, chord lengths, angles, actual repeated spacing and the number of truss positions.

    If you only need a conventional rafter length rather than truss geometry, use the Rafter Length Calculator. If your pitch is unknown, start with the Roof Pitch Calculator.

    Roof Truss Calculator Formula for a Common Gable

    A symmetrical common gable has a centred peak, so each roof side uses half of the bearing span as its horizontal run.

    Horizontal run
    Run = Truss span ÷ 2

    For pitch written as x:12:

    Roof rise
    Rise = Run × (Pitch ÷ 12)

    The straight-line top-chord distance from bearing to peak is:

    Top chord
    Top chord = √(Run² + Rise²)

    The equivalent roof angle is:

    Roof angle
    Angle = arctan(Rise ÷ Run)

    These equations describe the outer roof geometry. A manufactured truss can still have a raised heel, different chord depths, structural webs and connection details that are not represented by these simple centre-line dimensions.

    Roof Truss Height Calculator

    For a common gable, the basic geometric roof truss height is the rise from the bearing line to the peak.

    Example: a 30 ft span at 6:12 has a 15 ft horizontal run:

    Run = 30 ÷ 2 = 15 ft
    Rise = 15 × 6 ÷ 12 = 7.5 ft

    So the geometric rise is 7.5 ft. If you enter a 4 in heel reference, the calculator also shows a simple planning high-point figure of:

    7.5 ft + 4 in = 7 ft 10 in approximately
    Heel height is not just a cosmetic dimension. Real truss heel geometry can be affected by chord depth, bearing, energy requirements, uplift connections and structural engineering. The entered heel in this calculator is a geometry reference, not an engineered heel design.

    Roof Truss Top Chord Calculator

    The top chord is the sloping outer member of a conventional pitched roof truss. For a simple gable, its geometric bearing-to-peak length is the hypotenuse of the rise/run triangle.

    For the same 30 ft span at 6:12:

    Top chord = √(15² + 7.5²)
    Top chord = 16.7705 ft

    If a horizontal overhang is entered, the calculator extends that roof-slope geometry using the same pitch factor. This is useful for preliminary dimensions, but it is not a timber cutting schedule for a manufactured truss.

    Roof Truss Angle and Pitch Calculator

    Pitch and angle are two ways of describing the same roof slope. A 6:12 roof rises 6 units for every 12 horizontal units.

    Angle = arctan(6 ÷ 12) = 26.565°

    For a symmetrical gable, the included angle at the peak is:

    Peak angle = 180° − (2 × Roof angle)

    At 6:12:

    180° − (2 × 26.565°) = 126.87°

    If you need a wider set of pitch conversions, see the Roof Pitch Chart.

    Roof Truss Spacing Calculator

    The spacing section answers a practical planning question: how many repeated truss positions fit along the building if a chosen on-centre spacing is not to be exceeded?

    Number of spaces
    Spaces = ceil(Building length ÷ Maximum spacing)
    Truss positions
    Truss positions = Spaces + 1

    The extra 1 represents the truss at the opposite end of the building.

    For a 48 ft building with a maximum spacing of 24 in (2 ft):

    48 ÷ 2 = 24 spaces
    24 + 1 = 25 truss positions

    If the building length is not an exact multiple of the selected spacing, our calculator rounds the number of spaces up and then reports the resulting even spacing. That keeps the actual layout at or below your selected maximum rather than leaving one oversized end bay.

    Spacing is a project input, not a recommendation from this tool. Actual truss spacing must match the approved building/truss design and supporting construction. The 16, 19.2 and 24 in options are convenient layout inputs, not universal structural limits.

    How Many Roof Trusses Do I Need?

    If the approved plans already specify truss spacing, the repeated quantity is straightforward.

    Building length Maximum spacing Spaces Truss positions
    20 ft24 in O.C.1011
    24 ft24 in O.C.1213
    32 ft24 in O.C.1617
    40 ft24 in O.C.2021
    48 ft24 in O.C.2425

    These are repeated layout positions only. Special end conditions, girder trusses, valleys, openings, attic trusses and other project-specific truss types can change the actual order.

    Roof Truss Span Calculator: What “Span” Means Here

    The phrase roof truss span calculator can mean two very different things.

    Geometry meaning

    You already know the bearing-to-bearing span and want to calculate rise, top-chord length, angle and quantity. That is what this calculator does.

    Structural meaning

    You want to know the maximum safe span for a proposed truss. That requires structural design and is not calculated here.

    Maximum allowable span depends on far more than roof pitch. Design loads, truss depth/profile, lumber species and grade, member sizes, connector plates, deflection, bearing, bracing and the full truss configuration all matter.

    The American Wood Council notes that metal-plate-connected wood trusses are designed using structural software that evaluates the required load conditions and are manufactured under the ANSI/TPI 1 framework. In other words, a span entered into this calculator should come from the building design or truss supplier, not from a generic geometric rule.

    Roof Truss Design Calculator: Geometry vs Structural Design

    Searchers often use the phrase roof truss design calculator when they really need dimensions for a roof profile. That part can be calculated with straightforward geometry.

    Structural truss design is different.

    The Truss Plate Institute describes ANSI/TPI 1-2022 as the national design standard for metal-plate-connected wood truss construction. It covers design requirements for truss members and joints, metal connector plates, responsibilities in the design process and manufacturing quality assurance. TPI states that the 2022 edition is referenced in the 2024 International Building Codes.

    This calculator is not structural truss design software. It does not choose chord or web sizes, connector plates, lumber grade, bearing, uplift resistance or load capacity. Use the truss manufacturer's engineered design documents and the project structural/building design where required.

    Gambrel Roof Truss Calculator

    Gambrel roofs are one of the strongest separate search intents in the keyword research, so the calculator includes a proper Gambrel / Barn mode rather than treating a gambrel as a normal gable.

    A gambrel side has two different slopes:

    • a steeper lower slope; and
    • a shallower upper slope.

    The calculator lets you define where that slope change occurs by entering the break point as a percentage of the half-span.

    Half-span
    Half-span = Total span ÷ 2
    Lower horizontal run
    Lower run = Half-span × Break-point percentage
    Upper horizontal run
    Upper run = Half-span − Lower run

    Each slope then gets its own rise and chord calculation:

    Lower rise = Lower run × Lower pitch ÷ 12
    Upper rise = Upper run × Upper pitch ÷ 12
    Total rise = Lower rise + Upper rise

    12 Foot Gambrel Roof Truss Calculator Example

    Suppose a 12 ft gambrel profile uses a 50% break point on each half, with an 18:12 lower slope and a 6:12 upper slope.

    Half-span:

    12 ÷ 2 = 6 ft

    At a 50% break:

    Lower run = 3 ft
    Upper run = 3 ft

    The rises are:

    Lower rise = 3 × 18 ÷ 12 = 4.5 ft
    Upper rise = 3 × 6 ÷ 12 = 1.5 ft
    Total geometric rise = 6 ft

    That does not mean every manufactured 12 ft gambrel truss should have those slopes. It simply shows how the calculator models the profile you enter.

    16 Foot Gambrel Roof Truss Calculator Example

    With the same 18:12 lower pitch, 6:12 upper pitch and a 50% break point, a 16 ft span has an 8 ft half-span:

    Lower run = 4 ft
    Upper run = 4 ft
    Lower rise = 4 × 18 ÷ 12 = 6 ft
    Upper rise = 4 × 6 ÷ 12 = 2 ft
    Total geometric rise = 8 ft

    Use the calculator above to change the slopes and break point to match the actual gambrel profile you are planning.

    Shed Roof Truss Calculator

    A shed, lean-to or mono-pitch truss has one primary slope from the low bearing to the high bearing. The important geometry difference is that its horizontal run is normally the full bearing span, not half the span.

    Mono / shed run
    Run = Truss span
    High-side rise = Full run × Pitch ÷ 12
    Sloping top chord = √(Run² + Rise²)

    This mode is useful for searches such as shed roof truss calculator, mono roof truss calculator, single-slope roof truss calculator and lean-to roof truss calculator.

    12 Foot Shed Roof Truss Example

    For a 12 ft mono span at 3:12:

    Rise = 12 × 3 ÷ 12 = 3 ft
    Top chord = √(12² + 3²) = 12.369 ft

    Again, this is the external geometry. It does not determine the web system or whether a particular manufactured truss can carry the project loads.

    16 Foot Shed Roof Truss Example

    At the same 3:12 slope:

    Rise = 16 × 3 ÷ 12 = 4 ft
    Top chord = √(16² + 4²) = 16.492 ft

    If the project uses a different slope, change the pitch in the calculator rather than relying on a pre-set shed-truss table.

    Roof Truss Cost Calculator

    The optional cost section is deliberately simple. Once you have a real supplier price for the truss type being ordered, enter that quoted cost per truss plus any known delivery/setup allowance.

    Estimated order cost = Order quantity × Quoted cost per truss + Entered extras

    We do not publish a fixed “price per truss” inside the calculator because real truss pricing depends on span, profile, pitch, loading, lumber, connector plates, quantity, location, fabrication and delivery.

    Use the cost feature after obtaining a supplier quote. It is intended to help extend a quoted unit price across the planned order quantity, not to replace a truss-manufacturer quotation.

    Roof Truss Weight Calculator: Why Weight Is Not Estimated Here

    A genuine roof truss weight calculator needs the actual engineered truss, not just the span and pitch.

    Total truss weight changes with:

    • top- and bottom-chord sizes;
    • web-member lengths and sizes;
    • lumber species, grade and moisture content;
    • metal connector plate sizes and locations;
    • raised heels, cantilevers and special details; and
    • the final engineered profile.

    Because those details are not known from simple roof geometry, the calculator does not invent a weight. If truss weight matters for lifting, handling or structural planning, use the truss supplier's engineered/shop documentation.

    Roof Truss Load and Snow Load Calculators

    Keywords such as roof truss load calculator, roof truss load capacity calculator and roof truss snow load calculator describe structural engineering tasks.

    A roof truss must be checked for the actual design load combinations that apply to the project. Those can include dead load, roof live load, snow, wind uplift and other effects. Snow itself can involve roof slope, exposure, thermal conditions, drifting and unbalanced loading rather than one universal pounds-per-square-foot number.

    The American Wood Council's own span-calculator guidance notes that roof snow loads require appropriate load determination rather than being inferred from pitch alone. Its broader Wood Frame Construction Manual includes structural provisions that account for dead, live, snow, seismic and wind actions.

    Do not use the geometry output as a load-capacity result. A 30 ft truss shape fitting on the screen does not prove that any particular lumber/web/plate configuration can safely span 30 ft under the project loads.

    Can I Use This to Build My Own Roof Truss?

    You can use the calculator to understand the outer geometry of a proposed roof profile, but that is not the same as designing a safe structural truss.

    A real metal-plate-connected wood truss is an engineered assembly. ANSI/TPI 1 addresses the design of truss members, joints and connector plates and the responsibilities involved in the design process.

    So searches such as build your own roof truss calculator or how to build a roof truss calculator should be treated carefully: geometry can be planned here, while structural design and fabrication details should come from qualified truss design/manufacturing documentation.

    Fink, King Post, Howe and Other Roof Truss Types

    Names such as Fink, king post and Howe usually describe the internal web arrangement as well as the outer profile. That is why the calculator does not simply draw a few diagonal lines and call them a structural design.

    Fink truss

    Common pitched outer geometry with a characteristic web pattern. Web member design is not calculated by this tool.

    King post truss

    A named truss arrangement often associated with shorter spans, but structural suitability still requires proper design.

    Howe truss

    Another defined web arrangement. Span, loads and member forces cannot be established from the roof outline alone.

    Flat / parallel-chord truss

    Uses different geometry from a pitched triangular truss and is not modelled by the current calculator.

    Scissor, Attic and Raised-Tie Trusses

    A scissor truss, attic truss or raised-tie truss adds important internal geometry that affects usable ceiling space and structural behaviour.

    They are not represented by the calculator's basic gable outline:

    • Scissor truss: has sloping bottom chords and an interior ceiling pitch.
    • Attic truss: creates a room/storage opening within the structural web system.
    • Raised-tie truss: moves the bottom tie above the normal bearing line.

    The outside roof rise may still be calculated from span and pitch, but usable room dimensions and structural web/chord design require the actual engineered truss configuration.

    Hip Roof Trusses and Girder Trusses

    Hip roofs usually involve more than one repeated standard truss type. A hip-truss package can include common trusses, truncated trusses, jack trusses, hip girders and other project-specific components.

    For that reason, the simple repeated-count formula should not be used to create a final hip roof truss order. The building's overall roof geometry can be calculated separately, but the actual truss package should come from the truss layout supplied for the project.

    Wood vs Steel Roof Truss Calculators

    The geometry formulas for span, rise and roof angle do not care whether the structural system is wood or steel. Structural design absolutely does.

    This calculator can therefore describe the outside triangular, gambrel or mono profile of a proposed steel truss, but it is not a steel roof truss design calculator. Steel member sections, connections, buckling, loads and fabrication details require an appropriate steel structural design process.

    Metric Roof Truss Calculator

    Switch the calculator to Metric to enter span and building length in metres, overhang and heel reference in millimetres, and spacing using 400, 450, 600 mm or a custom value.

    The underlying geometry is identical:

    Run = Span ÷ 2 (common gable)
    Rise = Run × slope
    Chord = √(Run² + Rise²)

    The x:12 pitch format remains available because it is a dimensionless slope ratio, while all linear results are converted to the selected measurement system.

    Worked Example: 30 ft Span, 6:12 Pitch, 48 ft Building

    Use these inputs:

    • common gable;
    • 30 ft truss span;
    • 48 ft building length;
    • 6:12 roof pitch;
    • 24 in maximum O.C. spacing;
    • 12 in horizontal overhang per side.

    First calculate the run and rise:

    Run = 30 ÷ 2 = 15 ft
    Rise = 15 × 6 ÷ 12 = 7.5 ft

    Top chord from bearing to peak:

    √(15² + 7.5²) = 16.7705 ft

    A 6:12 pitch factor is approximately 1.1180, so a 1 ft horizontal overhang adds approximately 1.118 ft along the slope:

    16.7705 + 1.1180 = 17.8885 ft geometric top-chord line including overhang

    Now calculate the repeated positions:

    48 ft ÷ 2 ft spacing = 24 spaces
    24 spaces + 1 = 25 truss positions
    Planning result: The example gives a 7.5 ft geometric rise, a 16.77 ft bearing-to-peak top chord and 25 repeated truss positions at a maximum 24 in O.C. layout. These are geometry/quantity results, not an engineered truss specification.

    Why the Calculator Shows Actual Even Spacing

    Suppose a building is 35 ft long and the selected maximum spacing is 24 in, or 2 ft.

    35 ÷ 2 = 17.5

    You cannot lay out half a space, so the calculator rounds up:

    ceil(17.5) = 18 spaces
    Truss positions = 18 + 1 = 19

    If all bays are distributed evenly:

    35 ft ÷ 18 = 1.944 ft = 23.33 in O.C.

    The result stays below the selected 24 in maximum rather than leaving one bay longer than 24 in.

    What This Roof Truss Calculator Does Not Design

    Allowable structural span

    The span is entered by you. The calculator does not determine how far a truss is structurally permitted to span.

    Web-member layout

    Diagonal and vertical webs are engineered according to truss geometry and loading. No web pattern is generated as a structural design.

    Lumber/member sizes

    Chord and web section sizes depend on engineering checks, material properties and loads.

    Metal connector plates

    Plate size, orientation and joint capacity are part of engineered metal-plate-connected truss design.

    Snow, wind and uplift

    Environmental loads depend on the project location, building geometry, code criteria and load combinations.

    Permanent and temporary bracing

    A repeated truss count does not establish the bracing system required during erection or for the completed structure.

    Common Roof Truss Calculation Mistakes

    Using the full gable span as the run

    For a centred symmetrical gable, the run is half the span. Using the full span doubles the calculated rise and gives the wrong top-chord geometry.

    Halving a mono-truss span

    A mono or shed truss normally uses the full bearing span as the horizontal run, so it is the opposite of the common gable case.

    Forgetting the truss at the far end

    Dividing building length by spacing gives the number of spaces, not the number of truss positions. Add one for the opposite end.

    Calling a geometry result an allowable span

    A calculated triangle can be drawn at any span. Structural capacity is a separate engineering problem.

    Assuming the outer triangle defines the web layout

    Two trusses with similar roof outlines can have very different web arrangements, member sizes and load capacities.

    Using a generic price for every truss

    Use an actual supplier quote. Truss type, span, load, material and fabrication requirements can change the unit price substantially.

    Roof Truss Calculator FAQs

    How do I calculate the height of a roof truss?

    For a centred gable, divide the span by two to get the run, then multiply the run by the roof slope. A 30 ft span at 6:12 has a 15 ft run and a 7.5 ft geometric rise.

    How do I calculate roof truss length?

    If by “truss length” you mean the top chord of a simple gable, calculate the square root of run² + rise². The bottom chord is approximately the entered bearing span in the simplified geometry.

    How many trusses do I need for a 40 ft building?

    At a maximum 24 in O.C. repeated spacing, 40 ft contains 20 spaces, so the basic repeated layout has 21 truss positions. Project-specific special trusses can change the actual order.

    How many roof trusses do I need at 24 inches on centre?

    Divide the building length in feet by 2, round the number of spaces up, then add one. For exact multiples, a 48 ft building gives 24 spaces and 25 positions.

    Can this calculate a gambrel roof truss?

    Yes, for the outside gambrel geometry. Enter lower pitch, upper pitch and the break-point position. It calculates the runs, rises, chord segments and repeated quantity, but not structural webs or connector plates.

    Can this calculate a shed roof truss?

    Yes. Use Mono / Shed mode. The full span becomes the horizontal run, and the calculator returns high-side rise, sloping chord length, angle and quantity.

    Can this calculate a Fink roof truss?

    It can calculate the outer common-gable geometry that may be associated with a Fink truss, but it does not design the characteristic Fink web system.

    Can this calculate an attic truss?

    It can calculate the outside roof outline, but it does not calculate the room opening, floor/bottom-chord design or structural webs required for an attic truss.

    Can this calculate a scissor truss?

    Not as a complete truss design. A scissor truss has sloping bottom chords and additional interior geometry that are outside the current calculator's geometry modes.

    Does the calculator determine maximum roof truss span?

    No. Span is an input. Maximum safe span depends on the engineered truss design, materials, connector plates and project loads.

    Does it calculate roof truss load capacity?

    No. The tool does not calculate dead, live, snow, wind or uplift capacity and should not be used as a structural load calculator.

    Does it calculate roof truss weight?

    No. Reliable weight requires the actual engineered member sizes, web layout, lumber/material properties and connector plates.

    Can I calculate roof truss cost?

    Yes, once you enter a real quoted cost per truss. The calculator multiplies that supplier rate by the order quantity and adds any delivery/setup allowance you enter.

    Can I use metric measurements?

    Yes. Metric mode accepts metres for the main building dimensions and millimetres for overhang, heel reference and spacing.

    Can I use this for a steel roof truss?

    Only for basic outside geometry and repeated quantity. It does not design steel members, connections or structural capacity.

    Technical References

    The geometry in this calculator is elementary roof mathematics. Structural truss design is governed by a much wider set of material, loading, connection and manufacturing requirements, which is why the structural boundaries are stated clearly throughout this page.

    Before ordering or building: use the approved building plans and the truss manufacturer's project-specific design documentation for actual truss type, span, spacing, loads, member sizes, connector plates, bearing, bracing and installation requirements. This calculator is for geometry, quantity and preliminary cost planning only.