Articles & BlogBy Trapper W. Brown11 min read
You open a map on your phone and a blue dot appears on the street where you are standing. Walk half a block and the dot walks with you. It feels as if something up there is watching you. Nothing is. Your phone worked out its own position by listening to clocks.
That is the whole trick of the Global Positioning System (GPS): satellites broadcast the time, and a receiver turns tiny differences in arrival time into distances. This article walks through how that works, why it takes four satellites and not three, why Einstein's relativity has to be corrected for, and what decides whether the dot is on your street or the next one over.
An operator at the GPS control center in Colorado runs through a checklist during satellite operations. Photo by Airman 1st Class Mike Meares, U.S. Air Force, public domain, via Wikimedia Commons.
What is GPS made of?
GPS.gov, the U.S. government's official page for the system, describes it as a utility owned by the United States with three parts.
- The space segment is the satellites. The government commits to keeping at least 24 working, 95% of the time, and GPS.gov says the Space Force has flown 31 operational satellites for well over a decade. The most recent count on that page is 31, as of July 3, 2023. They fly about 20,200 km (12,550 miles) up, and each one circles the Earth twice a day. They are spread over six orbital planes so that at least four are in view from nearly anywhere on the planet.
- The control segment is the ground network: a master control station, a backup, 11 command and control antennas and 16 monitoring sites. It tracks every satellite, works out exactly where each one is, and uploads fresh position and clock data to them.
- The user segment is every receiver, including the chip in your phone.
The satellites only transmit. GPS.gov compares them to lighthouses: beacons that broadcast a one-way reference signal. Your phone never sends anything to them, and they have no idea you exist.
How does a clock become a ruler?
Radio signals travel at the speed of light, which the National Institute of Standards and Technology (NIST) lists as exactly 299,792,458 meters per second. If you know when a signal left and when it arrived, you know how far it came. The government's GPS poster for students puts it in one line: distance equals rate times time.
Every satellite carries atomic clocks, which are clocks that count the steady vibration of atoms. NIST says each satellite carries a rubidium or cesium clock, or both. The satellite stamps its signal with the time it was sent.
Here is a worked example. Take a satellite directly overhead, 20,200 km away.
- Travel time: 20,200 km divided by 299,792.458 km per second is 0.0674 seconds, or 67.4 thousandths of a second.
- Your receiver sees the time stamp, notes that the signal arrived 67.4 milliseconds after it was sent, multiplies by the speed of light, and gets 20,200 km.
The hard part is how exact the timing has to be. Light covers about 300 meters in one millionth of a second, and about 30 centimeters (roughly one foot) in one billionth of a second. A timing error of a single microsecond puts you 300 meters away from where you are. To get a dot on the right side of the street, the system has to work in billionths of a second.
Why does it take four satellites?
One distance tells you that you are somewhere on a huge sphere centered on that satellite. A second satellite gives a second sphere, and the two cross in a circle. A third narrows the circle to a point. This is called trilateration: finding a position from distances alone. Three distances should be enough for three unknowns, which are your east-west, north-south and up-down position.
There is a fourth unknown, and it is the clock in your phone. The satellites carry atomic clocks. Your phone carries an ordinary, inexpensive clock that could not hold a billionth of a second if its life depended on it. If the phone's clock is wrong by one thousandth of a second, every distance it calculates is wrong by about 300 kilometers.
The fix is neat. Whatever the phone's clock error is, it is the same error for every satellite at that instant. So the receiver treats the error as one more unknown and uses a fourth satellite to solve for it. Four measurements, four unknowns: three for position and one for time. NASA's Space Place explainer and the GPS.gov poster both give the same number, four or more.
Three distances fix a point, and the fourth satellite fixes the receiver's clock.
There is a side benefit. Once the receiver has solved for its clock error, it knows the time almost as well as the satellites do. GPS.gov says this lets users find the time to within 100 billionths of a second without owning an atomic clock. That is why power grids, financial networks and phone networks lean on GPS as a clock. The companion piece "How Cell Phone Networks Work: Towers, Handoffs and Bars" covers one network that depends on that kind of timing.
What is in the signal?
A distance to a satellite is useless unless you know where the satellite was when it sent the signal. So the signal carries two things: a timing pattern and a small data message.
The public technical specification for GPS, a document called IS-GPS-200, sets the main civilian signal at a radio frequency of 1575.42 MHz, known as L1. On it, each satellite repeats its own pattern of 1,023 ones and zeros, called the C/A code, at 1.023 million bits per second. That works out to the whole pattern repeating a thousand times a second. The receiver slides its own copy of the pattern back and forth until it lines up with what it hears. How far it had to slide is the travel time.
Laid over that pattern is the navigation message, sent at only 50 bits per second. It holds the satellite's orbit, its clock corrections and its health. This is the data the control segment uploads. The master control station uses the monitoring sites to compute precise satellite positions, then sends them up so each satellite can tell you where it is.
Why does Einstein come into it?
Relativity says a clock's rate depends on how fast it is moving and how strong gravity is where it sits. For most machines the effect is too small to matter. For a system that counts billionths of a second, it cannot be skipped.
Richard Pogge, an astronomer at Ohio State University, lays out the numbers in a teaching page on GPS.
- The satellites move at about 14,000 km per hour. Special relativity says a moving clock ticks slower. The satellite clocks fall behind by about 7 millionths of a second per day.
- The satellites sit high above the Earth, where gravity is weaker. General relativity says a clock in weaker gravity ticks faster. They get ahead by about 45 millionths of a second per day.
- The net result: the clocks in orbit run fast by about 38 millionths of a second per day.
Thirty-eight microseconds sounds like nothing. Multiply it by the speed of light. The offset written into the GPS specification works out to 38.6 microseconds a day, and at that rate the distance error would grow by about 11.6 km every day. Pogge's page rounds it to about 10 km a day. The blue dot would drift out of your neighborhood before lunch.
Gravity speeds the clock up more than speed slows it down, so the net effect is a clock that runs fast.
The engineers fixed this before the satellites ever left the ground. IS-GPS-200 says the satellite clock rate is offset by a fraction of 4.4647 parts in ten billion. The clock's nominal 10.23 MHz is set to 10.2299999954 MHz. On the ground it ticks slightly slow. In orbit, relativity speeds it up to exactly the right rate.
Tip
If someone tells you relativity is only a theory with no practical use, hand them your phone with a map open. The blue dot is a relativity experiment that runs all day.
What limits accuracy?
GPS.gov separates two things that people often mix up: how good the signal is when it leaves the satellite, and how good your position is on the ground.
For the signal, the government commits to a range error of 2.0 meters or less, 95% of the time, averaged across the constellation. It reports that actual performance is much better: 0.643 meters or less on April 20, 2021.
For your position, GPS.gov says a GPS-enabled smartphone is typically accurate to within a 4.9 meter (16 foot) radius under open sky, and worse near buildings, bridges and trees. The gap between the two numbers is everything that happens on the last leg of the trip.
| What degrades it | Why |
|---|---|
| Buildings, bridges, trees | They block the signal, leaving fewer satellites to work with |
| Reflections ("multipath") | A signal that bounces off a wall arrives late, so the distance looks too long |
| Being indoors or underground | The signal is blocked before it reaches the receiver |
| The atmosphere | It distorts the signal on the way down |
| Satellite geometry | Where the satellites sit in the sky changes how well their distances pin down a point |
| The receiver itself | Design and quality differ from one device to the next |
The page lists rarer causes as well: radio interference or jamming, major solar storms and satellite maintenance. It adds that in many cases the GPS hardware is working fine and the map is wrong: a mislabeled business, a missing road, a badly estimated street address.
Professionals do much better than 4.9 meters. Using two frequencies lets a receiver correct the distortion the atmosphere causes. Add correction services, known as augmentation, and GPS.gov says real-time positioning within a few centimeters is possible.
What do people get wrong?
"GPS satellites track my phone." They cannot. The satellites broadcast and never receive anything from you. GPS.gov says plainly that the satellites do not track anything on the ground and that the government operators of GPS cannot locate your device. When an app or a company knows where your phone is, it is because the phone worked out its position and then reported it over a cell or Wi-Fi connection. That is a privacy setting on the phone, and it has nothing to do with the satellites.
"The military signal is the accurate one." GPS.gov says the accuracy edge comes from using two frequencies, which civilians can buy too, and that with augmentation systems civilian users can get better accuracy than the military.
"The government fuzzes the civilian signal on purpose." It used to. A feature called Selective Availability deliberately degraded civilian accuracy during the 1990s. The government ended it in May 2000, and GPS.gov says the newest generation of satellites is built without the feature at all.
"GPS gets switched off in a crisis." GPS.gov says the system has never been deactivated since it was declared operational in 1995.
Watch out
A confident blue dot is not always a correct one. In a city canyon of tall buildings, reflected signals can put the dot on the wrong block, and the phone will not tell you. If the dot jumps or the accuracy circle around it is wide, trust street signs over the screen.
What to remember
- GPS satellites are clocks in orbit. They broadcast the time and their position, and they never hear from you.
- Your receiver turns signal travel time into distance. One billionth of a second is about a foot.
- It takes four satellites: three for position and one to correct the cheap clock in the receiver.
- Relativity makes the satellite clocks run fast by about 38 millionths of a second a day, which would be more than 11 km of error daily if it were not corrected before launch.
- A phone under open sky is typically good to about 4.9 meters. Buildings, reflections and bad maps account for most of the misses.
The next time the dot settles on your position in a second or two, it is worth a moment of respect for what just happened: four or more signals, each less than a tenth of a second old, compared to within billionths of a second by a chip inside a phone. If you use that position with other people, "ATAK and the Apps That Put a Team on One Map" shows what teams build on top of it.
Sources (13)
- GPS.gov, "GPS" (the three segments)
- GPS.gov, "Space Segment"
- GPS.gov, "Control Segment"
- GPS.gov, "GPS Accuracy"
- GPS.gov, "Selective Availability"
- GPS.gov, "GPS and Telling Time"
- GPS.gov, "FAQ"
- National Coordination Office for Space-Based Positioning, Navigation, and Timing, "How GPS Works" educational poster, 2013
- U.S. Space Force, Space Systems Command, "IS-GPS-200N: NAVSTAR GPS Space Segment/Navigation User Segment Interfaces", August 2022
- NASA Space Place, "How Does GPS Work?"
- NIST, "Time and Frequency from A to Z: G" (Global Positioning System entry)
- NIST, "CODATA Value: speed of light in vacuum"
- Richard W. Pogge, Ohio State University, "Real-World Relativity: The GPS Navigation System", updated March 11, 2017


