Home › Roofing

Rafter Length Calculator: Common Rafters by Pitch

Calculate the length of a common rafter from the horizontal run, the roof pitch and the overhang.

Estimate only. Order a little extra and check with your supplier.

Worked example

A 12 ft run at a 6/12 pitch gives a rafter of 13 ft 5 in from wall plate line to ridge, 14 ft 6 3/8 in with a 12 in horizontal overhang. The roof angle is 26.6 degrees.

Rafter length per foot of run

PitchLength per ft of runAngle
3/121.031 ft14.0 deg
4/121.054 ft18.4 deg
5/121.083 ft22.6 deg
6/121.118 ft26.6 deg
8/121.202 ft33.7 deg
10/121.302 ft39.8 deg
12/121.414 ft45.0 deg

How this calculator works

Sources and basis: Swanson Tool Blue Book: cutting a common rafter (Pythagorean theorem). Last checked 2026-11-25.

Frequently asked questions

What is run in a rafter calculation?

The horizontal distance from the outside of the wall plate to the center of the ridge, which is half the span for a symmetrical gable roof.

Is this the length to cut?

It is the theoretical length. Adjust for ridge board thickness, the birdsmouth and the tail cut shown in your plans.

What size lumber do I need?

That depends on span, spacing, loads and species, and is not covered here. Use span tables or an engineer.

Related calculators

These results are estimates for planning and shopping. They are not engineering or code advice. Confirm with a licensed professional and your local building department for structural work.