Rafter Length Calculator

By Asira Tools Team · Last updated 20 November 2026

Work out the length of a common rafter from the roof span and pitch — including the eave overhang — in feet and inches.

Advertisement

Rafter Length Calculator

15.09 ft total
Rafter length (wall to ridge)13.42 ft
Overhang rafter length1.68 ft
Run (half span)12.00 ft
Rise6.00 ft
Roof angle26.57°

The overhang is measured horizontally from the outside of the wall. The rafter length is the theoretical length along the rafter — the ridge board thickness and the birdsmouth seat cut reduce the finished length slightly.

Formulas:

Run = Building span ÷ 2  |  Rise = Run × Pitch rise ÷ 12

Rafter length = √(Run² + Rise²)

Overhang rafter length = Overhang (ft) × √(1 + (Pitch rise ÷ 12)²)

Total rafter length = Rafter length + Overhang rafter length

What Does a Rafter Length Calculator Do?

A rafter length calculator works out how long a common rafter needs to be for a given roof span and pitch, including the eave overhang. You enter the building span (the distance from one outside wall to the other), the roof pitch as the rise per 12 inches of run, and the eave overhang in inches, and the calculator returns the rafter length from the wall to the ridge, the overhang length along the rafter, the total length, and the roof angle.

The rafter length is the number you need before you can order lumber or cut a single board. Rafters are bought in standard lengths — 8, 10, 12, 14, 16, 18, and 20 feet — and the calculated length decides which size to buy and how much waste there will be. A rafter that is cut too short is scrap; a rafter cut too long can be trimmed, but only at the tail end. Getting the length right the first time saves lumber, time, and frustration.

How to Use This Calculator

Enter the building span in feet — the outside-to-outside distance between the two walls the roof spans. Then enter the roof pitch as the rise per 12 inches of run: 6 for a 6/12 pitch, 4 for a 4/12 pitch, and so on. If you know the pitch in degrees instead, use the Roof Pitch Calculator to convert it first. Finally, enter the eave overhang in inches, measured horizontally from the outside of the wall to the end of the rafter tail — 12 to 24 inches is typical.

The headline result is the total rafter length, including the overhang. Below it are the breakdown: the rafter length from the wall to the ridge, the overhang length measured along the rafter, the run (half the span), the rise, and the roof angle. The results update as you type, so you can try different pitches and overhangs and see immediately how the lumber length changes.

The Rafter Length Formula

A common rafter is the hypotenuse of a right triangle. The two other sides are the run — half the building span, measured horizontally from the wall to the center of the ridge — and the rise, which is the run times the pitch divided by 12. The rafter length is the square root of the run squared plus the rise squared: rafter = √(run² + rise²). That is the Pythagorean theorem, and it is the whole of rafter math — everything else is detail.

For a 24-foot span at a 6/12 pitch, the run is 24 ÷ 2 = 12 feet. The rise is 12 × 6 ÷ 12 = 6 feet. The rafter length is √(12² + 6²) = √(144 + 36) = √180 = 13.42 feet — 13 feet 5 inches. The overhang adds more: an 18-inch overhang measured horizontally is 1.5 feet, but the rafter runs at an angle, so the length along the rafter is longer — 1.5 times the roof area multiplier. For a 6/12 pitch, the multiplier is √(1 + 0.5²) = 1.118, so the overhang rafter length is 1.5 × 1.118 = 1.68 feet. The total rafter length is 13.42 + 1.68 = 15.09 feet, so you would buy 16-foot lumber.

What the Calculator Does Not Include

The rafter length from this calculator is the theoretical length along the top edge of the rafter, from the outside of the wall to the center of the ridge. In practice, three details adjust the finished length. First, the ridge board has a thickness — usually 1.5 inches — and the rafter meets the face of the ridge board, not its center, so the finished rafter is shorter by half the ridge board thickness measured along the rafter angle. For a 6/12 pitch, that is about 0.84 inches.

Second, the birdsmouth — the notch cut into the underside of the rafter where it sits on the wall plate — changes where the rafter bears on the wall. The birdsmouth seat cut is horizontal, and its depth is usually one-third of the rafter depth at most: cut it deeper and you weaken the rafter. The birdsmouth does not change the rafter length much, but it must be laid out correctly or the rafter will sit too high or too low on the wall.

Third, the ridge cut at the top of the rafter is a plumb cut (vertical), angled to match the roof pitch, and the tail cut at the bottom is either plumb or square depending on the fascia detail. These cuts change the length by fractions of an inch, which is why carpenters cut one test rafter, check it in place, and then use it as a pattern for the rest. This calculator gives you the length to start from; the test rafter gives you the length to cut.

Worked Example

Say you are framing a roof on a 24-foot-wide building at a 6/12 pitch, with an 18-inch eave overhang. The run is 24 ÷ 2 = 12 feet. The rise is 12 × 6 ÷ 12 = 6 feet. The rafter length from wall to ridge is √(12² + 6²) = √180 = 13.42 feet. The overhang rafter length is 1.5 feet × 1.118 = 1.68 feet. The total rafter length is 13.42 + 1.68 = 15.09 feet — 15 feet 1 inch — so you would buy 16-foot rafters and trim the tails to length.

For a steeper roof — a 30-foot span at an 8/12 pitch with a 24-inch overhang — the run is 15 feet and the rise is 15 × 8 ÷ 12 = 10 feet. The rafter length is √(15² + 10²) = √(225 + 100) = √325 = 18.03 feet. The overhang multiplier for 8/12 is √(1 + (8/12)²) = 1.202, so the overhang rafter length is 2 feet × 1.202 = 2.40 feet. The total is 18.03 + 2.40 = 20.43 feet, so you would buy 22-foot lumber (or 20-foot lumber if you shorten the overhang — 20-foot rafters are a standard size, and 20.43 feet is just over).

Tips for Cutting Rafters

Cut one test rafter first. Cut a single rafter to the calculated length, lay out the birdsmouth and the ridge cut, and check it in place before cutting the rest. If it fits, use it as the pattern for every other rafter — mark them all from the pattern so they are identical.

Use a framing square. A framing square with stair gauges set to the pitch (6 and 12 for a 6/12 roof) lets you step off the rafter length directly on the board, marking the plumb and level cuts as you go. It is faster and more accurate than measuring with a tape, and it is how carpenters have laid out rafters for generations.

Keep the crown up. Every board has a slight bow (the crown). When you install rafters, put the crown facing up: the weight of the roof will flatten it over time, and a crown-down rafter will sag visibly. Sight down each board and mark the crown side before you cut.

Buy the next size up. Rafter lumber comes in 2-foot increments, and the calculated length almost never lands exactly on a standard size. Buy the next size up and trim the tails — the offcut is useful for blocking and lookouts. Running short by 3 inches on a rafter is a wasted board.

Common Mistakes to Avoid

The biggest mistake is using the full span as the run instead of half the span. The run is half the span — the rafter only covers one side of the roof. Using the full span doubles the run and gives a rafter length that is far too long. The second mistake is forgetting the overhang: the rafter length without the overhang is only the wall-to-ridge length, and the eave adds 1 to 3 feet depending on the pitch and the overhang.

The third mistake is measuring the overhang along the rafter instead of horizontally. The overhang is a horizontal distance from the wall; the length along the rafter is longer by the multiplier. If you add the horizontal overhang directly to the rafter length, the eave comes up short. The fourth mistake is cutting all the rafters before checking one in place — a small error in the pitch or the span measurement multiplies across every rafter. Cut one, check it, then cut the rest from the pattern.

Results from this calculator are estimates for planning and ordering. The finished rafter length depends on the ridge board thickness and the birdsmouth layout, so always cut a test rafter and check it in place before cutting the full set.

Advertisement

Frequently Asked Questions

How long is a rafter for a 24-foot span at a 6/12 pitch?

13.42 feet from wall to ridge, or 15.09 feet including an 18-inch eave overhang. The run is 12 feet, the rise is 6 feet, and the rafter length is sqrt(12^2 + 6^2) = sqrt(180) = 13.42 feet.

What is the run of a rafter?

The run is half the building span, measured horizontally from the outside of the wall to the center of the ridge. For a 24-foot span, the run is 12 feet.

How do I calculate the overhang on a rafter?

Multiply the horizontal overhang by the roof area multiplier, sqrt(1 + (pitch/12)^2). For an 18-inch overhang at 6/12 pitch, the multiplier is 1.118, so the overhang rafter length is 1.5 x 1.118 = 1.68 feet.

What is a birdsmouth cut on a rafter?

The birdsmouth is the notch cut into the underside of a rafter where it sits on the wall's top plate. It has a horizontal seat cut and a vertical heel cut, and its depth should be no more than one-third of the rafter depth.

Should I cut all my rafters at once?

No. Cut one test rafter first, check it in place, and use it as a pattern for the rest. A small error in the span or pitch measurement multiplies across every rafter if you cut them all at once.