Elevation profile

A cross-section of the ground along a line: draw it on the map or choose two places, and see the chart, the total climb and descent, and the steepest stretch.

How to use it

  1. Set a start and an end for a straight line, or press Draw a line and click the corners of a path.
  2. Wait for the heights to load. The chart and the figures appear.
  3. Move over the chart for the height at any point; the dot on the map follows.

5 practical uses

  1. Preview the climbs of a walk, a run or a bike ride.
  2. Check a road or a rail line for gradients.
  3. Plan a water pipe, a cable or a drainage line.
  4. Check the line of sight between two points over hills.
  5. Compare two routes by their climb.

The maths behind it

The line is sampled at up to 200 points spaced evenly by great-circle distance, found by walking along the line. Each sample's height comes from the elevation model. Heights are smoothed with a three-point average; the climb is the sum of the positive differences, the descent of the negative; the grade of a step is the height difference divided by the horizontal distance.

Reading it

The climb adds up every rise along the line and the descent every fall, after a little smoothing, so a rolling road counts all its hills. The steepest grade is over one sample step, so it depends on the line's length: a 1 km line is sampled every 5 m, a 100 km line every 500 m, which flattens short steep bits. The straight line between two places ignores roads; for a route's profile, draw along it or load a GPX in the GPX viewer.

Heights come from the routing engine's elevation service (Valhalla at FOSSGIS, on SRTM and similar 30 m and 90 m models) and, if that is busy, from Open-Meteo's copy of the Copernicus 90 m model. They are the height of the ground in a cell of that size, so a point on a cliff edge or a narrow ridge can read some metres off, and buildings and trees are not included. Sea is 0.

Questions and answers

How many points are sampled?

Up to 200 along the line, evenly spaced. A short line is sampled every few metres, a long one every few hundred.

Why is the steepest grade smaller than I expect?

The grade is measured between two samples. On a long line the samples are far apart, which flattens short steep parts.

Can I get the profile of a road?

Draw along the road with several corners, or load a GPX track in the GPX viewer.

Embed this tool on your website

Paste this code where the tool should appear. It shows the tool alone, without this page's text, and links back here. It is free to use; the map data credit stays on the map.

<iframe src="https://waymorphic.com/tools/elevation-profile?embed=1" width="100%" height="760" style="border:0;border-radius:12px;max-width:100%" loading="lazy" allow="geolocation; fullscreen; clipboard-write" title="Elevation profile – Waymorphic Map"></iframe>

Change height to suit your page. To open the tool with a place already set, add the settings from this page's address bar (the part after #) to the end of the src. The embedded tool asks the visitor's browser for their location only when they press the button, and the allow attribute lets that work inside the frame.