How GPS Determines Your Location to Within Meters
GPS uses signals from 31 satellites to calculate your position through trilateration. Learn how atomic clocks, orbital mechanics, and relativity make navigation possible.
The Clock That Tells You Where You Are
Your smartphone's GPS chip knows your location to within 3–5 meters not because it receives a location signal, but because it measures time. Precisely. GPS works by calculating how long radio signals take to travel from satellites to your receiver and converting those travel times into distances. The key insight — and the engineering challenge — is that light travels 30 centimeters per nanosecond. To achieve 3-meter accuracy, time must be measured to within 10 nanoseconds. This requires physics at the cutting edge: atomic clocks in orbit, relativistic corrections calculated in real time, and a constellation of 31 operational satellites maintained by the US Air Force.
GPS — the Global Positioning System — became fully operational in 1995 after development that began in the 1960s as a US Department of Defense program called Navstar. It was originally restricted to military use; civilian access to full accuracy was only granted by President Bill Clinton in May 2000, when Selective Availability (deliberate accuracy degradation) was permanently switched off. Today, GPS receivers in smartphones cost roughly $2–5 in chip form and have become embedded in farming, shipping, aviation, financial transactions, and mobile mapping at a scale that makes GPS infrastructure arguably as critical as the electrical grid.
The GPS Constellation
The GPS constellation operates in six orbital planes at an altitude of approximately 20,200 km (about 2.6 Earth radii above the surface) with orbital periods of 12 hours. At any point on Earth's surface at any time, at least four satellites are above the horizon — typically six to eight in most locations. The constellation is designed so that no matter where you are or when you look, there are always enough satellites visible to fix your position.
Each satellite transmits two radio signals on L-band frequencies: L1 (1575.42 MHz) and L2 (1227.60 MHz). Every satellite carries four atomic clocks (two cesium, two rubidium) maintaining time to within 20–30 nanoseconds over a day. The ground control network at Schriever Air Force Base in Colorado monitors every satellite, uploads clock corrections, and maintains orbital data (ephemerides) that receivers use to calculate satellite positions.
Trilateration: Geometry of Position Fixing
GPS uses trilateration, not triangulation. The distinction matters. Triangulation uses angles; trilateration uses distances. Each satellite broadcast includes a precise timestamp. Your GPS receiver records when it receives the signal and compares it to when the signal was sent. The difference — the signal travel time — multiplied by the speed of light gives the distance (pseudorange) to that satellite.
One distance measurement places you somewhere on a sphere centered on the satellite. Two distance measurements put you on a circle (the intersection of two spheres). Three measurements narrow you to two points, usually one physically impossible (in space or deep underground). Four or more measurements give a unique position in three dimensions plus a clock correction — because your receiver's clock is far less precise than an atomic clock, the fourth measurement resolves the receiver clock error.
| Number of Satellites | Information Determined | Positional Output |
|---|---|---|
| 1 | Distance to one point | Sphere surface (no fix) |
| 2 | Intersection of two spheres | Circle (no fix) |
| 3 | Two possible 3D points | Ambiguous (no clock fix) |
| 4 | Unique 3D position + clock error | Position fix achieved |
| 6–8 | Redundant measurements | Improved accuracy via averaging |
The mathematics is a set of simultaneous equations. With satellite positions known from ephemeris data and pseudoranges measured from signal timing, the receiver solves for four unknowns: x, y, z (position), and receiver clock offset. More than four satellites allows least-squares fitting, which improves accuracy by averaging out measurement noise.
Why General Relativity Is Required
GPS is one of the most famous practical applications of Einstein's theories. Two relativistic effects must be corrected or the system would accumulate errors of roughly 10 km per day — making it useless.
- Special relativity time dilation: GPS satellites orbit at ~14,000 km/h. By special relativity, their clocks run slightly slower than ground clocks — by about 7 microseconds per day. This would cause position errors of ~2 km/day if uncorrected.
- General relativity gravitational time dilation: Satellites are farther from Earth's gravity well than surface clocks. By general relativity, their clocks run slightly faster — by about 45 microseconds per day. This would cause errors of ~13 km/day if uncorrected.
The net effect: GPS satellite clocks run 38 microseconds per day faster than ground clocks. The system compensates by manufacturing the satellite clocks to run slightly slow before launch — at a rate of 10.23 MHz minus 4.464733 × 10⁻³ Hz, so that once in orbit, the combination of the two relativistic effects brings them into synchronization with ground clocks. GPS is arguably the most operationally consequential experimental confirmation of general relativity ever deployed.
Sources of Error and Accuracy Enhancement
Several effects degrade raw GPS accuracy beyond pure geometric uncertainty:
| Error Source | Mechanism | Typical Magnitude | Mitigation |
|---|---|---|---|
| Ionospheric delay | Charged particles in ionosphere slow L-band signals variably | 1–10 meters | Dual-frequency receivers (L1+L2); ionospheric models |
| Tropospheric delay | Lower atmosphere refracts signals, varies with weather | 0.5–2 meters | Atmospheric models; correction algorithms |
| Multipath | Signals reflect off buildings before reaching receiver | 0.5–5 meters | Antenna design; signal processing; urban filtering |
| Satellite geometry (PDOP) | Widely spaced satellites give better geometry | Variable (multiplier) | Receiver uses best-geometry satellite subset |
| Ephemeris error | Inaccuracies in satellite position data | <1 meter | Regular ground station uploads |
Differential GPS (DGPS) and its successor Real-Time Kinematic (RTK) achieve centimeter-level accuracy by using a fixed reference station at a known location. Since the reference station knows exactly where it is, it can compute the actual errors in the GPS signal and broadcast corrections. RTK is used in precision agriculture, surveying, autonomous vehicles, and drone navigation — any application where meter-level accuracy is insufficient.
Global Navigation Satellite Systems Beyond GPS
GPS is one of four fully operational global navigation satellite systems (GNSS). Modern smartphones receive signals from all four simultaneously, improving accuracy and availability:
- GLONASS (Russia): 24 satellites; operational since 1995. Uses frequency-division multiplexing rather than GPS's code-division approach.
- Galileo (European Union): 30 planned satellites; provides enhanced accuracy, especially with E1/E5 dual-frequency. Reached full operational capability in 2023.
- BeiDou (China): 35 satellites; global system completed in 2020. Used by over 70% of smartphones sold in China.
When a phone receiver uses all four systems together, it can see 20–30 satellites simultaneously, dramatically improving geometric diversity and accuracy. The best consumer smartphones with multi-frequency GNSS chips achieve 1–2 meter accuracy in open sky — a figure that would have required expensive survey equipment a decade ago. The physics behind every navigation app — from routing to ride-sharing to food delivery — traces back to atomic clocks, orbiting satellites, and the counterintuitive corrections that Einstein's relativity requires.
Related Articles
how things work
How 3D Printers Work: FDM, SLA, and Why They're Changing Manufacturing
Understand the technology behind 3D printing, including FDM and SLA processes, the materials used, and how additive manufacturing is transforming industries worldwide.
10 min read
how things work
How Air Conditioning Reshaped Modern Civilization
Willis Carrier's 1902 invention for a printing plant became the technology that enabled Sun Belt migration, transformed architecture, and now consumes 10% of global electricity.
9 min read
how things work
How Airplane Wings Generate Lift: The Physics of Flight
Lift is the upward force that keeps aircraft airborne, and its real explanation is more nuanced than the popular Bernoulli story. This article explains how wings actually work using correct aerodynamics.
9 min read
how things work
How Batteries Work: Chemistry, Types, and Applications
Understand the chemistry behind batteries, how they store and release electrical energy, the major battery types, and their applications in modern technology.
8 min read