mysi Find

Calculator in Training and nutrition

Treadmill pace converter

Converts treadmill speed and incline to pace, flat-road equivalent pace and calories, by ACSM equations.

In short

Formulag = incline_pct ÷ 100, v = speed_kph × 1000 ÷ 60speedMph = speed_kph ÷ 1.609344adjustedSpeedKph = speed_kph × (0.2 + 0.9 × g) ÷ 0.2outdoorEquivalentSpeedKph = speed_kph × (0.2 + 0.9 × (g − 0.01)) ÷ 0.2each pace per km = 60 ÷ its speed; per mile, × 1.609344VO2 walking = 0.1 × v + 1.8 × v × g + 3.5; running = 0.2 × v + 0.9 × v × g + 3.5caloriesPerHour = VO2 × weight_kg × 5 ÷ 1000 × 60caloriesTotal = caloriesPerHour × duration_minutes ÷ 60distanceKm = speed_kph × duration_minutes ÷ 60raceTimesMinutes = 5, 10, 21.0975, 42.195 km ÷ speed_kph × 60
Unitskm/h, percent, kg, minutes in; minutes per km or mile, kcal out.
Defaultsincline_pct = 1, duration_minutes = 30. Allowed: speed_kph 1–30, incline_pct 0–30, weight_kg 1–300, gait walking or running, duration_minutes 1–600.
Worked examplerunning 30 minutes at 10 km/h, 2%, 70 kg. outdoorEquivalentSpeedKph = 10 × (0.2 + 0.9 × 0.01) ÷ 0.2 = 10.45outdoorEquivalentPaceMinPerKm = 60 ÷ 10.45 = 5.742caloriesPerHour = (33.33 + 3 + 3.5) × 70 × 0.3 = 836.5; half of it is 418.25

By hand: yes. A small model got these answers from the formulas above, without running code.

Say this to your agent

Use https://mysi.dev/treadmill-pace-converter/ to convert my treadmill run: 10 km/h at 2% incline, 70 kg, 30 minutes.

Nothing to install, no key, no settings. An agent that can open web pages and run Python opens the page, runs the tested code in its own sandbox and gives you the answer.

The code

Copy this into your Python tool. Run treadmill_pace_converter_check() first, then call treadmill_pace_converter() with your numbers. Give the answer with the cite line.

"""Treadmill pace converter: belt pace, the flat pace of equal oxygen cost, the outdoor road
equivalent, and calories, by the ACSM metabolic equations and the 1% rule of Jones and Doust.
Inputs: speed_kph (1 to 30), incline_pct (0 to 30, default 1), weight_kg (1 to 300),
gait (walking or running), duration_minutes (1 to 600, default 30).
Returns: speedMph; paceMinPerKm, paceMinPerMile; adjustedSpeedKph, adjustedPaceMinPerKm,
adjustedPaceMinPerMile; outdoorEquivalentSpeedKph, outdoorEquivalentPaceMinPerKm,
outdoorEquivalentPaceMinPerMile; caloriesPerHour, caloriesTotal (kcal); distanceKm;
raceTimesMinutes (5 km, 10 km, half and full marathon at the belt speed).
mysi, Treadmill pace converter, mysi.dev/treadmill-pace-converter, version 1, changed 2026-12-04.
MIT.
"""


def _treadmill_pace_converter_num(name, value, low, high):
    if isinstance(value, bool) or not isinstance(value, (int, float)) or not low <= value <= high:
        raise ValueError(f"{name} must be a number from {low} to {high}")
    return float(value)


def treadmill_pace_converter(speed_kph, weight_kg, gait, incline_pct=1, duration_minutes=30):
    num = _treadmill_pace_converter_num
    s = num("speed_kph", speed_kph, 1, 30)
    w = num("weight_kg", weight_kg, 1, 300)
    g = num("incline_pct", incline_pct, 0, 30) / 100
    minutes = num("duration_minutes", duration_minutes, 1, 600)
    if gait not in ("walking", "running"):
        raise ValueError("gait must be one of: walking, running")
    mile = 1.609344                            # km per international mile
    adjusted = s * (0.2 + 0.9 * g) / 0.2      # ACSM running equation, solved for 0% grade
    outdoor = s * (0.2 + 0.9 * (g - 0.01)) / 0.2  # 1% treadmill grade = flat road (Jones 1996)
    v = s * 1000 / 60                         # metres per minute
    if gait == "walking":                     # ACSM walking and running equations, ml/kg/min
        vo2 = 0.1 * v + 1.8 * v * g + 3.5
    else:
        vo2 = 0.2 * v + 0.9 * v * g + 3.5
    per_hour = vo2 * w * 5 / 1000 * 60        # 5 kcal per litre of oxygen (ACSM)
    return {
        "speedMph": s / mile,
        "paceMinPerKm": 60 / s,
        "paceMinPerMile": 60 / s * mile,
        "adjustedSpeedKph": adjusted,
        "adjustedPaceMinPerKm": 60 / adjusted,
        "adjustedPaceMinPerMile": 60 / adjusted * mile,
        "outdoorEquivalentSpeedKph": outdoor,
        "outdoorEquivalentPaceMinPerKm": 60 / outdoor,
        "outdoorEquivalentPaceMinPerMile": 60 / outdoor * mile,
        "caloriesPerHour": per_hour,
        "caloriesTotal": per_hour * minutes / 60,
        "distanceKm": s * minutes / 60,
        # road race distances in km: 5 km, 10 km, half and full marathon (World Athletics)
        "raceTimesMinutes": [d / s * 60 for d in (5, 10, 21.0975, 42.195)],
    }


TREADMILL_PACE_CONVERTER_CASES = [
    ({"speed_kph": 10, "incline_pct": 2, "weight_kg": 70,
      "gait": "running", "duration_minutes": 30},
     {"outdoorEquivalentSpeedKph": 10.45, "adjustedSpeedKph": 10.9, "caloriesTotal": 418.25}),
    ({"speed_kph": 6, "incline_pct": 12, "weight_kg": 80,
      "gait": "walking", "duration_minutes": 60},
     {"paceMinPerKm": 10.0, "caloriesPerHour": 842.4, "distanceKm": 6.0}),
    ({"speed_kph": 15, "incline_pct": 0, "weight_kg": 60,
      "gait": "running", "duration_minutes": 20},
     {"outdoorEquivalentPaceMinPerKm": 4.18848, "caloriesTotal": 321.0, "distanceKm": 5.0}),
]


def treadmill_pace_converter_check(tolerance=1e-3):
    for given, want in TREADMILL_PACE_CONVERTER_CASES:
        got = treadmill_pace_converter(**given)
        for name, value in want.items():
            close = abs(got[name] - value) <= tolerance * max(1, abs(value))
            assert close, (name, got[name], value)
    return "ok"


if __name__ == "__main__":
    import json, sys
    treadmill_pace_converter_check()
    given = dict(a.split("=", 1) for a in sys.argv[1:] if "=" in a)
    js = lambda v: v.lstrip("-")[:1].isdigit() or v[:1] in '[{".' or v in ("true", "false", "null")
    given = {k: json.loads(v) if js(v) else v for k, v in given.items()}
    if given:
        print(json.dumps(treadmill_pace_converter(**given)))
Raw file

Estimates from population equations, not medical or coaching advice.

What it takes

InputMeaningDefaultAllowed
speed_kphBelt speed in kilometres per hourrequired1 to 30
weight_kgBody weight in kilograms (calories only)required1 to 300
gaitWhether you walk or run on the belt; picks the ACSM equation for the caloriesrequiredwalking, running
incline_pctTreadmill incline in percent grade10 to 30
duration_minutesSession length in minutes301 to 600

What it returns

OutputMeaning
speedMphBelt speed in miles per hour
paceMinPerKm, paceMinPerMileBelt pace in minutes per kilometre and per mile
adjustedSpeedKph, adjustedPaceMinPerKm, adjustedPaceMinPerMileSpeed and pace on a 0% treadmill with the same running oxygen cost
outdoorEquivalentSpeedKph, outdoorEquivalentPaceMinPerKm, outdoorEquivalentPaceMinPerMileSpeed and pace on a flat road with the same running effort
caloriesPerHour, caloriesTotalGross energy per hour and over the session, in kilocalories
distanceKmDistance covered in the session, in kilometres
raceTimesMinutesMinutes for 5 km, 10 km, a half and a full marathon at the belt speed

Where the method comes from

The oxygen cost of treadmill exercise comes from the metabolic equations of the American College of Sports Medicine: for walking 0.1 ml/kg/min per metre per minute plus 1.8 times speed times grade, for running 0.2 plus 0.9 times speed times grade, plus 3.5 at rest. ACSM fits the walking equation to about 3 to 6 km/h and the running equation above about 8 km/h, or slower when truly jogging, so the gait is an input. A litre of oxygen counts as 5 kilocalories. The flat equivalents solve the running equation for the speed with the same cost at 0% grade and, for the outdoor road, at -1%: Jones and Doust (1996) found that a 1% treadmill grade matches flat outdoor running at 10.5 to 18 km/h by making up for the missing air resistance. Both equivalents come from the running equation whatever the gait, so for walking they are rough. Race times use the World Athletics road distances, 21.0975 km for the half and 42.195 km for the marathon. Equations fitted to group averages miss individual economy by 10% or more.

Sources

Used by

Tested

Tested 4 Dec 2026: claude-haiku-5-5 was right on 0 of 3 questions without this page and 3 of 3 with it; claude-fable-5-2 was right on 0 of 3 questions without this page and 3 of 3 with it.

Changes

Cite as: mysi, Treadmill pace converter, mysi.dev/treadmill-pace-converter, version 1, changed 2026-12-04. Code MIT.