Hiking Calculator

Hiking calculators / Route files (GPX)

GPX elevation profile viewer

Open a GPX file from your watch, phone app or a mapping site. You get an elevation profile of the whole route with the steep stretches marked, plus the high point, low point, total climb and an estimated walking time.

Use a route file (optional)

Export a GPX from your watch, phone app or mapping site. It is read in your browser and never uploaded.

More inputs

Calculated in your browser. Nothing you enter leaves this page.

Example: 5.0 mi, +1,500 ft

Open a GPX file to measure its distance, climb and profile. Until then this shows the numbers typed below: 5.0 miles with 1,500 ft of climbing, about 2 h 32 min of walking.

How we got there

Distance5.00 mi8.05 km
Elevation gain1,500 ft457 m
Elevation loss1,500 ft457 m
Gain per mile300 ft/mi57 m per km
Moving time (Tobler)2 h 32 minaverage pace, good trail, day pack
Naismith's rule2 h 25 min3 mph + 1 h per 2,000 ft

Reading the profile

The profile plots elevation in feet against distance in miles, left to right in the direction the file was recorded. Stretches steeper than 15 % are drawn in red: that's roughly where most hikers slow to a steady plod uphill and start braking on the way down.

Look at the shape, not just the totals. Two routes with the same distance and climb can feel very different: one long, even grade is easier to pace than a series of short, steep pitches. A climb bunched into the last mile before a summit tells you where to save energy, and where the way down will be hard on your knees. The result box lists the high and low points, the steepest 100 m of sustained grade, and whether the track ends where it starts.

The profile and every number come from the file alone. Nothing is uploaded: the file is read by the page in your browser.

Getting a GPX file

Most hiking apps and devices can export a route or a recorded activity as GPX. The menu names change, but the steps are similar:

  • On a GPS watch or its phone app, open the activity and look for an export or share option, then choose GPX.
  • In fitness tracking apps, open the activity on the website and look for an export menu; some apps only offer GPX export on the web, not on the phone.
  • In trail and mapping apps, open a saved route or recording and look for export, download or share as GPX. Some keep export behind a paid plan.
  • In map-drawing tools, draw the route on the map and export it as a GPX track.

A planned route drawn on a map gets its elevation from a terrain model. A recorded activity gets it from the device's GPS or barometer. Both work here. If the file has no elevation data, the profile can't be drawn: export it again with elevation included.

Why apps show different elevation gain

Total climb is the sum of every small rise along the track, so tiny wiggles add up. Raw GPS elevation jumps around by several meters from point to point, and every jump up gets counted as climbing. Barometric altimeters are steadier but drift with the weather. Terrain-model elevations are smooth but can miss small ups and downs, or put a trail on the wrong side of a steep cliff edge.

Each app also smooths the data its own way before adding it up. This page resamples the track every 20 m and averages elevation over about 100 m, which removes most GPS noise while keeping real climbs. Expect the total to land within the range other apps give, not to match any one of them. More on this in what counts as elevation gain.

Questions

How do I create an elevation profile from a GPX file?

Open the file with the button above. The page reads the track points and their elevations, smooths out GPS noise and draws the profile. If you don't have a file to hand, try the sample route.

Is my GPX file uploaded anywhere?

No. The file is read by this page inside your browser and isn't sent to a server. Close the tab and it's gone.

Why is my profile flat?

The file probably has no elevation data. Some exports leave it out, especially routes drawn on a map. Export again with elevation, or open the route in a mapping tool that adds terrain elevations and export from there.

What does the red on the profile mean?

Stretches steeper than 15 %, uphill or down. On a hiking trail that's steep: expect to slow down on the way up and on the way down.

Can I just get the distance and total climb?

Yes, they're in the result box. If distance and elevation gain are all you need, the GPX distance calculator puts them first and explains how they're measured.

Sources

  • GPX 1.1 schema, TopoGrafix (topografix.com/GPX/1/1).
  • Tobler, W. (1993), Non-isotropic geographic modeling, NCGIA Technical Report 93-1.
  • Naismith, W. W. (1892), Scottish Mountaineering Club Journal 2: 136.

Method checked 2026-11-30. Full formulas on the methodology page.