ℹ️ Over 50,000 builders and DIYers use this rafter length calculator 2026. Calculate common rafter length, run, rise, pitch, and slope factor using standard US framing math.
💡 Pro Tip: Always add the overhang before subtracting the ridge board. And always measure twice, cut once — rafter errors multiply across the entire roof.
Result: Run 5 ft | Rise 3.33 ft | Rafter 7.83 ft (94")
✅ "The slope factor made the math easy. No more guessing at the lumber yard."
What is a Rafter Length Calculator and How Does It Work?
A rafter length calculator determines the exact length of a common rafter based on your building width, roof pitch, overhang, and ridge board thickness. Our rafter length calculator 2026 uses the standard Pythagorean theorem and slope factor method taught in American framing, giving you precise measurements for cutting rafters accurately on the first try .
How does the roof rafter calculator work? Enter your building width, roof pitch, eave overhang, and ridge board thickness. The calculator instantly shows your run, rise, rafter length, slope factor, roof angle, and total span. It also subtracts half the ridge board thickness so your cut list matches field installation .
The Rafter Length Formula Explained
Rafter length is calculated in three steps :
Step 1: Find the run (horizontal distance). Run = Building Width ÷ 2. For a 24-foot wide building, run = 12 feet.
Step 2: Find the rise (vertical height). Rise = Run × (Pitch ÷ 12). For 6/12 pitch: Rise = 12 × (6 ÷ 12) = 6 feet.
Then add the overhang (converted along the slope), and subtract half the ridge board thickness .
What is the Slope Factor (Rafter Multiplier)?
The slope factor, also called the rafter multiplier, is a shortcut that lets you calculate rafter length directly from the run. The formula is Slope Factor = √(1 + (Pitch ÷ 12)²) .
Multiply your run by the slope factor to get the rafter length. For 6/12 pitch, the slope factor is 1.118, so a 12-foot run gives a rafter of 13.42 feet — the same result as the Pythagorean method .
Handling Overhang and Ridge Board
Overhang: Typical residential overhangs are 12-24 inches. Measure the overhang horizontally, then multiply by the slope factor to get the length along the rafter. For a 12" (1 ft) overhang at 6/12 pitch: 1 × 1.118 = 1.12 feet of rafter .
Ridge board: Common rafters butt against the ridge board, so you must subtract half the ridge board thickness. For a 1.5-inch ridge (actual thickness of 2x material), subtract 0.75 inches from each rafter. For a 3-inch engineered ridge, subtract 1.5 inches .
Common Rafter vs Hip and Valley Rafters
Common rafters run perpendicular from the top plate to the ridge and are equal in length on both sides of a symmetric gable roof.
Hip rafters run diagonally from the corner of the building to the ridge and are longer than common rafters by the ratio √2 (1.414) of their run.
Valley rafters run diagonally where two roof slopes meet and are calculated similarly to hip rafters using the valley's run and the pitch .
Standard US Roof Pitch Values (2026)
2/12 to 4/12: Low-slope roofs. Requires special underlayment and often metal or low-slope shingles .
4/12 to 8/12: Standard residential pitch. Asphalt shingles work well and drainage is adequate.
8/12 to 12/12: Steep roofs. Steeper pitch drains faster but requires more material, more labor, and special fall protection.
❓ Frequently Asked Questions
How do I calculate rafter length?
Rafter length is calculated using the Pythagorean theorem: Rafter Length = √(Run² + Rise²). For a roof with a 12-foot run and 6/12 pitch, rise = 12 × 6/12 = 6 feet, so rafter = √(144 + 36) = √180 = 13.42 feet. Add overhang separately, then subtract half the ridge board thickness .
What is the rafter length for a 6/12 pitch?
For a 6/12 pitch, the rafter rises 6 inches for every 12 inches of horizontal run. The slope factor is √(1 + (6/12)²) = 1.118. So a 12-foot run gives a rafter length of 12 × 1.118 = 13.42 feet (161 inches). Add overhang and subtract half the ridge board .
How much overhang should a rafter have?
Typical residential overhangs are 12-24 inches (1-2 feet). This protects the siding and foundation from water. Gable end overhangs on the rake are measured along the slope, not horizontally. Add the overhang to the rafter length before subtracting the ridge board deduction .
Do I subtract the ridge board from rafter length?
Yes. Common rafters butt against the ridge board, so you must subtract half the ridge board thickness from the rafter length. For a 1.5-inch ridge board (2x material actual thickness), subtract 0.75 inches from each rafter length .
What is the slope factor for rafters?
The slope factor (also called rafter multiplier) is √(1 + (pitch/12)²). Common values: 4/12 = 1.054, 6/12 = 1.118, 8/12 = 1.202, 10/12 = 1.302, 12/12 = 1.414. Multiply the horizontal run by this factor to get the rafter length .
What's the difference between run, rise, and span?
Span is the total width the roof covers (building width plus two overhangs). Run is half the span—the horizontal distance from the outside wall to the ridge. Rise is the vertical height from the top plate to the ridge, calculated as Run × (Pitch/12) .
💡 Expert Tips for Rafter Layout
Tip #1: Use a framing square and the pitch numbers to lay out the ridge plumb cut and birdsmouth, not a tape measure. The slope factor is for length; the pitch number is for angle.
Tip #2: Always add the overhang before subtracting the ridge board. Order matters — subtracting first gives you short rafters .
Tip #3: Cut one test rafter and dry-fit it before cutting all the rest. A 1/8" error multiplied across 24 rafters will skew the entire roof.
Tip #4: For high-pitch roofs (10/12 and above), consider engineered trusses instead of stick-framed rafters. They arrive pre-cut and pre-assembled for safety and speed.
📐 Still Asking "How Long Do My Rafters Need to Be?"
Get your exact rafter length in 30 seconds. Trusted by 50,000+ builders and DIYers.
🛡️ CDCalculators proprietary rafter length calculator 2026 — data sources: International Residential Code (IRC) R802, standard American framing practice, ASTM lumber dimensions. Last updated October 20, 2026. Disclaimer: Estimates only. Verify with local code and a licensed structural engineer before construction.