How Does GPS Work? Trilateration, Math and Relativity
Quick answer: GPS finds your location by measuring the travel times of radio signals from satellites whose positions are known. Each travel time multiplied by the speed of light gives a pseudorange, an apparent distance that includes your receiver’s clock error. Using at least four satellites, the receiver solves for four unknowns: three position coordinates and its clock offset. Satellite clocks would run about 38 microseconds per day fast because of relativity, equivalent to about 11.4 km of range error per day, so GPS corrects for it.
Facts checked November 22, 2026.
Your phone knows where you are to within a few meters, using signals from satellites about 20,200 km overhead. There is no magic: just distances, circles and spheres, the speed of light, and a correction from Einstein’s relativity. Here is the math, step by step.
Step 1: Time Becomes Distance
Each GPS satellite broadcasts its position and the exact time from its atomic clock. Your receiver notes when the signal arrives. Since radio waves travel at the speed of light, \(c \approx 299{,}792{,}458\) m/s,
\[ \text{distance} = c \times \text{travel time}. \]From about 20,200 km away, a signal takes about \(\frac{20{,}200{,}000}{299{,}792{,}458} \approx 0.067\) seconds. Timing must be extremely precise: a clock error of just 1 nanosecond (a billionth of a second) means a distance error of about 30 cm, and 1 microsecond means about 300 m. Because the receiver’s clock error is unknown at first, the measured distance is called a pseudorange, not a true distance.
Step 2: Trilateration in 2D (Circles)
Knowing your distance from one point puts you somewhere on a circle. Two circles usually cross at two points; a third picks one. Example on a grid: you are 5 units from \(A(0, 0)\), 5 units from \(B(6, 0)\) and 4 units from \(C(3, 8)\).
- Circles around \(A\) and \(B\): \(x^2 + y^2 = 25\) and \((x – 6)^2 + y^2 = 25\). Subtracting the first from the second gives \(-12x + 36 = 0\), so \(x = 3\), and then \(9 + y^2 = 25\), so \(y = 4\) or \(y = -4\).
- Check against \(C\): the distance from \((3, 4)\) to \((3, 8)\) is 4, which matches. From \((3, -4)\) it would be 12.
So you are at \((3, 4)\). Subtracting circle equations to get a straight line is the same trick GPS receivers use. Review the equation of a circle if needed.
Step 3: Why GPS Needs Four Satellites
In 3D, each distance puts you on a sphere around a satellite. Three spheres usually meet at two points, one of which is far out in space, so three would almost be enough if your receiver had a perfect clock. It does not: a phone has a cheap quartz clock, not an atomic one. Its unknown clock error \(b\) shifts every distance by the same amount, so each satellite \(i\) gives an equation
\[ \sqrt{(x – x_i)^2 + (y – y_i)^2 + (z – z_i)^2} + c \cdot b = \rho_i, \]where \(\rho_i\) is the measured “pseudorange.” There are four unknowns, \(x\), \(y\), \(z\) and \(b\), so you need at least four satellites. Receivers usually use more and find the best fit with least squares. A neat side effect: your phone gets very accurate time for free.
The Constellation
| Fact | Value |
|---|---|
| Altitude | About 20,200 km (medium Earth orbit) |
| Orbits | Each satellite circles Earth twice a day |
| Commitment | At least 24 operational satellites, 95% of the time |
| Operational satellites | GPS.gov describes about 31 operating satellites (not a live count) |
| Design goal | At least four satellites visible from virtually anywhere |
Step 4: Einstein’s Correction
Two effects from relativity change how fast satellite clocks tick compared with clocks on the ground:
| Effect | Cause | Change per day |
|---|---|---|
| Special relativity | Satellites move about 3.9 km/s, so their clocks run slow | About −7 microseconds |
| General relativity | Weaker gravity high above Earth makes clocks run fast | About +45 microseconds |
| Net | About +38 microseconds |
That sounds tiny. But multiply by the speed of light:
\[ 38 \times 10^{-6} \text{ s} \times 3 \times 10^{8} \text{ m/s} \approx 11{,}400 \text{ m} \approx 11 \text{ km}. \]Without correction, the clock drift would correspond to about 11.4 km of range error per day, and it would keep growing. Engineers fix this by setting the satellite clocks to tick slightly slow before launch: a fractional offset of about \(4.5 \times 10^{-10}\), which makes the 10.23 MHz reference run at about 10.22999999543 MHz on the ground. Receivers also apply smaller corrections, for example for each satellite’s slightly elliptical orbit and for Earth’s rotation during the signal’s travel (the Sagnac effect). GPS is an everyday test of Einstein’s theories.
How Accurate Is GPS?
Under open sky, a smartphone is typically accurate to within a few meters; in cities, reflections can make it worse. Dual-frequency receivers, correction services and combining several satellite systems improve accuracy, and survey equipment can reach centimeters. Positioning itself does not need the internet; phones use internet data only to download maps and speed up the first fix.
Other Error Sources
- The atmosphere slows signals slightly, especially the ionosphere; dual-frequency receivers can cancel much of this.
- Multipath: signals bouncing off buildings arrive late, a common problem in cities.
- Satellite geometry: satellites bunched in one part of the sky give a worse fix than ones spread out, a factor called dilution of precision.
GPS is one of several global navigation satellite systems (GNSS): Europe’s Galileo, Russia’s GLONASS and China’s BeiDou are separate constellations that work the same way. Modern phones combine several, which helps in cities.
Common Misconceptions
“Satellites track your phone.” GPS is one-way: satellites only broadcast. Your receiver does all the math, and the satellites never know you exist.
“Three satellites are enough.” Only with a perfect clock; the fourth solves for the receiver’s clock error.
“Relativity is too small to matter in daily life.” Without it, GPS would drift by kilometers a day.
Watch: How GPS Works
If you learn better by watching, these videos are worth your time.
Check Your Understanding
Five quick questions to see how much of this has stuck. Pick an answer and press Submit; you will see a short explanation either way.
Answer each question and press Submit to see your result right away.
Frequently Asked Questions
How does GPS work?
Satellites broadcast their positions and precise times. Your receiver measures each signal’s travel time, multiplies by the speed of light to get distances, and finds the position that fits those distances (trilateration), using at least four satellites.
Why does GPS need four satellites?
Three distances pin down a 3D position only if the receiver’s clock is perfect. The fourth satellite lets the receiver solve for its own clock error as a fourth unknown.
How does relativity affect GPS?
Satellite clocks run about 7 microseconds per day slow from their speed (special relativity) and about 45 microseconds per day fast from weaker gravity (general relativity), a net gain of about 38 microseconds per day, which is corrected.
What would happen without the relativity correction?
Satellite clocks would gain about 38 microseconds a day, corresponding to roughly 11.4 km of range error per day, growing over time.
Does GPS need the internet?
No. GPS positioning uses only satellite signals. Phones use internet data to download maps and to speed up the first position fix.
How many GPS satellites are there?
The United States commits to at least 24 operational satellites 95% of the time, and the Space Force has flown about 31 operational satellites for over a decade, at about 20,200 km altitude.
Keep Exploring
- The Math Behind Quantum Computing: A Beginner’s Guide
- Coastline Paradox Explained: Why Length Changes
- Linear Algebra for AI: Vectors, Matrices and Examples
Sources and Further Reading
Related to This Article
More math articles
- How to Find a Coordinate: Dilation
- The Best Grade 5 Math Book for Pennsylvania Students
- AP Exam Score Calculator
- Why Sociology Emerged
- The Best Grade 7 ELA Practice Tests for Virginia Students
- How to Find Discriminant of Quadratic Equation?
- Function Notation Worksheet with Answers
- Measurements – Time
- ISEE Upper Level Math Practice Test Questions
- Yang–Mills Mass Gap: What OpenAI Proved in 2026


What people say about "How Does GPS Work? Trilateration, Math and Relativity - Effortless Math"?
No one replied yet.