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.

The InfoNexus Editorial TeamMay 18, 20269 min read

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.

ConstellationOperatorSatellites (operational)Coverage
GPSUSA31Global
GLONASSRussia24Global
GalileoEU28+Global
BeiDouChina35+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 SourceTypical ContributionMitigation
Ionospheric delay5–10 metersDual-frequency receivers, models
Tropospheric delay0.5–2 metersTropospheric models
Satellite clock error0–1 meterGround control correction uploads
Multipath (signal reflections)0.5–3 metersAntenna design, signal processing
Ephemeris error0.5–1 meterGround 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.

engineeringGPSnavigation

Related Articles