Rafter LengthCalculator
Common RafterHip RafterValley RafterJack RafterShed & Lean-ToBirdsmouthRafter AngleRoof PitchRafter SpanRafter SizeGambrel RafterRafter Length ChartHow-To GuideAboutReport an Error
Roof Framing Tools

Rafter Length Calculator

Enter the span and pitch — get the exact rafter length, cut angles and birdsmouth, ready to mark on the board. For gable and shed roofs, common rafters.

✓ Free✓ No sign-up✓ Imperial + Metric✓ Works on site, on your phone

Common Rafter Calculator

Results update as you type
Units
I know the
ft
/ 12
in
in
in
ft

Your rafter — 24 ft span · 6/12 pitch

Cut this length
14 ft 5 9/16 in
Buy a16 ft board
Line length
13 ft 5 in
Plumb cut
63.4° saw 26.6°
Seat cut
26.6° saw 63.4°
Tail (overhang)
13 7/16 in
Rise
6 ft 0 in
Run
12 ft 0 in
HAP at wall
6 5/8 in
Pitch angle
26.6°
For the whole roof:40 ft building, 16″ on-center → 62 rafters·992 linear ft·≈ 1,323 board ft
Test-cut the first pair before cutting the rest.
SPAN RUN RISE RAFTER TAIL RIDGE BIRDSMOUTH
One side of the roof: the orange line is the board you cut. Labels follow your inputs in the live calculator.
The Method

How the rafter length is calculated

A rafter is the hypotenuse of a right triangle. The run is half the building span, the rise comes from the pitch — so the theoretical line length is always the same piece of maths:

Carpenters shortcut it with a pitch multiplier: multiply the run by the factor for your pitch. The calculator then adjusts the line length for the real world — it adds the overhang tail measured along the slope, and deducts half the ridge board thickness so the pair meets at the ridge. Change the job and the tool changes with it: a diagonal roof member needs the hip rafter calculator, and a single-slope roof needs the shed rafter calculator.

PitchAngleMultiplierLength per 10 ft of run
3 / 1214.0°1.03110 ft 3 11/16 in
4 / 1218.4°1.05410 ft 6½ in
5 / 1222.6°1.08310 ft 10 in
6 / 1226.6°1.11811 ft 2 3/16 in
8 / 1233.7°1.20212 ft 0¼ in
10 / 1239.8°1.30213 ft 0 3/16 in
12 / 1245.0°1.41414 ft 1 11/16 in
rafter length = √( run² + rise² )
Worked Examples

Three roofs, worked end to end

Example 1 · By pitch

Gable roof, 24 ft span, 6/12

Run = 24 ÷ 2 = 12 ft. Rise = 6/12 × 12 ft = 6 ft. Line length = √(12² + 6²) = 13 ft 5 in. Add a 12 in overhang on the slope (+13 7/16 in), take off half the 1½ in ridge (−13/16 in).

Cut length: 14 ft 5 9/16 in
Example 2 · By angle

Roof drawn at 30°, 20 ft span

Run = 10 ft. Rise = 10 × tan 30° = 5 ft 9 5/16 in (a 6.9/12 pitch). Line length = 10 ÷ cos 30° = 11 ft 6 9/16 in, before ridge and overhang adjustments.

Line length: 11 ft 6 9/16 in
Example 3 · Metric

Span 7.2 m, 300 mm rise per metre

Run = 3,600 mm. Rise = 300 × 3.6 = 1,080 mm. Line length = √(3,600² + 1,080²) = 3,758 mm. A 600 mm overhang adds 626 mm measured along the slope, and half of a 38 mm ridge board takes off about 20 mm.

Cut length: ≈ 4,365 mm
Reading Your Result

Line length is not the board you cut

Line length is measured on paper — from the outside of the wall plate to the centre of the ridge. Three adjustments turn it into a cut length: the ridge deduction (half the ridge board's thickness, so two rafters and the board share the same space), the tail (your overhang, which runs longer on the slope than it measures flat), and the birdsmouth — the notch that seats the rafter on the plate.

The birdsmouth has one hard rule: never notch deeper than one-quarter of the board's depth — the IRC end-notch limit, or the rafter is weakened exactly where it carries load. The calculator checks this against your lumber size and reports the HAP — the height above plate left standing over the wall. If you only need the notch worked out, the dedicated birdsmouth calculator goes deeper on seat cuts and heel heights.

Field Notes

Common rafter mistakes

Mistake 1

Measuring the overhang flat

A 12 in overhang is 13 7/16 in of board at 6/12. Measuring it flat cuts every tail short.

Mistake 2

Forgetting the ridge

Skip the deduction and the pair won't close up — the roof gains a gap at the top or a bow at the eaves.

Mistake 3

Entering span where run belongs

Every formula works on the run — half the span. Double the run and the rafter comes out yards long.

Mistake 4

Birdsmouth deeper than a quarter

Past ¼ of the board depth — the IRC end-notch limit — the seat cut becomes the weakest point of the whole roof.

Mistake 5

Cutting the whole roof at once

Cut one pair, offer it up, check the ridge and eaves — then batch the rest from the pattern rafter.

Mistake 6

Trusting the nominal size

A “2×8” is 7¼ in deep, not 8. Every HAP and birdsmouth figure here uses actual dimensions.

Methods & Sources

How we calculate

Every result on this page comes from the method described above, using standard framing geometry and the published data credited below. Found a number that looks wrong? Use Report an Error — every report is read.

• American Wood Council — https://awc.org
• International Residential Code, Chapter 8 — https://codes.iccsafe.org/content/IRC2021P2/chapter-8-roof-ceiling-construction
• Marshall Gross, Roof Framing (standard framing geometry and unit-length tables)
Questions

FAQs

Does the calculator include the overhang?

Yes. Enter the overhang as a horizontal measurement — the calculator converts it to the longer length along the slope and adds it to the tail.

Do I enter the span or the run?

The span — the full wall-to-wall width. The calculator halves it to get the run. If you already work from the run, double it and enter that as the span.

How much comes off for the ridge board?

Half the ridge board's actual thickness, measured along the slope — 13/16 in for a standard 1½ in ridge at 6/12. Enter your ridge thickness and the deduction is automatic.

What's the difference between line length and cut length?

Line length is the theoretical measure to the ridge centre. Cut length is line length plus the tail, minus the ridge deduction — the board you actually mark and cut.

Can I work in metric or millimetres?

Yes — switch units at the top of the calculator. Every input and result converts, and the worked examples include a metric roof.

How deep can a birdsmouth be?

At most one-quarter of the board's actual depth, measured perpendicular to the top edge — the IRC end-notch limit (R502.8.1, applied to rafters by R802.7.1). The calculator warns you if your seat cut goes past it for the lumber size you picked.

Does this work for a gable roof?

Yes — a gable roof's rafters are common rafters, which is exactly what this page calculates. For the diagonal members on a hip roof, use the hip and jack rafter calculators.

Which board length should I buy?

The result names the next stock length above your cut length (8, 10, 12, 14, 16, 18 or 20 ft). The offcut is normal — plumb and seat cuts come off the ends.

The Full Family

More rafter calculators