Roof Truss Calculator

Work out truss count, spacing, ridge rise and slope length from the building dimensions and the pitch. Geometry and quantity only — not structural design.

Quick answer: a 40 ft long, 30 ft span gable at 6:12 with 24 in spacing needs 21 trusses, a ridge rise of 7.5 ft and a slope length of about 17.89 ft including a 1 ft overhang.

  • Count from length and spacing
  • Rise and slope length
  • Geometry only, no sizing

Roof truss calculator inputs and results

Length runs along the ridge while span is the full width the truss crosses.

Take this from the truss layout, not from a preference. It is usually tied to the sheathing span rating.

run rise overhang section through the roof
Rise is vertical, run is level, overhang is measured out from the wall.
Trusses required
21
20 spaces at 24 in centres, plus one
Ridge rise
7.50 ft
Slope length
17.89 ft
Pitch factor
1.118
Roof angle
26.57°

Geometry and quantity only; member size, grade, plates and capacity belong to a truss designer.

Show calculation
21 trusses in the example
1.118 pitch factor at 6:12
7.5 ft rise at the ridge
24 in centres (default)

What this roof truss calculator works out

A roof truss is a factory-made triangle, and it replaces the whole cut roof: rafters, ceiling ties and the lot, in one engineered unit. That is the trade you make — you stop cutting timber on site and start setting a manufactured component, and you take on a layout drawing in exchange.

Two numbers describe the run. How far apart the trusses sit along the ridge, and how wide each triangle spans. This page turns the building dimensions into a truss count and the basic geometry of one truss, so you can price the delivery and check a quote before the layout arrives.

It does not design the truss, and it cannot. Chord sizes, grades, plate patterns and bracing come from a truss designer working to the loads for your building. What this page gives you is the quantity and the shape — the things you need before the design conversation starts. If you are cutting the roof on site instead, the rafter calculator is the right starting point.

What the numbers look like. A 40 ft long, 30 ft span gable at 6:12 with 24 in spacing takes 21 trusses. Each one has a ridge rise of 7.5 ft and a top chord of about 17.89 ft including a 1 ft overhang. Change the spacing to 16 in and the count goes to 31 — the geometry of each truss does not move at all.
Prefabricated timber roof trusses stacked and partly erected on a house under construction.
A truss is a triangle: the span is its base, the rise is its height, and the top chord is the slope length.
This is not a structural design. Do not order trusses from this page. The layout drawing fixes member sizes, plate details, spacing and bracing, and none of those are calculated here. Ordering without it means ordering a shape rather than a component.

What each roof truss input and result means

Five inputs, five results. Three describe the building, one is a fixed choice from a list, and the last is a design decision you should not make from this page.

The five inputs.
FieldUnitWhat to enter
Building lengthfeetThe run along the ridge that the trusses repeat along, outside face to outside face.
SpanfeetThe clear width the truss carries, wall to wall. On a symmetrical gable the run is half of it.
Pitchrise per 12Roof pitch as rise over 12. A 6:12 roof is 6.
OverhangfeetHorizontal projection past the wall, if the truss carries one. Many trusses have the overhang built in; check the layout.
Spacing12 / 16 / 19.2 / 24 inA fixed list rather than a free field, because these are the spacings trusses are actually designed and tested at. Take the figure from the layout drawing.
The five results.
ResultUnitWhat it means
Trusses requiredcountMembers along the building, including one at each end of the run. The number you order and the number the crane lifts.
Ridge risefeetHeight from the wall plate to the apex of the truss. Sets the roof height and the headroom inside.
Slope lengthfeetLength of the top chord along the slope, overhang included. This is the truss's own dimension, not the rafter length.
Pitch factor—The multiplier that converts a horizontal run to a slope length. 1.118 at 6:12, 1.414 at 12:12.
Roof angledegreesThe pitch as an angle from horizontal. 6:12 is 26.57°.

The count is a whole number and is rounded up, because a partly-covered end bay is not an option. Lengths are shown to two decimal places.

How to use the roof truss calculator

  1. Enter the building length along the ridge, outside face to outside face.
  2. Enter the span across the building. On a symmetrical gable the run is half of this.
  3. Enter the pitch as rise per 12.
  4. Enter the overhang measured horizontally from the wall to the fascia, if the truss includes one.
  5. Choose the spacing from the truss layout drawing.
A timber roof truss being lifted into place by a crane on a house under construction.
Trusses are set in sequence along the ridge, which is why the count follows the building length rather than the span.

Truss span, rise and slope length formulas

Count along the building, geometry across it.

spaces = building length ÷ spacing
trusses = spaces + 1 (rounded up)
run = span ÷ 2
rise = run × (pitch ÷ 12)
pitch factor = √(1 + (pitch ÷ 12)²)
slope length = (run + overhang) × pitch factor
angle = atan(pitch ÷ 12) × 180 ÷ π

The count uses spaces plus one because a run of twenty spaces needs twenty-one members, exactly like fence posts. Rounding up the number of spaces before adding one avoids under-ordering on a length that does not divide evenly.

The slope length is measured along the top chord from the wall line to the ridge, with the overhang added to the horizontal distance first. Adding the overhang to the finished length instead would understate it, because the overhang follows the slope.

Roof truss types and where each is used

A truss is not one product. The web pattern changes what the roof can do inside, and the price changes with it. These are the shapes that turn up on domestic work.

Common truss shapes and what they are for.
TypeShapeUsed for
Fink (W-truss)Diagonals forming a W between the chordsThe default for a domestic gable. Cheapest per unit and the most common shape on a housing site.
HoweVertical webs with diagonals in tensionHeavier loads and longer spans, where the Fink pattern runs out of depth.
King postOne central verticalShort spans — garages, porches, outbuildings.
Queen postTwo verticals with a straining beamLonger spans than a king post, often where the roof is visible from below.
ScissorDiagonals crossing, bottom chord raisedA vaulted ceiling with no tie across the room.
Attic / raised tieBottom chord lifted to form a roomUsable space in the roof — the structural version of a loft conversion.
Hip endSloping in plan to a cornerClosing a hipped end. The hip member geometry is a different calculation again — see the hip rafter estimator.
MonoSingle slopeLean-to roofs, extensions, canopies.

The count on this page assumes one uniform shape. A roof with a hip end, a scissor section and an attic truss over the middle is three orders, not one.

Truss bracing: temporary and permanent

A truss is designed to work as part of a braced system, not as an individual triangle. On its own, standing on a wall, it is a mechanism — it can fold sideways. What makes it a structure is the bracing that ties it to its neighbours and back to something solid.

There are two kinds, and they get confused.

Temporary bracing goes on during erection and comes off later. It is what stops a row of trusses toppling like dominoes in a gust before the roof is closed. This is the most common failure on a truss job, and it happens in the gap between setting the trusses and fixing the permanent bracing.

Permanent bracing stays in the building: lateral restraint along the top chords, along the bottom chords, and diagonal bracing across the webs. It is what stops the trusses buckling sideways under load over the life of the roof.

Neither is optional, and neither is included in the count on this page. Both are specified on the truss layout drawing, and the industry guidance for how to install them is the BCSI document published by the Structural Building Components Association — which is worth reading before you take delivery, not after.

Bracing is not the same as tie-down. Bracing stops the trusses moving sideways; tie-down stops the whole roof lifting. A roof can be fully strapped down and still fold over because nobody braced the webs. The roof tie-down estimator covers the uplift side, which is a separate set of connectors.

What a truss layout drawing must include

When the truss fabricator sends the layout, it answers the questions this calculator deliberately leaves open. It is worth knowing what should be on it before it arrives, because an incomplete layout is common and expensive.

  • Member sizes and grades for every chord and web, not just a nominal size.
  • Spacing and the exact positions, including any non-standard first bay at a gable end.
  • Bearing and heel details — how the truss sits on the wall, and how the overhang is formed.
  • The bracing plan, temporary and permanent, drawn rather than described.
  • Point loads, if anything hangs from or sits on the truss: a water tank, a solar array, a hoist, a ceiling below.
  • Connections to the wall, which is where the tie-down specification lives.

Two things follow that catch people out on site. First, you do not cut a birdsmouth into a truss. The heel is designed and fabricated; cutting it destroys the engineering. A birdsmouth cut calculation is for a cut roof, not for a truss.

Second, collar ties are not usually part of a trussed roof. Where a raised-tie or attic truss is used, the tie is built into the truss and a separate collar tie calculation does not apply. Adding one where the design does not call for it is at best pointless and at worst a load the truss was never analysed for.

And the rule that overrides everything else: a truss must not be cut, notched, drilled or altered on site. IRC R502.8.2 prohibits it unless the manufacturer or a registered design professional says otherwise in writing.

Worked roof truss examples

Example 1 — 40 ft by 30 ft gable at 6:12

Run
30 ÷ 2 = 15 ft
Rise
15 × 6 ÷ 12 = 7.5 ft
Pitch factor
√(1 + 0.5²) = 1.1180
Slope length
(15 + 1) × 1.1180 = 17.89 ft
Spaces at 24 in
40 ÷ 2 = 20
Trusses
20 + 1 = 21
trusses = 40 ÷ 2 + 1 = 21

Example 2 — the same roof at 16 in centres

Spacing
16 in = 1.333 ft
Spaces
40 ÷ 1.333 = 30.0
Trusses
30 + 1 = 31

Tighter spacing needs half as many trusses again, which is why spacing is a design decision rather than a preference. The geometry of each truss does not change.

trusses = 40 ÷ 1.333 + 1 = 31

Example 3 — a length that does not divide evenly

Inputs
37 ft length, 24 in spacing
Exact spaces
37 ÷ 2 = 18.5
Spaces used
19, rounded up
Trusses
19 + 1 = 20
Covered length
19 × 2 = 38 ft

Nineteen bays cover 38 ft on a 37 ft building, so something has to give. In practice the extra foot is taken up by widening the end bay slightly, or by setting the first truss in from the gable — which is exactly why the layout drawing sometimes specifies a non-standard first spacing. If you round down to 18 spaces you get 19 trusses and a 36 ft run, which is a foot short.

trusses = ceil(37 ÷ 2) + 1 = 20

Roof truss calculator limitations

  • No structural sizing. Chord and web sizes, grades, plate capacities, bracing and connections are outside this page.
  • Symmetrical gable assumed. An asymmetric, hip or mono-pitch roof needs its own geometry.
  • Uniform spacing assumed. Truss layouts sometimes use a different first bay at a gable end, which changes the count by one.
  • Overhang is horizontal. A raked or boxed overhang may be dimensioned differently on the layout.
  • No openings. Chimneys, dormers and valleys interrupt the run and need additional framing, often a girder truss.
  • One truss shape. A roof mixing attic, scissor and standard trusses is several orders, not one count.
  • No bracing quantity. Temporary and permanent bracing is specified on the layout and is not included here.
  • No timber for the rest of the roof. Purlins, battens and sarking sit above the trusses and are separate — the roof batten and sarking calculation covers that layer, and the roof lumber calculation converts any cut members into board feet.
Follow the truss layout and the code. Spacing, bracing, temporary stability and connection details are specified by the truss designer and by the building code. A quantity calculator cannot substitute for either.

Roof Pitch Resources and Guides

Reference values for the pitches you are most likely to be converting.

Frequently asked questions

Divide the building length by the truss spacing, then add one for the far end. At 24 in (2 ft) centres on a 40 ft building: 40 ÷ 2 = 20 spaces, so 21 trusses. Spacing is usually set by the truss design and the roof sheathing span rating, not chosen freely, so confirm it on the truss layout drawing.

No. It works out geometry and count: the rise at the ridge, the slope length of the top chord, the pitch factor and how many trusses fit along the building. Member size, grade, plate details and load capacity are structural design decisions. They come from a truss designer or engineer, a span table and the code adopted where the building is.

The span is the full width the truss crosses, outside face to outside face. The run is the horizontal distance from the wall to the ridge, which on a symmetrical gable is half the span. Mixing the two is the most common error here: entering the span as a run doubles the calculated rise.

Rise equals the run multiplied by the pitch divided by 12. For a 30 ft span at 6:12, the run is 15 ft, so the rise is 15 × 6 ÷ 12 = 7.5 ft. That is the height from the wall plate line to the top of the ridge, measured on the roof line rather than to the top of the ridge board.

It is the length along the sloping top chord, from the wall line to the ridge, plus any overhang. It equals the horizontal distance multiplied by the pitch factor √(1 + (pitch ÷ 12)²). At 6:12 the factor is 1.118, so a 15 ft run with a 1 ft overhang gives 16 × 1.118 = 17.89 ft of slope length.

Usually a spare is not ordered the way shingle bundles are, because trusses are made to order for the building. What matters is that the count matches the layout drawing, including any gable-end trusses. Gable ends often use a different truss type from the common trusses, so they are counted separately even though they occupy a position in the same run.

Yes. Truss spacing and the panel span rating are linked: a panel rated for 24 in spacing is not adequate at 24 in if the rating says 16/24 and the application is a roof with snow load. The panel stamp and the code table govern the permitted combination, which is why this calculator asks for spacing rather than assuming one.

The rise and slope length are the same for the common trusses in a hip roof, but a hip adds hip trusses, jack trusses and a different end condition. Use the count for the common trusses only and take the hip framing from the truss layout, which will include additional members this calculator does not model.

Because a run of 20 spaces needs 21 members: one at each end and one between every pair of spaces. It is the same arithmetic as fence posts. Leaving out the extra one is a common ordering error.

No. IRC R502.8.2 prohibits cutting, notching or boring a truss unless the manufacturer or a registered design professional permits it, and that permission is specific rather than general. The plate positions are the design — moving one, or removing the timber around it, changes how the truss carries load. If something does not fit, the answer is a different truss or a design change, not a saw.

Yes, and this is the most misunderstood part of truss work. A truss is engineered to work within a braced system, not as a free-standing triangle. It needs temporary bracing during erection and permanent bracing for the life of the roof. Without them the trusses can buckle sideways under load, and a row can topple during construction. Both are on the layout drawing.

Flat, level, and clear of the ground, on bearers spaced closely enough that the bundle does not sag. Trusses are designed for loads in their installed orientation, not for being stacked or leaned, and a bundle left twisted on uneven ground can take a permanent set before it is ever lifted. The BCSI guide covers storage and handling in detail, and it is worth ten minutes before the lorry arrives.

Where these numbers come from

The geometry is trigonometry: a truss half is a right triangle with the run as its base and the rise as its height. The pitch factor is the hypotenuse for a unit run, and the truss count is division along the building.

Everything structural is deliberately left to primary sources. Truss design in North America is typically governed by the applicable code and by ANSI/TPI 1, the standard for metal-plate-connected wood truss construction, applied by a qualified truss designer. Installation and handling are covered separately by the BCSI guide published by the Structural Building Components Association, which is the document to read before delivery rather than after.

  • International Residential Code, Chapter 8 — Roof-Ceiling Construction (International Code Council), for the roof framing and truss provisions, including the prohibition on altering a truss in R502.8.2.
  • ANSI/TPI 1, National Design Standard for Metal Plate Connected Wood Truss Construction.
  • BCSI — Building Component Safety Information, Structural Building Components Association, for handling, installation and bracing.
  • Truss manufacturer layout drawings and span tables for the specific product.

This page states the arithmetic. It does not certify that any truss is adequate for a particular building.

Framing a cut roof instead?

Rafters are cut on site rather than made in a factory. The geometry is the same triangle.

Scroll to Top