1Broadcast
Each satellite sends who it is, exactly where it is, and the exact time the message left.
See step 1 ↓Interactive guide to the Global Positioning System
Thirty-two satellites circle the Earth twice a day, each carrying atomic clocks and broadcasting the exact time. Your phone listens to a few of them, measures how late each signal arrives, and turns those delays into a position. This page lets you try every step: drag satellites around, switch them off, set your clock wrong and see what breaks.
Drag sideways to turn the globe. Tap anywhere on Earth to stand there.
A teaching model: 32 satellites in six rings tilted 55° to the equator, about 20,200 km up, each going round in 11 h 58 min. The pattern is realistic, but these are not the live positions of today's satellites.
GPS, the Global Positioning System, is a set of satellites, ground stations and receivers that lets anyone on Earth work out their position, speed and the exact time. The United States government owns it, the U.S. Space Force runs it, and anyone can use it for free.
GPS only ever broadcasts. Your phone, car or watch never sends anything back to the satellites. Think of a radio station that never stops reading out the time and its own location: the satellites have no idea who is listening or where they are. Your receiver does all the work.
Each satellite sends who it is, exactly where it is, and the exact time the message left.
See step 1 ↓Your receiver times how long each signal took, about 0.07 seconds. Time × speed of light = distance.
See step 2 ↓Each distance puts you somewhere on a sphere around a satellite. You are where the spheres cross.
See step 3 ↓Your phone's clock isn't perfect, so one extra satellite is used to work out its error. Four in total.
See step 4 ↓A GPS satellite is a very precise clock attached to a radio transmitter. It sends the same kind of message over and over: which satellite it is, exactly when each part of the message left, and exactly where the satellite is in its orbit.
The message repeats every 30 seconds in five 6-second subframes, sent at just 50 bits per second. Every subframe opens with a time stamp, which is what lets your receiver tell exactly when that part of the message left the satellite. Tap a subframe to see what it carries.
The slow message rides on a fast code, and the code rides on a radio wave. Each satellite has its own code, which is how your receiver tells some thirty satellites apart even though they all transmit on the same frequency.
During one data bit (20 ms) the code repeats 20 times and the L1 radio wave completes about 31.5 million cycles. Where data × code changes sign, the wave flips its phase; receivers read those flips.
Each satellite carries several atomic clocks (rubidium, and caesium on some older satellites). Ground control compares them with clocks on the ground and broadcasts tiny corrections, so the time each satellite sends is good to a few billionths of a second. Step 2 shows why that matters: a billionth of a second is 30 cm of distance.
When a signal arrives, your receiver compares the time stamped in it with its own clock. The difference is how long the signal travelled. Radio waves move at the speed of light, 299,792 km every second, so the travel time converts straight into distance.
A satellite low on the horizon is about 5,600 km further away than one straight overhead, so its signal takes about 19 ms longer.
Every satellite repeats its own pattern of 1,023 pluses and minuses, called its code, once every millisecond. It looks like random noise. Your receiver keeps its own copy of each satellite's code and slides it along in time until it lines up with what is coming in. When the two line up, multiplying them gives all pluses and the total jumps. How far the copy had to slide is the delay.
Each chip of code lasts 0.98 microseconds, which is 293 m of light travel. Receivers pin the peak down to around 1% of a chip, so distances come out good to a few metres. The code only measures the delay within one millisecond; the time stamps in the message supply the whole milliseconds. Real receivers also search across frequency, because each satellite's motion shifts its signal by up to a few kilohertz (the Doppler effect).
One distance only tells you that you're somewhere on a huge sphere centred on that satellite. A second satellite's sphere crosses the first in a circle. A third cuts that circle at just two points, and one of them is usually far out in space, so the receiver throws it away. Finding a position from distances like this is called trilateration.
The sandbox below is a flat slice through the real Earth and the real orbit, drawn to scale. In a slice every sphere becomes a circle, so you can watch each step happen.
Drag satellites along the orbit, and drag “You” around the Earth.
| Sat | Status | Travel time | Distance |
|---|
With a keyboard: focus a satellite button and press ← or → to move it along the orbit, or focus the picture and use ← → to move yourself around the Earth.
The satellites carry atomic clocks. Your phone has a quartz clock that can easily be a millisecond out, and every millisecond of error adds 300 km to every distance it measures.
The good news is that the error is the same for every satellite, because it all comes from the one clock in your receiver. So every circle is too big, or too small, by the same amount. The receiver treats that amount as one more unknown and solves for it along with the position. In 3D there are four unknowns (east, north, up and the clock error), so a receiver needs at least four satellites. In the flat slice there is no “up”, so three will do.
Drag satellites and “You”, just as before.
| Sat | Status | Measured time | Measured distance |
|---|
On a cold start a receiver knows nothing: not the time, not where it is, not where any satellite is. The slow part is reading each satellite's orbit data at 50 bits per second. Phones skip most of that wait by downloading the orbits over the mobile network, which is called assisted GPS (A-GPS).
Try each satellite's code at many frequencies until signals appear.
Keep each signal locked and start measuring its timing.
Collect each satellite's orbit from its message. At 50 bits per second this takes 18 to 30 seconds.
With four satellites ready, solve for position and clock error.
Update about once a second, smoothing the dot as more satellites join.
Times are typical and compressed 3× in the animation. Real receivers vary, and a cold start can take several minutes if the receiver also has to collect the full almanac.
Receivers report each fix as a line of text in a standard format called NMEA 0183. The line below is a position near the Royal Observatory in Greenwich. Tap any field to decode it.
Your phone then blends this with its motion sensors, nearby Wi-Fi networks and the road map to keep the dot steady between fixes and when signals drop out.
Every measured distance carries small errors. The biggest usually comes from the ionosphere, the electrically charged upper atmosphere, which slows radio waves by an amount that changes through the day. Signals that bounce off buildings arrive late, and the receiver adds a little electronic noise of its own.
Geometry then multiplies those errors. If the satellites you use are bunched in one part of the sky, small distance errors become big position errors. Receivers sum this up as DOP, the dilution of precision. Lower is better, and under 2 is excellent.
Each dot is one position fix and the newest is the large one. The dashed ring holds 95% of recent fixes. Error sizes follow typical published budgets for a phone-grade receiver; real results vary with the device, the time of day and solar activity.
GPS works only because engineers allow for relativity. The satellites move at about 14,000 km/h, so by special relativity their clocks tick slower than ours by about 7 microseconds a day. They are also much further from Earth's gravity, so by general relativity their clocks tick faster by about 46 microseconds a day. Overall, a satellite clock gains about 38 microseconds every day.
To cancel this, each satellite's clock is set before launch to run at 10.22999999543 MHz instead of 10.23 MHz. In orbit it then ticks at exactly the right rate as seen from the ground.
Different jobs need very different accuracy. A maps app is happy with a few metres, a tractor planting rows needs a couple of centimetres, and earthquake scientists track millimetres. Pick an example to see what it needs and which technique delivers it.
Tap a card to check it.
GPS is one of several satellite navigation systems, known together as GNSS (global navigation satellite systems). Most phones made in the last few years listen to several at once. More satellites in view means a faster, steadier fix, especially between tall buildings.
The first to reach full service, in 1995. Run by the U.S. Space Force.
Developed alongside GPS. Most phones use it as a second system.
Under civilian control, with a free high-accuracy service.
Global since 2020. It can also carry short text messages in its home region.
Covers India and about 1,500 km beyond its borders.
Its satellites loop high over Japan, which helps between tall buildings.
Regional augmentation systems (SBAS) broadcast corrections on top of GPS: WAAS in North America, EGNOS in Europe, GAGAN in India and MSAS in Japan, among others.