How to Fix GPS Drift and Tunnel Gaps in Cycling Files

What Causes GPS Drift and Tunnel Gaps?

GPS drift happens when your device records coordinates that don't match your actual position. Instead of a smooth line following the road, your track zigzags across buildings, rivers, and fields. Tunnels are the worst offenders — your device loses satellite signal entirely and either stops recording or guesses wildly.

Common causes of GPS drift in cycling:

  • Tunnels and underpasses — Complete signal loss, creating gaps or straight lines between entry and exit points.
  • Urban canyons — Tall buildings reflect GPS signals, causing multipath errors that place you on the wrong street.
  • Dense tree cover — Forest canopy weakens satellite signals, especially on narrow trails.
  • Wrist-mounted GPS — Watches have smaller antennas than head units, making them more susceptible to drift.
  • Cold starts — If you start riding before the device acquires a full satellite fix, the first few minutes of data may be wildly inaccurate.

How GPS Drift Ruins Your Data

GPS drift doesn't just make your map look ugly — it corrupts your metrics:

  • Inflated distance — A spike that places you 500m off the road and back adds 1 km of fake distance. Multiple spikes can inflate a 50 km ride to 55 km or more.
  • Wrong average speed — Extra distance with the same elapsed time means Strava calculates a higher average speed than reality.
  • Missed segments — If your GPS track doesn't follow the road through a segment, Strava can't match it. You did the effort but get no segment time.
  • Broken elevation profile — GPS altitude is noisy. Spikes in position also create spikes in elevation, inflating your climbing total.

The Hard Way: Manual Coordinate Editing

You could open the GPX file in a text editor and hunt for coordinates that are obviously wrong. Look for trackpoints where latitude or longitude jumps suddenly, delete them, and hope the gap isn't too large.

For tunnel gaps, you'd need to interpolate — calculate intermediate coordinates between the tunnel entry and exit, spacing them by time. This requires understanding GPS coordinate math and getting the timestamps exactly right.

Even for a single tunnel on a single ride, this can take 30+ minutes. If your route has multiple tunnels or urban sections, it's hours of work.

The Easy Way: Fix with TrailBlender

TrailBlender automatically detects and fixes the most common GPS problems:

  1. Open your file in TrailBlender — it accepts both GPX and FIT formats.
  2. TrailBlender auto-detects anomalies — GPS spikes, tunnel gaps, and cold-start wander are highlighted on the map.
  3. Review the detected issues — Each anomaly is marked with its type and severity. You decide which to fix.
  4. Apply fixes — One click removes spikes and interpolates tunnel gaps. The repaired track follows the road smoothly.
  5. Check the results — Distance, speed, and elevation recalculate based on the cleaned GPS data. Verify they match your expectations.
  6. Export the fixed file — Upload the clean file to Strava. Segments will match, distance will be accurate, and your map will look right.

Reducing GPS Drift on Future Rides

  • Wait for satellite lock — Before starting your ride, let the device show "GPS ready" or a strong signal indicator. Don't start moving during the cold start.
  • Use a head unit over a watch — Handlebar-mounted devices have better antennas and clearer sky view than wrist devices.
  • Enable multi-band GPS — Newer devices (Garmin Edge 1040, Wahoo ROAM v2) support multi-band GNSS for better accuracy in difficult conditions.
  • Record at 1-second intervals — "Smart recording" mode skips data points, making drift harder to detect and fix. Use every-second recording for the cleanest data.
  • Mount the GPS away from your body — On a bike, a stem mount gives better satellite reception than a position hidden behind your hands.

Try TrailBlender — Free

Merge your GPX files in seconds. No upload, no account.

Frequently Asked Questions

Can TrailBlender fix tunnel gaps without straight lines?

Yes. Instead of connecting tunnel entry and exit with a straight line, TrailBlender interpolates a smooth path that follows the expected route based on your speed and heading. The result looks natural on the map, not like a ruler line through a mountain.

Will fixing GPS drift change my Strava segment times?

Removing GPS spikes that inflated your distance will make your calculated speed more accurate. If spikes made you appear faster, segment times may increase slightly after fixing. If spikes made you appear slower (zigzag path), times may improve. Either way, the corrected times better reflect your actual performance.

My watch shows 52 km but Strava shows 56 km — is that GPS drift?

Very likely. A 4 km discrepancy on a 52 km ride (about 8%) is a classic sign of GPS drift. Your watch calculates distance in real time with some smoothing, while Strava recalculates from raw GPS coordinates. Fix the GPS spikes in the file and the distance should align with what your watch displayed.

Does GPS drift affect indoor trainer rides?

No. Indoor rides use speed/power from the trainer, not GPS. If you see GPS drift on what should be a stationary indoor ride, your device was recording GPS indoors by mistake. You can trim or delete the GPS track and keep only the sensor data.

Related Guides