Methodology
The formulas behind every calculator, with their sources and their limits. All the arithmetic lives in one file, engines.js, which the calculators and this page share. Each formula is checked by automated tests against worked examples or an independent source.
Rules we follow
- Use published, citable methods: Naismith, Langmuir, Tobler, the Appalachian Mountain Club's book time, the Pandolf equation, the Shenandoah rating and NOAA's solar equations.
- Show the working. Every result lists the numbers that produced it, and the time calculator shows four methods side by side so you can see how much they disagree.
- Give a planning number, not a promise. Real hikes vary by a lot, so we add breaks, a water reserve and a daylight buffer by default.
Hiking time
Tobler's hiking function (our main estimate)
Waldo Tobler (1993) fitted walking speed to slope from Eduard Imhof's Swiss data: speed (km/h) = 6 × e−3.5 × |s + 0.05|, where s is the slope as rise over run. It is fastest on a gentle 5 % descent (6 km/h), gives 5.0 km/h (3.1 mph) on the flat, and slows down on steep descents as well as climbs, which Naismith's rule ignores.
Tobler's walkers were fit and on good paths, so we scale his speed for the hiker and the ground:
| Input | Choice | Speed × |
|---|---|---|
| Pace | slow | 0.65 |
| Pace | average | 0.8 |
| Pace | fast | 1 |
| Trail | good | 1 |
| Trail | rough | 0.85 |
| Trail | scramble | 0.6 |
| Trail | snow | 0.7 |
| Pack | day | 1 |
| Pack | overnight | 0.93 |
| Pack | heavy | 0.85 |
An average hiker on a good trail with a day pack therefore walks 2.5 mph on the flat. Off-path, Tobler himself multiplied by 0.6, which is our "scramble" factor.
Without a route file, a hike is split into a climbing leg and a descending leg, each taking a share of the distance in proportion to its height (an out-and-back with 2,000 ft up and 2,000 ft down is half up, half down). With a route file, Tobler is applied to every 20 m step of the smoothed profile.
Naismith's rule
William Naismith (1892): one hour for every 3 miles (5 km), plus one hour for every 2,000 ft (600 m) of ascent. It assumes a fit walker, a light pack and no stops.
Langmuir's corrections
Eric Langmuir's Mountaincraft and Leadership adjusts Naismith for descent: subtract 10 minutes per 300 m (about 1,000 ft) of descent on slopes of 5–12°, and add 10 minutes per 300 m on slopes steeper than 12°.
Book time
The Appalachian Mountain Club's guidebook formula: 30 minutes per mile plus 30 minutes per 1,000 ft of climbing (2 mph plus 1 hour per 2,000 ft). It's slower than Naismith and closer to what average hikers manage on rocky northeastern trails.
Breaks
Moving time is multiplied by (1 + breaks ÷ 60), where breaks is minutes of stopping per hour of walking (10 by default).
Route files (GPX) and elevation gain
We read track points (trkpt) or route points (rtept), or plain "latitude, longitude, elevation" lines. Distance is the great-circle (haversine) distance between points on a 6,371 km sphere.
GPS elevation is noisy: a track that wobbles ±3 m on every point would show hundreds of metres of climbing that never happened. So we resample the track every 20 m and average elevation over five samples (about 100 m) before adding up the climbs. This keeps real climbs and drops small wiggles. Watches and apps each smooth differently, so their totals for the same hike often differ by 10–20 %.
The steepest grade is the steepest 100 m stretch after smoothing. The file is read in your browser and never uploaded.
Difficulty
Shenandoah National Park rating = √(elevation gain in feet × 2 × distance in miles). Under 50 is easiest, 50–100 moderate, 100–150 moderately strenuous, 150–200 strenuous, over 200 very strenuous.
Energy miles (Paul Petzoldt, founder of the National Outdoor Leadership School): one energy mile for each mile walked plus two for every 1,000 ft of climbing.
Both measure distance and climb only. They don't capture scrambling, exposure, snow, heat or altitude.
Calories burned
The Pandolf equation (Pandolf, Givoni and Goldman, 1977), developed by the US Army to predict the energy cost of walking with a load:
M = 1.5W + 2.0(W + L)(L/W)² + η(W + L)(1.5V² + 0.35VG)
M is metabolic rate in watts, W body mass and L load in kg, V speed in m/s, G grade in percent and η a terrain factor. Downhill, we apply the Santee correction (Santee et al., 2001): subtract η[(GV(W + L))/3.5 − (W + L)(G + 6)²/W + (25 − V²)]. The result is never allowed to fall below the cost of standing with the load.
| Surface | η |
|---|---|
| paved | 1 |
| dirt | 1.1 |
| trail | 1.2 |
| brush | 1.5 |
| sand | 2.1 |
| snow | 1.6 |
Pandolf's published coefficients are 1.0 blacktop, 1.1 dirt road, 1.2 light brush, 1.5 heavy brush, 1.8 swampy bog and 2.1 loose sand. We use light brush for an ordinary trail; snow (1.6) is our own middle value, because the research shows snow cost depends strongly on depth.
Speed on each leg comes from the time model above. Watts × seconds ÷ 4,184 gives kilocalories. For comparison we also show the simpler MET estimate: 6.0 MET (Compendium of Physical Activities, 2011, code 17080, "hiking, cross country") × body mass in kg × hours.
Water
Hourly drinking amounts by air temperature in the shade, for moderate effort:
| Temperature | Litres per hour |
|---|---|
| Below 50 °F | 0.35 |
| 50–70 °F | 0.5 |
| 70–80 °F | 0.65 |
| 80–90 °F | 0.8 |
| 90–100 °F | 1 |
| 100 °F and above | 1.2 |
The heat values follow National Park Service advice to drink a half to one quart (about 0.5–1 L) of water or sports drink every hour you hike in the heat (Glacier National Park). Grand Canyon rangers add: avoid hiking between 10 am and 4 pm in summer, and eat salty snacks to avoid hyponatremia. Easy effort scales the rate by 0.8, strenuous by 1.25, and body size by √(weight ÷ 170 lb). The amount to carry is what you'll drink before the first refill plus a 0.5 L reserve, rounded up to the next quarter litre.
Backpacking food
Daily calories = the Pandolf energy of the day's walking (with your pack) + 1.2 MET × body mass × the remaining hours of the day for camp chores and sleep. Food weight = calories ÷ caloric density; 125 kcal per ounce is a typical mix of dried meals, nuts, bars and chocolate, 100 is "normal food", 150 is a dense, oil-heavy menu.
Pack weight
Total pack = base weight + water (2.2 lb per litre) + food + fuel. The common guidelines are a day pack under about 10 % of body weight and a backpacking pack under about 20 %. Above 25 % we warn. Base-weight classes: ultralight under 10 lb, lightweight 10–20 lb, traditional 20–30 lb.
Pace and distance
Each mile costs 1 ÷ (flat speed) hours of walking plus Naismith's climbing allowance of (feet of climb per mile ÷ 2,000) hours. Distance in a given time = moving time ÷ that cost, where moving time is the time available ÷ (1 + breaks ÷ 60).
Sunrise, sunset and turnaround time
Sun times use NOAA's solar calculator equations (after Jean Meeus, Astronomical Algorithms), with sunrise and sunset at a solar zenith of 90.833° (the sun's upper edge on a flat horizon, with refraction) and civil twilight at 96°. They are checked against an independent source to within a minute. Mountains and canyon walls block the sun earlier than a flat horizon, so the real light goes sooner.
Be off the trail by = sunset − your buffer (60 minutes by default). Latest start = that time − your total hiking time with breaks. On an out-and-back, turnaround = start + half the time between your start and the off-trail time, because the way back can take as long as the way out.
Sources
- Tobler, W. (1993). Three presentations on geographical analysis and modeling: non-isotropic geographic modeling. NCGIA Technical Report 93-1.
- Naismith, W. W. (1892). Scottish Mountaineering Club Journal, vol. 2, p. 136.
- Langmuir, E. (2013). Mountaincraft and Leadership, 4th ed. Mountain Training.
- Pandolf, K. B., Givoni, B., Goldman, R. F. (1977). Predicting energy expenditure with loads while standing or walking very slowly. Journal of Applied Physiology 43(4): 577–581.
- Santee, W. R., Allison, W. F., Blanchard, L. A., Small, M. G. (2001). A proposed model for load carriage on sloped terrain. Aviation, Space, and Environmental Medicine 72(6): 562–566.
- Ainsworth, B. E. et al. (2011). Compendium of Physical Activities. Medicine & Science in Sports & Exercise 43(8): 1575–1581.
- National Park Service, Shenandoah National Park: How to determine hiking difficulty.
- National Park Service, Grand Canyon: Hike smart (heat illness, hyponatremia, avoid 10 am–4 pm in summer).
- National Park Service, Glacier National Park: hiking in the heat (½ to 1 quart per hour).
- NOAA Global Monitoring Laboratory: Solar calculation details.