WikiNano.
How GPS Works

Interactive guide to the Global Positioning System

How GPS finds you

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.

Live model · the GPS constellation Model clock 06:00 UTC

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.

Start hereThe basics

What GPS is

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.

The whole idea in four steps

1Broadcast

Each satellite sends who it is, exactly where it is, and the exact time the message left.

See step 1 ↓

2Measure

Your receiver times how long each signal took, about 0.07 seconds. Time × speed of light = distance.

See step 2 ↓

3Locate

Each distance puts you somewhere on a sphere around a satellite. You are where the spheres cross.

See step 3 ↓

4Fix the clock

Your phone's clock isn't perfect, so one extra satellite is used to work out its error. Four in total.

See step 4 ↓

Three parts working together

Diagram · the three segments
User segment Control segment Space segment
  • 32 working satellites (as of September 2026) fly in six orbital rings, each tilted 55° to the equator. The design keeps at least four in view from virtually anywhere on Earth.
  • Each orbits about 20,200 km up and goes round once every 11 hours 58 minutes, moving at about 3.9 km per second.
  • Each carries several atomic clocks and transmits on more than one frequency, including L1 (1575.42 MHz), L2 (1227.60 MHz) and L5 (1176.45 MHz).
  • The first satellite launched in 1978. The full system was declared operational in 1995.

GPS in numbers

32
working satellites in orbit (September 2026)
20,200km
height of the orbits above the ground
11h 58min
per orbit, so two laps every day
0.07s
for a signal to reach you
4
satellites needed for a 3D position
4.9m
typical phone accuracy under open sky
Step1Broadcast

Every satellite broadcasts the time and where it is

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.

How the signal is built

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.

Diagram · three layers in one signalNot to scale

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.

Why atomic clocks

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.

Step2Measure

Time the trip, get the 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.

Sandbox · signal travel timeDrawn to scale · slowed 40×
Travel time 67.35 ms

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.

Sandbox · what if the timing is off?1 ns = 30 cm
Distance error 300 m about three football pitches

How the receiver spots the time stamp

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.

Lab · matching the codeSatellite G07
Match
0%
Listen for

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).

Step3Locate

Each distance draws a circle. You are where they cross.

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.

Sandbox · a slice through Earth, to scale–

Drag satellites along the orbit, and drag “You” around the Earth.

SatStatusTravel timeDistance
  1. Switch off S2 and S3. With one satellite you could be anywhere on its circle.
  2. Switch S2 back on. Two circles cross at two points, and only one is on the ground.
  3. Switch S3 on. Three circles meet at one point: you.
  4. Drag a satellite below your horizon line. Earth blocks it, so it can't help.
  5. Press Hide my position, then tap where the circles say you are.

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.

Step4Fix the clock

One more satellite cancels your clock error

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.

Sandbox · a receiver with a cheap clock–

Drag satellites and “You”, just as before.

SatStatusMeasured timeMeasured distance
  1. Look at the circles: they no longer meet. Each one is 3,600 km too big.
  2. Press Solve for clock error. Every circle shrinks by the same amount until they meet.
  3. Switch S3 off. Two satellites can't pin down both position and clock.
  4. Turn on S4 too. Extra satellites don't hurt; real receivers use every one they can.
All togetherFirst fix

From switch-on to your dot on the map

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).

Simulation · time to first fix
  1. 01
    Search

    Try each satellite's code at many frequencies until signals appear.

  2. 02
    Lock on

    Keep each signal locked and start measuring its timing.

  3. 03
    Read orbit data

    Collect each satellite's orbit from its message. At 50 bits per second this takes 18 to 30 seconds.

  4. 04
    Solve

    With four satellites ready, solve for position and clock error.

  5. 05
    Track

    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.

What the receiver hands to your app

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.

Decoder · one GGA sentenceChecksum OK

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.

How good is itAccuracy

Why your dot wobbles

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.

Lab · accuracy
Your sky · drag satellites to move them
Signal strength (dB-Hz)
Position fixes around the true spot
Fix
–
HDOP
–
Horizontal, 95%
–
Vertical, 95%
–

Error sources · tap to switch off
Corrections · tap to switch on

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.

PhysicsRelativity

Einstein, corrected every day

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.

Sandbox · switch off the correction11.6 km off
Gravity (general rel.)+45.7 µs
Speed (special rel.)−7.1 µs
Net clock drift+38.6 µs

5 km 10 km drift in measured distance
In the real worldUses

Where GPS works for you

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.

Chart · accuracy needed vs. what each technique deliversNeeds about 5 m
Clearing upMyths

Six things people get wrong about GPS

Tap a card to check it.

The familyGNSS

GPS has company

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.

GPSUnited States · global

The first to reach full service, in 1995. Run by the U.S. Space Force.

GLONASSRussia · global

Developed alongside GPS. Most phones use it as a second system.

GalileoEuropean Union · global

Under civilian control, with a free high-accuracy service.

BeiDouChina · global

Global since 2020. It can also carry short text messages in its home region.

NavICIndia · regional

Covers India and about 1,500 km beyond its borders.

QZSSJapan · regional

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.

Test yourselfQuiz

Check what stuck

0 / 6Answer the six questions below.
ReferenceGlossary

Terms used on this page

A-GPS
Assisted GPS. The phone downloads satellite orbits and rough time and position over the mobile network, so it gets a fix in seconds.
Almanac
Rough orbits of every satellite. Used to work out which satellites should be in view. A full copy takes 12.5 minutes to receive.
C/A code
Coarse/acquisition code: the 1,023-chip pattern each satellite repeats every millisecond on L1. Each satellite has its own.
C/N0
Carrier-to-noise density, the usual measure of signal strength, in dB-Hz. Around 40–50 outdoors; below about 30 is weak.
Clock bias
How far the receiver's clock is from GPS time. Solved for alongside position, which is why four satellites are needed.
DOP
Dilution of precision. A number that says how much satellite geometry magnifies measurement errors. HDOP is horizontal, VDOP vertical, PDOP both.
Ephemeris
The precise orbit of one satellite, sent in its own message and refreshed every two hours.
GNSS
Global navigation satellite system: the general term covering GPS, Galileo, BeiDou, GLONASS and others.
Ionosphere
The electrically charged upper atmosphere. It delays GPS signals by a few metres to tens of metres depending on time of day and the Sun.
L1, L2, L5
The main GPS radio frequencies: 1575.42, 1227.60 and 1176.45 MHz.
Multipath
A signal reaching the antenna by more than one path, for example straight and bounced off a building. The late copy distorts the timing.
NMEA 0183
A standard text format receivers use to report position, time and fix quality.
Pseudorange
The distance a receiver measures to a satellite, including its own clock error. “Pseudo” because it isn't the true range until the clock error is removed.
RTK
Real-time kinematic positioning. Uses a nearby base station and the radio wave's phase to reach about 2 cm.
SBAS
Satellite-based augmentation system, such as WAAS, EGNOS or GAGAN. Broadcasts corrections and integrity warnings for a region.
Trilateration
Working out a position from distances to known points. GPS uses distances to satellites.
TTFF
Time to first fix: how long a receiver takes from switch-on to its first position.
WGS 84
The model of the Earth's shape that GPS coordinates refer to.

About How GPS Works

An interactive guide to how GPS works: a live satellite constellation, trilateration sandboxes, a code-matching lab, an accuracy lab, relativity and real-world uses.

Topic: Global Positioning System · Format: interactive simulation · Free, no sign-up · Updated 2026-10-15 · By Prince Vincent, WikiNano · Last reviewed 2026-10-15.

Inside this page

Common questions

How does GPS find my position?
A receiver measures its distance from at least four satellites using the time radio signals take to arrive, then works out where those distances meet.
Why does GPS need atomic clocks?
A tiny timing error of a billionth of a second equals about 30 cm of position error, so satellites carry very precise clocks.
Does GPS work without internet?
Yes. GPS receivers only need signals from satellites. Internet is used only for maps and extra data.

Sources and further reading

Keep exploring