Every time a phone shows a blue dot on a map, it is doing a piece of orbital maths. The Global Positioning System, or GPS, works out where you are by timing radio signals from satellites about 20,200 kilometres above Earth. The satellites tell the receiver where they are and exactly when each signal left. The receiver measures how long each signal took to arrive, turns that time into a distance, and finds the one point on Earth that fits all the distances. The whole calculation takes a fraction of a second, and it works anywhere on the planet with a clear view of the sky.

GPS began as a military project. The first satellite launched in 1978, and the system reached full operation in 1995. It is owned by the United States government and operated by the US Space Force, and it is free for anyone to use. Civilian signals were deliberately degraded for a time by a feature called Selective Availability, which the government ended in May 2000. Since then, civilian accuracy has improved steadily, and GPS now sits inside phones, cars, aircraft, farm tractors, ships and bank networks, where it keeps computer clocks in step as well as guiding people.

The constellation above you

The baseline GPS design uses 24 satellite slots spread across six orbital planes, each tilted 55 degrees to the equator. The satellites fly in medium Earth orbit at about 20,200 kilometres and circle the planet twice a day. The Space Force commits to keeping at least 24 working satellites in orbit, and the real count is usually higher: GPS.gov counted 31 operational satellites in July 2023. With that many satellites in the sky, at least four are in view almost anywhere on Earth, which is the minimum a receiver needs for a full fix.

Each satellite carries atomic clocks, the most accurate timekeepers ever flown. A GPS atomic clock loses or gains only a few billionths of a second a day, and the satellites broadcast their signals timed to those clocks. Ground stations track the satellites, measure their orbits, and upload corrections, so each satellite knows its own position to within a few metres. The system has three parts: the space segment of satellites, the control segment of ground stations, and the user segment of receivers in phones, cars and aircraft.

GPS is only one of several such systems. Russia runs GLONASS, the European Union runs Galileo, China runs BeiDou, and Japan and India run regional systems. Most modern phones listen to several of them at once. The general name for all of them is GNSS, global navigation satellite systems, and they all use the same basic idea.

Trilateration: position from distances

The core idea is called trilateration, which means finding a position from distances to known points. GPS.gov explains it with a simple formula: distance equals rate multiplied by time. The rate is the speed of the radio signal, which is the speed of light, 299,792,458 metres per second. The time is how long the signal took to travel from the satellite to the receiver. Multiply the two and you have the distance.

A satellite straight overhead is about 20,200 kilometres away, and its signal takes about 0.067 seconds to reach the ground. One distance puts the receiver somewhere on the surface of a giant sphere centred on that satellite. A second distance gives a second sphere, and the two spheres cross in a circle. A third sphere crosses that circle at two points, one of which is usually far out in space or deep inside the Earth, so it can be thrown out. In principle, three satellites are enough to fix a position in three dimensions.

In practice, a fourth satellite is needed, because the receiver's own clock is cheap and wrong. A phone clock can be off by a millisecond, and a millisecond of error at the speed of light means a distance error of about 300 kilometres. The satellites carry atomic clocks, but the phone does not. The measurement from a fourth satellite gives the receiver an extra equation, which lets it solve for its own clock error along with its latitude, longitude and height. That is why GPS needs at least four satellites in view, and why more satellites give a better fix.

Why Einstein matters to your map

GPS is one of the few everyday systems where Einstein's theory of relativity shows up in the bill. The satellites move fast, about 14,000 kilometres per hour, and they sit far above Earth's gravity, and both effects change how fast their clocks run. Special relativity says a moving clock runs slow, and general relativity says a clock in weaker gravity runs fast. For GPS the gravity effect wins, and the satellite clocks run fast by about 38 microseconds a day relative to clocks on the ground.

That sounds tiny, and it is. A microsecond of error means about 300 metres of position error, so 38 microseconds a day would mean positions drifting by more than 10 kilometres a day if nobody corrected for it. The system does correct for it: the satellite clocks are set to run slightly slow before launch, and the ground control segment uploads further corrections. Without that correction, GPS would be useless within a day. It is a neat reminder that the maths behind a phone map reaches into the deepest parts of physics.

What limits accuracy, and what comes next

A phone in the open typically fixes its position to within a few metres. Buildings, trees and mountains can block signals or bounce them, which makes the timing wrong and the position jump. This is called multipath, and it is the main reason a blue dot wanders in a city street between tall buildings. Weather has little effect, because the GPS frequencies pass through clouds and rain with almost no delay. The ionosphere, a layer of charged particles high above Earth, does slow the signals slightly, and receivers correct for it by comparing two frequencies.

Newer signals are making GPS better. The newest satellites, called GPS III, transmit a civil signal named L1C, which is designed to work with Galileo and other systems, and a stronger military signal. Receivers that listen to several systems at once, using GPS, Galileo, GLONASS and BeiDou together, can fix a position faster and hold it in places where one system alone would struggle. That is already normal in a modern phone, which often tracks 20 or more satellites at once.

The same timing that guides a phone also keeps the modern world in step. Power grids, mobile networks, stock exchanges and bank systems use GPS time to stamp events and keep their clocks aligned. A timing error of a microsecond can matter to a power grid or a trading system, so GPS has become infrastructure as much as a navigation aid. That is why governments protect the signals and why several countries built their own systems: no country wants its transport, power and finance to depend on another country's satellites alone.

For the reader, the practical advice is simple. Give the receiver a clear view of the sky, wait a few seconds for the first fix, and remember that a blue dot is a calculation, not a fact. In the open it will be right to within a few metres. Between tall buildings it may wander, and indoors it may fail altogether, because the signals are faint by the time they reach the ground. When the dot jumps, the satellites have not moved. The receiver has lost one of its four measurements, and the maths has one equation too few.