Roof calculator Get the appApp
Roof calculator app – free. Pro features (saving rooms, PDF with your logo, whole homes) one-off for £4.99.Get it free

Rafter length calculator: length and number of rafters

Enter pitch, width and overhang – rafter length and number appear instantly.

In short With h = 3.00 m, b = 5.00 m and 0.50 m overhang, the rafter is 5.831 m + 0.50 m = 6.331 m long. With 12 m eaves length and 0.80 m spacing that makes 32 rafters – Rafter length: 6.331. Calculation steps: Pitch, α = arctan(3.00 ÷ 5.00) = 30.96° = 60.0%.

An example step by step

With h = 3.00 m, b = 5.00 m and 0.50 m overhang, the rafter is 5.831 m + 0.50 m = 6.331 m long. With 12 m eaves length and 0.80 m spacing that makes 32 rafters.

  1. 1
    Pitchα = arctan(3.00 ÷ 5.00) = 30.96° = 60.0%
  2. 2
    Rafter length√(3.00² + 5.00²) + 0.50 m = 5.831 m + 0.50 m = 6.331 m
  3. 3
    Roof area6.331 m × 12.00 m × 2 = 151.94 m²
  4. 4
    Tiles9.95 pcs/m² × 151.94 m² × (1 + 3%) = 1,557.2 → 1,558 pcs
  5. 5
    Tiling battens20 rows × 12.00 m × 2 = 480.00 m → × (1 + 10%) = 528.00 m
  6. 6
    Rafters12.00 m ÷ 0.80 m = 15 → rounded up to 15 bays → 16 rafters per side → 32 pcs, actual spacing 80 cm
  7. 7
    Counter battens32 × 6.331 m = 202.59 m
  8. 8
    Ridge tilesround up(12.00 m × 2.5) = 30 pcs
  9. Result: Rafter length: 6.331

Rafter length by pitch and width

The rafter length along the roof slope (without overhang) is b ÷ cos α. The table shows it in metres for typical pitches and horizontal widths b from ridge to eaves.

Rafter length in m (without overhang) by pitch and horizontal width b
Pitchb = 3 mb = 4 mb = 5 mb = 6 m
25°3.314.415.526.62
30°3.464.625.776.93
35°3.664.886.107.32
40°3.925.226.537.83
45°4.245.667.078.49

The overhang is added to the rafter length (in the calculator: √(h² + b²) + overhang). Cutting and structural design are determined by the carpenter and structural engineer.

The calculator app

Roof calculator app

Works out roof pitch, rafters, tiles and battens from a few dimensions. In the browser you calculate one roof area – in the app several roof areas and buildings, with a PDF for your customers.

  • Projects & rooms
  • PDF with logo
  • Your own defaults
  • Offline, no account
FreeGet the app free · Pro features one-off for £4.99, no subscription
Coming soon on theApp StoreGet it onGoogle Play
The app is free and calculates fully without Pro. Pro unlocks saving, projects and PDF.

Common questions

How do I calculate rafter length?

The length along the roof slope is √(h² + b²) plus overhang. In the example: √(3² + 5²) = 5.831 m, with 0.50 m overhang 6.331 m.

How does the overhang affect it?

It is simply added to the length. Without overhang the rafter in the example would be 5.831 m long, with 0.50 m it is 6.331 m. You set the overhang in the design.

How many rafters do I need?

Per roof side: eaves length ÷ rafter spacing, rounded up, plus 1 – so the actual spacing does not exceed the value you entered. At 12 m and 0.80 m that is 16 per side, 32 in total for a gable roof. At 10 m and 0.80 m: 12.5 → 13 bays → 14 per side, actual spacing 77 cm.

What length should I order for the timber?

The rafter length is the length on the roof slope. For cutting, the foot, notches and the timber lengths available you usually need a little extra. The carpenter or timber merchant will clarify that.

Does the calculator also work out the rafter cross-section?

No. Cross-section, span and snow and wind load are a matter for structural calculation, which a structural engineer or carpenter checks. The calculator only gives geometric guide values.

How long is a rafter at 30° and 4 m width?

The rafter length without overhang is 4 m ÷ cos 30° = 4.62 m. With 0.50 m overhang it is 5.12 m. At 35° it would be 4.88 m without overhang.