GpxFix Blog
How to increase the distance of a Strava Activity after watch died
By Roy Lachica on . Last updated .
You trained for months, toed the start line of a marathon, and ran every kilometer with heart. Then, at kilometer 34, your sports watch dies. No warning beep, no final save, just a blank screen. You cross the finish line, but your GPS file ends somewhere in the middle of the course.
If this sounds familiar, you're not alone. Dead batteries are one of the most common reasons athletes end up with incomplete GPS recordings. The good news: GpxFix can extend your cut-short activity using a reference GPX file to reconstruct the missing kilometers as if your watch never stopped.
The Marathon Runner Problem
Imagine running a 42.2 km marathon. Your watch, set to record every second with GPS, typically has plenty of battery for a 4-hour effort. But on race day, maybe you forgot to charge it fully the night before. Or you had a long warm-up and the watch is getting old along with its battery life. Or the cold weather drained the battery faster than usual.
Whatever the cause, your recording cuts out at 34 km. Your Strava activity shows 34 km instead of 42.2 km. Your finish time is missing. The route map stops abruptly halfway through the city. All that effort — and your fitness app doesn't even know you finished.
With GpxFix, you can fix this. By uploading a reference GPX of the full race route — often provided by the race organizer or available from another runner — you can extend your recording to cover the full distance.
How the Extend Track Feature Works
The Extend Track feature in GpxFix picks up where your recording stopped and appends the missing section from a reference GPX file. Here's what makes it smart:
- It matches the end of your track to the reference route. GpxFix finds the closest point in the reference file to where your recording stopped, within 30 meters, and uses everything after that as the extension.
- It resamples the geometry to match your recording cadence. The reference file might have a different number of track points per kilometer than your watch. GpxFix resamples the geometry so the new section blends naturally with your original data.
- It extrapolates realistic speed and timestamps. The timing for the new section is calculated from your actual pace during the activity, not from the reference file's timestamps. If you were running at 5:30 per kilometer when your watch died, the extension continues at that pace.
- It adjusts speed for elevation changes. The algorithm uses a gradient-aware model built from your own pace data. If the remaining course has a steep climb, it will slow your extrapolated pace accordingly. A fast descent will reflect that too.
- It carries over heart rate data. If you were recording heart rate, the extension starts from your last known heart rate and blends toward what the model predicts based on the elevation profile — giving you a realistic HR trace for the full activity.
Other Use Cases Where Extending a Track Is Useful
The marathon scenario is one of the most emotionally charged examples, but battery death can cut short any kind of activity. Here are some other situations where extending a track makes sense:
- Trail running races: Ultra-marathons can last 10, 20, even 30+ hours. Longer events mean more battery drain. Many trail races publish an official GPX route, making it easy to extend your file to the finish.
- Cycling gran fondos: Long sportive rides on fixed routes are ideal candidates. If your Garmin or Wahoo dies near the end of a 200 km ride, you can restore the final climbs and finish using the event's official route file.
- Hiking and multi-day treks: If your tracker stops partway along a trail, any GPX of the same trail — from an online source or a hiking companion — can serve as the reference.
- Commutes and daily rides: Even if you record daily bike commutes and your phone dies near the end, you can restore the last few kilometers using a saved route file.
- Group rides and runs: If a training partner's recording is complete and yours stopped early, you can use theirs as the reference to complete your own file.
Where to Find a Reference GPX File
To use the Restore section - Extend from reference file, you need a GPX file that covers the portion of the route you are missing. Here are the most common sources:
- Race organizer websites: Most road marathons, trail races, and cycling sportives publish an official GPX route for download. Check the event website or athlete guide.
- Strava routes and segments: If the course follows a well-known route, it may already be available as a Strava route you can export.
- Komoot and Wikiloc: These platforms have large libraries of community-contributed routes for almost every trail and road imaginable.
- A friend or training partner: If someone else completed the same activity with a working device, their GPX export makes a perfect reference.
- Your own past recordings: If you have run or cycled the same route before and your previous recording is complete, use that.
What the Extend Feature Does Not Do
It is worth being transparent about the limitations of any extension:
- The extended section is an estimate. GpxFix uses your pace and the route geometry to extrapolate the missing section. The actual pace you ran those final kilometers may have been different, especially if you slowed down, sprinted to the finish, or stopped at an aid station.
- Heart rate is extrapolated, not measured. The HR data added for the extension is a model-based estimate. It will look plausible but should not be treated as accurate physiological data. It does not use data from your other activities, and so the extrapolation accuracy will be limited.
- The reference route must cover the missing section. If your reference file also ends before the finish, GpxFix will only be able to extend your track as far as the reference goes.
- The extension cannot be longer than the original activity. This is a safety limit to prevent unrealistic extensions where almost the entire activity would be fabricated.
Step by Step: How to Extend Your Activity in GpxFix
- Go to GpxFix and upload your cut-short GPX file.
- Select the Restore section operation from the menu.
- Choose Extend track from a reference GPX file.
- Upload the reference GPX file — the race route, friend's recording, or any file that covers the missing section.
- GpxFix will now find the matching point and append the missing kilometers automatically.
- Download the completed GPX and upload it to Strava, Garmin Connect, or your platform of choice. If you are logged in with Strava in GpxFix you can send it directly to Strava in one button click.
The Result: A Complete Activity That Tells Your Full Story
After extending your track, your activity will show the correct total distance, a complete route map, and a realistic finish time. You put in the work, your GPS file should reflect that.
Whether you crossed a marathon finish line, crested the final climb of a gran fondo, or completed an ultra-trail in the mountains, GpxFix helps make sure your data matches your effort.
Did you extend a cut-short activity with GpxFix? Mention it in your Strava description, we'd love to hear about it.
Other blog posts
- Why you should skip the headphones on trail runs and races
- Tips for Recording Video While Racing — Camera Options, Battery Life, and More
- How to Create a Hyperlapse Video for Your GPX Route
- GPX Files with YouTube Video Segments: A New Way to Experience Routes
- To Pause or Not to Pause
- GPS & Elevation Accuracy Showdown 2026 | Garmin vs COROS vs the Rest
- Why Garmin and Strava Sometimes Show Different Distances for the Same Workout
- Why Your Activity Distance Is Wrong And How to Correct It
- Fixing Broken Strava Activities
- Why Some Workouts Cannot Be Fixed
- How to Get a GPX File onto Your Garmin Sports Watch
- How to Combine Multiple Runs Into One Activity
- How to removes GPS Spikes or extreme sudden movements
- Why We Are Introducing Subscription
- Comparing activities - a practical guide
- How GpxFix Reconstructs Indoor Track Runs — even when GPS drops out
- How to restore missing GPS data
- Crop & Cut GPX Activities — A Practical Guide
- How to Change the Distance of a Workout
- When Is It Okay, and Not Okay, to Alter Elapsed Time
- How to Change Moving Time to Match Elapsed Time
- On the Ethics Of Editing Fitness Data
- Understanding Elapsed vs. Moving Time in Strava
- How to Get Accurate GPS and Heart Rate Data

