Skip to content
SoftwareSolutions.net
Calculators & Converters

Rafter length calculator

Find the rafter length from run and rise.

Try it

Ready

Inputs

Result

The result appears here as you type.

About Rafter length calculator

A rafter length calculator finds the length of a rafter from the horizontal run and the vertical rise of a roof. Rafters are the sloping timbers that support the roof covering, and cutting them to the wrong length wastes timber and delays the job. Enter the run and rise, and the calculator returns the rafter length from the ridge to the wall plate.

The result is the length of the sloping line, which is the hypotenuse of a right-angled triangle. It does not include the overhang past the wall, the ridge board or the cut angles, so add those allowances when you order the timber.

How to use Rafter length calculator

  1. Measure the horizontal run, which is half the width of the building from the centre of the ridge to the outside of the wall plate.
  2. Measure the vertical rise from the top of the wall plate to the top of the ridge.
  3. Enter both figures in metres.
  4. Read the rafter length and the pitch angle.
  5. Add the overhang and ridge allowances before you cut.

Pythagoras and the roof slope

A roof forms a right-angled triangle with the rafter as its longest side. The rafter length is the square root of the run squared plus the rise squared. For a run of 3 m and a rise of 1.5 m, the rafter is √(9 + 2.25) = 3.35 m. The pitch angle is found from the tangent, the rise divided by the run, which here gives about 26.6 degrees.

Roof pitch is often given as a ratio of rise to run in millimetres per metre, or as an angle. A 30 degree pitch rises about 0.58 metres for every metre of run. Use whichever form your plans use, and convert between them if the two sources do not agree.

Allowances for overhang and ridge

Rafters usually extend past the wall to form an eaves overhang, which may be 300 mm or more. Add this length to each rafter. The rafters also meet the ridge board, which is a separate timber, so the ridge reduces the cut length slightly on each side. Mark the cut lines from the plumb and birdsmouth positions rather than measuring the whole run from the outside corner.

A roof with dormers, hips or valleys has more complex rafters. Use this tool for the common straight rafter, and calculate those special sections separately from the plan and the pitch.

Frequently asked questions

What is the run?

The horizontal distance from the centre of the ridge to the outer face of the wall plate. It is half the building width for a simple gable roof.

Does the length include the overhang?

No. Add the overhang to the calculated length, because the calculator measures the sloped line only.

Why is the pitch angle useful?

It sets the cut angles and tells you whether the roof covering suits the slope. Many coverings need a minimum pitch.

Related tools

Tools that pair well with this one.