Calculators

Gradient calculator (percent grade, degrees, ratio)

Last reviewed: Hilly & Kriss

Runs entirely in your browser. Grade % = rise / horizontal run x 100.

Key takeaways

  • Gradient in percent = vertical rise / horizontal run x 100. A 10 % grade climbs 10 m for every 100 m of horizontal distance.
  • If you measured the distance along the road (odometer, GPS track), the calculator converts it to horizontal run first. Below about 15 % the difference is under 1.2 %.
  • Percent and degrees are not the same scale: 100 % equals 45°, and 10 % is only 5.71°.
  • Average gradient hides the steep bits. Use a GPX profile to find the steepest 100 m.
Road sign warning of a 14 percent gradient on Conholt Hill, England
Image: Oscar Taylor, CC BY-SA 2.0, via Wikimedia Commons

This calculator gives the gradient of a slope in percent, degrees and as a 1:x ratio from two numbers: how much height you gain and over what distance. Enter the distance as you measured it. If you read it off a map, choose horizontally. If it came from a bike computer, a car odometer or a GPS track, choose along the slope.

The formula

The percent grade is the tangent of the slope angle multiplied by 100:

grade (%) = rise / horizontal run x 100
angle (°) = arctan(rise / horizontal run)
ratio     = 1 : (horizontal run / rise)

When the distance is measured along the slope (the hypotenuse), the horizontal run is recovered with Pythagoras: run = √(slope length² − rise²).

Worked examples

Situation Rise Distance Grade Angle
Typical Alpine pass average 1,000 m 12.5 km horizontal 8.0 % 4.57°
Steep village lane 50 m 300 m along the road 16.9 % 9.59°
Wheelchair ramp limit (USA) 0.30 m 3.6 m horizontal 8.33 % (1:12) 4.76°
Ski run “black” section 100 m 250 m horizontal 40 % 21.8°

The second example shows why the distance type matters on steep ground. 50 / 300 gives 16.7 %. With 300 m of road distance the horizontal run is only 295.8 m, which gives 16.9 %. On gentle slopes the two methods agree to within a rounding error.

Common mistakes

Mixing degrees and percent. Road signs in most of Europe use percent, while geology, skiing and roof pitch often use degrees. A slope of “30” is a hard ski run in degrees (57.7 %) but an exceptionally steep road in percent (16.7°). Use the slope converter when a source does not say which unit it uses.

Trusting the average. A 6 % average over 10 km can hide a 1 km wall at 12 %. Signed gradients on UK roads show the steepest part of the hill, not the average. Check the GPX elevation analyzer for the steepest 100 m of a route.

Using raw GPS elevation. Consumer GPS elevation is often off by 10 m or more, which ruins gradients over short distances. Barometric altimeters or a digital elevation model (DEM) such as Copernicus GLO-30 are more reliable. Our guide to GPS elevation accuracy explains why.

Where the numbers come from

To measure a real slope without being on site, take two spot heights from an open DEM (Copernicus DEM, SRTM, or a national LiDAR product such as IGN RGE ALTI in France or USGS 3DEP in the USA) and the horizontal distance between them from OpenStreetMap or any map. Both values go straight into the calculator. The elevation data sources page compares resolution and accuracy.

Frequently asked questions

How do I calculate the gradient of a hill?

Divide the height gained by the horizontal distance and multiply by 100. For example, 120 m of climbing over 1,500 m of horizontal distance is 120 / 1500 x 100 = 8 %.

Is a 100 % gradient vertical?

No. A 100 % gradient rises 1 m for every 1 m horizontally, which is an angle of 45 degrees. A vertical wall would be an infinite percentage.

Should I use map distance or road distance?

The percent grade is defined with horizontal (map) distance. Road or GPS distance is measured along the slope and is slightly longer, so select 'along the slope' and the calculator corrects it.

What gradient is considered steep?

For roads, sustained grades above about 8 % feel steep to most cyclists and are signed in many countries; 15 to 20 % sections are rare and very hard. For walking paths, accessibility guidance generally aims for 5 % or less.

Sources and open data

  1. Grade (slope), definitions and conversions, Wikipedia
  2. Traffic Signs Manual, Chapter 4: Warning signs (steep hill signs), UK Department for Transport
  3. Copernicus DEM, global digital elevation model, European Space Agency / Copernicus