Rafter Length Calculator: Pitch, Run and Common Rafters

Quick Answer: The length of a common rafter is found with Pythagoras: rafter length = √(run² + rise²), where the run is the horizontal distance from the wall plate to the ridge centre (half the building span, less half the ridge thickness) and the rise is the vertical height gained over that run. The pitch angle relates the two: rise = run × tan(pitch), so rafter length per metre of run = 1 ÷ cos(pitch) = sec(pitch). For example, a 3 m run at 30° pitch gives a rise of 1.732 m and a rafter length of √(3² + 1.732²) = 3.46 m before adding the eaves overhang.

Summary

Getting rafter lengths right is the difference between a roof that lands cleanly on the wall plate and a day spent re-cutting timber. The maths is simple — it is just a right-angled triangle — but the practical pitfalls are in the setting-out: where you measure the run from, whether you have allowed for the ridge board thickness, the plumb and seat cuts, and the eaves overhang. This article gives the formulas, a ready-reference table you can keep on the van, and worked examples with real numbers.

For a tradesperson, the rafter calculation underpins everything from ordering timber lengths to pricing a cut roof versus trussed rafters. A cut roof (rafters cut and assembled on site) gives flexibility for awkward shapes; trussed rafters are factory-made to a design and arrive ready to fix. Either way, knowing the true rafter length lets you order the right stock length, allow for waste, and check the structural span against the timber section.

A common misconception is that "rafter length" is a single number. It is not: there is the line length (centre of wall plate to centre of ridge), the true cutting length once you account for the ridge board and any birdsmouth, and the overall length including the eaves overhang. Always be clear which one you are quoting. The structural span — the clear distance the rafter bridges unsupported — is a separate figure again, and it is the span (not the sloping length) you check against the span tables in Approved Document A.

Key Facts

Quick Reference Table

Got your quantities? squote builds the full quote with labour, materials and markup.

Try squote free →

Rafter length and rise per 1 metre of run at common pitches (multiply by your actual run):

Pitch angle Rise per 1 m run (tan) Rafter length per 1 m run (sec)
10° 0.176 m 1.015 m
15° 0.268 m 1.035 m
17.5° 0.315 m 1.049 m
20° 0.364 m 1.064 m
22.5° 0.414 m 1.082 m
25° 0.466 m 1.103 m
30° 0.577 m 1.155 m
35° 0.700 m 1.221 m
40° 0.839 m 1.305 m
45° 1.000 m 1.414 m

Common pitch ratios: 4:12 ≈ 18.4°, 6:12 ≈ 26.6°, 7:12 ≈ 30.3°, 12:12 = 45° (rise:run).

Detailed Guidance

The formulas

Two relationships do all the work:

  1. Rise from pitch: rise = run × tan(pitch)
  2. Rafter length: rafter = √(run² + rise²) = run × sec(pitch), where sec(pitch) = 1 ÷ cos(pitch)

To get the pitch angle from a known rise and run, use pitch = arctan(rise ÷ run). All three forms describe the same right-angled triangle: the run is the base, the rise is the height, and the rafter is the hypotenuse.

Worked example 1 — pitch known

A symmetrical gable roof on a building 6 m wide, pitched at 30°, with a 25 mm ridge board.

Worked example 2 — rise and run known (no protractor)

A lean-to where you can measure directly: run = 4.0 m, rise = 1.5 m.

Worked example 3 — sizing from total span

A roof spanning 8 m at 35° pitch.

Setting out the cuts

Mark the plumb cut at the ridge to the pitch angle, then measure the line length down the rafter and mark the birdsmouth (seat cut) at the wall plate. The birdsmouth seat sits on the plate; its depth must not exceed one third of the rafter depth to preserve strength. From the birdsmouth, continue the line for the overhang and mark the foot/plumb cut at the fascia. A roofing/framing square or a digital angle finder makes repeat cuts consistent across all common rafters.

Cut roof vs trussed rafters

A cut roof gives you these calculations to do on site and suits irregular plans, dormers and hips. Trussed rafters arrive engineered and cut to a design — you don't calculate rafter lengths, but you must know the span and pitch to order them. See [roof truss types](/knowledge/carpentry/roof-truss-types) for truss options and [pitched roof structure](/knowledge/roofing/pitched-roof-structure) for how the components fit together.

Frequently Asked Questions

How do I calculate rafter length from pitch and span?

Take half the span as the run, find the rise with rise = run × tan(pitch), then rafter length = √(run² + rise²). Or skip the rise: rafter = run × (1 ÷ cos(pitch)). Add the sloping overhang separately.

What's the difference between run and span?

The span is the full width the roof covers (wall plate to wall plate). The run is the horizontal distance from one wall plate to the ridge centre — for a symmetrical roof, half the span (minus half the ridge thickness).

Do I use the rafter length or the run for span tables?

Span tables in Approved Document A are based on the horizontal span the rafter bridges, not its sloping length. Use the clear horizontal distance between supports.

How much overhang should I add?

Eaves overhang is a design choice, commonly 200-450 mm horizontally. Convert it to sloping length by multiplying the horizontal overhang by sec(pitch), then add it to the rafter length and allow extra for the foot cut.

What's the minimum pitch for my tiles?

It depends on the product. Many concrete interlocking tiles go down to around 17.5-22.5°, plain tiles and natural slate usually need more (often 25-40°). Always check the manufacturer's stated minimum pitch — below it the roof is not weathertight.

Regulations & Standards