Rafter Length Calculator — From Span & Pitch

Half the building span and the roof pitch in — rafter length from wall plate to ridge, out.

Rafter Length Calculator

Paste it on your own page or wiki — no signup, no tracking script.

Pythagoras builds rafters

A common rafter is the hypotenuse of a right triangle: half the building span is the run, and the pitch's rise per foot of run is the height. Rafter length = √(run² + rise²) — the calculator also reports the resulting pitch so you can confirm it matches the plans.

Add the overhang after

The calculated length runs from the wall plate to the ridge centerline. Rafter tails overhanging the eaves (usually 12–24 inches) add length beyond that, measured along the same slope. Birdsmouth cuts — the notch that seats the rafter on the plate — don't change the length but do limit how deep you can cut.

The rafter length formula

Common rafters are right triangles: the run is horizontal (half the building span, plus any overhang), the rise is vertical, and the rafter is the hypotenuse.

Rafter length = √(rise² + run²) · or · Rafter = run ÷ cos(pitch angle)

Both give the same answer. The second form is easier on site because roof pitch is normally quoted as a ratio (a "6/12 roof") and the pitch ratio converts to a single multiplier you can carry in your head.

PitchAngleMultiplier (rafter per foot of run)
1/124.8°1.0035
2/129.5°1.0138
3/1214.0°1.0308
4/1218.4°1.0541
5/1222.6°1.0833
6/1226.6°1.1180
7/1230.3°1.1577
8/1233.7°1.2019
9/1236.9°1.2500
10/1239.8°1.3017
12/1245.0°1.4142

Read the table as a shortcut: measure the run in feet, multiply, and you have the rafter length. A 13 ft run under an 8/12 roof is 13 × 1.2019 = 15.6 ft.

Three worked examples

Example 1 — a 24 ft span, 6/12 pitch, 12-inch overhang

Run = half the span plus the overhang = 12 + 1 = 13 ft. Multiplier for 6/12 is 1.1180. Rafter = 13 × 1.1180 = 14.53 ft. That fits 16 ft stock with the birdsmouth cut and ridge allowance to spare — but only just, so measure the actual span rather than trusting the drawing.

Example 2 — a 30 ft span, 8/12 pitch, 18-inch overhang

Run = 15 + 1.5 = 16.5 ft. Multiplier 1.2019. Rafter = 16.5 × 1.2019 = 19.83 ft. In practice this means either 20 ft lumber on a long span, or a splice — and a spliced rafter is a structural decision, so check with the design before assuming you can butt two pieces together.

Example 3 — a 20 ft span, 4/12 pitch, no overhang

Run = 10 ft, multiplier 1.0541. Rafter = 10.54 ft. A low pitch like this is common on porches and sheds, and the near-1 multiplier is why low-pitch roofs use relatively little extra material — the same 10 ft run under a 12/12 roof would need 14.14 ft.

From rafter length to a cut list

Roof geometry also drives the decking order — count sheathing panels with the plywood calculator once you know the total roof area, and check roof drainage with the roof pitch calculator.

Tools for cutting rafters

Rafter layout is where cheap tools cost you a roof. The two squares below are the same references the calculator assumes you are marking with.

  • Framing square — The rafter tables printed on the blade are the fastest independent check on the length this calculator gives you.
  • Speed square — For marking plumb and seat cuts at the ridge and the birdsmouth without needing a second pair of hands.
  • 7-1/4 inch circular saw — Cuts every rafter on a typical house. Check the bevel detent is actually square before you trust a single cut.
  • Chalk line and 25 ft tape — For snapping the ridge and fascia lines and checking every rafter length before you nail anything down.

As an Amazon Associate I earn from qualifying purchases. The links above are affiliate links — if you buy through one, the price you pay is unchanged and a small commission helps keep these calculators free. Tools are listed because the job calls for them, not because of commission rates.

Sources and standards

Where these figures come from

Every formula on this page is implemented from the published reference material below. Where a value depends on a regional code, the calculator lets you override it rather than assuming one jurisdiction.

Figures, formulas and reference tables last verified: 19 September 2026.

FAQ

How long is the rafter for a 24-ft building at 6/12?

The run is 12 ft, rise 6 ft — rafter length √(144+36) ≈ 13.4 ft before any overhang.

What is the formula for rafter length?

Rafter length = √(rise² + run²), where the run is half the building span plus the overhang. Equivalently, rafter length = run ÷ cos(pitch angle). For a 6/12 pitch the multiplier is 1.1180, so a 13 ft run needs a 14.53 ft rafter.

How long is a rafter for a 24 foot span?

A 24 ft span gives a 12 ft run. With a 12-inch overhang and a 6/12 pitch: 13 × 1.1180 = 14.53 ft, which fits 16 ft stock. Change the pitch and the answer changes — at 8/12 it is 15.6 ft, at 4/12 it is 13.7 ft.

Does roof pitch change rafter length?

Yes, and the effect grows quickly. The multiplier runs from 1.0035 at a 1/12 pitch to 1.4142 at 12/12 — the same 10 ft run needs 10.04 ft of rafter at a low pitch and 14.14 ft at 45 degrees.

How much do I add for the overhang?

Add the overhang directly to the run before multiplying: a 24 ft span with a 12-inch overhang on each side gives a run of 12 + 1 = 13 ft. Measure the overhang from the outside face of the wall to the tail of the rafter.

More project calculators

Have a suggestion?

Missing a feature or found something off? Tell us — user suggestions decide what we build next.