Skip to main content

Roof Truss Calculator

Plan a gable roof truss layout: how many trusses you need, top-chord (rafter) length, ridge height, web members, lumber size from IRC span tables, design load per truss, heel height check, and a lumber takeoff with cost estimate. All math runs in your browser — no uploads, no sign-up.

Boundary: this tool designs the truss layout (count, members, loads, lumber sizing, cost). If you only need to measure an existing roof's slope or convert X:12 pitch to degrees, use our roof pitch calculator instead — pitch measurement is a different job from truss design.

Truss designer

Common truss types

All five types below are symmetric gable trusses with a bottom chord (ceiling tie), two top chords (rafters), and web members that carry the load to the walls. The calculator sizes every member for the type you pick.

  • King post — the simplest truss: one central vertical post from tie beam to ridge. Best for short spans (up to ~16 ft) and steep pitches; cheap, leaves the most open space.
  • Queen post — two vertical posts with a collar beam between them, leaving a clear center bay. Good for 16–24 ft spans and rooms where you want an open middle.
  • Fink (W) — the workhorse of modern residential framing: a W of webs. Efficient for 20–36 ft spans at 24" spacing, which is why most manufactured trusses are fink-style.
  • Howe — verticals plus diagonals in every panel. A heavier-duty pattern for 30–60 ft spans (barns, garages, light commercial).
  • Fan — like a fink with extra webs fanning from the center. Used for 30–50 ft spans where you want more load paths and a busier, decorative web pattern.

Member names used below: top chord = the sloped rafter member (wall to ridge plus overhang tail); bottom chord = the horizontal tie across the span; webs = the interior members (posts and diagonals).

Reference: IRC rafter span table (planning aid)

The lumber recommendation above is read from 2018 IRC Table R802.5.1(1), Douglas fir-larch #2, ceiling joists not attached to rafters, 10 psf dead load, 20 psf snow/live load. "Span" is the horizontal projection of one rafter = half your building span. The tool picks the smallest size whose maximum span covers your half-span. Manufactured trusses are engineered products (TPI 1) — this table is a conservative planning reference, not a substitute for the full table or stamped design.

Truss spacing (o.c.)2×4 max span2×6 max span2×8 max span2×10 max span2×12 max span
12" o.c.10'-10"16'-7"21'-0"25'-8"—
16" o.c.9'-10"14'-4"18'-2"22'-3"25'-9"
19.2" o.c.8'-11"13'-1"16'-7"20'-3"23'-6"
24" o.c.8'-0"11'-9"14'-10"18'-2"21'-0"

Source: 2018 IRC R802.5.1(1) via ICC Digital Codes and county-published rafter span tables. Spot-checked before publication; see SOURCES. "—" means the span exceeds 26 ft (beyond the prescriptive table).

Worked example

A 24 ft span garage, 6/12 pitch, 32 ft long, fink trusses at 24" on center, 1 ft overhang, ground snow 20 psf, dead load 10 psf, lumber at $1.25/board foot, 10% waste:

  1. Run = 24 ÷ 2 = 12.00 ft; rise = (6/12) × 12 = 6.00 ft; angle = atan(6/12) = 26.57°.
  2. Rafter (wall to ridge) = √(6.00² + 12.00²) = 13.42 ft. Overhang tail = 1 × √(1 + 0.5²) = 1.12 ft, so each top chord = 14.53 ft.
  3. Truss count = floor(32 ÷ 2) + 1 = 17 trusses (both gable ends included).
  4. Half-span 12 ft at 24" o.c.: 2×6 tops out at 11'-9", so the table recommends 2×8 top chords.
  5. Fink members per truss: 2 top chords (14.53 ft), bottom chord 24 ft, king post 6 ft, 2 diagonal webs 6.71 ft each → 72.49 lin ft per truss.
  6. Takeoff: chords 902.17 lin ft (1202.89 bf @ 2×8), webs 330.08 lin ft (220.05 bf @ 2×4) → 1422.95 board feet total.
  7. Cost: 1422.95 bf × $1.25 = $1,778.68 materials; +10% waste → $1,956.55.
  8. Load: balanced snow = 0.7 × 20 = 14.0 psf; design = 10 + max(20, 14.0) = 30.0 psf; per truss = 30.0 × 24 × 2 = 1,440 lb.
  9. Heel check: required heel for 2×8 at 26.57° = 7.25 ÷ cos(26.57°) = 8.1"; a 9" heel clears it.

Every number above is computed by the engine on this page — change the inputs above and the calculator re-runs the same steps live.

How the math works

Every result comes from plain geometry plus the IRC reference table — no black boxes:

  • Run = span ÷ 2. Rise = (pitch ÷ 12) × run. Angle = atan(pitch ÷ 12).
  • Rafter (wall to ridge) = √(rise² + run²) — the Pythagorean theorem on the roof triangle.
  • Overhang tail = overhang × √(1 + (pitch ÷ 12)²) — the same slope extended past the wall.
  • Top chord per side = rafter + tail. Ridge height = rise.
  • Truss count = floor(roof length ÷ spacing) + 1 — the +1 covers both gable ends.
  • Balanced roof snow = 0.7 × ground snow Pg (simplified; assumes exposure, thermal and importance factors of 1.0). Design load = dead + max(20 psf roof live, balanced snow). Load per truss = design psf × span × tributary width (spacing in feet).
  • Board feet = thickness(in) × width(in) ÷ 12 × length(ft). A 2×8 carries 16⁄12 = 1.33 bf per linear foot; a 2×4 carries 8⁄12 = 0.67 bf/ft.

Snow, dead and live loads

The IRC requires roofs to carry dead load (the permanent weight: shingles, sheathing, the truss itself — typically 10 psf for light roofing, 15–20 psf for tile) plus the larger of roof live load (20 psf minimum per IRC R301.6) and snow load. This tool uses the simplified balanced-snow formula ps = 0.7 × Pg from ASCE 7 Chapter 7 with all adjustment factors at 1.0 — a reasonable planning number, but real snow design also checks drift, unbalanced sliding snow, and your local code's ground snow map (ASCE 7 Figure 7.2-1 or your building department).

Each truss carries a tributary strip of roof one spacing wide: at 24" on center, every truss supports a 2 ft wide strip of the full span. Multiply the design psf by span × tributary width to get the total pounds one truss must carry — that number is what you hand to a truss manufacturer or engineer.

Uplift: in high-wind regions the wind can try to lift the roof off the walls. IRC R802.11 requires mechanical uplift connectors (hurricane ties) sized for your wind speed — this calculator covers gravity loads only.

Heel height, explained

The heel is the vertical height of the truss at the outside of the wall — where the top chord passes over the wall plate. Two things compete for that space:

  • Bearing: the top chord needs enough heel for its birdsmouth seat cut. A quick check: required heel ≈ lumber depth ÷ cos(angle). For a 2×8 at 6/12 pitch that's 7.25 ÷ cos(26.57°) ≈ 8.1".
  • Insulation: an "energy heel" (typically 9–12"+) leaves room for full-depth insulation over the wall plate, avoiding the cold compressed-insulation strip that causes ice dams.

Enter your heel height above and the tool flags it if it falls short of the bearing minimum for the recommended lumber size.

Manufactured vs. site-built trusses

Most residential trusses today are manufactured: designed per the Truss Plate Institute's TPI 1 standard, assembled with metal connector plates in a plant, and delivered with a stamped truss design drawing for your exact span, load and spacing. The lumber-size recommendation on this page follows the IRC prescriptive rafter table and is the right reference for site-built trusses (cut and assembled on site), but any site-built truss beyond the prescriptive tables still needs an engineer's stamp.

Use this calculator to plan — counts, member lengths, takeoff, budget — then take the numbers to a truss manufacturer or structural engineer for the final design.

Not stamped engineering. This tool is a planning aid for estimating and budgeting. It does not replace a structural engineer or a manufacturer's certified truss design. Always verify spans, loads and connections with a licensed professional and your local building department.

Frequently asked questions

How do I calculate how many roof trusses I need?
Divide the building length (in feet) by the truss spacing (in feet), round down, and add one for the far gable end: count = floor(length ÷ spacing) + 1. A 32 ft long building with trusses at 24" (2 ft) on center needs floor(32 ÷ 2) + 1 = 17 trusses. Order one or two spares — a damaged truss during craning is common.
What is the standard spacing for roof trusses?
24 inches on center is the residential standard — it matches 4×8 sheathing and keeps lumber costs down. Use 16" or 12" on center for heavy snow country, tile roofing, or long spans where the span table demands it. Wider than 24" is not prescriptive under the IRC.
How long should the rafter (top chord) be for my span and pitch?
Top chord = √(rise² + run²) + overhang tail, where run = span ÷ 2 and rise = (pitch ÷ 12) × run. For a 24 ft span at 6/12: run 12 ft, rise 6 ft, rafter = √(36 + 144) = 13.42 ft, plus a 1 ft overhang tail of 1.12 ft = 14.53 ft per side. The calculator above does this instantly, including the overhang.
What size lumber do I need for roof trusses?
For site-built trusses, read the IRC rafter span table (R802.5.1): find your half-span and spacing, and take the smallest size whose maximum span covers it. Example: 24 ft span (12 ft half-span) at 24" o.c. in Douglas fir-larch #2 — 2×6 tops out at 11'-9", so you need 2×8. Manufactured trusses are engineered individually and don't follow this table.
What is the difference between this tool and a roof pitch calculator?
A roof pitch calculator measures slope — it converts between X:12, degrees and rise/run, or finds the pitch of an existing roof. This roof truss calculator designs the structure: how many trusses, every member length by truss type, lumber size from span tables, design load per truss, heel height and a cost takeoff. If you only need the slope angle, use our roof pitch calculator; if you're planning the framing, you're in the right place.
King post vs queen post vs fink vs howe vs fan — which truss type should I choose?
King post for short spans (to ~16 ft) and simple roofs; queen post when you want an open center bay (16–24 ft); fink (W) as the default for 20–36 ft residential spans at 24" o.c.; howe for heavy-duty 30–60 ft spans like barns; fan for 30–50 ft spans where you want extra webs. When in doubt, price a fink — it's the cheapest per foot of span.
How do I calculate the snow load on a roof truss?
Start with your ground snow load Pg (from ASCE 7 maps or your building department). Balanced roof snow ≈ 0.7 × Pg. The design load is dead load plus the larger of 20 psf roof live load and the balanced snow. One truss carries design psf × span × spacing (in feet). Example: 20 psf snow, 10 psf dead, 24 ft span, 24" spacing → 30 psf × 24 × 2 = 1,440 lb per truss. Drift and unbalanced loads need an engineer's review.
What is heel height and why does it matter?
Heel height is the vertical thickness of the truss where it sits on the wall. It must clear the birdsmouth seat cut (roughly lumber depth ÷ cos(pitch angle)) and, ideally, leave room for full-depth insulation — an "energy heel" of 9"+ prevents the thin-insulation strip at the eaves that causes ice dams. The calculator checks your heel against the bearing minimum.
Can I build roof trusses on site, or must they be manufactured?
Both are legal. Site-built trusses must follow the IRC prescriptive provisions or carry an engineer's stamp; manufactured trusses come with TPI 1 certified design drawings and metal connector plates. For anything beyond simple king-post trusses, manufactured is usually cheaper and faster — get three quotes from local truss plants.
How do I estimate the cost of roof trusses?
Two parts: the trusses themselves (manufacturers often quote $100–$300+ per truss depending on span) and/or the lumber. For a lumber takeoff: total linear feet of each member × trusses, convert to board feet (thickness × width ÷ 12 × length), multiply by your $/bf, and add 10–15% waste. The worked example above turns a 24 ft garage into about 1422.95 board feet ≈ $1,956.55 in lumber.
Does the truss count include gable-end trusses and overhangs?
Yes. The count formula (floor(length ÷ spacing) + 1) starts one truss at the first gable end and lands one on the far end. Gable-end trusses are often framed differently (a "gable end truss" or "gable ladder" with vertical studs for sheathing) — confirm the detail with your framer. Overhang tails are included in the top-chord length.
Is this calculator a substitute for a structural engineer?
No. It's a planning and budgeting aid: geometry, prescriptive span-table lookups and simplified loads. Real truss design must account for your local code edition, actual ground snow and wind speed, drift and unbalanced snow, connection design and deflection limits. Take these numbers to a licensed structural engineer or a certified truss manufacturer before you build.

Free tool by NRTechStudio