Common-rafter line length from run and roof pitch
Rafter Calculator
Rafter length is the hypotenuse of the rise and the run. Rise = run × (pitch ÷ 12). A 12 ft run at 6/12 rises 6 ft, and the line length is √(12² + 6²), about 13.42 ft. Include overhang in the run if you want it in the length. This is the theoretical line, before a birdsmouth or ridge cut.
Rafter line length
13.42 ft
- Total rise
- 6.00 ft
- Line length
- 161.00 in
Worked examples
6/12 on a 12 ft run
Level run 12 ft, pitch 6.
13.42 ft · ≈ 6.00 ft
12/12 on a 10 ft run
Level run 10 ft, pitch 12. Rise equals the run.
14.14 ft · ≈ 10.00 ft
Low slope
Level run 16 ft, pitch 4.
5.33 ft · ≈ 16.87 ft
Good for
- Cutting a common rafter length from a known run and pitch
- Checking a 6/12 against a 12/12 on the same building width
- Adding an overhang by extending the horizontal run
- Reading the same length in feet and in inches
Common mistakes
- Entering the building width instead of the run to one rafter (usually half the span)
- Forgetting the eave overhang if the tail is part of the board
- Subtracting a birdsmouth that this length does not include
- Using a pitch number of 6 when you meant 6 degrees
How rafter length is calculated
- Measure the horizontal run in feet: half the span, plus overhang if the tail counts.
- Rise (ft) = run × pitch / 12. A pitch of 6 means 6 inches of rise per 12 inches of run.
- Line length = square root of (run² + rise²).
- Multiply by 12 if you want inches.
Seat cuts, ridge plumb cuts and heel height change the board you buy. Add that layout on the lumber; it is not subtracted here.
Line length for a 10 ft run
Generated from √(run² + (run × pitch / 12)²). Feet, before cuts.
| Pitch | Length (ft) |
|---|---|
| 4/12 | 10.54 |
| 6/12 | 11.18 |
| 8/12 | 12.02 |
| 12/12 | 14.14 |
Frequently asked questions
Do I enter the full building width?
Enter the horizontal run of the rafter you are cutting. On a simple gable that is often half the span, plus overhang.
Does this shorten the board for the birdsmouth?
No. The length is the sloped line from the start of the run to the end of the run. Layout the seat and ridge on that line.
Is pitch the same as degrees?
No. This field is rise per 12 inches of run. A 6/12 roof is not a 6-degree roof.
What about hip or valley rafters?
Those runs are longer than the common rafter run. This page is the common-rafter triangle only.
Sources and updates
Last reviewed . No span tables or code minimums.
- Right-triangle rafter length – Length = √(run² + rise²), rise = run × pitch/12. Pitch is user-entered.
Geometry for planning a cut list. It is not a structural design and it does not apply a building code.