Skip to the explanation
In your pocket
Choose language, current: English

How does your phone know where you are?

You open a map app, and right away there's a dot exactly where you are. Even in the middle of a field, with no signs and no Wi-Fi. Nobody told your phone where you are. So how does it know?

The short answer

High above the Earth, satellites fly around with very precise clocks. They keep sending out a signal with the time and their own location. Your phone measures how long each signal was on its way and turns that into a distance. Using the distances to at least four satellites, it works out where you are.

About 5 minutes to read, plus two things to try yourself.

1. Satellites high above you

A satellite is a device that flies in an orbit around the Earth. An orbit is a fixed route, going around and around the Earth. GPS is a system of more than 30 of these satellites, built by the United States. GPS stands for Global Positioning System: a system for finding your location anywhere in the world.

The GPS satellites fly at a height of about 20,200 kilometers. That's more than one and a half times the width of the whole Earth. Each satellite goes around the Earth twice a day. They're spread out so that from almost anywhere on Earth, you always have at least four of them above the horizon.

GPS isn't the only system. Europe has Galileo, Russia has GLONASS and China has BeiDou. Most phones listen to all of these systems at the same time. That gives them more satellites to calculate with.

2. They keep calling out the time

Every satellite has atomic clocks inside. A clock like that measures time using the vibrations in atoms: the tiny particles that everything is made of. An atomic clock is incredibly precise, much more precise than the clock in your phone.

Each satellite keeps sending out a signal: a message through the air. It says exactly what time it was when the signal left, and where the satellite was at that moment. It's as if the satellite keeps calling out: “I'm satellite 12, I'm right here, and right now it's exactly this time.”

Your phone only listens. It doesn't send anything back to the satellite. So the satellites don't know where you are. An app on your phone can send your location over the internet, though, for example when you share your location with a friend.

3. Time becomes distance

The signal is a radio wave: an invisible wave, just like with Wi-Fi or the radio. Radio waves are related to light and travel just as fast. That speed is called the speed of light: almost 300,000 kilometers per second. At that speed, you'd go around the Earth more than seven times in one second.

Your phone compares the time in the signal with its own clock. The difference tells it how long the signal was on its way. That's about 0.07 seconds, less than a tenth of a second. The longer the trip, the farther away the satellite is. Because the signal is so fast, your phone has to measure very precisely. A difference of just one thousandth of a second already means 300 kilometers!

Try it yourself: press “Send signal” and watch the signal travel to your phone in slow motion. Keep an eye on the time and the distance. Then choose a satellite that's low in the sky. How long does the signal take now?

A signal travels from a satellite to your phone A side view. At the bottom, the Earth with a phone. At the top, a satellite at a height of 20,200 kilometers. A yellow dot is the signal traveling from the satellite to the phone. A satellite low in the sky is farther away, at about 25,800 kilometers. Earth 20,200 km satellite your phone

Where is the satellite?

Travel time
0.0
thousandths of a second
Distance
0
kilometers

Not to scale: the Earth and the satellite are drawn way too big. Here, time runs 60 times slower than in real life. In real life, the signal reaches you in less than a tenth of a second. Every thousandth of a second, it travels almost 300 kilometers.

With JavaScript on, you can send a signal yourself here and watch it travel to your phone in slow motion. If the satellite is right above you, the signal takes about 67 thousandths of a second to cover 20,200 kilometers. If it's low in the sky, it's farther away: about 25,800 kilometers, and the signal takes about 86 thousandths of a second.

4. Where the circles cross

If your phone knows how far away one satellite is, it still doesn't know where you are. You could be anywhere on a circle around that satellite, with that distance as its radius. In real life it's a sphere, like a giant balloon around the satellite, but on a map a circle is easier.

With two satellites, you get two circles. They cross each other at two places. A third circle goes through only one of those two places: that's where you are. A spot like that, where lines or circles cross, is called an intersection point.

There's one problem, though. The clock in your phone is nowhere near as precise as an atomic clock. If it's a thousandth of a second fast, every distance seems 300 kilometers too big. That's why your phone uses one extra satellite. With four distances, it works out not only your location, but also how far off its own clock is.

Experiment: play GPS on paper. Do this together with an adult. You need a compass (the kind for drawing circles), a ruler and a map or graph paper. Have someone secretly pick a spot and draw three “satellites.” They measure the distance from each satellite to the secret spot and tell you only those distances. Now open the compass to that distance, put its point on a satellite and draw a circle. Do that for all three. Where do the three circles meet?

Careful: the point of a compass is sharp. Only poke it into the paper, never toward anyone. Don't let younger children use the compass.

Try it yourself: drag the dot to the spot where all the circles meet, or move it with the arrow buttons. Also see what happens with one or two satellites. Then set the phone's clock a thousandth of a second off. What happens to the circles? And what does a fourth satellite do?

A map 1,000 kilometers wide with a grid. On the map are three satellites, each with a purple circle: all the places at the measured distance from that satellite. You move a dot. A circle gets thicker when the dot is on it. At the spot where all the circles meet, the dot turns yellow. 1 2 3 100 km

How many satellites can your phone pick up?

Move the dot

Every distance is exactly right.

A simple model on a flat map. In real life, the satellites are more than 20,000 kilometers up in space, and the circles are spheres. A flat map has no height, so here the phone could work out the clock error with just three satellites. In real space, where height counts too, it needs four: three for the location and a fourth for the clock.

With JavaScript on, you can slide a dot across the map yourself and look for the spot where the circles meet. In the picture, the yellow dot is already in the right spot: that's where all three circles meet. If the phone's clock is a thousandth of a second fast, the radius of each circle gets 300 kilometers bigger, and the circles no longer meet in a single point anywhere. With a fourth satellite, the phone works out that clock error and the circles fit again.

5. Why it sometimes goes wrong

Outside, with a clear view of the sky, a phone usually knows where you are to within a few meters. But the signals come from very far away and are very weak. Inside a building or in a tunnel, they hardly get through. Between tall buildings, they bounce off walls before they reach you. Then they take a detour, and the satellite seems farther away than it really is. That's why your dot sometimes jumps to the other side of the street.

So your phone helps itself out. It checks which Wi-Fi networks and cell towers are nearby. A cell tower is a tall pole with antennas for the cell phone network. The locations of lots of Wi-Fi networks and cell towers are already known. And over the internet, your phone gets data about where the satellites are right now. That way, it finds your location much faster after you turn it on.

GPS is really a clock: your phone measures how much time each signal took to arrive, and only one spot fits all the distances that come from that.

Did you know?

GPS used to be less accurate on purpose

GPS was built by the US military. Until May 2000, the military made the signal less accurate on purpose for ordinary users. Your location could be off by as much as 100 meters. Then President Bill Clinton decided to stop doing that. Since then, anyone can see where they are to within a few meters.

One second in three million years

The best atomic clocks in the European Galileo satellites are so precise that they would only be off by one second after about three million years. An ordinary watch can gain or lose a few seconds a month.

Want to know more?

Distance = speed × time

To figure out how far something goes, you use: distance = speed × time. The sign × means times. In big numbers, you put a comma after every three digits, counting from the right, so they're easy to read: 300,000 is three hundred thousand. A decimal point stands for part of a whole: 0.07 is seven hundredths. If the signal is on its way for 0.07 seconds, the satellite is this far away:

0.07 s × 300,000 km/s = 21,000 km

Here, s stands for seconds and km/s for kilometers per second. And what about a thousandth of a second, 0.001 s?

0.001 s × 300,000 km/s = 300 km

So if your phone wants to know where you are to within 3 meters, it has to measure time to within about a hundred-millionth of a second. That's why the clock is so important.

Why four satellites?

Your location in space has three numbers: how far east, how far north and how far up. On top of that, there's a fourth unknown number: how far off your phone's clock is. Each satellite gives your phone one distance, and so one calculation to work with. For four unknown numbers, you need at least four calculations, so four satellites. By the way, three spheres have two intersection points. One of them is usually far out in space, so it's ruled out right away. If your phone picks up more than four satellites, it looks for the location and clock error that best fit all the distances. That makes the answer more accurate, which means more precise.

Atomic clocks

An atom only reacts to a radio wave that vibrates at exactly the right rate for that kind of atom. An atomic clock tunes a radio wave to exactly that rate and counts the vibrations. In fact, a second is officially defined as 9,192,631,770 vibrations of the radio wave that matches a cesium atom. GPS satellites have clocks with rubidium or cesium, and Galileo satellites have clocks with rubidium or hydrogen. Those are all kinds of atoms. Ground stations on Earth keep checking the clocks and send corrections to the satellites.

Einstein and the clocks in space

According to Albert Einstein's theory of relativity, time doesn't run at the same speed everywhere. A clock runs faster where gravity is weaker, like high above the Earth. Because of that, the clocks in a GPS satellite gain about 45 microseconds a day. A microsecond is a millionth of a second. But a clock that moves very fast actually runs slower. A GPS satellite flies at about 14,000 km per hour, and that costs about 7 microseconds a day. Put together, the clocks gain about 38 microseconds a day. In seconds, that's 0.000038 s.

0.000038 s × 300,000 km/s ≈ 11 km

The sign ≈ means “about.” Without a correction, every measured distance would be off by about 11 more kilometers each day. That's why the clocks are set so that on Earth they run just a little too slow. Then, in space, they run exactly right.

Think further

You're walking down a narrow street between tall buildings, and your dot keeps jumping back and forth. How could your phone notice that one of the signals took a detour?

Give me a hint

Your phone often picks up a lot more than four satellites. What happens to the circles if one distance is too big?

See a possible answer

A signal that bounced off a wall gives a distance that's too big. That circle then doesn't go through the point where the other circles meet. If your phone picks up enough satellites, it can check which distance doesn't fit with the rest and leave that one out for a while. The map helps too: you're probably walking on the sidewalk, not through the middle of a building. Can you think of another way?

You use GPS to know where you are. But the cell phone network and the power grid use GPS signals too, even though cell towers and power lines never move. What would they need GPS for?

Give me a hint

Besides the satellite's location, what else is in every signal?

See a possible answer

Every signal contains the exact time from an atomic clock. That way, cell towers and measuring devices in the power grid all over the country can keep exactly the same time, without having their own atomic clock. That's handy when lots of devices have to do or measure something at exactly the same moment. Can you think of what could go wrong if their clocks didn't match?

Words you now know

Satellite
A device that flies in an orbit around the Earth.
Orbit
The fixed route of a satellite, going around and around the Earth.
GPS
Global Positioning System: the American system of satellites that lets you find your location anywhere on Earth.
Galileo, GLONASS and BeiDou
The systems of Europe, Russia and China that work just like GPS.
Horizon
The line in the distance where the sky and the Earth seem to touch.
Atom
A tiny particle. All substances are made of atoms.
Atomic clock
A very precise clock that measures time using the vibrations in atoms.
Signal
A message sent through the air, here with the time and the location of the satellite.
Radio wave
An invisible wave that carries messages through the air, just like with Wi-Fi and the radio.
Speed of light
The speed of light and radio waves: almost 300,000 kilometers per second.
Distance
How far apart two things are.
Circle and radius
A circle is a round shape where every point is the same distance from the center. That distance is called the radius.
Sphere
A circle in three directions, like a ball: every point is the same distance from the center.
Intersection point
The spot where lines or circles cross each other.
Clock error
How far ahead or behind a clock is.
Accuracy
How close a measurement comes to being exactly right.
Wi-Fi network
A wireless network, for example from a router at home or in a store.
Cell tower
A tall pole with antennas for the cell phone network.
Microsecond
A millionth of a second.
Gravity
The force with which the Earth pulls everything toward it.
Theory of relativity
Albert Einstein's theory that says, among other things, that time doesn't run at the same speed everywhere.

Test yourself

What does a GPS satellite keep sending to Earth?

See the answer

The exact time and its own location.

Why does your phone have to measure time so precisely?

See the answer

Because the signal is so fast that a thousandth of a second already means 300 kilometers.

Why does your phone need at least four satellites?

See the answer

Three for your location and a fourth to work out the phone's clock error.

Tricky question: a phone's clock is a millionth of a second fast, and the phone doesn't notice. How much too big does each distance seem?

See the answer

300 meters.

Explore more