Engineering · Interactive demo

How does GPS know where you are?

Drag satellites into view and watch their timed signals shrink your phone's position to a single point.

Created by ExplainerTools.

About this explainer

Made by
ExplainerTools
Format
Interactive demo
Subject
Engineering
Where it runs
Plays here
Full tool
Open the tool page
Published
Added to collection
  • GPS
  • satellites
  • trilateration
  • clock error

How the model works

1 See

Your phone never sends a thing to the satellites. It only listens. So how does it end up as one blue dot on a map?

2 Change
  • Satellites in view1 → 4
  • Phone clock error10 ns → 10 ms

Presets One satellite3 satellites · clock 5 ms offOff by 1 µs · 300 m4 satellites · clock solved

Model · 2D slice of a 3D fix

A flat two-dimensional slice through Earth's center with the phone's clock error drawn as a band, leaving out ionosphere delays, orbit errors and relativity.

Model notes and sources

Model. A 2D slice through Earth’s centre, you and the satellites. Earth’s radius is 6,371 km and GPS satellites orbit about 20,200 km up, so the orbit circle has a radius of 26,571 km; Earth, the orbit and every distance are drawn to scale (the satellite pictures are not). Each satellite broadcasts the time from its atomic clock. The phone notes when the signal arrives, and the delay Δt gives the distance d = c·Δt, with c = 299,792 km/s. Straight overhead that is 20,200 km ÷ c ≈ 0.067 s (67 ms); a satellite near the horizon is about 25,800 km away, ≈ 0.086 s. Your distance from one satellite puts you on a sphere around it (a circle in this slice).

Why four. The phone measures every delay with its own cheap quartz clock. If that clock is off by b, every distance is off by the same c·b: these “pseudoranges” are ρi = |si − x| + c·b. In 3D there are four unknowns (x, y, z and b), so the phone needs four satellites. Two spheres meet in a circle and three meet in two points, one of them far out in space, which is ruled out; the fourth satellite pins down the clock. The tool draws the unknown clock error as a band of ±c·b around each distance circle; the yellow blob is where all the bands overlap. In a flat slice three circles could already solve the clock, so the slice stands in for the 3D count rather than proving it. With four satellites the clock is solved, and the error left is set to about 5 m, the typical accuracy of a phone under open sky. 1 µs × c = 299.8 m, which is where “300 meters” comes from.

Fixed values. The film’s phone clock starts 5 ms off (illustrative) and the signals are shown in slow motion, about 32× slower than light. The map on the phone is an AI-generated illustration; its scale (about 800 m across the screen) comes from the scale bar we drew, not from a real city. The photos (the city at blue hour, the phone, Earth and the satellite) are AI-generated illustrations; every number comes from the model.

Not modeled. Signal delays in the ionosphere and troposphere; satellite orbit and clock errors (corrected with broadcast data); relativity (the satellite clocks are set to tick slower before launch, because in orbit they gain about 38 µs a day); Earth’s rotation during the signal’s trip; reflections off buildings; receiver noise; and how the satellites’ spread in the sky multiplies the errors (dilution of precision). Phones only receive GPS signals; many also download help over the cell network to find the satellites faster, but nothing is sent to the satellites.

Sources: GPS.gov archive, Space Segment (orbit altitude about 20,200 km); GPS.gov archive, GPS Accuracy (smartphones about 4.9 m under open sky); Global Positioning System; GNSS positioning calculation; Error analysis for the Global Positioning System.

An ExplainerTools Original.

Watch it move

See how the world works.

Explore interactive ideas in space, science, math, and more. Try a demo, read an interactive article, watch a short video, and follow what makes you curious.

Find your next rabbit hole

New Originals

Change one thing and see why.

The three newest models, each with a short film. Watch the question, then play with the answer.

All Originals

Follow your curiosity

A collection of small doors into big ideas.

Format

Subject

Topic

Sort by

Rankings count activity here on ExplainerTools. Newest means added to this collection.

Loading collection…

Opening the collection…

Make something click.

Made an explainer, or found one you love? Give it a place in the collection.

Your next question

What do you wish someone would explain?

Send one question. If it becomes an ExplainerTools Original, you can hear when it is ready.

One weekly email with new explainers. We send a confirmation link first, and you can unsubscribe at any time.

We save your question, your email if you add one, and whether you asked to subscribe. Privacy

Share something worth understanding.

An interactive demo, an interactive article, or an educational video. Every suggestion is reviewed before it joins the collection.

Submit the creator’s original link. We credit creators and link to their work.

A collection for the curious.

ExplainerTools collects interactive explainers, visual essays, and educational videos that help an idea make sense. Browse by subject, follow a topic, or find a creator whose way of explaining speaks to you.

The work belongs to its creators.

Every entry credits its original creator. Supported experiences play here, with a link to the creator’s original work available in the player. Inclusion does not imply a partnership or endorsement.

How rankings work

Views, likes, and bookmarks count activity on ExplainerTools. They don’t include views or likes from a creator’s website or social accounts. Newest means most recently added to this collection. Ties are ordered by date added, then our curated catalog order.

Your collection

New likes and bookmarks require a free account and sync across devices when sign-in is available. Previously saved items from this browser may remain visible here.

Browse the catalog data or read about privacy.