How GPS Knows Where You Are
A phone tracking your location to within a few metres relies on a constellation of satellites, atomic clocks, and a surprisingly elegant piece of geometry.

When a phone shows a blue dot moving down a street in real time, it can feel almost magical, as if something up in space is watching and reporting back. The truth is almost the opposite: the satellites broadcast a constant, unchanging signal, and it is your device on the ground doing all the calculation, comparing the timing of signals from several satellites at once to work out exactly where it must be standing.
The constellation overhead
The Global Positioning System consists of around 31 operational satellites orbiting roughly 20,200 kilometres above Earth, arranged so that at almost any point on the planet, at least four satellites are visible above the horizon at any given time. Each satellite continuously broadcasts a radio signal that includes its own precise position and the exact time the signal was sent.
Trilateration: distance, not direction
The core trick behind GPS is a method called trilateration, which works out a location using distances from known points rather than compass directions. If you know you are exactly 10 kilometres from point A, you could be anywhere on a circle around A. If you also know you are 8 kilometres from point B, that narrows you down to the one or two points where the two circles intersect. Add a third distance from point C, and the intersection usually narrows to a single point.
GPS receivers do the same thing in three dimensions, using distances from satellites instead of two-dimensional circles, which means spheres instead of circles, but the underlying logic is identical: enough distance measurements from enough known points pin down a single location.
Turning time into distance
The receiver does not measure distance directly. It measures how long a radio signal took to travel from each satellite, and since radio waves travel at the speed of light, a known and constant value, that travel time can be converted directly into distance. A signal that took 0.07 seconds to arrive travelled a specific, calculable number of kilometres.
This is where the whole system becomes extraordinarily demanding on precision. Radio waves travel so fast that a timing error of even one microsecond translates into a distance error of about 300 metres. To achieve the few-metre accuracy consumers rely on, the satellites need clocks accurate to within nanoseconds.
Why GPS satellites carry atomic clocks
Each satellite carries multiple atomic clocks, typically based on caesium or rubidium, which keep time by measuring the extremely stable natural oscillation frequency of atoms rather than a mechanical or quartz vibration. These clocks are accurate to within a few nanoseconds per day, among the most precise timekeeping devices ever built for a practical application.
Ordinary quartz clocks, the kind found in phones and watches, are far too imprecise for this job on their own, drifting by amounts that would translate into location errors of kilometres. Instead, the receiver in your phone uses the timing information broadcast by the atomic clocks aboard the satellites and mathematically solves for its own clock error as an extra unknown in the calculation, which is actually why four satellites, not three, are needed: three provide the spatial position, and the fourth allows the receiver to correct for its own imperfect internal clock.
Why four satellites, not three
- Three distance measurements would be enough to fix a 3D position if the receiver's clock were perfectly accurate.
- Because cheap receiver clocks are not perfect, there is an unknown timing offset that must also be solved for.
- A fourth satellite signal provides the extra equation needed to solve for both position and clock error simultaneously.
- More visible satellites beyond four generally improve accuracy further by reducing the effect of any single noisy measurement.
Relativity is not optional here
One of the more remarkable aspects of GPS is that it could not function accurately without correcting for effects predicted by Einstein's theories of relativity. Satellites orbit at high speed, which, according to special relativity, causes their onboard clocks to run slightly slower than clocks on the ground. At the same time, they sit far from Earth's mass in a weaker gravitational field, which, according to general relativity, causes their clocks to run slightly faster than clocks on the ground.
These two effects do not cancel out. The net result is that satellite clocks run faster than ground clocks by about 38 microseconds per day, a tiny fraction of a second that would nonetheless accumulate into a positioning error of roughly 10 kilometres per day if left uncorrected. Engineers compensate by deliberately setting the satellite clocks to tick slightly slower before launch, so that once relativistic effects act on them in orbit, they match ground time as intended.
A rough scale of errors
| Timing error | Resulting distance error |
|---|---|
| 1 nanosecond | About 30 centimetres |
| 1 microsecond | About 300 metres |
| Uncorrected relativity, 1 day | About 10 kilometres |
What actually limits everyday accuracy
Given all this precision, why does a phone's GPS sometimes seem to wander by several metres? Several practical factors intervene between the satellite signal and the final position shown on screen. Signals can bounce off buildings before reaching a receiver, a problem called multipath, effectively lengthening the apparent travel time. The signal also slows slightly as it passes through the ionosphere and atmosphere, an effect that varies with weather and solar activity. Tall buildings can block satellites from view entirely, reducing the number of usable signals in dense cities, which is why GPS often performs worse downtown than in open countryside.
Beyond satellites: how phones fill the gaps
Modern smartphones rarely rely on GPS alone. They combine satellite signals with nearby Wi-Fi network positions, mobile network tower triangulation and onboard motion sensors like accelerometers and gyroscopes, blending all of these sources together to keep the blue dot moving smoothly even when satellite signal briefly drops, such as inside a tunnel or between tall buildings.
An everyday miracle of timing
At its heart, GPS is less a story about space and more a story about time: the entire system exists to measure tiny intervals with extraordinary precision and convert them into distances. From orbital mechanics to atomic physics to relativity, an enormous amount of applied science sits quietly behind something as mundane as checking a map on a phone. For more on the physics behind everyday technology, explore our science archive.
About the author
Idris Oyelaran covers consumer technology, privacy and applied science. He is happiest explaining a complicated system in ordinary language, and he tests every recommendation on his own devices before it appears in a story.



