Free · No sign-up · Feet or meters

Rafter Length Calculator

Rafter length from the building run, roof pitch, and overhang.

Enter your measurements

Results update as you type. Switch to metric with the button on the right.

Job: Rafter Length
Estimate

Your result shows here once the page finishes loading.

How to use this calculator

  1. Fill in Run, wall to ridge, Roof pitch and Overhang, measured level.
  2. Use the Imperial and Metric switch if you measure in meters and centimeters.
  3. The result updates as you type. Tap Calculate to run it again.
  4. Tap Save or print results to keep a copy or add it to your project sheet.

The formula

Rafter length = run × √(1 + (pitch ÷ 12)²). The overhang is multiplied by the same factor.

Worked example

With the starting numbers on this page (Run, wall to ridge: 12 ft; Roof pitch: 6; Overhang, measured level: 12 in), the result is Total rafter length 14.53 ft. It also shows Pitch multiplier: 1.118x; Rafter, wall to ridge: 13.42 ft; Overhang along the slope: 1.12 ft.

Good to know

Common questions

How do I calculate rafter length?

Multiply the horizontal run by the pitch multiplier, which is the square root of 1 + (pitch ÷ 12) squared. A 12 ft run at a 6/12 pitch gives a 13.42 ft rafter before the overhang.

What is the run of a rafter?

The level distance from the outside of the wall to the center of the ridge. On a simple gable roof it is half the width of the building.

What size lumber do I need for rafters?

That depends on span, spacing, roof load, and wood species, and it is set by span tables in your building code. This calculator gives length only.

Related calculators

More measuring & area calculators →   All calculators →

Estimates are a starting point for shopping, not a substitute for a contractor's exact measurement. Always round up, check the coverage printed on your product, and keep your receipt for returns.

Save or print your results

On a phone, choose Save as PDF on the next screen to keep a copy.