← All posts

The Global Positioning System (GPS) is arguably one of the most remarkable engineering feats in human history. With a quick glance at a smartphone, you can pinpoint your location anywhere on Earth to within a few meters. Yet, behind this seamless everyday convenience lies a staggering orchestration of orbital mechanics, radio frequency engineering, quantum mechanics, and Einstein’s theories of relativity.

Originally developed by the U.S. Department of Defense and launched as NAVSTAR, the GPS constellation consists of at least 24 operational satellites orbiting the Earth at an altitude of approximately 20,200 kilometers.

Here is exactly how these invisible “hands” guide us.


1. The Core Concept: 3D Trilateration

The fundamental principle of GPS is trilateration—measuring distances to determine position.

Imagine you are lost, and someone tells you that you are exactly 500 miles from Denver. That puts you somewhere on a massive circle around Denver. If a second person tells you that you are also 400 miles from Salt Lake City, your position narrows down to one of the two points where those two circles intersect. A third distance measurement from Las Vegas will intersect at only one of those points, pinpointing your exact location on a 2D map.

GPS does this in three dimensions using spheres instead of circles:

  1. One satellite: Places you on the surface of a giant sphere in space.
  2. Two satellites: The two spheres intersect to form a circle.
  3. Three satellites: The third sphere intersects that circle at exactly two points (one on Earth, one deep in space).
  4. Four satellites: The fourth sphere intersects at only one point—your exact location.

But why is the fourth satellite truly necessary? The answer comes down to timekeeping.


2. The Mathematics of the Fix: The Pseudorange Equation

GPS is fundamentally a system of time, not just space. Satellites broadcast a signal containing their precise location and the exact time the signal was transmitted. Your receiver notes the exact time the signal arrives.

Since radio waves travel at the speed of light ($c$, approximately 300,000 km/s), the distance to the satellite is calculated using basic algebra: $d=c\times\Delta t$

However, to measure $\Delta t$ (the transit time) accurately, your receiver’s clock must be perfectly synchronized with the satellites’ atomic clocks. Since putting a million-dollar atomic clock in a smartphone isn’t feasible, consumer receivers use standard quartz clocks, which inherently have a time bias, or error. The same timekeeping devices that are in cheaper wrist watches; these can have a drift of +/- 5 seconds per month, that adds up over time.

To solve for your 3D position and correct your receiver’s clock error, the GPS receiver must solve a system of four equations with four unknown variables: your position in 3D space ($x, y, z$) and the time bias of your receiver clock ($b$).

The receiver uses the Pseudorange Equation for each of the four satellites ($i = 1, 2, 3, 4$):

\[\sqrt{(x_i-x)^2+(y_i-y)^2+(z_i-z)^2}=c(t_{r,i}-t_{s,i})-cb\]

$x_i, y_i, z_i$: The known coordinates of satellite $i$. $x, y, z$: Your unknown coordinates. $c$: The speed of light. $t_{r,i}$: The time the signal was received by your device. $t_{s,i}$: The time the signal was transmitted by satellite $i$. $b$: The unknown clock bias of your receiver.

By tracking at least four satellites, the receiver can algebraically solve for $x, y, z$, and $b$, simultaneously determining your location and perfectly syncing your device’s time to global atomic time.


3. The Physics: Einstein’s Relativity in Action

If GPS engineers ignored Albert Einstein, the entire system would fail within minutes, and positional errors would accumulate at a rate of about 10 kilometers per day. GPS is one of the only everyday technologies that requires constant corrections for both Special and General Relativity.

Special Relativity (Time Dilation via Velocity)

Special Relativity states that clocks moving at high speeds tick slower relative to a stationary observer. GPS satellites orbit at roughly 14,000 km/h. Because of this velocity, the atomic clocks on the satellites tick slower than clocks on Earth. Using the Lorentz factor, the time dilation is calculated as:

\[\Delta t'=\frac{\Delta t}{\sqrt{1-\frac{v^2}{c^2}}}\]

Due to their speed, the satellites lose about 7 microseconds per day relative to Earth.

General Relativity (Time Dilation via Gravity)

General Relativity states that mass warps spacetime, meaning clocks closer to a massive object (in a stronger gravitational field) tick slower than clocks further away. Because GPS satellites are 20,200 km above Earth, they experience only about a quarter of the gravity we feel on the surface. Consequently, their clocks tick faster than ours.

The fractional frequency shift due to the difference in gravitational potential ($\Phi$) between the satellite and Earth’s surface is approximated by:

\[\frac{\Delta f}{f}=\frac{\Delta\Phi}{c^2}=\frac{GM}{c^2}\left(\frac{1}{R_E}-\frac{1}{R_S}\right)\]

Due to weaker gravity, the satellite clocks gain about 45 microseconds per day.

The Net Relativistic Effect

When you combine the two effects (+45 microseconds from gravity, -7 microseconds from speed), the clocks on the satellites tick faster than Earth clocks by a net of 38 microseconds per day. To compensate, before the satellites are launched, their atomic clocks are intentionally adjusted to tick slightly slower (at 10.22999999543 MHz instead of 10.23 MHz) so they match Earth time once in orbit.


4. Communication: How the Satellites Talk

A GPS satellite’s signal is incredibly weak by the time it reaches Earth—equivalent to the light of a 25-watt bulb viewed from 10,000 miles away. Here is how receivers make sense of it:

Frequencies (L-Band): Satellites broadcast primarily on two UHF frequencies: L1 (1575.42 MHz) for civilian use, and L2 (1227.60 MHz) historically for military use, though newer civilian codes are now added to L2 and L5 for greater accuracy. CDMA (Code Division Multiple Access): All GPS satellites broadcast on the exact same frequencies. To prevent the signals from jamming each other, they use CDMA. Each satellite is assigned a unique Pseudo-Random Noise (PRN) code—a complex digital sequence. Your receiver generates these same codes internally and matches them to the incoming static to identify which satellite is talking. The Navigation Message: Superimposed on this signal at a painfully slow 50 bits per second is the navigation message, which takes 12.5 minutes to download completely. It contains two crucial pieces of data: The Ephemeris: The highly precise, current orbital path of that specific satellite. The Almanac: A rough orbital map of the entire GPS constellation, helping the receiver know where to look in the sky for other satellites.


5. Common Misconceptions

To truly understand GPS, it is just as important to know what it isn’t.

Misconception 1: “GPS uses Triangulation.” Reality: Triangulation uses angles to determine location. GPS uses distances (spheres) to determine location, which is called trilateration. The receiver does not know the angle of the satellite, only how far away it is.

Misconception 2: “My phone sends a signal to the satellites to get my location.” Reality: GPS is a purely passive, one-way system. The satellites act like lighthouses, constantly broadcasting their position. Your phone is merely a telescope looking at the light. Your device never transmits anything back to space.

Misconception 3: “GPS requires an internet connection or cell service.” Reality: The GPS chip in your phone works completely independently of cellular data. You can get a GPS fix in the middle of the Sahara Desert with no Wi-Fi or cell towers. However, phones use A-GPS (Assisted GPS), which uses cell towers to download the satellite Almanac quickly via the internet (in seconds rather than 12.5 minutes) to lock onto your location faster.

Misconception 4: “GPS drains my battery because it’s talking to space.” Reality: Because it’s receive-only, the battery drain from GPS doesn’t come from transmitting. It comes from the intensive, continuous math your phone’s processor must perform to decode the weak, complex CDMA signals and solve the pseudorange equations multiple times a second.


The Global Positioning System represents the perfect intersection of theoretical physics and practical engineering. Every time a dot appears on your map, your device is silently catching whispers from space, solving 3D geometry, and correcting for the warping of spacetime itself. ⊙﹏⊙