HOME MEASUREMENT & PLANNING 11 min read Updated November 24, 2026

How to Work Out Rafter Length for a Simple Roof

How to Work Out Rafter Length for a Simple Roof

Use the tool as you read

The Room Area Calculator is free and needs no account.

Open the Room Area Calculator

Pro ($4.99/mo) saves the result into a project with folders, PDF packs and builder sharing.

Quick answer

Rafter length is the length of timber needed for one rafter, from the ridge to the eaves, and it is worked out from the horizontal run and the roof pitch. Divide the run by the cosine of the pitch angle to get the slope length, then add the eaves overhang and a small allowance for the ridge cut. For a run of 3 metres at a pitch of 30 degrees, the slope length is 3 divided by 0.866, which is 3.46 metres, and with an overhang of 0.5 metres the rafter length is about 3.96 metres. Order rafters at the next standard length above that figure, so the timber is not short.

Introduction

A rafter is the sloping timber that carries the roof covering, and its length is the most important timber measurement on a roof. A rafter cut too short cannot be lengthened, and a rafter cut too long wastes timber and time. The length follows from the run and the pitch, which are the two measurements that define the roof, and it must be worked out on paper before any timber is ordered or cut, because a mistake in the length is carried into every rafter on the roof.

The rafter length is not the same as the slope length, although it is close. The slope length is from the wall to the ridge, while the rafter length adds the eaves overhang, which is the part of the rafter that sticks out past the wall, and it allows for the cut at the ridge, where the rafter meets its opposite number. Each of those must be added separately, or the rafter will be short by the overhang, which is often half a metre.

This guide shows how to work out rafter length for a simple gable roof, with a worked example you can follow with your own roof measurements. It covers the run, the pitch, the slope length, the overhang, and the ridge cut, and how to use the rafter length to order timber. The same method works for a lean to roof, where there is only one slope, and for a roof with a different pitch on each side, one slope at a time.

How to measure for rafter length

Measure the horizontal run, which is the distance from the outside of the wall to the centre of the ridge, measured horizontally. For a gable roof over a building 6 metres wide, the run is 3 metres, because the ridge is in the middle and each slope covers half the building. Measure the run inside the loft, from the wall plate to the ridge, with a tape measure, and check it against the building width outside, halved, allowing for the wall thickness.

Measure the roof pitch, either as an angle in degrees, using a level and tape, or as a rise over a run. A pitch of 30 degrees is a rise of 577 millimetres over a run of 1,000 millimetres, and either form can be used to work out the rafter length, as long as the form is consistent. Record the pitch with the slope it belongs to, because the two slopes of a gable roof may have different pitches.

Measure the eaves overhang, which is the distance from the outside of the wall to the end of the rafter, measured along the slope. The overhang is usually 300 to 600 millimetres, and it decides how far the roof covering extends past the wall, protecting it from rain. Measure the overhang on the roof, or decide it before ordering, and note whether it is the same on both slopes. Allow a small amount for the ridge cut, usually 25 to 50 millimetres, where the rafter is cut to meet its opposite number at the ridge.

You will need:

  • A tape measure, to measure the horizontal run and the eaves overhang
  • A spirit level and tape, to measure the roof pitch as a rise over a run
  • A calculator, to divide by the cosine of the pitch angle
  • A pencil and paper, to record the run, the pitch, and the overhang for each slope
  • A note of the timber sizes available, so the rafter length can be matched to a standard length
A builder measuring a roof rafter with a tape measure and a spirit level on a simple gable roof.
Measure the run, the pitch and the overhang before working out the rafter length.

How this estimate is calculated

Slope length = run divided by the cosine of the pitch angle. Rafter length = slope length plus eaves overhang plus ridge cut allowance. Number of rafters = roof length divided by rafter spacing, plus one. Order timber at the next standard length above the rafter length, so the timber is not short.

Worked example:

  1. Run: 3 metres from the outside of the wall to the centre of the ridge.
  2. Pitch: 30 degrees, so the cosine of 30 degrees is 0.866.
  3. Slope length: 3 divided by 0.866 gives 3.46 metres.
  4. Eaves overhang: 0.5 metres along the slope.
  5. Ridge cut allowance: 0.05 metres.
  6. Rafter length: 3.46 plus 0.5 plus 0.05 gives 4.01 metres.
  7. Order length: the next standard length above 4.01 metres is 4.2 metres, so order 4.2 metre lengths and cut them to 4.01 metres.
  8. Number of rafters: roof length 6 metres, rafter spacing 600 millimetres, so 6 divided by 0.6 gives 10 spaces, plus one, giving 11 rafters per slope, or 22 rafters for the roof.
A right-angled triangle showing the run, rise and slope of a roof next to a calculator.
Divide the run by the cosine of the pitch to get the slope length.

Step-by-step

  1. Measure the horizontal run from the outside of the wall to the centre of the ridge.
  2. Measure the roof pitch as an angle, or as a rise over a run, using a level and tape.
  3. Work out the slope length by dividing the run by the cosine of the pitch angle.
  4. Measure the eaves overhang along the slope and add it to the slope length.
  5. Add a small allowance for the ridge cut, usually 25 to 50 millimetres.
  6. Order timber at the next standard length above the rafter length.
  7. Work out the number of rafters from the roof length divided by the spacing, plus one.

Materials and costs

Rafter timber is priced by the length and by the section size, and the rafter length decides both the order length and the number of lengths needed. As an illustrative example, a rafter section of 50 by 150 millimetres might cost around $8 to $15 per metre, or about £6 to £12, or €7 to €14, so a rafter 4.01 metres long costs $32 to $60, or about £26 to £48, or €29 to €55. A roof with 22 rafters would cost $704 to $1,320 for the rafters alone, or about £563 to £1,056, or €644 to €1,208, before the ridge board, purlins, and fixings. These are example prices for budgeting, not surveyed market prices, so check your supplier before you commit.

Ordering timber at the next standard length above the rafter length wastes a little timber, but it is cheaper than ordering a length that is short. As an illustrative example, a rafter length of 4.01 metres ordered as a 4.2 metre length wastes 0.19 metres per rafter, which is $1.50 to $2.85 per rafter, or about £1.20 to £2.28, or €1.37 to €2.61. A rafter ordered as a 3.9 metre length would be short and unusable, which wastes the whole length. Always round up to the next standard length.

The number of rafters follows from the spacing, and closer spacing means more rafters and more cost. As an illustrative example, a spacing of 400 millimetres needs 16 rafters per slope on a 6 metre roof, while a spacing of 600 millimetres needs 11, so the closer spacing costs about 45 percent more in rafter timber. Check the spacing on the drawings, because it is decided by the load and the covering, not by the budget, and it should not be widened to save money.

A stack of long timber rafter lengths on a workbench with a hand saw and a pencil.
Order timber at the next standard length above the rafter length.

Rafter spacing, birdsmouth, and ordering timber

Rafter spacing is the distance between rafters, measured centre to centre, and it is usually 400 millimetres or 600 millimetres. The spacing is decided by the load the roof must carry and the covering, and it is shown on the drawings where the roof is designed. Count the rafters by dividing the roof length by the spacing and adding one, because there is a rafter at each end as well as between them. A roof 6 metres long at 600 millimetre spacing needs 11 rafters per slope, and a roof at 400 millimetre spacing needs 16.

The birdsmouth is the notch cut in the rafter where it sits on the wall plate, and it is the joint that transfers the roof load to the wall. The birdsmouth is cut after the rafter length is worked out, and it does not change the length, because the rafter is measured to the ridge and to the end of the overhang, not to the birdsmouth. Cut the birdsmouth carefully, because a cut that is too deep weakens the rafter, and a cut that is too shallow will not sit flat on the wall plate.

Ordering timber is done by the length and the section, and the supplier will have standard lengths, usually in 300 millimetre steps. Order the next standard length above the rafter length, and order one or two spare lengths, because a rafter can be damaged in handling or cut wrongly, and a spare length is cheaper than a second delivery. Check each length on delivery for straightness, because a bowed rafter will not sit true, and it should be rejected or used where the bow does not matter.

A row of evenly spaced rafters sitting on a wall plate with a close view of a birdsmouth notch.
The birdsmouth notch seats each rafter on the wall plate.

Common mistakes

Forgetting the eaves overhang

The slope length is to the wall, not to the end of the rafter. Add the overhang separately, or the rafters will be short and the eaves will not be covered.

Forgetting the ridge cut allowance

The rafter meets its opposite number at the ridge, and the cut takes a small amount off the length. Allow 25 to 50 millimetres, or the rafters will not meet properly at the ridge.

Ordering the exact rafter length

Timber is sold in standard lengths, and the exact rafter length will not match one. Order the next standard length above the rafter length, and cut it down, rather than ordering a length that is short.

Counting rafters without adding one

A roof length divided by the spacing gives the number of spaces, not the number of rafters. Add one, because there is a rafter at each end as well as between them.

Working out rafter length from a guessed pitch

A pitch guessed by eye can be wrong by 10 degrees, which changes the rafter length by a large amount. Measure the pitch with a level and tape, and work out the rafter length from the measured pitch.

Frequently asked questions

How do I work out rafter length?

Divide the horizontal run by the cosine of the pitch angle to get the slope length, then add the eaves overhang and a small allowance for the ridge cut. For a run of 3 metres at 30 degrees, the rafter is about 4.01 metres long with a 0.5 metre overhang.

What is the difference between slope length and rafter length?

Slope length is from the wall to the ridge, while rafter length adds the eaves overhang and the ridge cut allowance. The rafter is longer than the slope length by the overhang.

How many rafters do I need?

Divide the roof length by the rafter spacing and add one. A roof 6 metres long at 600 millimetre spacing needs 11 rafters per slope, or 22 for the roof.

What timber length should I order for rafters?

Order the next standard length above the rafter length, so the timber is not short. A rafter length of 4.01 metres should be ordered as a 4.2 metre length and cut down.

What is a birdsmouth cut?

It is the notch cut in the rafter where it sits on the wall plate, transferring the roof load to the wall. It does not change the rafter length, but it must be cut carefully, because a cut too deep weakens the rafter.

Can I work out rafter length without knowing the pitch angle?

Yes, if you know the rise and the run, use the square root of the rise squared plus the run squared for the slope length, then add the overhang and the ridge cut allowance.

Related tools

Related guides