Rafter Length Calculator
ConstructionCalculate the exact rafter length you need, including overhang, from your roof's horizontal run and pitch. Get instant results for framing any roof.
Reviewed by the thecalcu.com team · Last updated July 6, 2026
Total Rafter Length
What is a Rafter Length?
A Rafter Length Calculator determines the total length of lumber needed to cut a common roof rafter, including the sloped distance from ridge to wall plate plus any eave overhang, based on your roof's horizontal run and pitch. This calculation is fundamental to stick-frame roof construction, where each rafter must be cut to the correct length and angle to properly support the roof surface.
Getting rafter length right avoids wasted lumber from over-cutting or, worse, discovering a rafter is too short after cutting. Pair this calculator with the Roof Pitch Calculator if you need to derive your pitch from existing measurements, or the Birdsmouth Cut Calculator for the notch where the rafter meets the wall plate.
Why Use a Rafter Length Calculator?
Manually applying the Pythagorean theorem for rafter length, then remembering to add the overhang portion separately, is a multi-step calculation that's easy to make small errors in, especially when working with fractional pitch values or unusual overhang lengths. This calculator handles both steps together, giving you a single total length figure.
It's also useful for quickly comparing how different pitch options affect rafter length and material cost, before committing to a final roof design.
Who Should Use This Calculator?
Framing carpenters use this calculator on job sites to quickly determine rafter length before cutting a batch of matching rafters. DIY builders constructing a shed, porch, or small addition use it to get accurate cut lengths without manual trigonometry. Lumber yard staff use it to help customers order the correct stock length for their roof design. Architects and designers use it during early planning to estimate material requirements for different pitch options. Trade school instructors use it to demonstrate the geometric principles behind traditional rafter squares and framing tables.
What Insights Does the Rafter Length Calculator Give You?
The Total Rafter Length is the primary result, the full length of lumber to cut, including both the core rafter length from wall to ridge and the overhang extension. This is the minimum stock length to purchase for each rafter. The Rise output shows the vertical height the rafter climbs over its horizontal run, useful for cross-checking your roof's overall height and for related calculations like ridge board height above the wall plate.
How to use this Rafter Length calculator
- Enter your Horizontal Run in feet, typically half your building's width for a simple gable roof.
- Select your Roof Pitch (rise per 12 in run) from the dropdown.
- Enter your desired Overhang in inches, the eave extension beyond the wall line.
- Review the Total Rafter Length result for your minimum stock length to purchase and cut.
- Review the Rise result to cross-check your roof's overall height calculation.
Show formula & methodology ↓Show less ↑
Formula & Methodology
The calculator applies the Pythagorean theorem to find core rafter length, then adds overhang: Rise = Run × (Pitch Rise ÷ 12) Core Rafter Length = √(Run² + Rise²) Hypotenuse Factor = √(1 + (Pitch Rise ÷ 12)²) Overhang Length = (Overhang ÷ 12) × Hypotenuse Factor Total Rafter Length = Core Rafter Length + Overhang Length Worked example: For a 12 ft run with a 6/12 pitch and 12 in overhang: Rise = 12 × (6 ÷ 12) = 6 ft Core Rafter Length = √(12² + 6²) = √(144 + 36) = √180 ≈ 13.42 ft Hypotenuse Factor = √(1 + 0.5²) = √1.25 ≈ 1.118 Overhang Length = (12 ÷ 12) × 1.118 ≈ 1.118 ft Total Rafter Length = 13.42 + 1.118 ≈ 14.54 ft
Frequently Asked Questions