🔥 Unlock 16,000+ Woodworking Plans with TedsWoodworking!
Back to Calculators
Construction & Framing

Rafter Length Calculator

Calculate the length of a common rafter based on roof span, pitch, and overhang.

The Rafter Length Calculator is an essential tool for anyone framing a roof. It uses the principles of the Pythagorean theorem to determine the precise length of a common rafter based on the roof's span, pitch, and desired overhang. Accurate rafter lengths are fundamental to a strong, straight, and well-built roof structure.

This calculator helps you find the 'line length'—the theoretical measurement along the rafter from the ridge to the wall's top plate—as well as the total length including the eave overhang. It simplifies the complex geometry involved in roof framing, saving you time and reducing the chance of costly cutting errors.

Quick Samples
Try these common scenarios to get started
Calculator
Enter your measurements and specifications
/ 12
Results
Your calculation results and recommendations
Enter your roof details to calculate rafter length.
Step-by-Step Instructions & Formula

Calculating the length of a common rafter involves a few key steps based on a right-angled triangle:

  1. Determine the Roof Span and Run: The 'span' is the total width of the building from wall to wall. The 'run' is half of the span, representing the base of our right triangle.
  2. Determine the Pitch and Total Rise: The 'pitch' is the amount of vertical rise for every 12 inches of horizontal run. The calculator uses this ratio to find the 'total rise'—the full vertical height from the wall plate to the ridge, which is the height of our right triangle.
  3. Calculate Line Length (Pythagorean Theorem): With the run (a) and total rise (b) known, the calculator finds the rafter's line length (c) using `a² + b² = c²`.
  4. Add the Overhang: The calculator performs a second, smaller Pythagorean calculation to find the diagonal length of the overhang and adds it to the line length for the final cut length.
Glossary of Terms
  • Rafter: The angled structural members of a roof that support the roof sheathing.
  • Span: The total horizontal distance from the outside of one supporting wall to the other.
  • Run: Half of the span. It's the horizontal distance a single rafter covers.
  • Rise: The vertical increase in height of a roof for every 12 inches of run. A '6/12 pitch' means the roof rises 6 inches for every 12 inches it runs horizontally.
  • Line Length: The diagonal measurement along the top of the rafter from the ridge cut to the plumb cut at the wall plate.
  • Overhang: The portion of the rafter that extends beyond the supporting wall, creating the eave.
  • Bird's Mouth: A notch cut into a rafter that allows it to sit securely on top of the wall's top plate.
Expert Insights

"This calculation gives you the theoretical length. Remember to account for the thickness of the ridge board when you make your first cut. A common practice is to subtract half the thickness of the ridge board from your rafter's run before calculating, or simply shorten the first rafter by that amount after cutting." - Master Roofer

"Always cut one rafter first as a pattern. Test fit it to make sure your calculations and cuts are perfect. Once you have a confirmed 'master rafter,' you can use it to trace and cut all the others, which ensures every single one is identical."

Real-World Examples

Example 1: 20 ft span, 6/12 pitch, 12 in overhang.
The run is half the span, or 120 inches. At 6/12 the total rise is 60 inches, so the line length is the square root of 120² + 60² = 134.16 in (11 ft 2.16 in). The 12-inch overhang cuts its own 6-inch rise, adding a 13.42-inch diagonal for a total cut length of 147.58 in (12 ft 3.58 in).

Example 2: 24 ft span, 6/12 pitch, 12 in overhang.
Doubling to a 24-foot span makes the run 144 inches and the rise 72 inches. The line length becomes sqrt(144² + 72²) = 161.0 in (13 ft 5.0 in), and adding the same overhang diagonal gives a total length of about 174.4 in (14 ft 6.4 in). Same pitch, longer run — the diagonal grows in direct proportion.

Common Mistakes & Troubleshooting
  • Using the Whole Span as the Run: The triangle is built on the run, which is half the span for a gable roof. Feeding in the full span roughly doubles your rise and gives a wildly long rafter.
  • Ignoring Ridge Board Thickness: The line length is theoretical. A 1-1/2-inch ridge board needs about 3/4 inch shaved off the top plumb cut, or the ridge won't seat squarely.
  • Measuring Horizontally Instead of Along the Bevel: The overhang length must be measured along the rafter's angled top edge, not as flat horizontal projection.
  • No Bird's-Mouth Allowance: The seat cut removes material where the rafter meets the plate. Keep it under one-third of the rafter depth so you don't weaken the bearing.
  • Cutting All Rafters Blind: Cut and test one master rafter first. A tiny error repeated across a whole roof compounds into gaps and an uneven eave line.
Frequently Asked Questions

WE
Written by
WoodCalc Editorial Team
DIY woodworkers & shop practitioners
JV
Reviewed by
Jordan Vale
Journeyman carpenter & shop-math reviewer
Updated Jan 10, 2026
How we calculate & sources

Formulas follow accepted woodworking practice and cited building-code / industry standards. Results are estimates — always verify against your own material and local code.

  • Wood Handbook — Wood as an Engineering Material (USDA Forest Service)
  • International Residential Code (IRC), Span Tables

Unlock 16,000+ Woodworking Plans

Get instant access to TedsWoodworking, a massive collection of done-for-you plans with step-by-step blueprints for various projects. Perfect for all skill levels.

TedsWoodworking
Pro Tips
  • Always double-check your measurements before cutting.

  • Account for the kerf (the width of the saw blade) in your calculations.

  • Consider wood movement (expansion and contraction) in your final dimensions.

  • Buy 10-15% extra material to account for mistakes and waste.