How GPS Calculates Your Exact Position from Satellite Signals
GPS pinpoints your location to within meters using signals from orbiting satellites. Learn the trilateration math, atomic clock precision, and relativity corrections behind GPS.
Without Correcting for Einstein's Relativity, GPS Would Drift 11 Kilometers Per Day
The Global Positioning System's atomic clocks run in an environment where both special and general relativity apply — and their effects are in opposite directions. General relativity makes satellite clocks run faster by 45.9 microseconds per day (weaker gravity at altitude). Special relativity makes them run slower by 7.2 microseconds per day (orbital velocity). The net effect is +38.7 microseconds per day faster than ground clocks. Since GPS positioning depends on nanosecond-level timing precision, uncorrected drift would accumulate to 11 kilometers of positional error daily. GPS engineers compensate by pre-slowing the satellite clocks' frequency before launch and applying continuous software corrections.
GPS — the Global Positioning System — is a U.S. Department of Defense navigation system consisting of 31 operational satellites in medium Earth orbit. The first GPS satellite launched in 1978; the system reached full operational capability in 1995. Today, GPS serves approximately 6 billion devices worldwide.
The Orbital Infrastructure
GPS satellites orbit at 20,200 km altitude in six orbital planes, each inclined 55° relative to the equator. The orbital period is precisely 11 hours 58 minutes — exactly half a sidereal day. This ensures each satellite returns to the same position in the sky relative to the ground twice daily, simplifying ground station tracking.
| Constellation | Operator | Satellites (operational) | Coverage |
|---|---|---|---|
| GPS | USA | 31 | Global |
| GLONASS | Russia | 24 | Global |
| Galileo | EU | 28+ | Global |
| BeiDou | China | 35+ | Global |
Each satellite carries between three and four cesium or rubidium atomic clocks, accurate to 20–30 nanoseconds. The clocks are synchronized with ground control stations through daily clock correction uploads.
The Signal Structure
Each GPS satellite broadcasts on multiple frequencies. Legacy civilian GPS uses L1 at 1,575.42 MHz. Modern GPS adds L2C and L5 signals for improved civilian accuracy and ionospheric correction.
The signal carries three types of information:
- Pseudorandom noise (PRN) code: A unique code sequence for each satellite, used to identify the satellite and measure signal travel time. The C/A (Coarse/Acquisition) code repeats every millisecond at 1.023 Mbps.
- Navigation message: Broadcast at 50 bps. Contains satellite ephemeris (orbital parameters), clock corrections, and almanac data for all satellites.
- Carrier wave: The 1,575.42 MHz carrier enables phase measurements for high-precision applications.
Trilateration: The Core Mathematics
GPS positioning is not triangulation (angle-based). It is trilateration — position determined from distances. The receiver measures how long each satellite signal took to arrive. Multiplying travel time by the speed of light gives distance, called a pseudorange (because the receiver clock is not perfectly synchronized with satellite clocks).
Each measured distance places the receiver on a sphere centered at that satellite. Two satellites give the intersection of two spheres: a circle. Three satellites narrow it to two points. For Earth-surface users, the correct point is obvious. But because receiver clocks are far less accurate than atomic clocks, the receiver clock offset introduces a systematic error in every pseudorange measurement.
This is solved with a fourth satellite. Four equations (one per satellite) with four unknowns (x, y, z position + clock offset t) form an over-determined system solved by least squares. More satellites improve accuracy through redundancy.
- With 4 satellites: position accuracy ~15 meters (Standard Positioning Service)
- With 8+ satellites: horizontal accuracy can reach 3–5 meters
- With differential corrections (WAAS): 1–3 meters
- With carrier-phase RTK: 1–2 centimeters
Error Sources and Their Magnitudes
| Error Source | Typical Contribution | Mitigation |
|---|---|---|
| Ionospheric delay | 5–10 meters | Dual-frequency receivers, models |
| Tropospheric delay | 0.5–2 meters | Tropospheric models |
| Satellite clock error | 0–1 meter | Ground control correction uploads |
| Multipath (signal reflections) | 0.5–3 meters | Antenna design, signal processing |
| Ephemeris error | 0.5–1 meter | Ground station monitoring |
How the Receiver Actually Processes the Signal
A GPS receiver must first acquire the satellite signal — a process of searching through 1,024 possible PRN code phases and Doppler frequency offsets (due to satellite motion). This acquisition can take 20–45 seconds on a cold start, or under 1 second on a warm start using cached satellite position data.
Once locked, the receiver uses a delay-locked loop (DLL) to continuously track the PRN code, and a phase-locked loop (PLL) to track the carrier frequency. The DLL output gives pseudorange measurements; the PLL enables carrier phase measurement for centimeter-level applications.
Augmentation Systems: Beyond Standard GPS
Wide Area Augmentation Systems (WAAS in North America, EGNOS in Europe, MSAS in Japan) use a network of precisely surveyed ground reference stations that measure GPS errors and broadcast corrections via geostationary satellites. WAAS corrections bring standard GPS accuracy from ~15 meters to 1–3 meters — sufficient for aircraft non-precision instrument approaches.
Real-Time Kinematic (RTK) GPS goes further: a nearby reference station with known coordinates transmits raw carrier phase measurements to a rover receiver. The rover computes the integer ambiguity — how many full carrier wavelengths fit in the distance — using algorithms like LAMBDA. Resolved ambiguity allows positioning at 1–2 centimeter accuracy, enabling automated precision agriculture, machine control, and structural monitoring.
GPS Vulnerabilities and Their Consequences
GPS signals arrive at Earth's surface with power comparable to a 20-watt light bulb seen from 20,000 km away — extremely weak. They are susceptible to jamming (deliberate interference) and spoofing (fake GPS signals fooling receivers). Military GPS uses encrypted signals (P(Y) code) and anti-jam antennas to mitigate these threats. Civilian infrastructure — shipping, aviation, power grid synchronization — remains substantially more vulnerable.
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