Oscillator Drift Calculator

Convert a crystal or oscillator's ppm tolerance into frequency error in Hz and the clock error it builds up over days or a year.

Calculator Electronics Updated Oct 15, 2026
How to Use
  1. Enter the nominal frequency (32.768kHz, 16MHz, 25MHz).
  2. Enter the tolerance or stability in ppm from the datasheet (for example ±20 ppm).
  3. Enter the period of interest in days (1 for a day, 365 for a year).
  4. Read the frequency error in Hz and the accumulated clock error.
Input
ppm
days
Presets
Drift
Δf
—
Time error
—
f range
—
Grade
—

Worked Example

An RTC runs from a 32.768 kHz crystal rated ±20 ppm. Frequency error = 32,768 × 20 × 10⁻⁶ = ±0.66 Hz. Time error = 20 × 10⁻⁶ × 86,400 s = ±1.7 s a day, or about ±10.5 minutes a year.

With a ±2 ppm TCXO the same clock stays within about ±63 seconds a year.

The common mistake: trusting the 25 °C tolerance outdoors. A tuning-fork crystal at 0 °C runs about 21 ppm slow on top of its ±20 ppm tolerance, so an outdoor logger can drift twice as far as the datasheet headline suggests.

Show Work

Enter values.

Formulas

Δf
f₀ · ppm · 1e-6
Max freq error.
Time error
ppm · seconds · 1e-6
Clock drift.
Quartz XO
±20–100 ppm
Standard.
TCXO
±0.5–2 ppm
Temp compensated.
OCXO
±0.01 ppm
Oven controlled.
Aging
±1–5 ppm/year
Separate from initial tolerance.

History of Quartz Oscillators

The piezoelectric effect was discovered by Jacques and Pierre Curie in 1880, but it took until 1921 for W.G. Cady at Wesleyan University to build the first quartz crystal oscillator. George Washington Pierce's 1923 "Pierce oscillator" circuit — a transistor (originally vacuum tube) with a crystal between gate and drain plus two capacitors — remains the dominant topology in every MCU and radio chip today, roughly a century later.

The 32.768 kHz "watch crystal" became the standard for quartz watches in the 1970s, after the first quartz wristwatches of 1969 used other frequencies: it's 2^15 Hz, so a 15-stage binary counter produces exactly 1 Hz. Standard tolerance is ±20 ppm, giving about ±10.5 minutes per year in a $5 quartz watch — far better than any mechanical movement. Tuning-fork cut crystals for this frequency have a negative parabolic temperature coefficient centered at 25°C, which is why watches drift faster in hot or cold environments.

For higher stability, temperature-compensated crystal oscillators (TCXO, ±0.5-2 ppm) use a thermistor network to correct the crystal's temperature curve in real time; oven-controlled (OCXO, ±0.001-0.1 ppm) keep the crystal at a constant elevated temperature (typically 75°C) to remove temperature variation entirely. Rubidium and cesium atomic references (10⁻¹² long-term stability) appear in GPS satellites, cellular base stations, and national time standards — each step in stability costs roughly 10× more.

About This Calculator

Enter nominal oscillator frequency, tolerance in ppm (parts per million: 1 ppm = 1 Hz per MHz), and duration of interest. The tool returns maximum frequency error Δf = f₀ · ppm · 10⁻⁶, cumulative time error over the duration (ppm × seconds × 10⁻⁶), and the corresponding frequency range.

Common grades: USB needs ≤ ±500 ppm; UART needs ≤ ±2.5% per side (±25,000 ppm); GPS receivers need ≤ ±1 ppm; cellular basebands need ≤ ±0.05 ppm. Remember to budget separately for initial tolerance (±ppm at 25°C), temperature variation (±ppm over operating range), load capacitance pulling (±ppm from spec Cload), and aging (±1-5 ppm/year cumulative). Everything runs client-side; no values leave your browser.

Frequently Asked Questions

What is ppm?

Parts per million: 1 ppm is a 0.0001% error. A clock that is 1 ppm fast gains 1 µs every second, about 86 ms a day or 31.5 s a year.

Does the datasheet tolerance cover temperature?

Usually not entirely. The "frequency tolerance" is at 25 °C; temperature stability and ageing are separate lines. A 32.768 kHz tuning-fork crystal also slows as it moves away from 25 °C, by about 0.034 ppm per °C²: roughly −21 ppm at 0 °C on top of its tolerance.

What are TCXOs and OCXOs?

A TCXO (temperature-compensated) corrects the crystal's temperature drift electronically and typically holds 0.5–2 ppm. An OCXO (oven-controlled) keeps the crystal at a constant warm temperature and can reach 0.01 ppm or better. Atomic references go far beyond both.

How accurate must a USB clock be?

USB 2.0 high-speed allows ±500 ppm and full-speed ±2,500 ppm, which is why USB devices can use ordinary crystals or even well-trimmed internal oscillators.

Why 32.768 kHz?

It is 2¹⁵ Hz, so 15 divide-by-two stages give exactly one pulse per second, and the low frequency keeps power consumption tiny for watches and real-time clocks.

How do I use the Oscillator Drift Calculator?

Just type your numbers. The answer shows up right away — there is no button to press. Change anything and it updates by itself.

Do I need to install or sign up for anything?

Not at all — it runs in the browser with nothing to install and no account. After it loads once, it even works without an internet connection.

Is my information private?

Yes. Everything happens in your browser. Nothing you type is sent to a server or saved anywhere.

Common Use Cases

Real-Time Clocks

A microcontroller RTC on a ±20 ppm crystal can drift 10 minutes a year; this tells you whether you need network time sync or a TCXO.

Serial and USB Communication

UART baud rates and USB both need the clocks at each end to agree within a few percent or less; compare the drift with the protocol's tolerance.

Radio Frequency Error

A 433.92 MHz transmitter with a ±20 ppm crystal can be up to 8.7 kHz off frequency, which may land outside a narrow receiver's bandwidth.

Data Loggers

Timestamps from a logger running for months drift by minutes unless the clock is corrected.

Last updated: