Skip to main content
AI Fit Hub

Cardio

Marathon Pace + Elevation Calculator

Turn a target race time on a hilly course into your average race pace and the flat-course pace that takes the same effort.

Your numbers

Start from an example

Units
km

Marathon 42.195 km (26.2 mi), half 21.1 km (13.1 mi).

Target time (h:mm)

Type 3:30 or 3:30:00.

m

The course total from your watch, Strava or the race site, not the net change.

m

The course total from your watch, Strava or the race site, not the net change.

Result

Flat-equivalent pace
5:38 /km
Average race pace
5:41 /km
Elevation cost
+150 s
Course
Flat

Average vs flat-equivalent pace

Race-day pace vs the flat-course pace that takes the same effort.

Average pace
5:41 /km
Flat-equivalent pace
5:38 /km

Education, not medical advice. The result comes only from the published formula and your inputs. How we check our formulas.

  • Formula Marathon Pace Elevation Formula

    Marathon elevation pace correction: about 1.5 sec of finish time per metre climbed, 0.75 sec per metre descended (2:1 asymmetric). Daniels rule of thumb, Minetti 2002 consistent.

  • Formula Riegel Race Time Formula

    Riegel race time prediction: T2 = T1 × (D2/D1)^1.06. Race-time prediction across distances. Valid 5K–marathon, breaks down beyond 30K.

  • Formula Marathon Sweat Rate + Electrolyte Formula

    Marathon hydration: sweat rate 0.5-2.5 L/h, sodium concentration 460-1840 mg/L. Casa 2007 + ACSM 2007 standards. Replace 70-90% of losses; avoid hyponatremia.

  • Nutrition TDEE Calculator

    Estimate your daily energy expenditure with Mifflin-St Jeor + activity factors.

  • Nutrition Macro Calculator

    Convert calorie targets into protein, carbs, and fat grams for your goal.

  • Planning Calorie Deficit Calculator

    Estimate required daily calorie deficit for a target timeline and bodyweight change.

  • Planning Body Recomposition Planner

    Plan body-fat reduction pace, deficit targets, and protein needs around a timeline.

Background on the Marathon Pace + Elevation Calculator

All resources
All articles

By goal

Use it from code

The same calculation as a JavaScript module you can import. It runs where you import it, with no request, key or rate limit.

import { compute } from "https://aifithub.io/engines/marathon-pace-elevation.js";

Input and output contract, TypeScript types and the guide for agents.