GPX Calorie Estimator

Estimates hiking energy expenditure from a GPX track using the Looney et al. (2020) model, per the gpxz.io writeup. Everything runs in your browser — the file is never uploaded anywhere.

1. Track
2. You

How this is calculated

Each pair of consecutive track points becomes a segment. Horizontal distance comes from the haversine formula, grade from the elevation change over that distance, and speed from the timestamps. Energy expenditure for the segment (joules per kg per second) is

EE = 1.44 + 1.94·s^0.43 + 0.24·s⁴ + 0.35·s·g·(1 − 1.05^(1 − 1.1^(g+32)))

where s is speed in m/s and g is grade as a decimal. Segment energy is EE × mass × seconds; the total is divided by 4184 to get food calories.