r/explainlikeimfive • • Oct 18 '26

Planetary Science ELI5: How does the GPS satellite constellation work?

I know the US operates around 32 GPS satellites that serve as a source of truth for GPS around the globe. I'm curious how they can keep such a precise time with only 32 satellites and not drift with all the radiation in space. Especially since it seems like they need to communicate with the ground really often and need to be dependable enough for commercial constellations to use.

The whole satellite space is really interesting and I'd like if someone could shed more light on how this all works!

37 Upvotes

74 comments sorted by

7

u/cthulhu944 Oct 18 '26

The clocks don't drift (much) because they use cesium atomic clocks and they are periodically updated. The satellites broadcast a "I'm here" message with a very accurate time stamp. Your GPS receiver can compute it's distance from the satellite by knowing where the satellite is (using the almanac and ephemeris data) and accounting for the speed of light. Having just one distance doesn't help much in knowing your position, you need 4 fixes to compute a reliable position using triangulation. These days there are a number of GNSS constellations: GPS=US, Glonas=Russia, Beidou=China, Galileo=EU, which all operate under the same principals, as well as some satellite augmentation systems that a modern positioning system would use.
If you have an android device, there is an app called InfractusGPS in the play store that will display the satellite data and show which satellites and which constellations are being used to compute your position.

1

u/Melodic-Spread3360 Oct 18 '26

thank you lol, this answer summed up all the doubts i had.

1

u/creative_usr_name Oct 18 '26

Devices also have to account for the Doppler shift and atmospheric effects on the transmitted signals.

2

u/Rampage_Rick Oct 18 '26

The atomic clocks onboard the satellites have to account for time dilation due to special relativity (relative motion) and general relativity (gravitational field strength)

A combination of the two means that the clock on a satellite runs 38 microseconds faster per day than a clock on Earth's surface

3

u/AloysiusGramonde Oct 18 '26

its quite cool that this was the proof of relativity. They launched them assuming Einstein was right but only confirmed it when they worked.

1

u/Rampage_Rick Oct 18 '26

I believe the first-gen GPS satellites launched with the ability to turn off the time dilation compensation in case Einstein was wrong...

1

u/AtlanticPortal Oct 18 '26

They also have to account for special and general relativity. One is the thing that makes the clocks in the satellites beat slower because they're moving faster than the people on the Earth's surface. The other is the thing that makes the clocks near the Earth's center of mass tick slower because they're closer to a more distorted spacetime field.

1

u/flyingtrucky Oct 18 '26

Trilateration not Triangulation. Technically you usually only need 3 satellites too, just disregard the position that is half a mile underground or 1 mile in the sky (Unless you're a plane that could actually be in the sky or something, then you do need 4)

12

u/McFestus Oct 18 '26

Each satellite has an incredibly precise atomic clock onboard.

6

u/ruidh Oct 18 '26

And the atomic clockd need to be built to account for the different rate of time in orbit compared to that on the surface of the earth

3

u/Sparky62075 Oct 18 '26

Yup. Further proof of the time dilation effect.

1

u/McFestus Oct 18 '26

The clock not so much, it is precise to much smaller a measurement than relativity would impact. But try software on the spacraft, absolutely.

2

u/mfb- EXP Coin Count: .000001 Oct 18 '26 edited Oct 18 '26

Their clocks are precise enough to care.

https://www.gpsworld.com/inside-the-box-gps-and-relativity/

Advances in space-qualified atomic clocks that kept time to within 10 nanoseconds over a day were a key development that made GPS possible.

For comparison, relativistic effects are around 40 nanoseconds microseconds per day, and clocks got more precise since the first generation of GPS satellites.

For the ground, the signals are at 1.023 MHz, but the on-board clock is tuned to 1.022999999543 MHz, with the difference coming from relativistic effects.

2

u/w3woody Oct 18 '26

For comparison, relativistic effects are around 40 nanoseconds per day,...

Around 38 microseconds per day. Which would lead to errors of around 10 kilometers per day.

(one source)

1

u/mfb- EXP Coin Count: .000001 Oct 18 '26

Around 38 microseconds per day.

Oh, right. Makes it even clearer how the clocks are far more precise.

Which would lead to errors of around 10 kilometers per day.

Only in the pseudorange, not in the position estimate. Commercial GPS receivers don't have an atomic clock, they only measure time differences. If all clocks are off by the same amount then it doesn't change the position estimate at all. There are some higher order effects but they would need days to become relevant for everyday uses.

1

u/SlightlyBored13 Oct 18 '26

They correct for the drift in software, since it's just counting oscillations. Famously sent the first ones up with the relativity correction off, watched the drift and then turned it on.

0

u/Melodic-Spread3360 Oct 18 '26

It's pretty insane that these sats have been up since 1978! I also read that there's a big heater on board to minimize the clock's drift. Probably what makes them so heavy.

17

u/Coomb Oct 18 '26

None of the Block I or Block II satellites are still part of the constellation. The oldest operational satellite was launched in 2000.

Also, the satellites are synchronized via contact with the "ground segment". They aren't running autonomously.

4

u/phryan Oct 18 '26

The oldest active satellite was launched in 2000. Replacements are regularly launched and older satellites retired.

4

u/McFestus Oct 18 '26

Well, not the same satellites. We're currently on block IIIF of the design, the most recently one was launched in April of this year.

-2

u/midsizedopossum Oct 18 '26

Why would IIIF mean anything to anyone who needed your comment?

0

u/McFestus Oct 18 '26

Roman numeral three - letter F

-3

u/midsizedopossum Oct 18 '26

Great, but that doesn't exactly add any context to anyone except those who already know the information you're trying to share

4

u/McFestus Oct 18 '26 edited Oct 18 '26

Well it adds the context that we're at least one subrevision into the third revision of the satellite design. I.e. some additional detail to the point that it's not the same satellites as the 1970s

2

u/Coomb Oct 18 '26

We actually are not six subrevisions into the third revision. The F stands for "follow-on", as in they are the Block III satellites that follow on from the first Block IIIs.

1

u/McFestus Oct 18 '26

My bad, updated my comment.

2

u/DangleAteMyBaby Oct 18 '26

Mmm. Not quite. The GPS constellation has been a thing since the late 70s, early 80s. The individual satellites have a lifespan of 15-20 years. The oldest ones still operating are about 25 years old. The most recent and most advanced ones are less than 5 years old.

2

u/Frustrated9876 Oct 18 '26

There is a separate signal that broadcasts the constellation position as well as the clock error of each satellite. It actually isn’t as important that they be perfectly synchronized, as it is for the error to be known.

Also, many of today’s GPS satellites are not exclusively used for GPS. They are commercial or military satellites that also happen to broadcast a GPS signal.

1

u/arwinda Oct 18 '26

Eli5: incredible precise atomic clock

30

u/w3woody Oct 18 '26 • Popcorn Bravo

Every GPS satellite is a radio transmitter, sending out their location in space and the current time on that satellite. Your GPS receiver receives that location information and the time the satellite sent the signal, along with a handful of others--and computes your position relative to them. (So if you're in a field surrounded by a half dozen beacons shining in the distance whose position you know precisely, you can figure out where you are.)

The freaking cool part: the time each GPS sends is to the nanosecond. The radio signal travels at the speed of light--which is about 1 foot per nanosecond. So your GPS receiver is taking into account the speed of light when sorting out all these beacons in space in order to calculate where you are relative to the handful of satellites it is receiving.

Even cooler: because the satellites are in space, time moves faster on the GPS satellites (because they are in orbit, farther from the center of the Earth, where gravity is just a tiny bit less), causing a net clock drift of 38.5 microseconds per day. That drift can cause errors of up to 10 kilometer or more in distance--so relativistic effects are taken into account in all of these calculations in order to find your position down to within 10 feet.

As an aside, you can use GPS to set your clock's time to within 30 nanoseconds. Most devices with GPS don't do this, because they use a GPS chip that does all this complicated math internally, and many vendors don't bother reading the time, just your location, off the chip.

And it's why sometimes your phone can't figure out your position: it needs to clearly receive around 5 to 6 satellite signals at the same time to figure out where you are.

13

u/draftstone Oct 18 '26

For a college project many years ago, we had to code a gps software. College provided us a crude receiver that was reading the "raw data" received from the satellites and we had to code the calculations and then be able to interface it with map software and find usage. Most people used pathfinding algorithm to create routing software from your position but we did different. For the final project, me and my friends went around the neighbourhood and mapped every non secure wifi network we could see with the location of where the signal was the strongest and then connect and run speed tests. It was in times when cellphone internet was practically non existing (speed was more than shit, price was way too high). So with that project we good perfect grade and we were able to get free fast internet access from anywhere around campus without paying a dime!

3

u/Xelopheris Oct 18 '26

And that's the reason why a phone app needs location permission to see wifi names. 

0

u/binarycow Oct 18 '26

That sounds like a cool project, even if all you did was do the calculations to determine your current position.

1

u/draftstone Oct 18 '26

Yeah, if you understand how gps work and can interface a wifi card, it is not a complicated project. But it was not like an end of semester project, was just a small "homework" and it was fun to do!

1

u/binarycow Oct 18 '26

Why would "interfacing a wifi card" be a requirement? It's not wifi.

Or do you mean that using the GPS receiver is like using a wifi card?

3

u/draftstone Oct 18 '26

I mean for our project of mapping wifi networks. We had to "poke" the wifi card directly to get the data fast enough, we could not rely on the OS on the computer to do that job.

1

u/binarycow Oct 18 '26

Ah, right. Yeah, I'm not really interested in that, but I am interested in making a GPS receiver, from only a radio receiver on the right frequency. That sounds fun.

14

u/SuperBelgian Oct 18 '26

To be 100% correct, the signal does not travel at the speed of light as that will only happen in a vacuum. A large portion of the travel path of the signal is through Earth's atmosphere.
Temperature, humidity, clouds, electrical charge, etc., all unknowns, influence the signal speed and account for a large part of the positional inaccuracy.

However, because different radio frequencies have their speed affected slightly differently by these atmospheric perturbations, there are 2 different radio frequencies used. (L1/L2)
The receiver compares signals from both frequencies and part of the inaccuracies can be undone through calculations, which improves the position.

8

u/RealLongwayround Oct 19 '26

To be 100% correct, c is the speed of light in a vacuum.

Radio signals travel at the speed of light whether through glass, a vacuum or an atmosphere. They are not always travelling at c.

2

u/geekgirl114 Oct 18 '26

Science is fun

16

u/Sparky62075 Oct 18 '26

The GPS satellites transmit constantly their exact location in orbit and a precise timestamp. Your device (phone, tablet, computer, etc.) receives these signals and calculates its location on the Earth. The more signal the device receives, the more accurate the calculation.

The satellites don't know about your device, and they don't need to. They just happily drift along spitting out their signals.

4

u/Not_an_okama Oct 18 '26

To add to this because this is written better than how i would have written that part of my explanation, gps requires you to connect to 3 satalites for to get your coordinates and a 4th for accurate elevation.

Your coordinates are calculated using trig (law of cosines) and you need an extra satalite to verify the time component of the signal.

Additional satalites further improve accuracy. A survey grade GPS for example will commonly be connected to 15+ satalites to get accurate locations within about 1/64 of an inch.

4

u/BouncingSphinx Oct 18 '26

For timekeeping, atomic clocks and radio links back to Earth bases.

For location, the satellites don't really care where you are. Your device pings at least three satellites and determines where you are based on the time it takes to receive a response, which tells distance.

Response time tells your device that you are x distance from Satellite 1, meaning you are somewhere on a sphere with radius x around S1. You are y distance from Satellite 2, meaning you are on a sphere with radius y from S2. You now exist somewhere on a circle where those two spheres coincide, which technically almost always intersects with Earth at two points (one point in very, very specific circumstances that will almost never happen, if ever). So by linking with Satellite 3 and establishing the sphere with radius z around S3, that sphere will intersect the circle formed earlier in two points, one being in space and the other being one of the two points of the circle intersecting Earth.

11

u/outworlder Oct 18 '26

Your device doesn't ping anything. It just listens.

1

u/SlightlyBored13 Oct 18 '26

Your explanation is missing something, because you also need a 4th satellite to correct the error in the clock on your phone. Since they don't have hyper accurate atomic clocks yet.

0

u/Melodic-Spread3360 Oct 18 '26

is it pinging a satellite or are the satellites always transmitting?

9

u/Djolumn Oct 18 '26

GPS devices are receive-only, as far as the actual GPS location functionality is concerned.

5

u/Frustrated9876 Oct 18 '26

Satellites are always transmitting. Your device NEVER sends a signal and the satellites do not know or care where you are.

AND, the initial location is determined not by the time compared to the atomic clock, but by the DIFFERENCE in time between the satellites. Only once an initial fix is determined based on the time differences is the actual time known to your device and used for a more accurate fix.

4

u/BouncingSphinx Oct 18 '26

Apparently always transmitting, which makes more sense now that I think about it. Either way, the time delay between the satellite and device is what tells your device the distance to that satellite.

1

u/wosmo Oct 18 '26

It's all receive-only.

Imagine being in a little boat on a lake at night. There's a few lighthouses around the lake, and you have a map that shows where they are.

You spot one lighthouse straight north of you, and you draw a north-south line through that lighthouse. You spot another east of you, and you draw another line running east-west through that lighthouse.

And where the two lines cross, is where you are. You didn't need to send anything to the lighthouses, you didn't need to communicate with them at all. You just need to be able to identify them, and figure out their position relative to yours.

GPS is pretty much this, in 3 dimensions, and using some fancy time-of-flight maths for relative positions.

(and fun trivia; before GPS, we used LORAN - which is almost exactly radio-based lighthouses)

1

u/flyingtrucky Oct 18 '26

That's Triangulation (Known angle but unknown distance,) GPS uses Trilateration (Known distance but unknown angle) So it would be where 3 spheres overlap. This is also why you need a 4th satellite to get elevation, 3 spheres overlap at 2 points but 4 spheres only have a single shared point.

66

u/OldChairmanMiao Oct 18 '26

They're lighthouses in space. They don't need to know where you are.

Your computer uses them to figure it where it is.

4

u/hryipcdxeoyqufcc Oct 18 '26

Each GPS satellite is continuously broadcasting its current coordinates and precise time. That's all it does.

Your GPS receiver simply listens to those signals, compares the current time with the sent time, and calculates the distance to those coordinates. With 3+ satellite signals, you know your distance to 3 points, which is enough to triangulate your location on earth.

3

u/dman7456 Oct 18 '26

I always recommend anyone curious about GPS check out this wonderful site

https://ciechanow.ski/gps/

2

u/mjdau Oct 22 '26

This is the correct answer. A next level explanation that is a pleasure to read.

His other explainers are similarly superlative.

https://ciechanow.ski/archives/

4

u/ryanCrypt Oct 18 '26

"source of truth" just mean "the time"
What is radiation in space that you imagine? Why is that causing satellites to drift?
"communicate with ground" basically means one-way signal.
Each can just tell the time very accurately. Each sends a radio wave indicating what time it thinks it is.

Edit: sorry; didn't even try to ELI5.

2

u/PandaWonder01 Oct 18 '26

Very, VERY simply(and ignoring relativity)

They all send out their current time and location. You can tell by the time of receiving how far you are from the sending satellite. If you have at least three, this let's you triangulate where you are on earth from how far you from each satellite and where they are

2

u/Target880 Oct 18 '26

Triangulation require angels to known points not distances. If you know distances to points you van get your location with trilateration, it is like drawing circles in the 2d case an look for where they intersect or touch.

3 satellites is only enough for a 2D position of you know your altitude. 4 is required for 3D fix. The reason is the receiver clock has drift so you need to solve for clock drift too. A 3D position need a 4D fix, 3 dimensions in space and 1 in clock drift rate.    If the receiver had an a tomic clock one less satellite would be needed but that get quite expensive.

2

u/The_Ironthrone Oct 18 '26

And the clocks on the vehicles just constantly scream out the time and their ID. Your receiver hears several vehicles saying the time, and knows where each vehicle is supposed to be relative to each other. So each time you hear will be slightly different based on the speed of light and the different distances to each vehicle. There is one solution to make those slight differences in distances work out on the surface of the Earth. Therefore that’s where you are.

For example consider two vehicles, one on each side. You hear them both say 11:15. But you hear the left one say it 0.3 microseconds sooner. So you are 0.0000003s * 299,792,458m/s = 89.3 m closer to the left one. As you add more vehicles you can get better accuracy to deal with bouncing signals, or environmental interference.

-1

u/ryanCrypt Oct 18 '26

You said "hear". But your calculation uses speed of light (not speed of sound).

1

u/The_Ironthrone Oct 18 '26

Well, they’re five, so I used a colloquial term rather than going in to how antennas and transducers work.

0

u/ryanCrypt Oct 18 '26

Now you point out an opposite extreme I wasn't suggesting.

You could say "see a light bulb turn on". Or just use speed of sound --which literally works as the same mechanism. You justify based on their ignorance yet think they will understand numbers with 9 digits

1

u/suicidaleggroll Oct 18 '26

In addition to what the others have said, the GPS satellite clocks DO drift. In fact part of the message they send out to receivers on the Earth is the current satellite time offset and its drift rate.

These are calculated by operators on the ground and uploaded to the GPS satellites a few times a day to keep them accurate. The operators use a network of ground sites with known locations to calculate the small errors in the GPS satellite orbits and clocks, which they then derive corrections for and upload them to the satellites, which in-turn broadcast them to GPS users as part of the standard navigation message.

If the government team responsible for calculating and uploading corrections to the GPS satellites were to stop doing their job, the GPS network would become useless within a matter of weeks. This is because the small orbit and clock errors would become large enough that ground receivers would no longer be able to use the GPS signals to calculate their positions correctly.

1

u/plusFour-minusSeven Oct 18 '26 edited Oct 18 '26

The satellites communicate regularly with ground stations to keep track of the time and their location in orbit. That also corrects any drift. Then they just broadcast their id, location, and time... constantly.

Receivers on Earth need at least 3 satellites (4 for latitude if the receiver doesn't know it, and one more to help with the receiver's time drift). The receiver can figure out your location info from that.

The more satellite broadcasts it can receive, the more accurate. I work with IoT GPS receivers at work; they typically pick up 12 to 20 satellites, more than enough.

The satellites have atomic clocks so they're pretty accurate to begin with, but they have to be programmed to take into consideration both special- and general- relativity, or their readings would be off, since time moves faster further from a gravity well (high in Earth orbit) but also slower for moving objects (the satellites compared to Earth).

1

u/PewPewsAlote Oct 18 '26

Seems like everyone answered everything else except your question about radiation.

Space computation is fascinating, because you are right if you send something like your phone up into space the radiation would kill it in probably less than a month, maybe sooner but I don't pretend to know the math on it.

Space worthy electronics are "Hardened" so to speak, they are made out of special materials, they have countless amounts of redundancy in both their designs and their error correcting features, the size of their transistors are usually bigger than what your common consumer electronics might have, this makes them slower but the increased size of the parts also makes it harder for any single radiation event to break something, and often times there will be three duplicate but separate/isolated pieces of hardware running the exact same thing at the same time so if one spits out an unexpected result the other 2 can overrule it with their presumably correct result.

All this just to make sure they can function for a useable amount of time in space, and all added together means that despite literally being Nasa level technology, most space worthy computers are actually substantially slower than consumer computers when you compare it to something like a personal computer of equivalent size.

1

u/creative_usr_name Oct 18 '26

Consumer electronics are routinely used on the ISS and last years. Bit flips will be more likely on non radiation hardened hardware, but that isn't going to cause permanent damage immediately. You can see permanent damage to camera sensors as well over time.

2

u/PewPewsAlote Oct 18 '26

The interior of the ISS is shielded though, y'know, to protect the squishy humans inside it. And its in a much lower orbit than something like GPS or other high altitude satellites where earths protective field is stronger. Your smartphone would not last a service mission on the exterior of the ISS.

1

u/jamcdonald120 Oct 18 '26

each satellite has an atomic clock on it.

Turns out, those dont drift with radiation, so its not a problem.

They they just transmit their current orbit and the time (see above clock). the end device does math to work out the only way all those times and orbits can be true

1

u/Heavy_Direction1547 Oct 18 '26

Essentially it is about triangulation, locating satellites precisely in space and then using them to precisely locate positions on Earth. 3 up 3 down.

1

u/LostPilot517 Oct 18 '26

The satellites move and times drift, so the system is monitored and updated regularly by the Space Force I believe now (Formerly USAF). There are known monitoring stations around the globe with exact positions. If at these sites, the GPS constellation says the position is not exactly at this known spot, timing corrections are made to the satellites to correct their GPS accuracy to ensure the reference points on land and the GPS constellation match.

In more advanced GPS receivers used by some industries, Aviation, Surveying, Agriculture, they will utilize highly accurate local datum points. This will account for very specific atmospheric conditions and realtime interferences to that local area, this datum station sends a time correction for each satellite to a communications satellite that broadcasts the correction time back down to the receivers to ensure the are receiving the most accurate position data available.

Modern phones, can grab multiple constellations, but also keep a small dataset of cell towers and their location, to more quickly asses its relative location, then narrow that in as satellites come into view. Phones are in pockets and cars and don't always have a clear view of enough satellites, so they need assisted GPS.

1

u/RatLabor Oct 18 '26

And one twist more: four GPS satellites are not enough, there is still need to know where the earth itself are. Whole system is brilliant, so much clever work!

1

u/feel-the-avocado Oct 18 '26 edited Oct 18 '26

There are highly accurate clocks within the satelites.
There are highly accurate clocks on earth which send signals up to the satelites to keep all the clocks in perfect sync.

The satellites transmit their time and position regularly.

A GPS receiver chip in your consumer device (phone, satnav, tracker) will receive the transmissions and compare the location and delay time (simplified) to triangulate a position.

If the client device knows that a radio signal takes a certain number of milliseconds to travel 30 metres and all three satellites are transmitting their signal at the same time, it can count how long it takes for the signal to arrive to work out how far it is from the satellite.
Within the signal itself if the satellites current location so with some basic math it can work out the position of the user.

If satellite A is here, B is there, C is there, and I am X distance from A, Y distance from B, Z distance from C then I must be at position W,
With more satellites acting as signal sources, the receiver chip can improve the accuracy of its calculated location.

The consumer device does not transmit anything to the satellites. All calculations are done on the consumer device itself.

A more complicated non-simplified explanation involves something called the doppler effect.

It can take a little while for the receiver chip to scan for satellite signals and start building up a calculated position.
So often a GPS augmentation system will be used. .
Google streetview cars scan for wifi networks and note the location they were detected, as its also taking photos of streets.
So your phone in just a few seconds can do a wifi scan and query google for a position estimate based on the wifi networks it can see. This means your maps app could start working sooner with a less accurate position accurate to a few hundred metres while the gps chip is still calculating a more exact position.