How does GPS work?
A network of satellites and a math trick tell you where you are with meters of precision. How GPS works, what trilateration is, and why timing is key.
You take out your phone, open the map, and in seconds a blue dot marks exactly where you are. GPS has become so everyday that it no longer amazes us, but behind it lies an incredible technological feat: satellites orbiting Earth and an ingenious trick of math and time. Let’s see how it works.
What GPS is
GPS stands for Global Positioning System. It’s a system, originally created by the United States government, that allows any device with a receiver to know its exact position anywhere on the planet.
It relies on a network of about 30 satellites orbiting Earth at roughly 20,000 km altitude, arranged so that, from any point, several are always “in view.”
The key idea: satellites broadcast signals
Each GPS satellite does something very simple but constant: it broadcasts radio signals containing two essential pieces of data:
- Who it is (which satellite) and where it is at that moment.
- The exact time it sent the signal, measured by ultra-precise atomic clocks on board.
Your device (the receiver) picks up those signals and uses them to calculate its position. But how?
The trick: distance from time
Here’s the heart of the system. The signal travels at the speed of light, which is known and constant. Your receiver measures how long each satellite’s signal takes to reach it. With that time and the speed of light, it calculates the distance to that satellite (distance = speed × time).
That’s why time is so crucial in GPS: an error of a millionth of a second would translate into an error of hundreds of meters. Hence the atomic clocks.
Trilateration: crossing distances
Knowing the distance to one satellite isn’t enough: you could be anywhere on a giant sphere at that distance. The magic happens when you combine several:
- With one satellite, you’re somewhere on a sphere.
- With two, on the circle where two spheres intersect.
- With three, it narrows to two possible points (one is usually absurd, out in space).
- With four or more, your position is determined precisely, including altitude.
This crossing of distances is called trilateration (popularly, it’s often called “triangulation”). That’s why your phone needs to “see” at least four satellites to locate you well.
Why it sometimes fails
GPS isn’t infallible. Its accuracy and signal can be affected by:
- Tall buildings and narrow streets (the signal bounces).
- Tunnels, garages, or indoors, where the satellite signal doesn’t reach.
- Dense clouds or very thick foliage (to a lesser extent).
That’s why the blue dot sometimes “jumps” or takes time to lock when you’re surrounded by skyscrapers or under a roof.
Much more than maps
Although we mostly use it to find our way, GPS is the invisible foundation of many things: the navigation of planes and ships, precision agriculture, emergency services, parcel delivery, and even the time synchronization of power and banking networks, which depend on its atomic clocks. Other countries have equivalent systems (Galileo in Europe, GLONASS in Russia).
Math from the sky
GPS is an astonishing example of how physics and math solve a problem as old as humanity: knowing where we are. Satellites broadcasting the time, signals traveling at the speed of light, and a crossing of distances that places you on the map. The next time you see that blue dot, think of the four or more satellites that, from 20,000 km up, are calculating your position in real time.