Roof Truss Calculator – Rafter Length from Span and Pitch

Calculate rafter length for a symmetrical gable roof truss from building span, pitch, and overhang.

AI Quick Summary

Definition & Purpose:

This calculator finds the rafter length needed for a symmetrical gable roof truss, from the building's span, roof pitch, and overhang.

When to Use:

Use it when framing a standard symmetrical gable roof and need to determine the required rafter length from the building's span and chosen pitch.

Key Takeaway Insights:

  • Roof pitch is conventionally expressed as inches of rise per 12 inches of horizontal run, so a 4:12 pitch rises 4 inches vertically for every 12 inches it moves horizontally toward the ridge.
  • Rafter length calculation is a direct application of the Pythagorean theorem — the horizontal run and vertical rise form the two legs of a right triangle, and the rafter itself is the hypotenuse.
  • Overhang adds directly to the calculated rafter length and needs to be included separately, since it extends the rafter past the point where the roof's rise and run relationship is actually measured (the wall plate).

Truss Span

Truss Rafter Length

Enter truss settings.
Share or Export Results

Introduction

Roof Truss Calculator

Enter the building span, roof pitch, and overhang, and this calculator returns the rafter length needed for a standard symmetrical gable roof.

Formula

Rafter Length = √((Span ÷ 2)² + Rise²) + (Overhang ÷ 12), where Rise = (Span ÷ 2) × (Pitch ÷ 12)

For a 24 ft span, 4:12 pitch, and 12-inch overhang: Run = 12, Rise = 12 × (4/12) = 4, Rafter = √(144 + 16) + 1 ≈ 13.65 ft.

The right triangle hiding in every roof

A rafter, half the roof's rise, and half the roof's span form a right triangle — the run and rise are the two legs, and the rafter itself is the hypotenuse. That's the entire geometric basis for this calculation: the Pythagorean theorem, applied to whatever run and rise a given span and pitch produce. It's the same underlying math carpenters have used for centuries, just automated here.

Why overhang gets tacked on separately

The pitch relationship that defines a roof's rise and run is measured from the wall plate up to the ridge — overhang is extra rafter length beyond that wall plate, added to create the protective eave that keeps water off the walls below. Because overhang doesn't follow the same rise-over-run geometry as the main rafter span, it's simply added on afterward as a flat additional length, converted from inches to feet, rather than folded into the triangle calculation itself.

Formula & Variables Explained

Rafter Length = sqrt((Span/2)^2 + Rise^2) + (Overhang / 12), where Rise = (Span/2) x (Pitch/12).

This tool utilizes standard equations formulated under standard rules.

Variables:

  • Input parameter: Values supplied to resolve the output formula.

How to Calculate (Step-by-Step)

  1. Input the required parameters into the form.
  2. Click the calculate or auto-compute option.
  3. The outputs will refresh instantly with step-by-step variables.

Worked Examples Calculation

124 ft span, 4:12 pitch, 12in overhang

Inputs Given:

Span = 24 ft, Pitch = 4/12, Overhang = 12 in

Step-by-Step Calculation:

Run=12, Rise=12x(4/12)=4, Rafter=sqrt(144+16)+1 = 12.649+1 = 13.65

Result Obtained:

Rafter Length ≈ 13.65 feet

Real-World Applications

Widely used in student curriculum, professional projections, and quick estimations.

Limitations & Common Mistakes

Caution & Mistakes:
  • Entering incompatible unit formats (e.g. Mixing Metric and Imperial).
  • Typographical mistakes in numeric entry fields.
Limitations:

This calculates rafter length for a standard symmetrical gable roof — it doesn't apply directly to more complex roof shapes like hip roofs, roofs with unequal pitches on each side, or roofs with dormers and other intersecting sections.

Frequently Asked Questions (FAQ)

Q:How is roof pitch measured and expressed?

Roof pitch is conventionally written as a ratio of rise to a fixed 12-inch run, such as 4:12 or 6:12 — meaning the roof rises 4 (or 6) inches vertically for every 12 inches it travels horizontally. Steeper pitches, like 12:12 (a 45-degree angle), shed snow and water more effectively, while shallower pitches, like 3:12, are more common in milder climates or for certain architectural styles.

Q:Why is overhang added after the Pythagorean calculation?

The core rise-and-run relationship that defines a roof's pitch is measured from the wall plate (where the wall meets the roof) to the ridge — overhang is additional rafter length that extends past that wall plate to create eave protection, and it doesn't follow the same rise-over-run pitch relationship since it's typically framed level or with a small additional drop rather than continuing the roof's full pitch angle outward. That's why it's added as a separate length rather than folded into the Pythagorean calculation itself.

Q:What's a typical roof pitch for different climates?

Areas with heavy snowfall often use steeper pitches, commonly 8:12 to 12:12 or more, to help snow slide off before it accumulates to damaging weight. Milder or drier climates frequently use shallower pitches, often in the 3:12 to 6:12 range, since snow load isn't a major design concern and a lower pitch typically costs less in materials and labor.

Q:Does this work for hip roofs?

This calculation is designed for a standard symmetrical gable roof, where each rafter runs from the wall plate straight up to a central ridge. Hip roofs, which slope on all four sides rather than just two, involve additional geometry for hip and jack rafters that this simplified formula doesn't cover — hip roof framing typically requires more specialized rafter tables or software.

Last Updated: 2026-08-09
Formula Verified
Written By

CalculationDesk Editorial Team

Content & Calculation Editors

The CalculationDesk Editorial Team consists of math educators, technical writers, and product specialists dedicated to ensuring accuracy and clarity for everyday calculations.

Reviewed By

CalculationDesk Review Team

Quality Assurance & Formula Verifiers

Our internal Review Team ensures that every calculator logic corresponds precisely to established academic standards and industry specifications.

Was this calculator helpful?

Embed this Calculator

You are welcome to embed this tool on your own blog or website. Simply copy the code snippet below and paste it into your HTML code.