Hiking calculators / Guides
Tobler's hiking function: walking speed from slope
Tobler's hiking function turns the slope of a trail into a walking speed. It's fastest on a gentle downhill, slows you on climbs, and, unlike Naismith's rule, slows you on steep descents too. It's the main time model behind our calculators.
The formula
speed (km/h) = 6 × e^(−3.5 × |s + 0.05|)
Here s is the slope as rise over run: 0.10 for a 10 % climb, −0.10 for a 10 % descent. The absolute value means speed falls off on both sides of a peak, and the +0.05 shifts that peak to a 5 % downhill, where the formula gives its top speed of 6 km/h (3.7 mph).
On the flat it gives about 5.0 km/h (3.1 mph), very close to the 3 mph in Naismith's rule.
Where it came from
Waldo Tobler was a geographer and cartographer, best known for his "first law of geography". He published the hiking function in 1993 in a technical report for the National Center for Geographic Information and Analysis (NCGIA Technical Report 93-1), as part of work on travel that depends on direction: going up a hill is not the same as going down it.
He fitted the curve to walking data from the Swiss cartographer Eduard Imhof. Tobler also suggested multiplying the speed by 0.6 for walking off paths. Because it is simple and handles direction, the function is widely used in mapping software to model walking time and least-effort routes across terrain.
Speed by slope
Straight from the formula, for Tobler's walker on a good path:
| Slope | km/h | mph |
|---|---|---|
| 30 % descent | 2.5 | 1.6 |
| 20 % descent | 3.5 | 2.2 |
| 10 % descent | 5.0 | 3.1 |
| 5 % descent | 6.0 | 3.7 |
| Flat | 5.0 | 3.1 |
| 5 % climb | 4.2 | 2.6 |
| 10 % climb | 3.5 | 2.2 |
| 20 % climb | 2.5 | 1.6 |
| 30 % climb | 1.8 | 1.1 |
Two things stand out. A 10 % descent is as fast as the flat. And a 20 % descent is no faster than a 10 % climb, which matches what your knees tell you on a steep, loose trail.
A worked example
Take a 6 km (3.7 mi) out-and-back: 3 km up at an even 10 % grade, gaining 300 m (about 1,000 ft), then 3 km back down.
- Up: slope 0.10, so speed = 6 × e^(−3.5 × 0.15) = 3.5 km/h. 3 km takes about 51 minutes.
- Down: slope −0.10, so speed = 6 × e^(−3.5 × 0.05) = 5.0 km/h. 3 km takes about 36 minutes.
- Total: about 1 h 27 min of moving time for a fit walker.
Naismith gives 6 ÷ 5 + 300 ÷ 600 = 1.7 hours, or 1 h 42 min, for the same hike. The difference is the descent: Naismith treats it as flat, Tobler gives a little speed back on a moderate downhill. On a steeper hike the order flips, because Tobler slows you on the way down and Naismith doesn't.
How our calculators use it
Tobler's walkers were fit and on good paths, so we multiply his speed by factors for pace, trail and pack. An average hiker gets 0.8, which is 2.5 mph on the flat; rocky trail, scrambling, snow and a heavy pack each cut it further. The full table is on the methodology page.
With distance and climb only, the hiking time calculator splits the hike into a climbing leg and a descending leg. With a GPX file, it applies Tobler to every 20 m of the smoothed profile, so a hike with a steep, rocky descent comes out slower than one with the same climb on gentle grades. Then it adds your stops.
Limitations
- It describes fit walkers on good paths. Most hikers are slower; scale it down rather than trusting the raw numbers.
- It knows slope only. Mud, roots, scree, snow, heat, altitude and a heavy pack are not in the formula.
- It's least reliable at the extremes. Above about 25–30 % grade, hikers slow down more than a smooth curve suggests, and on hands-on scrambling no walking formula holds.
- It gives moving time. Stops, photos and lunch come on top.
- Slope from a GPS track is noisy, so the profile needs smoothing first. See what counts as elevation gain.
It's a planning estimate. Compare it with your own past hikes and set a turnaround time before you start.