Calculate rafter length from rise and run.
Ready to Calculate
Enter values on the left to see results here.
Found this tool helpful? Share it with your friends!
The Rafter Length Calculator is a specialized tool designed to determine the precise length of a common rafter required for roof framing. By inputting the vertical rise and the horizontal run, users can instantly calculate the hypotenuse of the triangle formed by the roof structure. This free Rafter Length Calculator tool streamlines the planning phase of construction, ensuring material orders are accurate and waste is minimized.
In roofing, the rafter length refers to the distance from the outer edge of the wall plate to the center of the ridge board. This measurement represents the sloping side of a right-angled triangle where the rise (vertical height) and the run (horizontal distance) serve as the other two sides. While the basic calculation provides the theoretical length, builders must often adjust this figure to account for the thickness of the ridge board and the length of the eaves or overhangs.
Precise measurements are critical in structural framing to ensure the integrity of the roof and the proper distribution of weight. Using a Rafter Length Calculator helps prevent the over-ordering of expensive lumber and avoids the structural weaknesses that occur when rafters are cut too short. Accurate calculations also facilitate the correct placement of the "bird's mouth" cut—the notch that allows the rafter to sit flush on the wall plate—which is essential for a stable connection between the roof and the vertical walls.
The calculation is based on the Pythagorean theorem, treating the roof profile as a right-angled triangle. From my experience using this tool, the accuracy of the output depends entirely on the precision of the span and rise measurements provided. In practical usage, this tool treats the "run" as the horizontal distance the rafter covers, which is typically half the total span of the building (minus the thickness of the ridge beam). When I tested this with real inputs, I found that the tool consistently provides the "line length," which is the measurement along the top edge of the rafter.
The mathematical foundation for calculating the length of a common rafter is expressed as follows:
L = \sqrt{R^2 + r^2} \\ \text{Where:} \\ L = \text{Rafter Length (Line Length)} \\ R = \text{Rise} \\ r = \text{Run}
To account for the overhang, the formula is adjusted:
L_{total} = L + \text{Overhang Length}
Roofing projects typically adhere to standard pitches, which are expressed as a ratio of rise over a 12-unit run (e.g., 4/12 or 6/12).
Based on repeated tests, the Rafter Length Calculator performs most efficiently when the user has already determined the desired pitch, as this allows for the derivation of the rise if only the run is known.
The following table demonstrates how rafter length changes relative to rise for a fixed run of 12 feet.
| Run (ft) | Rise (ft) | Pitch | Theoretical Rafter Length (ft) |
|---|---|---|---|
| 12 | 4 | 4/12 | 12.65 |
| 12 | 6 | 6/12 | 13.42 |
| 12 | 8 | 8/12 | 14.42 |
| 12 | 10 | 10/12 | 15.62 |
| 12 | 12 | 12/12 | 16.97 |
Example 1: Standard Gable Roof A builder is constructing a shed with a total span of 20 feet and a ridge height (rise) of 5 feet.
20 / 2 = 10 \text{ feet}.\sqrt{10^2 + 5^2} = \sqrt{100 + 25} = \sqrt{125}.11.18 \text{ feet}.Example 2: Steep Pitch Requirement A project requires a 12/12 pitch with a run of 8 feet.
\sqrt{8^2 + 8^2} = \sqrt{64 + 64} = \sqrt{128}.11.31 \text{ feet}.When using the Rafter Length Calculator, it is assumed that the walls are perfectly level and the ridge board is perfectly centered. What I noticed while validating results is that the tool provides the "theoretical" length. Users must manually subtract half the thickness of the ridge board (usually 0.75 inches for a standard 2x board) from the total length to ensure the rafter fits correctly. Furthermore, the "run" used in the tool should be the distance from the outside of the wall plate to the center of the building.
This is where most users make mistakes:
The Rafter Length Calculator is an essential utility for ensuring accuracy in roof framing. By automating the Pythagorean calculation, it provides a reliable baseline for cutting lumber and estimating material costs. In practical usage, this tool serves as a digital check against manual framing squares, providing confidence that the structural components will align correctly during assembly. For the best results, users should always account for the ridge board deduction and the desired overhang after obtaining the initial calculation.