Skip to content
UseCalcNow
Construction

Roof Truss Calculator — Plan Lumber & Spacing

Calculate roof truss count, rafter length, top chord dimensions, and roof angle for any span and pitch.

About This Calculator

A roof truss calculator gives you the exact truss count, top chord length, bottom chord length, and roof angle based on your building span, pitch, and spacing. Instead of guessing lumber quantities or hoping your spacing works out, you get precise numbers before ordering materials. Enter your building dimensions and pitch to get started.

The Formula Behind This Calculator

The calculator divides your building span by 2 to find the horizontal run of one side of the truss. It then multiplies that run by the pitch ratio (pitch divided by 12) to find the vertical rise. The top chord length is calculated using the Pythagorean theorem: the square root of run squared plus rise squared, with the overhang added. Truss count comes from dividing the building length by the truss spacing (converted to feet) and adding 1 for the starting truss. The roof angle is derived from the arctangent of rise divided by run, converted to degrees.

Understanding the math helps you verify results and make better decisions for your project.

How to Use

  1. 1Enter your building span in feet — this is the width across the gable end
  2. 2Input the roof pitch as rise per 12 inches of run (4 means 4/12 pitch)
  3. 3Set the overhang in feet for eave extension beyond the walls
  4. 4Enter the building length to determine how many trusses you need
  5. 5Adjust truss spacing if you are using something other than the standard 24 inches on center

When to Use

  • Planning a new garage, shed, or home roof structure
  • Estimating lumber quantities for a truss order
  • Checking whether a different pitch or spacing would reduce material costs
  • Verifying measurements from architectural plans before cutting lumber
  • Comparing prefabricated truss pricing vs site-built rafter framing

Tips

  • Most residential trusses use 24 inch on center spacing, but 16 inch spacing handles heavier snow loads
  • A 4/12 pitch is the most common for standard ranch homes — steeper pitches shed snow better but cost more in lumber
  • Order 1 or 2 extra trusses as spares in case one gets damaged during installation
  • Overhang beyond 2 feet requires additional structural support like outlookers or ladder framing
  • Check local building codes for wind and snow load requirements before finalizing truss design

Understanding Roof Truss Anatomy and Components

A roof truss is a prefabricated triangular structure made from dimensional lumber connected by metal gusset plates. The three main components are the top chords (sloped members forming the roof surface), the bottom chord (horizontal member forming the ceiling), and web members (interior braces that transfer loads between chords). Each component is engineered to handle specific tension and compression forces, and altering any piece compromises the entire structure.

The top chord follows the roof slope from the peak down to the wall plate, and its length depends on the span and pitch. For a 24 foot span with a 4/12 pitch, each top chord measures roughly 12.65 feet before adding overhang. The bottom chord spans the full building width and ties the walls together, preventing them from spreading under roof loads. A framing calculator helps verify wall and floor dimensions that affect truss bearing points.

Web members — the diagonal and vertical pieces inside the triangle — vary based on truss style and span. A king post truss has a single vertical member, while a fan truss uses multiple diagonals radiating from the peak. The web pattern changes how loads distribute through the truss and what attic space remains usable.

Common Truss Styles for Residential and Agricultural Buildings

Fink or W-style trusses are the most common for residential construction up to 32 foot spans. They use a W-shaped web pattern that balances cost, strength, and material efficiency. For wider spans up to 60 feet, fan trusses distribute loads through radiating web members. Attic trusses (or room-in-attic trusses) include a rectangular center section that creates usable living space inside the roof envelope.

Gambrel trusses create the classic barn roof profile with two slopes on each side — a steeper lower slope and a gentler upper slope. A gambrel roof calculator handles the geometry for this style, which maximizes headroom in lofts and storage areas. Scissor trusses curve upward on the bottom chord to create vaulted ceilings without a flat surface.

For agricultural buildings and pole barns, pole barn trusses (sometimes called barn trusses) use heavier lumber and wider spacing — sometimes 4 to 8 feet on center with purlins running between them. These trusses typically span 30 to 80 feet and cost less per square foot than closely spaced residential trusses, but require more secondary framing.

Truss Spacing Standards and Building Code Requirements

The International Residential Code (IRC) and International Building Code (IBC) dictate structural requirements that affect truss spacing. Standard residential spacing is 24 inches on center, which works for asphalt shingle roofs on buildings up to 60 feet long. Metal roofs with 29 gauge corrugated panels also work at 24 inch spacing, while standing seam metal roofs handle it with ease.

Reducing spacing to 16 inches on center increases load capacity by roughly 50 percent and reduces deflection under heavy snow. In regions with ground snow loads above 50 psf, local building departments often require 16 inch spacing or engineered trusses rated for the specific load. A rafter length calculator helps verify rafter dimensions when switching from trusses to site-built framing.

Truss spacing also affects what roofing material you can use. Clay and concrete tiles often require battens spaced at specific intervals, which means the truss spacing must align with the batten layout. Wood shakes and slate need solid decking or closely spaced framing to prevent individual pieces from flexing and cracking under foot traffic.

Top Chord Length and Rafter Geometry

The top chord length is the hypotenuse of the right triangle formed by the run (half the span) and the rise (run multiplied by pitch over 12). For example, a 30 foot span with a 6/12 pitch has a 15 foot run and a 7.5 foot rise, producing a top chord of 16.77 feet before overhang. Adding a 2 foot overhang extends this to 18.77 feet per side.

The roof angle follows directly from the pitch. A 4/12 pitch produces an 18.4 degree angle, while an 8/12 pitch yields 33.7 degrees and a 12/12 pitch gives exactly 45 degrees. Steeper angles shed water and snow faster but increase wind exposure and require more labor to install. The roofing calculator estimates total roof surface area based on these angles.

When ordering prefabricated trusses, the manufacturer handles all geometric calculations and engineering. But for site-built rafter construction, accurate top chord measurements are critical. A small error in pitch or span translates to significant gaps at the ridge board or wall plate. The birdsmouth cut calculator helps locate the notch where the rafter seats on the wall plate.

Bottom Chord Considerations and Ceiling Loads

The bottom chord does double duty — it ties the walls together against outward thrust from the roof load, and it supports the ceiling. Standard bottom chords use 2x4 lumber for spans up to 28 feet, 2x6 for spans up to 40 feet, and 2x8 or larger for wider spans. The chord must carry the weight of insulation, drywall, light fixtures, and any stored items.

Attic trusses use a heavier bottom chord to create a habitable room inside the truss envelope. These typically need 2x8 or 2x10 bottom chords to handle the 40 psf live load required for living spaces. Regular storage trusses rated for 20 psf can handle seasonal storage but are not safe for occupied rooms. The lumber calculator estimates board footage for bottom chord material when building rafters on site.

Bottom chord deflection limits matter for drywall ceilings. The IRC limits deflection to L/240 for plaster ceilings and L/180 for non-plaster, where L is the span in inches. A 24 foot span allows 1.2 inches of deflection before risk of drywall cracking appears. Truss manufacturers provide deflection data on their engineering drawings for each specific design.

Roof Pitch and Its Effect on Truss Performance

Roof pitch changes everything about how a truss performs. Low pitches between 2/12 and 4/12 shed water slowly, making them better suited for membrane roofing or standing seam metal. Standard pitches from 4/12 to 9/12 dominate residential construction because they balance weather performance, attic headroom, and construction cost. Pitches above 10/12 create dramatic rooflines that handle heavy snow but increase material and labor costs.

The pitch directly affects the roof surface area. A 4/12 pitch over a 24 by 40 foot building yields roughly 1,060 square feet of roof surface. Bump that to 8/12 and the surface area grows to about 1,200 square feet — a 13 percent increase that means more shingles, underlayment, and decking. The roof shingle calculator quantifies this difference for material ordering.

Wind uplift is another pitch consideration. Low-slope roofs experience more upward wind force on the top side, while steep roofs catch wind on the windward slope. In hurricane zones (wind speeds above 115 mph), building codes require engineered truss tie-downs and sometimes specify pitch ranges that minimize uplift. The roof pitch calculator converts between pitch ratios, angles, and percentages for building department submittals.

Foundation and Load Path for Truss Roofs

Every roof truss transfers its load downward through the walls to the foundation. The bearing points — where the truss heels rest on the wall top plate — carry concentrated loads that can reach 1,500 to 3,000 pounds per truss under full design conditions. Wall framing must include studs directly below each truss bearing point, and the top plate needs to be continuous without joints at bearing locations.

For new construction, the foundation and footing size account for the total roof load including dead load (truss weight, decking, shingles), live load (snow, maintenance workers), and wind load (uplift and lateral). A single-story home with a 4/12 truss roof typically transfers 15 to 25 psf in dead load alone. The concrete slab calculator helps size footing pads and foundation walls that carry these loads to the ground.

Retrofit projects face different challenges. Replacing rafters with trusses in an existing building means the walls were not necessarily designed for concentrated point loads at standard truss spacing. A structural engineer should verify that the existing wall framing, header sizes, and foundation can handle the revised load paths before any truss installation begins.

Planning Truss Delivery and Installation

Prefabricated trusses are large, fragile, and expensive to transport. A 40 foot truss needs a flatbed trailer and often a crane for offloading. Most manufacturers bundle trusses in stacks of 5 to 10 and require a clear delivery path from the street to the building site. Narrow lots, overhead power lines, and soft ground can all complicate delivery scheduling.

Installation typically requires a crane and a crew of 3 to 5 workers. The first truss is set, braced temporarily to the end wall, and each subsequent truss is placed at the correct spacing with temporary purlins holding it plumb. Permanent bracing — diagonal braces along the bottom chord and lateral braces on the top chords — must be installed before the crew leaves the roof. Skipping permanent bracing is the leading cause of truss collapse during construction.

Weather plays a role in scheduling. Wind speeds above 20 mph make truss handling dangerous due to the large surface area acting like a sail. Most professional crews avoid installing trusses on windy days or during precipitation. Planning the installation window during calm weather reduces the risk of damage and injury.

FAQ

How far apart should roof trusses be spaced?

Standard spacing is 24 inches on center for most residential roofs. For areas with heavy snow loads or high winds, 16 inch spacing provides extra structural capacity. Metal roofing can often handle 24 inch spacing, while tile roofs may require 16 inch or even 12 inch spacing.

What is the difference between a truss and a rafter?

Rafters are individual sloped beams cut and installed on site, usually 2x8 or 2x10 lumber. Trusses are pre-assembled triangular structures built in a factory with top chords, bottom chords, and web members. Trusses span longer distances and install faster, while rafters allow more attic flexibility.

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

At 24 inch spacing, a 40 foot building needs 21 trusses (40 divided by 2 feet plus 1 for the starting truss). At 16 inch spacing, you would need 31 trusses.

What roof pitch is best for snow load?

Pitches of 6/12 or steeper shed snow effectively. In regions with extreme snowfall, 8/12 or 10/12 pitches are common. Anything below 4/12 risks snow accumulation that can exceed structural capacity.

Can I modify a prefabricated truss on site?

No. Cutting or altering any chord or web member of a prefabricated truss voids its engineering certification and can cause structural failure. Any modifications must be approved by a licensed truss engineer.

How much overhang should a roof truss have?

Standard overhangs range from 12 to 24 inches. Beyond 24 inches, the overhang needs structural reinforcement like raised-heel trusses or ladder framing to prevent sagging and carry wind uplift loads.

Related Calculators