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.
- 1Pitchα = arctan(3.00 ÷ 5.00) = 30.96° = 60.0%
- 2Rafter length√(3.00² + 5.00²) + 0.50 m = 5.831 m + 0.50 m = 6.331 m
- 3Roof area6.331 m × 12.00 m × 2 = 151.94 m²
- 4Tiles9.95 pcs/m² × 151.94 m² × (1 + 3%) = 1,557.2 → 1,558 pcs
- 5Tiling battens20 rows × 12.00 m × 2 = 480.00 m → × (1 + 10%) = 528.00 m
- 6Rafters12.00 m ÷ 0.80 m = 15 → rounded up to 15 bays → 16 rafters per side → 32 pcs, actual spacing 80 cm
- 7Counter battens32 × 6.331 m = 202.59 m
- 8Ridge tilesround up(12.00 m × 2.5) = 30 pcs
- 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.
| Pitch | b = 3 m | b = 4 m | b = 5 m | b = 6 m |
|---|---|---|---|---|
| 25° | 3.31 | 4.41 | 5.52 | 6.62 |
| 30° | 3.46 | 4.62 | 5.77 | 6.93 |
| 35° | 3.66 | 4.88 | 6.10 | 7.32 |
| 40° | 3.92 | 5.22 | 6.53 | 7.83 |
| 45° | 4.24 | 5.66 | 7.07 | 8.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.
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
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.