Home / Ciencia y Espacio / Why does it take four satellites to know where you are?

Why does it take four satellites to know where you are?

When the map on your phone pins you to the right stretch of pavement, it has not looked anything up: in a few milliseconds it has solved a system of four equations with four unknowns. Three of them are your coordinates. The fourth is time, and without it the other three are worthless. That is the trick behind GNSS (Global Navigation Satellite System, the umbrella covering GPS, Galileo, GLONASS and BeiDou) and also its weakest point.

A signal that only knows how to say the time

Every satellite continuously broadcasts a pseudorandom sequence, the so-called PRN code, at 1.023 million chips per second on the L1 band at 1,575.42 MHz. It carries no name or address, just a repeated time stamp and, riding on top of it, a 50 bit-per-second navigation message with the satellite’s ephemeris (its exact orbit) and the constellation almanac.

The receiver builds an identical copy of that code and slides it in time until both line up. The offset needed to align them is the signal’s travel time. Correlating a sequence of a million chips per second makes it possible to measure delays in nanoseconds: each nanosecond equals 30 centimetres, because light covers 299,792,458 metres per second.

That measured distance is not the real one. It is called pseudorange precisely because it includes the error of the receiver’s clock, which is a cheap quartz oscillator, not an atomic standard.

The clock problem

A quartz clock in a phone can drift by several microseconds. One microsecond of error becomes 300 metres of false distance. If the receiver tried to triangulate with three satellites using ranges polluted by that error, the computed point would land streets away.

The fix is elegant: treat the clock offset as one more unknown. Four satellites give four equations — three geometrical, one temporal — and four unknowns: latitude, longitude, altitude and the clock error. Solving the system does not just place the receiver, it synchronises it. That is why many industrial systems use GNSS as a time reference before using it as a compass.

Geometry matters as much as satellite count. If the four are bunched in one part of the sky, their range spheres intersect at very shallow angles and the error is amplified. That is dilution of precision, or DOP. In an urban canyon, with buildings blocking half the horizon, DOP explodes and you get position jumps and errors of tens of metres, made worse by multipath: signals bouncing off facades and arriving late.

The clocks that really are exact

On board, each satellite carries rubidium or caesium standards with stability around 10⁻¹³ — one second of drift every few hundred thousand years. Even so, relativity has to be corrected for: orbital speed (about 3.9 km/s) makes the clock lose 7 microseconds a day, while sitting in a weaker gravitational field makes it gain 45. The net balance is +38 microseconds per day, which would amount to some 11 kilometres of error. So the clocks are deliberately built “slow”, tuned to 10.22999999543 MHz instead of 10.23 MHz, and the system corrects the rest in the navigation message.

The atmosphere charges a toll too

The signal crosses the ionosphere, a layer of free electrons that delays it in a frequency-dependent way. With two frequencies — L1 and L5 in GPS, E1 and E5a in Galileo — the receiver measures that differential delay and removes it to first order, which is the real reason modern phones and professional receivers listen on several bands. With a single frequency you must apply models such as Klobuchar’s, which are less accurate. The troposphere, water vapour above all, adds another delay modelled from pressure, temperature and humidity.

From 30 satellites to 30 centimetres

Nominal GPS flies at 20,200 km, in medium orbits of 12 sidereal hours spread over six planes; Galileo at 23,222 km. With more than thirty satellites visible across all constellations, the receiver picks the best and discards low-elevation ones. With code measurements you reach 3-5 metres. To get down to the centimetre you use the carrier phase: the L1 wave is 19 centimetres long and measuring its phase gives millimetre resolution, but it drags along an ambiguity of a whole number of cycles.

Resolving that ambiguity is what RTK (real-time kinematic) does: a base station at known coordinates compares what it sees with what it should see and sends corrections over the internet or radio (the NTRIP protocol). The surveyor’s receiver applies the same error — ionosphere, orbit, clock — and lands within a centimetre. It underpins precision farming, survey drones and machine guidance.

When the sky lies

The system’s weakness is power: by the time the signal reaches the ground it is extremely faint, below the background noise floor. A 30-euro jammer emitting noise on L1 can silence GNSS for kilometres around. More sophisticated is spoofing: broadcasting fake, coherent and stronger signals so the receiver computes an invented position. Since 2022, mass jamming episodes have been documented in conflict zones and on flight routes, with aircraft losing the reference and falling back on inertial navigation.

That is why aviation pairs GNSS with inertial units and is studying alternative PNT (positioning, navigation and timing): terrestrial eLoran, backup onboard clocks and low-orbit constellations with stronger signals. In your pocket, meanwhile, the chip does not listen from scratch: A-GNSS downloads ephemerides over the mobile network to fix a position in seconds and then spends milliwatts holding the lock. A feat of clockmaking, geometry and radio engineering you hardly ever notice — until it fails.