How GPS Works: How Your Phone Knows Exactly Where You Are

Your phone finds its position by timing signals from satellites more than 20,000 km away. Here's how GPS works, why it needs such precise clocks, and why location still works indoors.

Information current as of November 2026 · How we research · Report an error

Satellite orbiting above planet Earth
Photo by NASA on Unsplash

Open a map app and a blue dot appears, usually within a few meters of where you’re standing. That small dot is the result of satellites orbiting thousands of kilometers above you, clocks so precise they lose less than a second over millions of years, and even a correction from Einstein’s theory of relativity.

Here’s how it all fits together, in plain English.

GPS is a system of satellites that broadcast the time

GPS stands for Global Positioning System. It’s run by the United States and consists of a constellation of around 30 satellites orbiting about 20,200 km above Earth. They are arranged so that, almost anywhere on the planet, several of them are above the horizon at any moment.

Each satellite carries extremely accurate atomic clocks and continuously broadcasts a radio signal that essentially says:

“I am satellite number X, this is exactly where I am, and this is exactly what time it was when I sent this message.”

Your phone doesn’t send anything back to the satellites. It only listens. That’s why GPS can serve billions of devices at once and why it works even without a mobile data connection.

From time to distance

Radio signals travel at the speed of light, about 300,000 km per second. When your phone receives a satellite’s message, it compares the time the message was sent with the time it arrived. The difference tells it how long the signal traveled, and therefore how far away that satellite is.

For example, if a signal took 0.07 seconds to arrive, the satellite is about 21,000 km away.

Trilateration: finding the point where the circles meet

Knowing your distance from one satellite places you somewhere on a giant imaginary sphere around it. That alone isn’t very useful. But with distances to several satellites, the spheres intersect at only one point: your location.

This technique is called trilateration. In practice:

  • Three satellites are enough in theory to find a position.
  • A fourth satellite is needed to correct the error in your phone’s own clock.
Satellite 1 Satellite 2 Satellite 3 You are here
Each satellite's signal tells your phone how far away that satellite is, placing you somewhere on a circle around it. The only point at the right distance from all three is your position. A fourth satellite corrects the error in your phone's clock.

That fourth satellite is the clever part. Your phone has an ordinary, cheap clock that is nowhere near as accurate as the atomic clocks in space. Because light travels about 300 km in a single thousandth of a second, even a tiny clock error would put you hundreds of kilometers off. By using one extra satellite, the receiver can solve for its own clock error at the same time as its position. Using more satellites makes the result more accurate.

Why relativity matters

The satellites’ clocks are affected by two effects predicted by Einstein:

  • Because the satellites move fast, their clocks run slightly slower (special relativity).
  • Because they’re further from Earth’s gravity, their clocks run slightly faster (general relativity).

The combined effect is that satellite clocks would gain roughly 38 microseconds per day compared with clocks on the ground. That sounds tiny, but without correcting for it, positions would drift by kilometers each day. The system is designed to compensate for this.

GPS is only one of several systems

“GPS” is commonly used for all satellite navigation, but there are several systems. Together they’re called GNSS (Global Navigation Satellite Systems):

System Operated by
GPS United States
Galileo European Union
GLONASS Russia
BeiDou China

Most modern phones can use several of these at once. More satellites in view means faster and more accurate positioning, especially in cities where tall buildings hide part of the sky.

Why location works indoors (most of the time)

GPS signals are very weak by the time they reach the ground, and they struggle to pass through roofs and walls. Yet your phone often knows which room of a shopping mall you’re in. That’s because phones combine several sources of information:

  • Assisted GPS (A-GPS): your phone downloads data about where the satellites are from the internet, so it can lock on in seconds instead of minutes.
  • Wi-Fi positioning: your phone sees nearby Wi-Fi networks and compares them with a database of where those networks are located.
  • Mobile network positioning: your distance to nearby cell towers gives a rough location.
  • Motion sensors: the accelerometer, gyroscope and compass help track movement between position updates.

This is why turning off Wi-Fi can make your location less accurate, even when you’re not connected to a network.

Why the blue dot sometimes jumps around

  • Urban canyons: signals bounce off tall buildings, so they travel further than they should and confuse the calculation.
  • Poor sky view: under trees, in tunnels, or deep inside buildings.
  • Battery-saving modes: some settings reduce how often the phone checks its position.
  • Phone case or hand position: these rarely matter much, but can slightly weaken an already marginal signal.

How to improve location accuracy on your phone

  • Android: open Settings → Location and make sure location is on and that Google Location Accuracy (or your manufacturer’s equivalent) is enabled.
  • iPhone: go to Settings → Privacy & Security → Location Services, make sure it’s on, and for map apps allow Precise Location.
  • Keep Wi-Fi turned on, even if you’re not connected, so your phone can use Wi-Fi positioning.
  • If the compass direction is wrong, recalibrate by moving your phone in a figure-eight motion when your map app suggests it.

The bottom line

Your phone finds its position by listening to time signals from several satellites, converting the travel time into distances and working out where those distances meet. Add Wi-Fi, cell towers and motion sensors, and you get the fast, accurate blue dot we all rely on.

GPSlocationsatellitesmaps