Skip to content

How Do Clocks Work? Pendulums, Quartz Crystals, Atomic Clocks and the Time on Your Phone

By Vclock · · 8 min read

Look at the clock on your wall, the watch on your wrist and the time on your phone, and you will probably find they agree to within a few seconds. That small piece of everyday agreement rests on four centuries of engineering, from swinging weights to vibrating crystals to atoms that count the second. Every one of them does the same two jobs, and once you see those two jobs, the whole subject makes sense.

This guide explains how clocks work, from the pendulum to the atomic clock, how your phone and computer stay correct, how accurate each kind of clock really is, and what it all means for the online clocks you use on the web.

The two jobs of every clock

Every clock has something that repeats at a steady rate, and something that counts the repeats. In a grandfather clock, the repeating thing is a pendulum and the counter is a train of gears. In a quartz watch, the repeating thing is a vibrating crystal and the counter is an electronic chip. In an atomic clock, the repeating thing is an atom. What separates a cheap clock from a precise one is almost entirely how steady the repeating thing is.

Before any of these, people used the sun. A sundial counts the movement of a shadow, water clocks count the steady dripping of water and candle clocks count the burning of wax. They are charming, but none of them is steady enough for exact timekeeping, and none works at night or in the shade, or without the right conditions.

Mechanical clocks: weights, springs and a swinging pendulum

A traditional mechanical clock stores energy, either in a raised weight or in a wound spring. That energy wants to turn a train of gears, but a part called the escapement stops it from running away. The escapement lets the gears advance by one tooth at a time, once for each swing of a pendulum or balance. That is the tick and the tock you hear, and it is the moment the energy is released in small, equal steps.

A pendulum has a useful property. For small swings, the time it takes to swing back and forth depends on its length and not on how far it swings. Christiaan Huygens used this in 1656 to build the first pendulum clock, and it was a major step. Clocks that had been wrong by about a quarter of an hour a day were suddenly wrong by about fifteen seconds a day.

Watches use a different design, because a pendulum does not work on a wrist. They use a balance wheel, a small wheel that spins back and forth, pulled by a very fine hairspring. It does the same job as a pendulum and works in any position. The next problem was temperature, because heat makes metal parts expand and slows the clock down. Clockmakers solved it with clever combinations of metals. John Harrison built a pendulum with a gridiron of different rods in the 1720s, and his marine chronometer H4 of 1759 lost only about five seconds over an 81 day voyage, accurate enough to help sailors find their longitude at sea.

Quartz clocks: a vibrating crystal

In 1880 the brothers Pierre and Jacques Curie discovered that certain crystals, including quartz, produce an electric voltage when squeezed, and change shape when a voltage is applied. This is called the piezoelectric effect. If you shape a tiny piece of quartz and feed it with electricity from a circuit, it vibrates at a very steady frequency, and the circuit can keep it going. The first quartz clock was built in 1927 at Bell Telephone Laboratories by Warren Marrison.

Most quartz watches and clocks use a crystal cut to vibrate 32,768 times a second. That number is two multiplied by itself fifteen times, which is convenient, because a simple chip can divide the frequency by two fifteen times and end up with exactly one pulse per second. That pulse drives a tiny motor that moves the hands in a quartz analog clock, or it drives the digits in a digital one.

The first quartz wristwatch for sale, the Seiko Astron, went on sale at the end of 1969, and by the 1980s, quartz had taken over the watch market. A typical quartz watch stays within about fifteen seconds a month, which is better than almost any mechanical watch. It drifts mostly with temperature, and it can be slightly different from one watch to the next.

Atomic clocks: counting the atom

For still greater precision, scientists looked inside atoms. Atoms of the same element are identical, and when they switch between two energy levels, they absorb or give off radiation at an exact frequency. Louis Essen and Jack Parry built the first practical caesium atomic clock at the National Physical Laboratory in the United Kingdom in 1955.

In 1967 the world agreed to define the second using that atom. One second is now officially 9,192,631,770 cycles of the radiation from a transition in the caesium-133 atom. Modern caesium fountain clocks, which toss atoms upward and measure them as they fall, lose less than a second in hundreds of millions of years. Newer optical clocks use light instead of microwaves and are even steadier, to the point that they would drift by about a second over billions of years. Scientists expect the official definition of the second to change to an optical standard in the coming years.

GPS: atomic clocks in the sky

Every GPS satellite carries atomic clocks. A receiver finds its position by measuring how long signals from several satellites take to arrive, so the timing has to be precise to billionths of a second. The satellites also have to correct for relativity. Because they move fast and sit higher in Earth's gravity, their clocks run at a slightly different rate from clocks on the ground, a difference of about 38 millionths of a second a day, and if it were not corrected, GPS positions would drift by kilometres every day.

How your phone and computer know the time

The clock inside your phone or computer is a cheap quartz crystal, and like any quartz clock, it drifts. To stay correct, devices check regularly with a more accurate source. Computers usually use a system called the Network Time Protocol, which asks servers that are linked to atomic clocks for the time and adjusts for the delay in the network. Phones also take the time from the mobile network or from GPS.

Some clocks listen to the radio. Radio-controlled clocks and watches receive a low-frequency time signal, from stations such as WWVB in Colorado in the United States, MSF in the United Kingdom and DCF77 in Germany, and set themselves every night. That is why those wall clocks never need adjusting, even after a power cut.

UTC and the leap second

The time the world agrees on is called Coordinated Universal Time, or UTC. It is based on atomic time, but it is nudged now and then to stay in step with the Earth, whose rotation is slightly uneven. Those nudges are leap seconds. Twenty-seven have been added since 1972, and the last was at the end of 2016. In 2022 the international bodies in charge agreed to stop adding them by 2035. Computer systems, which find leap seconds awkward, were among the reasons.

Every time zone in the world is written as an offset from UTC, as we explain in our guide to time zones. And developers often store time as a Unix timestamp, a count of seconds from a fixed moment in UTC.

How accurate is each kind of clock?

  • A mechanical watch: typically within a few seconds to a minute a day, depending on the quality and how well it is adjusted.
  • A quartz watch or clock: about fifteen seconds a month.
  • A phone or computer, checked against network time: within a small fraction of a second, most of the time.
  • A GPS receiver: within billionths of a second of the satellite time.
  • A caesium atomic clock: a second in many millions of years.
  • An optical atomic clock: about a second in billions of years.

Why clocks drift

Every clock drifts, because its repeating thing is never perfectly steady. Temperature changes the length of a pendulum and the frequency of a crystal. Ageing changes the properties of parts. A mechanical clock also slows as its spring unwinds. That is why good clocks are checked and corrected against something better, from a person glancing at the radio time signal to a computer talking to a time server.

What this means for online clocks

A website that shows the time does not have its own clock. It reads the time from your device, which has been set by the network. Online clocks, alarms and timers are therefore only as accurate as your device clock, and the usual advice applies: leave the automatic time setting on. If you want to compare places, try the world clock, where each country has an analog and a digital face. To measure short intervals yourself, the stopwatch shows hundredths of a second, and our online alarm clock rings at the minute you choose.

The bottom line

A clock is a steady repeater and a counter. A pendulum or a balance wheel gives you seconds of error a day, a quartz crystal gives you seconds a month, and an atom gives you a second in millions of years. Everything we use daily is checked against those atoms, through networks, satellites and radio. So the next time you glance at your phone, remember that its time has quietly travelled from a laboratory, across the world, to your pocket.

Frequently asked questions

How does a mechanical clock work?+

A weight or a wound spring supplies energy. A part called the escapement releases that energy one step at a time, once for each swing of a pendulum or balance wheel. The gears count the swings and move the hands.

How does a quartz clock work?+

A tiny piece of quartz crystal is made to vibrate by an electric current, usually 32,768 times a second. A chip divides that frequency down to one pulse per second, which moves the hands or updates the digits.

How does an atomic clock work?+

It counts the radiation given off when atoms, usually caesium, switch between two energy levels. All atoms of the same kind do this at exactly the same frequency, so it makes an extremely steady reference. The second is defined as 9,192,631,770 cycles of this radiation.

How does my phone know the correct time?+

It takes the time from the mobile network or from GPS, and computers use the Network Time Protocol to check time servers that are linked to atomic clocks. The built-in crystal clock is then corrected regularly.

What is a leap second?+

A leap second is a single second added to UTC from time to time to keep it close to the rotation of the Earth. Twenty-seven have been added since 1972, and it was agreed in 2022 to stop adding them by 2035.

How accurate is a quartz watch?+

A typical quartz watch stays within about fifteen seconds a month. It drifts mainly with temperature, and it can differ slightly from one watch to another.