Rafter Length Calculator

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.

Roof

Metres, centimetres or millimetres, like 3.8 m, 10 cm or 250 mm

reads as 6 metres, 19 feet 8 and 1 quarter inches

Metres, centimetres or millimetres, like 3.8 m, 10 cm or 250 mm

reads as 38 millimetres, 1 and 1 half inches

Metres, centimetres or millimetres, like 3.8 m, 10 cm or 250 mm

reads as 400 millimetres, 1 foot 3 and 3 quarters inches

Metres, centimetres or millimetres, like 3.8 m, 10 cm or 250 mm

reads as 8 metres, 26 feet 2 and 15 sixteenths inches

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.

  • Rafter timber, 4.2 m 42

Share this project

This link carries:

    The project is inside the link, after the # sign. Browsers do not send that part to the site.

    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
    1. 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)
    2. 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)
    3. 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)
    4. Rafters: the building length over the spacing, rounded up, plus one, on both sides 21 per side × 2 sides = 42 rafters
    5. 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.

    AssumptionValueDetails and changes

    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

    Line length of a common rafter, with no ridge deduction and no overhang, by horizontal run and by pitch
    RunPitch 20 degreesPitch 30 degreesPitch 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.