Elevation Gain Calculator
Calculate elevation gain, loss, grade, and climb category for your route
Route Details
Total Elevation Gain
Elevation Summary
Climb Analysis
Climb Categories (Cycling)
Cat 4: 100-300m gain, 3-4% grade
Cat 3: 300-500m gain, 4-5% grade
Cat 2: 500-800m gain, 5-6% grade
Cat 1: 800-1000m gain, 6-8% grade
HC: 1000m+ gain, 8%+ grade
What Is Elevation Gain?
Elevation gain refers to the total amount of upward vertical ascent accumulated over a route or portion of a route. Unlike net elevation change — which simply subtracts start elevation from end elevation — total elevation gain counts every uphill meter separately, making it the most meaningful metric for understanding how demanding a route truly is.
Whether you are a trail runner preparing for a mountain ultra, a cyclist scouting a stage, or a hiker planning a weekend adventure, understanding elevation gain helps you predict effort, plan nutrition, and estimate finishing time far more accurately than distance alone. A flat 20 km run and a 20 km mountain route can differ by hundreds of calories burned and an hour or more of completion time. Our free elevation gain calculator lets you compute this figure instantly using start and end elevation points for individual segments or complex multi-segment routes.
Elevation gain is measured in meters (or feet) and is typically tracked by GPS devices or barometric altimeters. Modern sports watches record cumulative ascent in real time, but this online elevation gain calculator gives you accurate results for route planning without any specialist hardware.
It is important to distinguish elevation gain from elevation loss. On an out-and-back route you accumulate both: the ascent on the way out becomes descent on the return. This calculator tracks both values independently and reports net change as their difference, giving you the complete elevation profile in one place.
How to Calculate Elevation Gain
Calculating elevation gain for a single segment is straightforward: subtract the start elevation from the end elevation. If the result is positive, that value is your elevation gain; if negative, it is elevation loss. For multi-segment routes, sum each positive change across all segments for total gain, and sum all absolute negative changes for total loss.
The average grade — a percentage expressing steepness — is calculated by dividing the elevation change by the total horizontal distance expressed in meters, then multiplying by 100. Because distance is usually entered in kilometers, it must be multiplied by 1,000 before the division.
Vertical kilometers (VK) is a combined effort metric widely used in trail running and mountain sports. It adjusts route distance to account for climbing by treating each percentage point of grade as adding proportional effort on top of the base horizontal distance. The time adjustment formula estimates extra minutes required for climbing and descending beyond flat-ground pace.
Core Elevation Gain Formulas
Where:
- elevationChange= End elevation minus start elevation in meters (negative means net descent)
- distance_km= Horizontal route distance in kilometers
- grade (%)= Average slope as a percentage; positive = uphill, negative = downhill
- Vertical Km= Effort-adjusted distance combining horizontal and vertical components
- gain= Total positive (uphill) elevation change in meters
- loss= Total absolute negative (downhill) elevation change in meters
Understanding Grade and Slope
Grade (also called gradient or slope) expresses how steep a surface is as a percentage. A 10% grade means the terrain rises 10 meters for every 100 meters of horizontal distance traveled. This differs from angle in degrees: a 45° angle corresponds to a 100% grade, not 45%. For runners, cyclists, and hikers, grade has a direct and measurable impact on effort and speed.
Research shows that energy expenditure increases substantially above 5% grade for running, and cyclists commonly reference professional climb category thresholds to classify how demanding an ascent will be. Understanding the average grade of your planned route allows you to select appropriate gearing for cycling, anticipate walking sections on a run, and pack adequate nutrition for sustained effort.
| Grade Range | Perceived Difficulty | Typical Context |
|---|---|---|
| 0–3% | Gentle rolling | Road cycling, casual walks |
| 3–6% | Moderate climb | Recreational cycling, trail runs |
| 6–10% | Challenging | Competitive cycling, mountain hikes |
| 10–15% | Steep | Alpine ascents, technical mountain biking |
| 15%+ | Extreme | Scrambling, advanced trail running |
The grade calculator embedded in this tool uses the exact formula above. A negative grade indicates a net descent over the measured segment, while a positive grade confirms a net ascent. Average grade smooths out undulations; individual pitches within a segment may be considerably steeper or gentler than the average.
Cycling Climb Categories Explained
The cycling climb category system was popularised by the Tour de France and is now used widely in both amateur and professional cycling to communicate a climb's overall difficulty. Categories range from Category 4 (the easiest classified climb) up to Hors Catégorie (HC, literally "beyond category"), reserved for the most demanding mountain passes. This calculator assigns a category based on the combination of total elevation gain and average grade.
A climb may have significant total gain but still earn only a lower category if its average grade is gentle — and vice versa. The thresholds used by this elevation gain calculator are:
| Category | Min. Gain | Min. Grade | Classic Examples |
|---|---|---|---|
| Cat 4 | 100 m | any | Short local climbs |
| Cat 3 | 300 m | >4% | Hilly road stages |
| Cat 2 | 500 m | >5% | Mountain foothills |
| Cat 1 | 800 m | >6% | Major Alpine passes |
| HC | 1,000 m | >8% | Alpe d'Huez, Col du Galibier |
Trail runners and hikers can use these same categories as informal benchmarks when comparing route difficulty. An HC-rated route demands respect regardless of sport, and planning nutrition, pacing, and equipment accordingly is critical for a safe and successful outing.
Time Adjustment for Elevation
Flat-ground pace predictions become inaccurate whenever significant elevation is involved. This elevation gain calculator provides a time adjustment estimate based on a widely used rule of thumb: every 100 m of gain adds approximately 1 minute of effort, while every 100 m of loss adds 0.5 minutes — since descents are faster than ascents but still require time and energy.
Time Adjustment (min) = round((gain / 100) × 1 + (loss / 100) × 0.5)
This approximation is inspired by Naismith's Rule, a classic hillwalking formula that adds approximately 1 minute of extra time per 10 m of ascent for walkers. The calculator uses a condensed version suited to running and cycling speeds rather than walking pace, making it practical for a broader range of endurance sports.
To use the adjustment in race planning, start with your known flat-ground pace. If you run 10 km in 50 minutes on flat terrain and your route adds 500 m of gain and 200 m of loss, expect to add approximately 5 + 1 = 6 minutes to your finishing time estimate. More sophisticated models such as the Minetti et al. metabolic cost curve can refine this further, but the simple formula captures the majority of the time penalty for most athletes.
Altitude is a separate factor not captured by grade alone: at elevations above 2,000 m, reduced oxygen availability increases perceived effort significantly. Athletes racing or hiking at altitude should apply an additional 5–10% buffer on top of any elevation-based time adjustment for a more realistic race-day estimate.
Practical Training Applications
The elevation gain calculator is an essential planning tool for athletes across multiple endurance disciplines. Understanding the full elevation profile of a planned route before you attempt it enables smarter pacing, better nutrition strategy, safer gear selection, and more accurate time targets.
Trail runners preparing for ultramarathons often use total elevation gain as a primary training load metric alongside weekly mileage. A 50 km race with 3,000 m of gain is categorically harder than the same distance on flat terrain. Monitoring cumulative weekly gain alongside distance helps prevent overuse injuries caused by adding too much vertical stress too quickly, a common mistake in mountain running base-building phases.
Cyclists use vertical kilometers and climb category to design structured training blocks. A beginner cyclist building aerobic fitness might target one Cat 3 climb per week before progressing to Cat 2 rides. Using multi-segment mode in this calculator, you can map out a full cycling route with several climbs and descents to obtain an accurate total elevation gain figure before heading out — no GPS required.
Hikers and mountaineers rely on daily elevation gain estimates to confirm whether a planned stage fits within available daylight. Most fit, trail-experienced hikers sustain roughly 400–600 m of gain per hour on good terrain. Dividing a route's total gain by your personal ascent rate gives a realistic time estimate that, combined with the horizontal distance, yields a reliable total duration for the day.
For out-and-back or loop routes, always use multi-segment mode. Enter each distinct climb and descent as its own segment with start elevation, end elevation, and segment distance. The calculator sums gains and losses independently, giving accurate totals even for complex routes where net elevation change alone would mask the true vertical effort involved.
Worked Examples
Trail Run Climb
Problem:
A trail run starts at 200 m elevation and finishes at 850 m elevation over a 12 km distance. What is the elevation gain, average grade, vertical km, and time adjustment?
Solution Steps:
- 1Elevation change = 850 − 200 = +650 m (positive, so gain = 650 m, loss = 0 m)
- 2Grade = (650 / (12 × 1000)) × 100 = 650 / 12,000 × 100 = 5.4% (displayed as 5.4)
- 3Vertical Km = 12 × (1 + 5.4166.../100) = 12 × 1.054166... = 12.65 km
- 4Time adjustment = round((650/100) × 1 + (0/100) × 0.5) = round(6.5) = 7 minutes
- 5Climb category: gain 650 m > 500 m AND grade 5.4% > 5% → Cat 2
Result:
650 m elevation gain, 0 m loss, 5.4% average grade, 12.65 vertical km, +7 min time adjustment, Cat 2
Cycling Descent Segment
Problem:
A road cycling segment begins at 1,200 m elevation and descends to 400 m over 15 km. What are the elevation loss, grade, vertical km, and time adjustment?
Solution Steps:
- 1Elevation change = 400 − 1200 = −800 m (negative, so gain = 0 m, loss = 800 m)
- 2Grade = (−800 / (15 × 1000)) × 100 = −800 / 15,000 × 100 = −5.3%
- 3Vertical Km = 15 × (1 + |−5.3333...|/100) = 15 × 1.053333... = 15.8 km
- 4Time adjustment = round((0/100) × 1 + (800/100) × 0.5) = round(0 + 4.0) = 4 minutes
- 5Climb category: gain = 0 m (not above 100 m threshold) → Flat/Rolling
Result:
0 m gain, 800 m elevation loss, −5.3% grade, 15.8 vertical km, +4 min time adjustment, Flat/Rolling
Multi-Segment Mountain Bike Route
Problem:
A mountain bike loop has three segments: (1) 50 m to 400 m over 6 km; (2) 400 m down to 150 m over 4 km; (3) 150 m up to 900 m over 10 km. Calculate all totals.
Solution Steps:
- 1Segment changes: Seg 1 = +350 m gain; Seg 2 = −250 m loss; Seg 3 = +750 m gain
- 2Total gain = 350 + 750 = 1,100 m; Total loss = 250 m; Total distance = 6 + 4 + 10 = 20 km
- 3Net change = 1,100 − 250 = +850 m; Average grade = (1100 / (20 × 1000)) × 100 = 5.5%
- 4Vertical Km = 20 × (1 + 5.5/100) = 20 × 1.055 = 21.1 km
- 5Time adjustment = round((1100/100) × 1 + (250/100) × 0.5) = round(11 + 1.25) = round(12.25) = 12 min
- 6Climb category: gain 1,100 m > 500 m AND grade 5.5% > 5% → Cat 2
Result:
1,100 m total gain, 250 m total loss, +850 m net change, 5.5% avg grade, 21.1 vertical km, +12 min time adjustment, Cat 2
Tips & Best Practices
- ✓Use multi-segment mode for loop or out-and-back routes — enter each climb and descent separately so gain and loss are tracked independently rather than cancelled out.
- ✓A 5% average grade feels moderate to most cyclists but adds significant effort over a long route; plan extra nutrition and conserve energy early on any segment above this threshold.
- ✓For hiking trip planning, a common benchmark is 400–600 m of gain per hour on good trail — compare this to the time adjustment output as a quick sanity check.
- ✓Vertical kilometers are more useful than distance alone for comparing routes with different elevation profiles; two 15 km rides can have dramatically different VK values.
- ✓Descents also cost time and energy, especially on technical terrain — the 0.5 min per 100 m loss adjustment captures this and prevents over-optimistic finish time estimates.
- ✓At altitudes above 2,000 m, add an extra 5–10% to your estimated time beyond what the grade adjustment provides to account for reduced oxygen availability.
- ✓On an out-and-back route, your outbound elevation gain equals your return elevation loss — enter both halves as separate segments to get accurate gain and loss totals for the full effort.
- ✓HC-rated climbs (1,000+ m gain, 8%+ average grade) require race-day nutrition planning; base your calorie estimates on vertical km rather than horizontal distance for these demanding ascents.
Frequently Asked Questions
Sources & References
- Grade (slope) — Wikipedia (2024)
- Naismith's rule — Wikipedia (2024)
- Categorization of climbs in cycling — Wikipedia (2024)
- Minetti et al. — Energy Cost of Walking and Running at Extreme Uphill and Downhill Slopes, Journal of Applied Physiology (2002)
- UCI Cycling Regulations — Union Cycliste Internationale (2024)
Last updated: 2026-06-05
Help us improve!
How would you rate the Elevation Gain Calculator?
Editorial Note
MyCalcBuddy Editorial Team
This page is maintained as an educational calculator reference.
Formula Source: Standard Mathematical References
by Various