Rafter Length Calculator
HoneyDoMath.eu
Enter the building width, the pitch in degrees, the ridge board thickness and the overhang, and the building length and spacing, and get the rafters to cut in their stock length; the working shows the rafter length with the ridge deduction and the overhang both visible, the cut angles and the hip length.
Estimates for planning, not professional advice. Read the full notice.
Example: a gable roof
42 rafters
- Run after the ridge deduction 2.981 m (9 ft 9 3/8 in)
- Rafter line length, wall to ridge 3.442 m (11 ft 3 1/2 in)
- Rafter length with the overhang 3.904 m (12 ft 9 11/16 in)
- Plumb cut angle, in degrees 30 degrees
- Seat cut angle, in degrees 60 degrees
Estimate for planning, from what you entered and the product data shown. Check product labels and your supplier before you buy.
Result
Enter a size to see your total.
Each product is rounded up once for the whole project, so the total can be less than the items bought alone added together. A line counted from a cut layout (sheets, boards or tiles laid out piece by piece) is counted for each item and added.
- Rafter timber, 4.2 m 42
Questions
How do I work out the length of a rafter?
The line length is the run times the slope factor, which is one over the cosine of the pitch. The worked example shows the run and each step; it does not size the timber or say how far it can span.
How do I add the overhang to a rafter?
Add the overhang, measured level, to the run before you multiply by the slope factor. The worked example shows both lengths, with and without the overhang.
Worked example: a gable roof
Show the working
- Run: half the width, less half the ridge board 6 m (19 ft 8 1/4 in) ÷ 2 − 38 mm (1 1/2 in) ÷ 2 = 2.981 m (9 ft 9 3/8 in)
- Line length: the run times the slope factor 2.981 m (9 ft 9 3/8 in) × 1.1547 = 3.442 m (11 ft 3 1/2 in)
- With the overhang: the run plus the overhang, times the slope factor 3.381 m (11 ft 1 1/8 in) × 1.1547 = 3.904 m (12 ft 9 11/16 in)
- Rafters: the building length over the spacing, rounded up, plus one, on both sides 21 per side × 2 sides = 42 rafters
- Stock length that covers the line, in whole lengths 3.904 m (12 ft 9 11/16 in) = 4.2 m (13 ft 9 3/8 in)
Assumptions
The figures behind the example. Sourced figures link to their source below; a default is a starting value to check against your label or supplier.
| Assumption | Value | Details and changes |
|---|
Metres, centimetres or millimetres, like 3.8 m, 10 cm or 250 mm
Rafter line length by run and pitch
Line length of a common rafter, with no ridge deduction and no overhang, by horizontal run and by pitch
| Run | Pitch 20 degrees | Pitch 30 degrees | Pitch 40 degrees |
|---|---|---|---|
| 2 m | 2.128 m (6 ft 11 13/16 in) | 2.309 m (7 ft 6 15/16 in) | 2.611 m (8 ft 6 13/16 in) |
| 2.5 m | 2.66 m (8 ft 8 3/4 in) | 2.887 m (9 ft 5 5/8 in) | 3.264 m (10 ft 8 1/2 in) |
| 3 m | 3.193 m (10 ft 5 11/16 in) | 3.464 m (11 ft 4 3/8 in) | 3.916 m (12 ft 10 3/16 in) |
| 3.5 m | 3.725 m (12 ft 2 5/8 in) | 4.041 m (13 ft 3 1/8 in) | 4.569 m (14 ft 11 7/8 in) |
| 4 m | 4.257 m (13 ft 11 9/16 in) | 4.619 m (15 ft 1 13/16 in) | 5.222 m (17 ft 1 9/16 in) |
The run is the level distance from the wall to the ridge. Each figure is the run times the slope factor of that pitch.