GPS Explained: How Your Phone Knows Where You Are

TL;DR

Your phone uses GPS satellites that transmit their precise location and time, your phone measures the delay of multiple signals to calculate distance, and the system only works because Einstein's relativity corrections account for time moving differently in orbit than on Earth.

Why This Matters (And Why Most People Get It Wrong)

You probably think GPS is simple: satellites broadcast your location, your phone receives it, done. Actually, your phone calculates your location. The satellites never know you exist. And the whole system depends on accounting for relativistic effects that most people have no idea about.

GPS is one of those technologies that seems magical until you understand the physics underneath, at which point it becomes a different kind of amazing.

How GPS Actually Works: The Basic System

GPS is built on a simple principle called trilateration. If you know the distance to one satellite, you're somewhere on a sphere around that satellite. Two satellites: you're on the circle where two spheres intersect. Three satellites: one point (or two, but your phone picks the sensible one). Four satellites: you also get altitude and can account for timing errors in your phone's clock, which isn't nearly as precise as the atomic clocks in orbit.

Satellites transmit continuously. Each signal includes two pieces of data: the satellite's location in space and the exact time the signal was transmitted. Your phone's receiver detects these signals and measures how long they took to arrive. Since radio waves travel at the speed of light (300,000 kilometers per second), a tiny delay means a measurable distance.

Here's where it gets specific: a signal delayed by 0.1 seconds means the satellite is about 30,000 kilometers away. By combining distance measurements from multiple satellites, your phone triangulates a position. The GPS constellation includes at least 24 satellites arranged so that at least four are visible from almost anywhere on Earth at any time.

Atomic Clocks and the Timing Problem

This couldn't work without atomic clocks. GPS satellites each carry atomic clocks accurate to within one nanosecond. One nanosecond is one billionth of a second. At light speed, a one-nanosecond error translates to a 30-centimeter position error.

Your phone doesn't have an atomic clock. Its internal clock is decent for daily tasks but drifts. This is actually useful: it means you need four satellites instead of three. The fourth satellite's signal allows your phone's receiver to solve for its own clock error simultaneously with position. This is why GPS is more accurate with four satellites than three, even though geometrically three would suffice.

The Einstein Problem: Why Relativity Matters

Here's what makes GPS require Einstein: time moves at different rates in orbit than it does on Earth's surface.

Special relativity predicts that clocks on fast-moving satellites run slower relative to stationary observers. GPS satellites orbit at about 3.87 kilometers per second. At these speeds, time dilation causes their clocks to run about 7 microseconds per day slower than ground clocks.

But there's a competing effect. General relativity predicts that clocks in weaker gravitational fields run faster. Satellites orbit at 20,200 kilometers altitude, where Earth's gravity is weaker. This causes their clocks to run about 45 microseconds per day faster than ground clocks.

The net result: GPS satellite clocks run 38 microseconds per day faster than Earth clocks. Over a day, that's a massive error. In just 38 microseconds, a light-speed signal travels 11.4 kilometers. If GPS didn't account for relativistic effects, the system would accumulate position errors of multiple kilometers per day and become useless within weeks.

Engineers compensate for this by adjusting the satellite clock frequencies before launch. Instead of running at 10.23 megahertz, GPS atomic clocks run at 10.229999995453 megahertz, a tiny adjustment that accounts for both special and general relativistic effects.

Beyond Satellites: How Your Phone Actually Locates You

Pure GPS is accurate to about 5 meters under ideal conditions. But your phone rarely relies on GPS alone.

Inside buildings or dense urban canyons, satellite signals weaken or bounce off structures. Your phone switches to assisted GPS (A-GPS), which uses additional location information: Wi-Fi networks your phone has connected to before (Google and Apple maintain databases of Wi-Fi access points and their locations), cellular tower signals, and Bluetooth beacons. These methods are faster and work indoors, though they're less precise.

Modern phones also use sensor fusion, combining GPS, Wi-Fi, cellular, accelerometer, and gyroscope data to estimate movement patterns and improve location estimates between satellite fixes. This is why your phone sometimes shows itself moving smoothly along a route even when satellite signals are intermittent.

What Most People Get Wrong

"GPS satellites transmit your location." False. Satellites transmit their own location and time. Your phone does all the calculating.

"Your phone needs internet for GPS to work." Partially false. Pure GPS requires no internet connection. Your phone calculates position from satellite signals alone. A-GPS uses the internet to speed up initial acquisition of satellite information, which is why your first fix is faster with a data connection.

"GPS works the same everywhere." False. GPS accuracy varies by geometry. Signals from satellites clustered overhead are more useful than signals near the horizon. Urban environments degrade accuracy. Military GPS was intentionally degraded before 2000 via "Selective Availability," a fact many people still don't know was reversed.

"You need good battery to use GPS." Mostly false. GPS is power-intensive, but it's the receiver and processing that consume energy, not the reception itself. Satellites don't drain power because they're responding to your query.

Want to actually understand this?

This blog post scratches the surface. A DeepDive paper goes 10-30 pages deep on exactly the angle you're curious about, written for your knowledge level, in a format your brain will actually finish.