Calculate vertical distance between two elevations, or find the vertical rise from total and horizontal distance, slope distance and angle, or a grade.

Enter both elevations from the same datum, such as sea level.

Horizontal geometry
Leave blank if unknown. Enter 0 only for a known vertical line.

Calculator Functions

FunctionWhat it doesWhat it requires
Distance between elevationsFinds the vertical distance between two elevations and whether it is a gain or a lossRequires the starting elevation and the final elevation
Vertical component from slope distance and angleFinds the vertical part of a straight sloped lineRequires the straight-line slope distance and the angle from horizontal
Vertical from total and horizontal distanceFinds the vertical side of a right triangle from the other two sidesRequires the straight-line total distance, the horizontal distance and the direction
Vertical rise from horizontal distance and grade or angleFinds the rise or fall over a horizontal runRequires the horizontal distance and either the grade in percent or the angle in degrees

Lengths can be in meters, feet or yards, and the result unit is chosen separately. Distance between elevations takes an optional horizontal run, which adds the slope distance, slope angle and grade. Every result shows the direction, the signed change and the vertical distance in meters, feet and yards.

Vertical Distance Formulas

V = |E2 − E1| [1]
VVertical distance
E1Starting elevation
E2Final elevation, measured from the same datum

Vertical distance is the difference in elevation between two points [1]. When the elevations are not known it is the upright side of a right triangle whose other sides are the horizontal distance and the straight-line slope distance, so it follows from an angle, a grade or the other two sides [1].

Distance between elevations

From 1,200 m to 1,450 m the vertical distance is 250 m, an elevation gain. A lower final elevation gives the same distance as a loss. With a horizontal run of 1,000 m entered, the grade is 25%, the slope angle is 14.04° and the slope distance is 1,030.8 m.

Vertical component from slope distance and angle

V = S × sin(θ) [1]

S is the straight-line slope distance and θ is the angle above or below horizontal. A 100 m line at 30° rises 100 × sin(30°) = 50 m and covers 100 × cos(30°) = 86.6 m horizontally. A negative angle is an elevation loss.

Vertical from total and horizontal distance

V = √(S² − H²) [1]

H is the horizontal distance. A total distance of 100 with a horizontal distance of 30 gives √(100² − 30²) = 95.39. A total of 50 with a horizontal 20 gives 45.83. The two lengths alone do not say whether the line climbs or falls, so the direction is entered.

Vertical rise from horizontal distance and grade or angle

V = H × grade ÷ 100 [1]

A horizontal run of 500 ft at an 8% grade rises 500 × 8 ÷ 100 = 40 ft. With an angle instead, V = H × tan(θ): 500 ft at 5° rises 43.74 ft. Grade is rise over horizontal run times 100, and the slope angle is its inverse tangent [2], so a 100% grade is 45°.

Limits of This Estimate

  • The result is the straight vertical distance between two points. It is not the total climbing along a route that goes up and down between them.
  • Both elevations have to be measured from the same datum, such as mean sea level [1].
  • Grade uses the horizontal run, not the distance travelled along the slope [2]. On steep ground the two differ noticeably.
  • The geometry is a flat right triangle, with no correction for the curve of the Earth, refraction or instrument height. Those matter on long survey sight lines.

Sources

  1. USDA Natural Resources Conservation Service, National Engineering Handbook, Part 650, Chapter 1, Surveying: vertical distance as an elevation difference from a datum, vertical distance from horizontal distance and percent slope, and the right-triangle relations
  2. U.S. Geological Survey, To Determine Percent of Slope and Angle of Slope: percent slope as rise over run times 100, with the run measured horizontally, and slope angle as its inverse tangent