Rafter Length Calculator
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Enter the building span, the pitch and the overhang to get the rafter length.
Result
Rafter length with overhangin
Rafter run (inches)
- Rise at the ridge (inches)
- Rafter length, plate to ridge (inches)
- Rafter length with overhang (feet)
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
Affiliate link
This is an affiliate link. As an Amazon Associate I earn from qualifying purchases. This does not change the result.
Search Amazon for rafter squares. Visit Amazon
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Building span, wall to wall, in ft: enter 0 or more.
- Roof pitch (rise per 12 in): enter a number from 0 to 24.
- Ridge board thickness, in in: enter a number from 0 to 4.
- Horizontal overhang, in in: enter 0 or more.
- Read the result: Rafter length with overhang; the panel also shows Rafter run (inches), Rise at the ridge (inches), Rafter length, plate to ridge (inches) and Rafter length with overhang (feet).
How this calculator works
Run = half the span minus half the ridge thickness. Rafter length = run × √(1 + (pitch ÷ 12)²), measured along the rafter.
The overhang is added as horizontal run, then multiplied by the same slope factor. Buy the next standard lumber length up.
The formula
| Symbol | Meaning | Unit |
|---|---|---|
| Building span, wall to wall | ft | |
| Roof pitch (rise per 12 in) | ||
| Ridge board thickness | in | |
| Horizontal overhang | in | |
| Rafter run | inches | |
| Rafter length with overhang | in |
Worked example
| Building span, wall to wall | 24 ft |
|---|---|
| Roof pitch (rise per 12 in) | 6 |
| Ridge board thickness | 1.5 in |
| Horizontal overhang | 12 in |
| Rafter run (inches) | 143.25 |
|---|---|
| Rise at the ridge (inches) | 71.63 |
| Rafter length, plate to ridge (inches) | 160.16 |
| Rafter length with overhang (feet) | 14.46 |
Rafter length with overhang 173.57 in
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
How long is a rafter for a 24-foot span at 6/12?
With a 1½-inch ridge: 11.94 ft of run × 1.118 = about 160 inches (13.3 ft) before overhang.
What is the slope factor of a 4/12 roof?
√(1 + (4/12)²) ≈ 1.054.