Use this free rafter calculator to find the common rafter length for any roof. Enter the horizontal run and roof pitch to instantly calculate rafter length, roof rise, rise angle, and slope percentage - all the values you need before cutting a single board.
Common rafter length is derived from the Pythagorean theorem. The horizontal run and vertical rise form the two legs of a right triangle, and the rafter is the hypotenuse:
Rise = Run x (Pitch / 100) [metric]
Rafter Length = sqrt(Run² + Rise²)
Roof Angle = arctan(Rise / Run) x (180 / PI)
For example, a roof with a 6/12 pitch and 12-ft run has a rise of 6 ft (12 x 6/12 = 6). Rafter length = sqrt(144 + 36) = sqrt(180) = 13.42 ft.
| Pitch (X/12) | Angle (deg) | Slope (%) | Typical use |
|---|---|---|---|
| 2/12 | 9.5 | 16.7 | Shallow shed |
| 3/12 | 14.0 | 25.0 | Low ranch |
| 4/12 | 18.4 | 33.3 | Contemporary home |
| 5/12 | 22.6 | 41.7 | Common residential |
| 6/12 | 26.6 | 50.0 | Traditional |
| 8/12 | 33.7 | 66.7 | Steep residential |
| 9/12 | 36.9 | 75.0 | Cape Cod |
| 12/12 | 45.0 | 100 | Very steep |
Roof pitch is one of the most critical measurements in residential construction. It determines not only the rafter length but also the roof's drainage capacity, snow load performance, visual appearance, and the type of roofing materials that can be used.
When framing a gable roof, every common rafter must be cut to an identical length (assuming a structurally level ridge and plates). Calculating rafter length precisely before cutting eliminates waste and ensures a tight fit.
The run is half the total building span for a symmetric gable roof. Using the full building width as the run doubles the rise and produces a rafter that is far too long.
This calculator gives the theoretical rafter length to the center of the ridge. In practice, you must subtract half the ridge board thickness from the top end of the rafter before marking the plumb cut.
The rafter length shown here does not include the overhang (rafter tail). You need to add it separately.