Elevation Gradient Calculator
Calculate the slope or grade percentage between two geographic points given their elevations and horizontal distance. Essential for cyclists, road engineers, hikers, and drainage planners assessing terrain steepness.
About this calculator
Elevation gradient (also called grade or slope percentage) expresses how steeply terrain rises or falls over a horizontal distance. The formula is: gradient (%) = ((endElevation × elevationUnit − startElevation × elevationUnit) / (horizontalDistance × distanceUnit)) × 100. A positive result means an uphill slope; negative means downhill. For example, a 5% grade means the terrain rises 5 metres for every 100 metres of horizontal travel. Road design standards typically limit grades to 6–8% for highways and up to 12% for mountain roads. The elevationUnit and distanceUnit fields convert your inputs into a common base unit (metres) before dividing, ensuring that mixing feet with kilometres, for instance, still produces a correct result. Gradient is distinct from angle: a 45° slope equals a 100% grade.
How to use
A hiking trail starts at 850 m elevation and ends at 1,120 m over a horizontal distance of 3.5 km. Set startElevation = 850, endElevation = 1,120, elevationUnit = 1 (metres), horizontalDistance = 3.5, distanceUnit = 1,000 (1 km = 1,000 m). Gradient = ((1,120 × 1 − 850 × 1) / (3.5 × 1,000)) × 100 = (270 / 3,500) × 100 = 7.71%. The trail averages a 7.71% uphill grade — moderately steep for hiking.
Frequently asked questions
What is the difference between slope percentage and slope angle in degrees?
Slope percentage (grade) expresses rise over run as a percentage: a 100% grade means the elevation gain equals the horizontal distance. Slope angle in degrees uses trigonometry: angle = arctan(rise/run). A 100% grade equals 45°, but the relationship is non-linear — a 10% grade is about 5.7°, while a 50% grade is about 26.6°. Engineers and cyclists typically use grade percentage; geologists and navigators often use degrees.
How does elevation gradient affect cycling effort and road design?
Even small increases in gradient dramatically increase the power required to cycle uphill. A 3% grade roughly doubles the effort compared to flat ground for an average cyclist. Road designers limit grades to reduce strain on vehicles and brakes: highways typically stay below 6%, while mountain passes may reach 10–12%. Steep grades also affect drainage, vehicle emissions, and accident risk on wet or icy surfaces.
Why is horizontal distance used instead of the actual slope distance in gradient calculations?
Grade is conventionally defined as vertical rise divided by horizontal run, not the actual distance travelled along the slope. Using slope distance would produce slightly different and less comparable values, especially on steep terrain. Horizontal distance is also what GPS and map measurements typically report when projecting coordinates onto a flat plane. For most practical applications — road building, cycling, hydrology — the horizontal-run convention is the standard.