HOME MEASUREMENT & PLANNING 11 min read Updated November 22, 2026
How to Calculate Roof Slope Length from Pitch

Use the tool as you read
The Room Area Calculator is free and needs no account.
Pro ($4.99/mo) saves the result into a project with folders, PDF packs and builder sharing.
Quick answer
Roof slope length is the length of the roof surface from the eaves to the ridge, 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, or use the rise and run directly, with the square root of the rise squared plus the run squared. For a run of 3 metres and a rise of 1.5 metres, the slope length is the square root of 9 plus 2.25, which is the square root of 11.25, or about 3.35 metres. Add the eaves overhang separately, because the slope length to the wall is not the full rafter length.
Introduction
Roof slope length is the measurement that decides how much roofing material is needed, how long the rafters must be, and how large the roof area is. It is the length of the roof surface from the eaves to the ridge, measured along the slope, and it is longer than the horizontal run, because the slope is the diagonal of a triangle, not its base. A roof that looks like it needs 3 metres of material may actually need 3.35 metres, and the difference, multiplied by the length of the roof, is the shortfall that appears when the materials run out.
The slope length is worked out from the pitch and the run, which are the two measurements that define the roof. The pitch gives the angle, the run gives the horizontal distance, and the slope length follows from them by simple geometry. The calculation needs no special tool, only a calculator, and it is the same calculation whether the roof is a simple gable, a lean to, or a roof with a steep pitch.
This guide shows how to calculate roof slope length from pitch, with a worked example you can follow with your own roof measurements. It covers the cosine method and the rise and run method, how to add the eaves overhang, and how to use the slope length to work out the roof area and the material quantity. The same method works for any pitched roof, one slope at a time.

How to measure for roof slope length
Measure the horizontal run, which is the distance from the outside of the wall to the centre of the ridge, measured horizontally. The run is not the width of the building, it is half the width for a gable roof, because the ridge is in the middle and each slope covers half the building. Measure the run with a tape measure inside the loft, from the wall plate to the ridge, or measure the building width outside and halve it, 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, using the same method. A pitch of 30 degrees, a rise of 577 millimetres over a run of 1,000 millimetres, and a ratio of 1 in 1.73 are the same pitch in three forms, and any one of them can be used to work out the slope 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 differ.
Measure the eaves overhang separately, which is the distance from the outside of the wall to the end of the rafter, measured along the slope. The overhang is not part of the run, and it must be added to the slope length worked out from the run and pitch, or the rafters will be short. Measure the overhang on the roof, from the wall to the end of the rafter, and note whether it is the same on both slopes.
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, or to work out the square root
- A pencil and paper, to record the run, the pitch, and the overhang for each slope
- A note of the roof length, to work out the roof area from the slope length

How this estimate is calculated
Slope length = run divided by the cosine of the pitch angle. Or, slope length = square root of (run squared plus rise squared). Roof area per slope = slope length x roof length. Rafter length = slope length plus eaves overhang, plus any ridge cut allowance. The cosine method and the rise and run method give the same answer, so use whichever figures you have.
Worked example:
- Run: 3 metres from the outside of the wall to the centre of the ridge.
- Pitch: 26.5 degrees, which is a rise of 500 millimetres over a run of 1,000 millimetres.
- Rise over the run of 3 metres: 3 times 0.5 gives 1.5 metres.
- Slope length by the rise and run method: the square root of (3 squared plus 1.5 squared) is the square root of (9 plus 2.25), which is the square root of 11.25, or about 3.35 metres.
- Slope length by the cosine method: 3 divided by the cosine of 26.5 degrees, which is 3 divided by 0.895, gives 3.35 metres, which agrees.
- Eaves overhang: 0.5 metres along the slope, so the rafter length is 3.35 plus 0.5, which is 3.85 metres.
- Roof area per slope: 3.35 times a roof length of 6 metres gives 20.1 square metres.
Step-by-step
- Measure the horizontal run from the outside of the wall to the centre of the ridge.
- Measure the roof pitch as an angle, or as a rise over a run, using a level and tape.
- Work out the slope length by dividing the run by the cosine of the pitch angle, or by the square root of the rise squared plus the run squared.
- Check the answer by working it out the other way, and confirm the two agree.
- Measure the eaves overhang along the slope and add it to the slope length for the rafter length.
- Multiply the slope length by the roof length to get the roof area per slope.
- Add a waste allowance of 10 percent to the roof area before ordering materials.
Materials and costs
The cost of roofing material follows from the roof area, which follows from the slope length, so a wrong slope length gives a wrong order. As an illustrative example, metal roofing might cost around $10 to $20 per square metre, or about £8 to £16, or €9 to €18, and a roof area of 40.2 square metres for two slopes would cost $402 to $804, or about £322 to £643, or €368 to €734, before fixings and labour. A slope length worked out from the horizontal run alone, without the pitch, would understate the area by more than 4 square metres, which is $40 to $80 of material short. These are example prices for budgeting, not surveyed market prices, so check your supplier before you commit.
Rafters are priced by the length, and the rafter length follows from the slope length plus the overhang. As an illustrative example, a timber rafter might cost around $8 to $15 per metre, or about £6 to £12, or €7 to €14, so a rafter 3.85 metres long costs $31 to $58, or about £25 to £46, or €28 to €53. A roof with 10 rafters would cost $310 to $580 for the rafters alone, or about £248 to £464, or €284 to €531, and a rafter cut short because the overhang was forgotten would need to be replaced.
The cost of calculating the slope length is nothing, because it is arithmetic, and it is done with a calculator or a phone. The cost of not calculating it is the shortfall, the second delivery, and the delay while the extra material is ordered. Work out the slope length on paper, before ordering, and check it by working it out two ways, so the order is right the first time.
Roof area, waste, and ordering from slope length
Roof area is the slope length times the roof length, for each slope, and the two slopes are added together for the total roof area. A roof 6 metres long with a slope length of 3.35 metres has 20.1 square metres per slope, and two slopes give 40.2 square metres. That is the area the covering must cover, before any waste allowance, and it is larger than the horizontal area, which is 6 times 3, or 18 square metres per slope, because the slope is longer than the run.
Waste allowance for roofing is usually 10 percent, to cover cutting at the ridge, the eaves, and the verges, and breakage in handling. A roof area of 40.2 square metres at 10 percent needs 44.22 square metres ordered, rounded up to whole sheets or packs. The allowance is larger where the roof has hips, valleys, or dormers, because each one needs cutting, and it is smaller on a simple gable roof with no features. Record the allowance used, so the next roofing estimate starts from a known figure.
Ordering from slope length also decides the sheet or tile count, because each sheet covers a known area on the slope, not on the horizontal. A metal roofing sheet 1 metre wide and 3.85 metres long covers 3.85 square metres on the slope, and the number of sheets is the roof area divided by the sheet coverage, rounded up. A tile count is worked out the same way, from the slope area and the tile coverage, with the waste allowance added. The slope length is the figure that makes all of those calculations right.

Common mistakes
Using the horizontal run as the slope length
The slope length is longer than the horizontal run, by a factor that depends on the pitch. A roof at 30 degrees has a slope length 15 percent longer than its run, and ordering from the run alone will leave the roof short.
Forgetting the eaves overhang
The slope length worked out from the run and pitch 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.
Using one slope length for both slopes
The two slopes of a gable roof may have different pitches and different runs, so each slope needs its own slope length. Measure each slope separately and work out its own length.
Forgetting the waste allowance
Cutting at the ridge, eaves, and verges wastes material on every roof. Add 10 percent to the roof area before ordering, and more where the roof has hips or valleys.
Working out the slope length from a guessed pitch
A pitch guessed by eye can be wrong by 10 degrees, which changes the slope length by a large amount. Measure the pitch with a level and tape, and work out the slope length from the measured pitch.

Frequently asked questions
How do I calculate roof slope length from pitch?
Divide the horizontal run by the cosine of the pitch angle, or work out the square root of the run squared plus the rise squared. Both methods give the same answer.
What is the difference between run and slope length?
The run is the horizontal distance from the wall to the ridge, while the slope length is the distance along the roof surface from the eaves to the ridge. The slope length is always longer than the run, because it is the diagonal of a triangle.
How do I work out roof area from slope length?
Multiply the slope length by the roof length for each slope, and add the slopes together. A slope length of 3.35 metres and a roof length of 6 metres gives 20.1 square metres per slope.
Do I add the eaves overhang to the slope length?
Yes, for the rafter length, add the overhang measured along the slope to the slope length worked out from the run and pitch. The overhang is not part of the run, so it must be added separately.
How much waste should I allow for roofing?
Allow 10 percent on a simple gable roof, and more where the roof has hips, valleys, or dormers, because each one needs cutting. Round up to whole sheets or packs after adding the allowance.
Can I work out slope length without knowing the angle?
Yes, if you know the rise and the run, use the square root of the rise squared plus the run squared. That gives the slope length without needing the angle at all.
Related tools
Room Area Calculator
Home Measurement & Planning · Measure floor area, wall area and volume for a room.
Room Volume Calculator
Home Measurement & Planning · Work out the volume of a room in cubic metres, from its length, width and height.
Wall Area Calculator
Home Measurement & Planning · Work out the net wall area of a room, minus doors and windows, for paint, wallpaper and plaster.
Irregular Room Calculator
Home Measurement & Planning · Work out the floor area of an L-shaped or irregular room by adding two rectangles together.
Related guides

How to Work Out Wastage Allowances for Building Materials
Quick answer A wastage allowance is extra material ordered above the measured quantity to cover cutting, breakage, and mistakes. Allow 5 percent for simple…

How to Work Out Stair Rise and Going
Quick answer Stair rise is the vertical height of each step, and going is the horizontal depth of each step. To work them out,…

How to Work Out Rafter Length for a Simple Roof
Quick answer Rafter length is the length of timber needed for one rafter, from the ridge to the eaves, and it is worked out…

How to Use a Try Square and Combination Square
Quick answer A try square checks that a corner is square, which means the two edges meet at 90 degrees, and it marks a…