Rafter Length Calculator

By Hassan Nawaz, Publisher. Updated November 11, 2026.

Enter the building span, pitch, ridge board thickness and overhang. You get the rafter length from ridge to plate, the tail length and the total, in decimal feet and feet and inches.

Outside of wall to outside of wall.
14.46 ft
Total rafter length
14' 5 9/16"
Feet and inches
13.35 ft
Ridge to plate
26.57°
Plumb cut angle

How to calculate rafter length

A common rafter is the hypotenuse of a right triangle. The run is half the span, less half the ridge board thickness. The calculator multiplies that run by the pitch multiplier, then adds the tail for the overhang:

Run = span ÷ 2 − ridge thickness ÷ 2
Rafter (ridge to plate) = run × √(1 + (pitch ÷ 12)²)
Tail = level overhang × same multiplier

For a 24 ft span at 6/12 with a 1.5 in ridge and 12 in overhang: run is 11.94 ft, ridge to plate is 13.35 ft, and the total is 14.46 ft (14' 5-9/16"), so you buy 16 ft stock.

Measure along the line. These lengths are measured along the rafter's measuring line, the line from the top outside corner of the wall plate (where the birdsmouth seat cut meets the heel cut) parallel to the rafter edge. Lay out the birdsmouth before cutting the tail.

Need the pitch first? Use the roof pitch calculator. Rafter size and spacing depend on span, snow load and lumber grade, so check IRC Table R802.4 or your engineer.

Common rafter lengths before overhang

Half the span times the pitch multiplier. Add the overhang along the slope, and subtract half the ridge board.

Span4/126/128/1210/1212/12
12 ft6.32 ft6.71 ft7.21 ft7.81 ft8.49 ft
16 ft8.43 ft8.94 ft9.61 ft10.41 ft11.31 ft
20 ft10.54 ft11.18 ft12.02 ft13.02 ft14.14 ft
24 ft12.65 ft13.42 ft14.42 ft15.62 ft16.97 ft
28 ft14.76 ft15.65 ft16.83 ft18.22 ft19.80 ft
32 ft16.87 ft17.89 ft19.23 ft20.83 ft22.63 ft

For a worked cut, a shed roof uses the whole width as the run, not half. The roof pitch calculator gives the multiplier for any pitch.

Frequently asked questions

How long is a rafter for a 24 ft span at 6/12?

About 13.35 ft from ridge to plate with a 1.5 in ridge board, plus the tail for your overhang.

Why subtract the ridge board?

Rafters butt against each side of the ridge board, so each run is shortened by half the board's thickness.

What is the plumb cut angle?

It equals the roof angle. For 6/12 that is 26.57 degrees, set on a speed square using the 6 on the common scale.

How do I calculate rafter length?

Take half the building span as the run, then multiply by the pitch multiplier. For a 24 ft span at 6/12 the run is 12 ft and the rafter is 12 × 1.118 = 13.42 ft before overhang and ridge adjustments.

How long is a rafter for a 28 ft wide house at 8/12?

The run is 14 ft, and the multiplier is 1.202, so the rafter is 16.83 ft before the overhang.

Reference charts

Embed this calculator on your website

Free for blogs, suppliers, clubs and schools. Paste this code to show the Rafter Length Calculator on your page. It updates itself, and the credit line to RoofPitchMath under it must stay in place.

More roofing calculators

Last updated November 11, 2026. Results are estimates for planning. See how we build and check our tools in our editorial policy. Found an error? Tell us.