Key takeaways
- Tobler's hiking function (Waldo Tobler, 1993): W = 6 exp(-3.5 |S + 0.05|), where W is walking speed in km/h and S the slope as a decimal (dh/dx).
- It predicts about 5.04 km/h on the flat and a maximum of 6 km/h on a 5 % downhill (about -2.86°).
- Speed falls to 3.55 km/h at +10 %, 2.50 km/h at +20 % and 1.24 km/h at +40 %. Off-path, Tobler multiplies the result by 3/5.
- Tobler fitted the curve to walking data published by the Swiss cartographer Eduard Imhof in 1950.
- It is widely used as a cost function for least-cost path analysis in GIS, for example in the open-source R package movecost.
Tobler’s hiking function gives walking speed from slope: W = 6 exp(-3.5 |S + 0.05|), with W in km/h and S the gradient as a decimal. It predicts about 5 km/h on flat ground, a peak of 6 km/h on a gentle 5 % descent, and roughly 3.5 km/h on a 10 % climb. Geographer Waldo Tobler published it in 1993, and it remains the default slope-speed curve in many GIS travel-time models.
The formula
W = 6 · exp( -3.5 · | S + 0.05 | ) speed in km/h
S = dh / dx = tan(θ) slope as a decimal (0.10 = 10 %)
off-path: W_off = 0.6 · W (Tobler's factor 3/5)
pace (s/m) = 0.6 · exp( 3.5 · | S + 0.05 | )
The + 0.05 shifts the peak to a slightly downhill slope. At S = -0.05 the exponent is zero and W = 6 km/h. On the flat, W = 6 exp(-0.175) = 5.04 km/h. Tobler fitted the curve to empirical walking data given by the Swiss cartographer Eduard Imhof (1950), and presented it in an NCGIA technical report as an example of non-isotropic (direction-dependent) movement: the same slope is fast one way and slow the other.
If you have degrees rather than a decimal slope, convert first: S = tan(θ). The slope converter does it for you.
Speed table by slope
Values computed from the formula above. Negative slopes are descents. Naismith’s speed is given for comparison as horizontal speed (5 km/h plus 1 hour per 600 m of ascent, no descent correction).
| Slope | Angle | Tobler on path (km/h) | Tobler off path (km/h) | Pace on path (min/km) | Naismith (km/h) |
|---|---|---|---|---|---|
| -40 % | -21.8° | 1.76 | 1.06 | 34.0 | 5.00 |
| -30 % | -16.7° | 2.50 | 1.50 | 24.0 | 5.00 |
| -20 % | -11.3° | 3.55 | 2.13 | 16.9 | 5.00 |
| -10 % | -5.7° | 5.04 | 3.02 | 11.9 | 5.00 |
| -5 % | -2.9° | 6.00 | 3.60 | 10.0 | 5.00 |
| 0 % | 0° | 5.04 | 3.02 | 11.9 | 5.00 |
| +5 % | 2.9° | 4.23 | 2.54 | 14.2 | 3.53 |
| +10 % | 5.7° | 3.55 | 2.13 | 16.9 | 2.73 |
| +15 % | 8.5° | 2.98 | 1.79 | 20.1 | 2.22 |
| +20 % | 11.3° | 2.50 | 1.50 | 24.0 | 1.88 |
| +30 % | 16.7° | 1.76 | 1.06 | 34.0 | 1.43 |
| +40 % | 21.8° | 1.24 | 0.75 | 48.3 | 1.15 |
Two things stand out. The curve is not symmetric: -10 % is as fast as the flat, and +10 % is as slow as -20 %. And the speed drops fast: every extra 10 % of gradient multiplies speed by exp(-0.35), about 0.70.
Whether W is applied along the slope or to map distance matters little below 20 %, where the two distances differ by less than 2 %.
Worked example
A path climbs 4 km (map distance) at a steady 10 % to a col, so 400 m of ascent, then returns the same way.
- Tobler, up: 4 / 3.55 = 1.13 h, about 1 h 08 min.
- Tobler, down (-10 %): 4 / 5.04 = 0.79 h, about 48 min.
- Tobler, total: about 1 h 56 min.
- Naismith, up: 4 / 5 + 400 / 600 = 0.80 + 0.67 = 1.47 h, about 1 h 28 min.
- Naismith, down: 4 / 5 = 0.80 h, 48 min. Total: about 2 h 16 min.
On moderate gradients Tobler is the more optimistic of the two. On a steep 30 % descent the order flips: Tobler gives 2.5 km/h where Naismith, which ignores descent, still assumes 5 km/h. You can compare with your own figures in the Naismith hiking time calculator.
Tobler versus Naismith
| Tobler (1993) | Naismith (1892) | |
|---|---|---|
| Form | Continuous exponential curve | Additive rule: distance + ascent |
| Flat speed | 5.04 km/h | 5 km/h |
| Fastest | 6 km/h at -5 % | 5 km/h, flat or downhill |
| Steep descent | Slows down | No penalty (Langmuir adds one) |
| +10 % climb | 3.55 km/h | 2.73 km/h |
| Best use | GIS cost surfaces, cell-by-cell slopes | Route cards, whole legs |
The two curves cross near 45 %: below that Tobler is faster uphill, above it Naismith is. Both describe an average walker, not you. Our page on Naismith’s rule covers the fitness and terrain corrections that Tobler lacks.
Using Tobler in GIS: least-cost paths
Because it works on a slope value, Tobler’s function plugs directly into raster analysis. The usual workflow:
- Get a digital elevation model (DEM), such as Copernicus GLO-30 or a national LiDAR product. See elevation data sources.
- Compute slope between neighbouring cells, keeping the sign (direction matters).
- Convert slope to time per metre with the pace form of the formula.
- Accumulate the cost from a start point (anisotropic cost distance) and trace the least-cost path to a destination.
Open-source options:
- movecost (R, by Gianmarco Alberti, on CRAN) offers a choice of human-movement cost functions, including Tobler’s on-path and off-path versions, and returns cost surfaces, least-cost paths and corridors from a DTM.
- GRASS GIS r.walk, usable inside QGIS, computes anisotropic walking-time surfaces too, but its default coefficients come from Naismith, Aitken and Langmuir, not Tobler.
- In QGIS alone, you can build a Tobler cost raster with the raster calculator and feed it to a cost-distance tool.
More tools are listed in open-source elevation tools.
Limitations
- One data source. The curve was fitted to Imhof’s 1950 observations, not to a large modern sample of GPS tracks. Treat the exact peak and decay rate as approximations.
- No fitness, load or terrain detail beyond the single 3/5 off-path factor.
- Steep ground. Beyond about 40 % walkers zigzag, scramble or use hands. The formula keeps returning a speed, but it is no longer describing walking on the fall line.
- DEM noise. Slope from a coarse or noisy DEM is underestimated on ridges and overestimated on noise, which biases travel times. Resolution matters more than the choice between Tobler and Naismith.
Frequently asked questions
What is Tobler's hiking function?
It is an exponential formula that gives walking speed from slope: W = 6 exp(-3.5 |S + 0.05|) km/h. It was published by geographer Waldo Tobler in 1993 and is used in GIS to model travel time across terrain.
Why is the fastest speed on a downhill slope?
The function peaks at S = -0.05, a 5 % descent, where it gives 6 km/h. On gentle descents gravity helps, while on steeper ones walkers slow down to brake and keep their footing.
How does Tobler compare with Naismith's rule?
On climbs from 5 to about 40 % Tobler is faster than Naismith, for example 3.55 versus 2.73 km/h at 10 %. Unlike the original Naismith rule, Tobler also slows walkers down on steep descents.
What is the off-trail factor in Tobler's function?
Tobler suggested multiplying the speed by 3/5 (0.6) for off-path travel, which gives about 3 km/h on flat ground instead of 5 km/h.
Sources and open data
- Tobler, W. (1993). Three presentations on geographical analysis and modeling. NCGIA Technical Report 93-1 (archived HTML), National Center for Geographic Information and Analysis
- Tobler's hiking function (formula, sample values, off-path factor), Wikipedia
- movecost: slope-dependent cost surfaces and least-cost paths (R package), CRAN
- Alberti, G. (2019). movecost: An R package for calculating accumulated slope-dependent anisotropic cost-surfaces and least-cost paths. SoftwareX, 10, Elsevier
- r.walk manual (anisotropic walking cost surface), GRASS GIS
- Kay, A. (2012). Pace and critical gradient for hill runners: an analysis of race records. Journal of Quantitative Analysis in Sports, 8(4), De Gruyter