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.
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.
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.
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