Rafter Length Calculator
Estimate common rafter length from roof run, rise, or pitch with a simple framing formula and practical cut-planning tips.
Rafter Length Calculator
A rafter length calculator helps you estimate the sloped length of a common roof rafter from the roof run, rise, or pitch before you cut timber. Carpenters, roofers, builders, and DIY framers use a rafter length calculator when they want a quick way to convert roof geometry into a practical cutting length without doing the triangle math by hand.
That estimate matters because even a small framing error can affect ridge alignment, overhang detail, sheathing layout, and material waste. A calculator gives you a fast starting point, but it still helps to understand what the number represents before you cut stock.
How to Use the Rafter Length Calculator
- Enter the roof run, which is usually half the building span for a simple gable roof.
- Enter the rise directly or use the roof pitch if the calculator converts it for you.
- Review whether the result is the structural rafter length only or includes overhang.
- Add the tail or overhang separately if the calculator does not include it.
- Use the result as a framing estimate, then confirm site cuts, ridge detail, and birdsmouth requirements.
If the roof has hips, valleys, multiple pitches, or structural offsets, estimate each member type separately because not every rafter follows the same geometry.
What the Rafter Length Calculator Measures
The calculator measures the sloped line from the wall plate area to the ridge line for a common rafter.
| Input | What it means | Example |
|---|---|---|
| Run | Horizontal distance from wall to ridge centerline | 6 ft |
| Rise | Vertical gain over that run | 3 ft |
| Pitch | Roof steepness, such as 6 in 12 | 6/12 |
| Output | Common rafter length | 6.71 ft |
That makes the result useful for basic gable roofs, shed roofs, planning cuts, timber ordering, and quick framing checks.
Rafter Length Formula
The geometry follows the Pythagorean theorem:
Rafter length = sqrt((Run x Run) + (Rise x Rise))
Rise = Run x (Pitch / 12) when pitch is expressed as rise in 12
If the calculator uses roof pitch, it usually converts that pitch into rise first and then solves for the sloped length.
Example Rafter Length Calculation
Suppose a simple gable roof has these dimensions:
- Building span:
12 ft - Roof run:
6 ftbecause run is half the span - Pitch:
6/12
The rise is:
Rise = 6 x (6 / 12) = 3 ft
Then the rafter length is:
Rafter length = sqrt((6 x 6) + (3 x 3))
Rafter length = sqrt(36 + 9)
Rafter length = sqrt(45)
Rafter length = 6.71 ft
That means the common rafter length is about 6.71 feet before any overhang, seat cut, or trimming adjustment is added.
What Changes Rafter Length Most
Roof pitch
A steeper pitch increases the vertical rise and therefore increases the sloped length quickly.
Run vs full span
Many framing mistakes happen when the full building span is entered instead of the half-span run used for a common rafter.
Overhang details
The structural rafter length to the ridge is not always the same as the full tail length needed for the finished roof.
Real framing cuts
Birdsmouth cuts, ridge deductions, and actual timber dimensions can change the final cut length from the clean geometric number.
Common Rafter-Length Mistakes
- Using full span instead of half-span run.
- Forgetting to convert pitch into rise correctly.
- Assuming the geometric result already includes overhang and seat cuts.
- Treating hip, valley, and common rafters as if they all share the same length.
- Cutting stock from the estimate without checking framing detail on site.
For related planning, compare this page with a Roof Pitch Calculator, Stair Calculator, Plywood Calculator, Shingle Calculator, or Square Footage Calculator.
FAQ
How do I calculate rafter length?
Use the roof run and rise to solve the sloped triangle. A common formula is the square root of run squared plus rise squared.
Is the roof run the same as the building span?
No. For a simple gable roof, the run is usually half the building span, not the full width.
Does the result include overhang?
Not always. Many rafter calculators give the main sloped structural length first, and the overhang or tail is added separately.
Can I use roof pitch instead of rise?
Yes. If you know the pitch, convert it into rise over the selected run and then calculate the sloped length.
Is this enough to cut rafters on site?
It is a strong planning estimate, but final cuts still need to account for ridge detail, birdsmouth layout, lumber size, and actual framing conditions.