Where Am I?

Your phone can find itself anywhere on Earth, to within a few metres, by listening to satellites it cannot see. Their signal arrives weaker than the noise around it. Follow one from orbit to the blue dot on your map.

Stop 1 of 8

Twenty thousand kilometres up

Open a map on your phone and a blue dot shows where you are. Your phone worked that out by listening to satellites. It never sends them anything.

Those satellites are a long way up. Pick one to see how high, drawn to scale.

Height

20,189 km

Radio takes

67.3 ms

One lap takes

12.0 hours

A millisecond (ms) is a thousandth of a second. The time is for a satellite straight overhead.

Twice round the world, every day

A GPS satellite moves at about 13,900 km/h. At that height one lap takes about 12 hours.

Stop 2 of 8

Clocks in the sky

About 31 GPS satellites circle the Earth. Each one carries very precise atomic clocks. All day, each one says the same three things by radio: who it is, where it is, and what time it is.

They are spread out so that your phone can almost always hear at least four. This is the sky as your phone sees it. The middle is straight up. The edge is the horizon.

NESW

Satellites in view

7

Needed for a fix

4

Grey dots are within 5° of the horizon, where hills and buildings usually hide them.

Nobody is aiming at you

The satellites do not know you exist. They shout the time at the whole side of the Earth below them, and any number of phones can listen at once.
How we drew this sky

This is a tidy pattern of 24 satellites: six orbits, four in each, evenly spaced and tilted 55° to the equator. The real satellites are not evenly spaced, and there are a few spares, so the real sky will not match dot for dot.

Even this tidy pattern always shows at least four satellites, from every latitude, all day. A test checks that.

Stop 3 of 8

A light bulb, heard from space

A GPS satellite sends its signal with about 27 watts. That is less than an old light bulb. And it does not aim at you. Its antenna spreads the signal over the whole face of the Earth, which looks about 28° wide from up there.

By the time the signal lands it is spread very thin. Move the satellite across your sky and see how far the signal has to come.

Distance

25,235 km

Radio takes

84.2 ms

Lost by spreading out

184.4 dB

How strong is it when it lands?

Leaving the satellite: 27 W44.3 dBm

The hiss in the slice of radio GPS uses−110.9 dBm

GPS, arriving at your phone−128.5 dBm

Voyager 1, arriving at a 70 m dish−154.4 dBm

Each step of 10 dB is ten times weaker. The GPS bar is shorter than the hiss bar: the signal lands quieter than the noise around it.

About a tenth of a millionth of a billionth of a watt

That is 1.4 × 10⁻¹⁶ W, the least the GPS rulebook promises on the ground. It is still far more than Voyager’s whisper. But Voyager gets a 70 m dish. GPS gets an antenna smaller than your fingernail.
How we got these numbers

The promise is in the GPS rulebook (the interface specification, IS-GPS-200): at least −158.5 dBW, which is −128.5 dBm, measured near the ground with a small standard antenna (3 dBi, turned the worst way), for a satellite more than 5° above the horizon.

Our own sum roughly agrees. 27 W is 44.3 dBm. The antenna adds about 13.4 dB by aiming at the Earth instead of everywhere. Spreading out takes away 184.4 dB from near the horizon. That leaves −126.7 dBm before small losses in the satellite’s cables and the air, close to the promise. The same sums are in the link budget lesson.

The 27 W and 13.4 dB are typical figures. Real satellites differ by model, and most land a little more power than the promise.

Stop 4 of 8

Hidden under the hiss

Everything warm makes a little radio noise, a hiss (see the noise lesson). In the slice of radio that GPS uses, that hiss is about 58 times stronger than the GPS signal. Look at what your phone’s antenna picks up and you see only hiss.

What the antenna hears

Grey: hiss and signal together. Violet: three satellites’ signals alone, at their true size.

So how does the phone find it? Every satellite flips its signal in its own fixed pattern: 1,023 steps, each one up or down, repeated 1,000 times a second. Your phone knows every satellite’s pattern.

The phone slides its own copy of one pattern along what it hears. Where the copy lines up, all the steps agree and add together. Hiss has no pattern, so it mostly cancels itself out. Listen longer and the match grows.

Left to right: every amount the pattern could be late, across one millisecond. Up: how well the copy lines up. Above the dashed line counts as found.

Tallest spike (hiss = 1)

5.4

Found?

No

Pattern arrives late by

unknown

Not sure yet. Listen for longer.

Everyone talks at once

All the satellites use the same frequency at the same time. The patterns are picked so that no two ever line up with each other. The phone pulls each satellite out by its pattern alone.
How we got these numbers

GPS fills a band about 2 MHz wide. A perfect room-temperature receiver hisses at −110.9 dBm in a band that wide. The signal is −128.5 dBm, so it sits 17.6 dB under the hiss.

Lining up the pattern for 1 ms lifts it to 15.5 dB above the hiss. For 20 ms it is 28.5 dB. Listening for longer works like narrowing the band: less hiss gets in. Real GPS also flips the whole pattern 50 times a second to carry its message, so a phone can only add up 20 ms in one go if it stays inside one of those bits. Our demo leaves the message out.

The patterns here are the real ones (GPS calls them C/A codes), built the way the rulebook says. The hiss is made up, but at the true strength. A real phone also has to hunt for each satellite’s frequency, which shifts a little as the satellite moves.

The pattern repeats every millisecond, and radio covers about 300 km in that time. So the pattern gives only the last part of the delay. The time stamp in the satellite’s message gives the rest.

Stop 5 of 8

Late means far

Radio always travels at the same speed: the speed of light. So if you know how long a signal took, you know how far it came.

The satellite stamps its signal with the time it left. Your phone notes the time it arrived. The gap is between 67 and 86 thousandths of a second. Times the speed of light, that is the distance.

Light is very fast, so the timing must be very good. How far out is the distance if the timing is a little wrong?

The distance is wrong by

30 cm

About the length of a ruler.

The pattern is the ruler

One step of the pattern lasts about a millionth of a second, which is 293 m of travel. Lining up the copy tells the phone when the signal arrived, far more finely than one step. That spike you found in the last step is the phone’s stopwatch.

Stop 6 of 8

Circles and a cheap clock

One distance puts you somewhere on a circle around that satellite. Two circles cross in two places. Three meet at one spot. That spot is you.

There is a catch. The satellites have atomic clocks. Your phone has a cheap one, and it is always a little wrong. Every distance comes out wrong by the same amount, and the circles stop meeting.

Do the circles meet?

No

Clock mistake the phone found

not looking

Squares are satellites. The dot is where you really are. This is a flat sketch: real satellites are overhead, and the circles are really spheres.

The phone’s trick: it does not trust its own clock at all. It asks, “what one clock mistake would make all the circles meet?” Only one answer works. That gives your place and the right time together.

On this flat map, three satellites are enough. In the real world you also have a height, so the phone needs four.

A free atomic clock

Once the phone has solved this, its cheap clock is set by atomic clocks in space. Phone networks, power grids and banks use GPS this way, just to know the time.
How the phone solves it

There are three unknowns on the flat map: left-right, up-down and the clock mistake. Three measured distances give three sums, just enough. The page solves them by guessing, checking how far off the guess is, and stepping closer (Newton’s method). A real phone does the same with four unknowns.

Stop 7 of 8

Einstein’s 38 millionths

Here is the strange part. A clock on a satellite does not tick at the same rate as a clock on the ground. Einstein worked out why, decades before the first satellite flew.

The satellite moves fast, about 3.9 km every second. Moving clocks tick slower. But it is also high up, where Earth’s gravity is weaker, and clocks in weaker gravity tick faster. The second effect wins.

From moving fast

−7.2 µs a day

From being high up

+45.7 µs a day

Together

+38.5 µs a day

A µs is a millionth of a second. Plus means the satellite’s clock runs ahead of one on the ground.

How wrong each distance has become0.0 km

The clocks stay in step. The distances stay right.

A clock built to run slow

The fix is simple. Before launch, each satellite’s clock is set to tick a tiny bit slow: 10.22999999543 million ticks a second instead of 10.23 million. Once it is in orbit, Einstein’s two effects speed it up to very nearly the right rate.
How we got these numbers

Both effects come from the satellite’s speed and height, which come from its orbit. Our total agrees with the clock offset in the GPS rulebook to within 1%.

The kilometres are how far out each measured distance would be, checked against a clock on the ground. Every satellite drifts the same way, so a real phone would hide most of it inside its own clock fix (the last step). But GPS time would run away from time on the ground, and the people who run GPS would have to keep pulling it back. Building the correction into the clocks is simpler.

Stop 8 of 8

The blue dot

Put it all together. This happens again and again, many times a second, for every satellite in view.

  1. 0 msA satellite says the time
  2. 72 msThe signal lands, quieter than the hiss
  3. MatchYour phone lines up the pattern
  4. SolveFour distances, one clock fix
  5. DotThe blue dot appears

Ready when you are.

Under open sky, a phone’s dot is usually within about 5 m of where you really are (the US government’s GPS site gives 4.9 m). Tall buildings and trees make it worse, because they block satellites and bounce their signals.

All of that from a signal weaker than the hiss, sent by a satellite that has no idea you are there.

Where to next

The sums behind a faint signal are in the link budget lesson and the noise lesson. For a signal from much further away, follow a whisper from Voyager.