Rafter Length Calculator
Calculate rafter length for roof framing based on pitch and span.
How Rafter Length Is Calculated
Rafter length is determined by the roof's span and pitch. The span is the horizontal distance from the wall plate to the ridge board (half the building width). The pitch is the roof's slope, expressed as a ratio of rise per 12 inches of horizontal run.
The calculation uses the Pythagorean theorem: rafter length = √(run² + rise²). The run is the horizontal distance from the ridge to the outer wall. The rise is the vertical height gained over that run, based on the pitch.
For example, a 6/12 pitch means the roof rises 6 inches for every 12 inches of horizontal run. If the run is 10 feet (120 inches), the rise is 60 inches. The rafter length is √(120² + 60²) = √(14400 + 3600) = √18000 ≈ 134.16 inches, or about 11.18 feet.
This calculation assumes a simple gable roof with equal slopes. Adjustments are needed for overhangs, ridge board thickness, and birdsmouth cuts.
How to Use the Rafter Length Calculator
Enter the roof span (total width of the building) and the roof pitch (rise per 12 inches of run). The calculator outputs the rafter length from the ridge to the outer wall plate.
For accurate results:
- Measure the span from outside wall to outside wall, not the interior width.
- Use consistent units (feet or inches).
- Account for any overhang separately if needed.
The result is the theoretical rafter length before cutting. Add extra length for overhangs and subtract for ridge board thickness and birdsmouth cuts as required by your framing plan.
Understanding Your Results
The calculated rafter length is the hypotenuse of the right triangle formed by the run and rise. This is the minimum length needed for the rafter to reach from the ridge to the wall plate.
In practice, rafters are cut longer to allow for:
- Overhang (eaves): The portion extending past the wall.
- Birdsmouth cut: A notch where the rafter sits on the wall plate, which shortens the effective length.
- Ridge board thickness: The rafter does not meet at a point; it butts against a ridge board, requiring a deduction.
Always verify your measurements on-site before cutting. The calculator provides a starting point for layout, not a final cutting dimension.
Common Mistakes When Measuring Rafter Length
- Using total span instead of run: The run is half the span for a symmetrical roof. Using the full span doubles the rafter length.
- Ignoring ridge board thickness: The ridge board occupies space, so the rafter length is slightly shorter than the theoretical hypotenuse.
- Forgetting the birdsmouth: The birdsmouth cut removes material from the rafter's bottom edge, affecting the plumb cut at the ridge.
- Mixing units: Entering pitch in inches per foot but span in feet without converting leads to incorrect results.
Practical Use Cases for Rafter Length Calculations
Accurate rafter length is essential for:
- New roof construction: Framing a house, shed, garage, or addition.
- Roof replacement: Replacing damaged or rotted rafters while keeping the existing roof geometry.
- Building a porch or pergola: Determining rafter sizes for sloped roof structures.
- Estimating material costs: Calculating lumber quantities before purchasing.
Using a calculator reduces measurement errors and speeds up layout, especially for complex pitches or multiple rafters.
Limitations of This Calculation
This calculator assumes a standard gable roof with equal slopes on both sides. It does not account for:
- Hip, valley, or irregular roof shapes.
- Dormers or skylights that interrupt rafter runs.
- Non-standard pitch ratios (e.g., metric slopes).
- Structural factors like snow load or rafter spacing.
For complex roof designs, consult a structural engineer or use specialized roof framing software. Always follow local building codes and safety practices.
FAQ
What is the difference between span and run?
Span is the total horizontal distance between the outer walls. Run is half the span, measured from the outer wall to the ridge. Rafter length is calculated using the run, not the span.
Does the calculator include overhang?
No. The result is the rafter length from the ridge to the outer wall plate. Add the desired overhang length separately to get the total rafter length.
How do I account for the ridge board?
Subtract half the ridge board thickness from the run before calculating. For example, if the ridge board is 1.5 inches thick, reduce the run by 0.75 inches.
What is a birdsmouth cut?
A birdsmouth is a notch cut into the rafter where it sits on the wall plate. It consists of a horizontal seat cut and a vertical plumb cut. The birdsmouth reduces the rafter's effective length and must be accounted for in final cutting.
Can I use this for a flat roof?
This calculator is designed for sloped roofs. For flat roofs with minimal pitch (e.g., 1/12), the rafter length is nearly equal to the run, but local codes may require specific minimum slopes for drainage.