Rafter Length Calculator: Common Rafters by Pitch
Calculate the length of a common rafter from the horizontal run, the roof pitch and the overhang.
Estimate only. Order a little extra and check with your supplier.
Worked example
A 12 ft run at a 6/12 pitch gives a rafter of 13 ft 5 in from wall plate line to ridge, 14 ft 6 3/8 in with a 12 in horizontal overhang. The roof angle is 26.6 degrees.
Rafter length per foot of run
| Pitch | Length per ft of run | Angle |
|---|---|---|
| 3/12 | 1.031 ft | 14.0 deg |
| 4/12 | 1.054 ft | 18.4 deg |
| 5/12 | 1.083 ft | 22.6 deg |
| 6/12 | 1.118 ft | 26.6 deg |
| 8/12 | 1.202 ft | 33.7 deg |
| 10/12 | 1.302 ft | 39.8 deg |
| 12/12 | 1.414 ft | 45.0 deg |
How this calculator works
- Slope multiplier = sqrt(1 + (pitch / 12)^2) (Pythagorean theorem with 12 in of run)
- Rafter length = run x multiplier
- Overhang length = horizontal overhang x multiplier
- Rise = run x pitch / 12
- Lengths are theoretical, measured along the rafter from the plate line. Adjust for ridge board thickness and the birdsmouth as the plans require.
Sources and basis: Swanson Tool Blue Book: cutting a common rafter (Pythagorean theorem). Last checked 2026-11-25.
Frequently asked questions
What is run in a rafter calculation?
The horizontal distance from the outside of the wall plate to the center of the ridge, which is half the span for a symmetrical gable roof.
Is this the length to cut?
It is the theoretical length. Adjust for ridge board thickness, the birdsmouth and the tail cut shown in your plans.
What size lumber do I need?
That depends on span, spacing, loads and species, and is not covered here. Use span tables or an engineer.
Related calculators
These results are estimates for planning and shopping. They are not engineering or code advice. Confirm with a licensed professional and your local building department for structural work.