Slope Calculator

Convert any slope between degrees, percent grade, ratio and roof pitch — or calculate it from rise and run.

Type in any box — all the others update instantly.

Calculate from rise and run

Use the same unit (cm, inches, feet…) for rise and run.

How slope is measured

Slope describes how steep a line or surface is. Builders, engineers and roofers all describe the same steepness in different ways, which is why converting between them is so common:

  • Degrees — the angle between the slope and a horizontal line. 0° is flat; 90° is vertical.
  • Percent grade — rise ÷ run × 100. Used for roads, driveways, ramps and drainage.
  • Ratio (1 : x) — one unit of rise for every x units of run. Used for ramps and pipe falls.
  • Roof pitch (x / 12) — inches of rise per 12 inches of run, the standard in North American roofing.

Formulas

ConvertFormula
Degrees → percent% = tan(θ) × 100
Percent → degreesθ = arctan(% ÷ 100)
Ratio 1:x → percent% = 100 ÷ x
Roof pitch x/12 → degreesθ = arctan(x ÷ 12)
Slope length√(rise² + run²)

Quick reference table

DegreesPercentRatioRoof pitch
1°1.75%1 : 57.30.21 / 12
2°3.49%1 : 28.60.42 / 12
4.76°8.33%1 : 121 / 12
10°17.6%1 : 5.672.12 / 12
18.43°33.3%1 : 34 / 12
26.57°50%1 : 26 / 12
45°100%1 : 112 / 12

How to use the slope calculator

The calculator has two parts. In the top section, type a value into any box — degrees, percent, ratio, roof pitch, mm per metre or inches per foot — and every other box updates instantly. In the bottom section, enter a rise (vertical height) and a run (horizontal distance) in the same units, and the calculator works out the slope in every format plus the length of the sloped surface.

Worked examples

1. A driveway

Your driveway rises 0.9 m over a horizontal distance of 12 m. Enter rise 0.9 and run 12: the grade is 7.5%, or about 4.3°, and the slope length is 12.03 m.

2. A wheelchair ramp

You need to climb a 45 cm step at a ratio of 1:12. Enter 12 in the ratio box to confirm the angle (4.76°), then multiply: 45 cm × 12 = 5.4 m of horizontal run. The ramp surface itself will be about 5.42 m long.

3. A roof

A builder tells you your roof is a 7/12 pitch. Enter 7 in the roof pitch box: that's 30.3° or 58.3%. If the horizontal distance from wall to ridge is 4 m, the rafter length is 4 ÷ cos(30.3°) ≈ 4.63 m.

4. A shower floor

A tiler recommends a fall of 1:60 toward the drain. Enter 60 in the ratio box: that's 1.67%, or 16.7 mm per metre. Over 1.2 m from the wall to the drain, the floor needs to drop about 20 mm.

Common slope guidelines

ApplicationTypical slope
Wheelchair ramp (many codes)Max 1:12 (8.33%, 4.76°)
Patio fall away from houseAbout 1:60–1:80
Shower floor to drainAbout 1:50–1:80
Domestic drain pipeAbout 1:40–1:80
GutterAbout 1:350–1:600
Residential drivewayUsually under 12–15%
Pitched tile roofOften 15°–45° (check tile minimum)

These are general figures for illustration. Regulations and manufacturer requirements vary — always check the rules where you live.

Rise, run and slope length explained

Every slope can be pictured as a right-angled triangle. The run is the flat, horizontal side; the rise is the vertical side; and the slope length (the hypotenuse) is the sloping surface you actually walk on, lay tiles on or cut rafters for. The angle between the run and the slope length is the slope angle.

This is why percent grade and degrees differ. Percent compares rise to run (a ratio of two sides), while degrees describe the angle between them. The two are linked by the tangent function, which grows slowly at first and then very quickly — so 10° is 17.6%, but 60° is already 173%.

Slope length matters when ordering materials. A roof covering, a ramp surface or a sloping lawn is always larger than its flat footprint. Multiply the horizontal area by 1 ÷ cos(angle) to find the true surface area: a 30° roof has about 15% more area than the floor plan beneath it.

Slope terms around the world

The same idea goes by many names. In the UK you'll often hear gradient or fall written as a ratio (1 in 60). In the US, grade and pitch are common, with roofs given as x/12. Engineers may write 1V:4H (one vertical to four horizontal) for embankments, which is the same as 1:4 or 25%. Road signs in Europe show percent, while railway gradients are often quoted per mille (‰), which is simply mm per metre. Whatever the label, the calculator above converts between them.

Common mistakes

  • Confusing percent with degrees. A 10% slope is only 5.7°. A 45° slope is 100%.
  • Measuring along the slope instead of horizontally. Run is the horizontal distance. If you measure along the slope, use the angle and cosine to find the true run.
  • Mixing units. Rise and run must use the same unit — don't combine centimetres and metres.
  • Reading a ratio backwards. 1:12 means 1 up for every 12 across, not 12 up.

Want to measure a slope directly? Use the angle finder on your phone, then bring the reading here to convert it.

Frequently asked questions

How do I convert degrees to percent slope?

Percent slope = tan(angle) × 100. For example, tan(10°) × 100 ≈ 17.6%.

How do I convert percent slope to degrees?

Angle = arctan(percent ÷ 100). For example, arctan(0.05) ≈ 2.86°, so a 5% grade is about 2.9°.

What does a 1:12 slope mean?

A 1:12 slope rises 1 unit for every 12 units of horizontal run. That is 8.33% or about 4.76°.

Is a 100% slope vertical?

No. A 100% slope rises 1 unit for every 1 unit of run, which is exactly 45°. A vertical line would be an infinite percentage.