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:

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:

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

Practical Use Cases for Rafter Length Calculations

Accurate rafter length is essential for:

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:

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.