Everyday techExhibit 17

How does GPS work?

GPS satellites do not track your phone and cannot hear it. Each one broadcasts the time and its own position. Your phone measures how late each signal arrives, turns the delays into distances, and solves for where it must be. It needs one more satellite than you would expect, because the extra one corrects the phone's own clock.

Try it: find the receiver

This is a flat slice of sky, so three satellites play the role that four play in real life. Drag the phone along the ground. Then make its clock wrong, switch satellites off, and choose whether the phone trusts its clock or solves for it.

Where the phone thinks it is
exact

A simplified flat model with satellites at real GPS height (20,200 km) and no atmosphere or buildings. Light covers about 300 metres in a millionth of a second, so tiny clock errors become large distance errors. The circles are drawn with the clock error exaggerated so you can see it.

The video for this exhibit comes out on YouTube on Friday 1 January. Subscribe so you don’t miss it

Clocks in the sky

About 30 working GPS satellites circle the Earth twice a day at a height of 20,200 km. Each carries atomic clocks and broadcasts two things: exactly what time it is and exactly where the satellite is. Your phone only listens. The signal travels at the speed of light and arrives about 70 thousandths of a second late. Multiply that delay by the speed of light and you get your distance to the satellite.

Three distances, one place

One distance puts you somewhere on a huge sphere around that satellite. A second sphere crosses the first in a circle. A third cuts the circle down to two points, and only one of them is near the ground. So three satellites should be enough.

The cheap clock problem

They are not, because of the clock in your phone. Light covers 300 metres in a millionth of a second, so a clock that is wrong by a millionth of a second makes every distance wrong by 300 metres, and a phone's clock is far worse than that. The fix is a fourth satellite. The clock error is the same for every satellite, so it becomes one more unknown next to the three for position: four satellites, four unknowns. The phone solves for where it is and for exactly what time it is.

What we measured

We built a small solver and fed it pretend satellites at real GPS height. With the clock wrong by a full thousandth of a second (300 km of error) and four satellites, it still found the exact spot. Trusting the clock, with three satellites and an error of only a millionth of a second, the answer landed about 500 metres away in our layout, most of it in height. With timing noise of 10 billionths of a second, the typical miss on the ground was about 4 metres with four satellites and about 2.5 with eight. That is one pretend sky with no atmosphere and no buildings. The US government's GPS site says phones are typically good to about 5 metres under open sky.

Frequently asked questions

Does GPS track my phone?

GPS itself does not. The satellites only broadcast; your phone works out its own position. Apps on the phone can then share that position over the internet, which is a separate thing you control in the phone's settings.

Why does GPS need four satellites?

Three would be enough if your phone had a perfect clock. It does not, so the phone treats its clock error as a fourth unknown and needs a fourth satellite to solve for it.

Why is GPS worse between tall buildings?

Buildings block some satellites and reflect the signals of others, so the delays the phone measures are wrong. The atmosphere also slows the signals slightly.

Sources

Last updated

Keep exploring