Why is a clock crystal 32.768kHz? The reason it isn't built to output 1Hz directly

32768 is 2 multiplied by itself 15 times, so passing it through a halving circuit 15 times yields exactly one pulse per second. A crystal that vibrates once a second would seem simpler, but why it can't be built is the very reason this frequency was chosen.

Last updated: 2026-10-07 RTCCrystal oscillator32.768kHzFrequency division

32768 = 2 to the 15th power

Divide 32768 by 2 and you get 16384; divide again and you get 8192; at the 15th division you reach exactly 1. That's because 32768 = 215. A crystal that vibrates 32768 times a second, with a "count only every other one" operation repeated 15 times, yields one pulse per second.

This is about as simple as a circuit gets: one toggle that flips its output on every input edge. Two input cycles give one output cycle, so the frequency is halved. Fifteen in series form the divider, a few hundred transistors.

A decimal crystal such as 10000Hz or 100000Hz would need a more complex "one in ten" counter. With a power of two, the simplest circuit repeated is enough. That is the first reason for the odd number 32768.

Dividing a crystal oscillator’s ticks for timekeeping
Dividing a crystal oscillator’s ticks for timekeeping. AI-generated conceptual illustration; see the article’s diagrams and text for circuit details and conditions.
Making 1Hz from 32768Hz by repeated halvingOn the left, the input square wave and three stages of halving it by counting only every other cycle. On the right, the 15-rung ladder from 32768Hz down to 1Hz, highlighting 1024Hz and 256Hz along the way and 1Hz at the end. "Every other one," repeated 15 times, turns 32768 into 1 Flipping the output on every input edge halves the frequency Input Half ÷2 1/4 ÷2 1/8 ÷2 Output completes one cycle per two input cycles. The circuit is one switch. Chain fifteen of these in series and you get the "32768 halving chain." Halving count vs. frequency Crystal 32,768 Hz 1 x 16,384 Hz 2 x 8,192 Hz 3 x 4,096 Hz 4 x 2,048 Hz 5 x 1,024 Hz 6 x 512 Hz 7 x 256 Hz 8 x 128 Hz 9 x 64 Hz 10 x 32 Hz 11 x 16 Hz 12 x 8 Hz 13 x 4 Hz 14 x 2 Hz 15 x 1 Hz ← OS tick ← Stopwatch ← Seconds hand
Figure 1: flipping the output on every input edge halves the frequency. Repeat 15 times and 32768Hz becomes 1Hz.

So why not just make a 1Hz crystal?

A 1Hz crystal would seem simpler, but some reasons say it can't be built and others say it shouldn't be.

It is too large to build. A clock crystal is a tuning fork: a longer arm vibrates more slowly, and frequency is inversely proportional to the square of the arm length. Dropping to 1/32768 needs arms √32768 ≈ 181 times longer, and a 32.768kHz fork has arms around 3mm, so a 1Hz fork would need arms over 50cm (3mm × 181 ≈ 54cm). It won't fit in a wristwatch, and long arms sag and destabilize the frequency. Crystals are only practical above roughly 10kHz.

It can't be trimmed finely. Crystals vary by around ±20ppm from part to part, which is ±1.7 seconds a day. The correction is to count one extra pulse or skip one. At 32768Hz, skipping one of the 32768 pulses in a second is a 30.5ppm correction, and skipping one every few tens of seconds trims below 1ppm. At 1Hz the smallest step is one second, a 100% correction. Counting a fast vibration is what makes fine adjustment possible.

It can't make times shorter than a second. A 1/100-second stopwatch or a microcontroller woken every 1/256 second can use the 256Hz and 1024Hz points partway down the halving chain.

Start-up would be slow. A crystal needs tens of thousands of cycles to settle (a consequence of its high Q), which takes 0.5–2 seconds at 32.768kHz, and RTC initialization has to wait for it (an LSERDY flag or similar). At 1Hz it takes hours to half a day.

Jitter averages out. Each cycle carries a little timing jitter, and the one-second pulse comes from counting 32768 cycles, so the jitters cancel and leave 1/√32768 ≈ 1/181 of a single cycle's jitter.

An RC oscillator (charging and discharging a capacitor through a resistor) can make 1Hz without a crystal, but its accuracy is only 1% to a few percent. 1% is 15 minutes of drift a day, useless for a clock. A crystal's ±20ppm is more than 500 times more accurate.

Why a 1Hz crystal isn't madeThree panels: fork size compared (3mm vs. 54cm), trim step within one second compared (1/32768 vs. 1), and start-up time compared (1 second vs. hours). Three reasons a 1Hz crystal isn't made In each case, counting a fast vibration wins ① Too large 32.768kHz: 3mm arm 1Hz: arm 54cm+ Fork frequency ∝ 1/(arm length)². 1/32768 needs an arm 181× longer (√32768). ② Trimming too coarse Skip 1 of 32768 = 30.5ppm Skip 1 more every tens of seconds: <1ppm At 1Hz, smallest step = 1 second = 100% Can't correct ±20ppm part variation Fast vibration is what allows fine trimming. ③ Start-up too slow 32.768kHz 0.5–2s 1Hz (same cycle count needed) Hours A crystal needs tens of thousands of cycles to settle; at 1 cycle/s that is half a day.
Figure 2: why a 1Hz crystal isn't built. The fork exceeds 50cm, the smallest trim step becomes one second, and start-up takes hours.

So why not go with a higher frequency instead?

Fast crystals such as 4MHz or 10MHz are used as microcontroller clocks, but the main reason they aren't used in clocks is the battery. Current draw is proportional to frequency. A CMOS circuit draws current every time a signal switches, and a 32.768kHz oscillator plus divider runs on 0.3–1µA combined. A CR2032 coin cell (225mAh) could theoretically run it for 25+ years, and in practice lasts 5–10 years. At 4MHz the current rises by more than 100x, and the battery lasts only a few weeks.

The tuning-fork type is small and cheap. The 32.768kHz tuning-fork crystal is the highest-volume crystal made anywhere, in a 2.0mm × 1.2mm package for a few cents.

It also sits above the audible range. Human hearing tops out around 20kHz, so a 32.768kHz fork vibrates but is inaudible. Early wristwatch crystals at 8192Hz and 16384Hz were bigger and audible. Just above 20kHz, a power of two, with low enough current draw: that intersection is 32768Hz.

Map of constraints by frequencyA log scale from 1Hz to 10MHz, with bands showing where crystals can't be built, the audible range, and where the battery can't keep up; the 20–120kHz gap between them is shaded green as the practical range, with power-of-two tick marks and the position of 32768Hz. Left: can't build it. Right: battery can't keep up. Pick a power of 2 in between X-axis: frequency (log). Bands are constraints; green is the practical range 1Hz 10 100 1kHz 10k 100k 1MHz 10M Powers of 2: 8192, 16384, 32768, 65536 32768Hz Can't build crystal / slow start-up Fork gets too long. Trim steps too coarse too. Audible range (to 20kHz): can be heard Battery can't keep up Current ∝ frequency. 100x+ current at 4MHz vs. 32kHz. Buildable, and the battery lasts The value meeting every constraint: a power of two just above 20kHz, 32768Hz. Standardized for wristwatches; crystals and ICs are built around this frequency.
Figure 3: constraints by frequency. Crystals can't be built on the left, current draw climbs on the right, and 32768Hz is what is left.

How temperature shifts the frequency

A tuning-fork crystal's frequency peaks near 25°C and falls with the square of the temperature difference from there (around −0.035ppm/°C²). At 0°C or 50°C that is −22ppm, or −1.9 seconds a day. Hot or cold, the clock runs slow. High-precision RTC ICs (the DS3231, for example) correct for this with a temperature sensor and hold ±2ppm.

Crystal frequency versus temperatureA graph of frequency error (ppm) against temperature (0 to 50°C). The error is 0ppm at the 25°C peak and falls as a parabola with the temperature difference, reaching −22ppm at 0°C and 50°C, or −1.9 seconds a day. The error is always on the slow side. Frequency peaks near 25°C and falls with the square of the offset Hot or cold, the clock only ever runs slow 0 Frequency error (ppm) Slow side 0℃ 25℃ 50℃ 25°C: peak −22ppm −22ppm −1.9 s per day About −0.035ppm/°C² error = −0.035 × (T − 25)² Never runs fast Hot or cold, it runs slow High-precision RTC ICs Sensor-corrected: ±2ppm
Figure 4: frequency peaks near 25°C and falls with the square of the offset. At 0°C and 50°C the clock is 1.9 seconds slow per day.

Designing around the crystal

Load capacitance also moves the frequency. If the capacitors across the crystal (the load capacitance, 6pF or 12.5pF) drift from spec, the frequency shifts by around 10ppm per 1pF, so match them including the board's stray capacitance. A microcontroller's RTC has a calibration register that adds or removes a few pulses over 32 seconds for ±0.5ppm steps.

The oscillator is driven weakly, so it is vulnerable to noise and leakage. The traces are high-impedance, and coupling from a neighboring signal or leakage through flux residue can stop the oscillation or shift its frequency. Standard practice is to place the crystal right next to the IC, keep the traces short, surround it with GND, and route no other signal underneath it.

The advantage of counting

Counting fast vibrations allows fine trimming, shorter time intervals, and averaged-out jitter. 32768Hz sits between the lowest frequency a crystal can be built at (the tens of kHz) and the highest the battery can sustain (below 100kHz), and it is a power of two that is inaudible: close to the only value that meets every constraint.

For estimating current draw and battery life, use the mAh→Wh calculator and the power consumption calculator; for converting between frequency and period, use the frequency ⇔ wavelength calculator.

Frequently asked questions

Would another power of two, like 16384Hz or 65536Hz, not work just as well?
Technically yes, and early wristwatches used 8192Hz and 16384Hz. A lower frequency draws less current but needs a bigger crystal, and below 20kHz it is audible. A higher frequency shrinks the crystal but raises current draw.
What is a frequency divider?
A circuit that divides the input frequency by a whole number. The "counting only every other one" here is divide-by-2, and fifteen stages give divide-by-32768. Internally it is a chain of T flip-flops that toggle on every input edge, also called a ripple counter.
How accurate is ±20ppm for a clock, in practical terms?
86400 seconds a day × 20ppm = 1.7 seconds, about 52 seconds a month, and 10 minutes a year, typical for an ordinary wristwatch. A temperature-compensated RTC (±2ppm) drifts about a minute a year.
Can a microcontroller's built-in RC oscillator drive the RTC?
A built-in low-speed RC oscillator (around 32kHz) is accurate to only ±5–10%, drifting 1–2 hours a day, so it can't keep time. It suits "approximate timing" such as timeouts.

Standards and references

  • Technical documentation from crystal oscillator manufacturers (Epson, Micro Crystal, Murata, and others) — Tuning-fork crystal construction, temperature characteristics, load capacitance vs. frequency, and start-up time
  • Reference manuals from microcontroller manufacturers (RTC calibration registers) — ppm-level calibration by adding or removing pulses
  • Maxim/Analog Devices DS3231 datasheet — Accuracy and correction method of a temperature-compensated RTC

← All design guides