Your phone has no idea where it is โ until it listens to satellites. Each one says, in effect, "I am here, and the moment I sent this was then." From the tiny delay before the signal arrives, your phone works out how far away each satellite is. One distance traps you on a circle; two narrow it to a pair of points; three pin you to a single spot. Scroll through and drag things around to see it.
Each satellite broadcasts a timestamped signal. The travel time tells you your distance to it โ a circle of "could be anywhere this far away." With one circle you're lost on a ring; two circles cross at two candidate points; three circles intersect at exactly one โ your fix. Drag the satellites ๐ฐ๏ธ or drag the green "true you" and watch the circles resize and re-pin. (Add a 4th in 2-D and it's redundant; it's the key to scene 2.)
Position comes entirely from timing, and light travels about 30 cm per nanosecond. So if your phone's cheap clock is off by even a microsecond, every measured distance is wrong by ~300 m and the circles no longer meet at a point. Slide the clock error and watch all the range circles swell or shrink together โ the fix smears into a blur. Your phone can't carry an atomic clock, so a 4th satellite adds the one extra equation needed to solve for the unknown clock bias too: in 2-D you need 3 sats for position alone, but 4 to also recover time. Press Auto-correct to let it solve.
Time-of-flight ranging. A GPS satellite continuously transmits its position and a precise clock reading. Your receiver compares that timestamp to when the signal arrived; the difference, multiplied by the speed of light (~299,792,458 m/s, or roughly 30 cm per nanosecond), is the distance โ the "pseudorange." Each distance is one sphere; where the spheres intersect is you.
Why atomic clocks & relativity matter. Because a billionth of a second equals a foot of error, each satellite carries an atomic clock good to nanoseconds. Even so, relativity bends time: the satellites' high orbit (weaker gravity) makes their clocks tick faster, while their orbital speed makes them tick slower โ a net gain of about 38 microseconds per day. Left uncorrected that's ~10 km of position drift every day, so the clocks are deliberately offset and continuously corrected. Your receiver, with only a cheap quartz clock, treats its own time as a 4th unknown and solves for it โ which is why 4 satellites (in 3-D) are needed: three for x, y, z and one for the clock.
GPS vs GNSS. GPS is the United States' specific constellation; GNSS (Global Navigation Satellite System) is the umbrella term for all of them โ GPS plus Russia's GLONASS, Europe's Galileo, and China's BeiDou โ and modern phones blend several at once for a faster, more accurate fix.