Crystal & Resonator

The quartz crystal and ceramic resonator — piezoelectric parts that vibrate at one precise frequency and set the clock in almost every electronic device. Learn how a crystal oscillator works, the piezoelectric effect, the equivalent circuit, series vs parallel resonance (fs, fp), the Pierce oscillator, load capacitance, ppm accuracy, and where they are used.

Complete Learning Path — Crystal & Resonator

From what a quartz crystal is and the piezoelectric effect, to the equivalent circuit, resonance, the oscillator, key specs, types and applications

What Is a Crystal & Resonator?

A crystal — short for quartz crystal — is a passive piezoelectric component that vibrates at one extremely precise frequency. That single, stable frequency is why the quartz crystal is the timing reference at the heart of nearly every clock, microcontroller, radio and computer.

A ceramic resonator does the same job with a piezoceramic element instead of quartz: it is cheaper, smaller and starts faster, but far less accurate. Both are resonators — they store energy and ring at a set frequency — and both must be driven by an oscillator circuit, such as the Pierce oscillator built into microcontrollers, to keep them oscillating and produce a usable clock signal.

Quartz crystal packages: HC-49 metal-can MHz crystal, 32.768 kHz cylindrical tuning-fork crystal and SMD crystal, with the two-electrode piezoelectric crystal schematic symbol and a stable output frequency waveform
Common quartz crystal packages — the HC-49 metal can (MHz, for MCU/USB clocks), the tiny 32.768 kHz cylindrical tuning fork (real-time clocks and watches) and the surface-mount SMD crystal — plus the schematic symbol and the crystal's job: a rock-stable output frequency.
Piezo
quartz vibrates
1 freq
sharp resonance
±10 ppm
typical accuracy
Clock
timing reference
The one-line idea

Apply a voltage → the quartz mechanically vibrates; it rings hardest at one precise frequency, and an oscillator circuit locks onto that frequency to make an accurate clock.

The Piezoelectric Effect — How Quartz Vibrates

Everything a crystal does comes from the piezoelectric effect: quartz turns voltage into motion and motion back into voltage.

Piezoelectric effect: a quartz plate between two electrodes, driven by an AC voltage, deforms and vibrates mechanically, resonating at a frequency set by its thickness
A quartz plate sits between two electrodes. An AC drive voltage deforms it (thickness-shear mode); it springs back and vibrates. It resonates at f = N/t, where t is the plate thickness — thinner quartz means a higher frequency.

Apply a voltage across the electrodes and the quartz plate physically deforms; remove or reverse it and the plate springs back, generating a voltage of its own. Drive it with an AC signal and it vibrates. Like any resonator it vibrates most strongly at one mechanical resonant frequency, set mainly by the thickness and the cut of the plate. Quartz is prized here because it is mechanically stable, low-loss and has an enormous quality factor (Q) — often 10,000 to over 100,000 — giving an extremely sharp, stable resonance that no LC circuit can match.

Why quartz beats an LC circuit

An LC tank might reach a Q of a few hundred; a quartz crystal reaches tens of thousands. Higher Q means a sharper resonance, better frequency accuracy and lower drift — exactly what a clock needs.

Crystal Equivalent Circuit (Butterworth–Van Dyke)

To an electronic circuit, a crystal looks like a network of an inductor, capacitors and a resistor — the Butterworth–Van Dyke (BVD) model.

Crystal equivalent circuit Butterworth-Van Dyke model: a series motional arm of motional inductance Lm, motional capacitance Cm and motional resistance Rm in parallel with the static shunt capacitance C0
The Butterworth–Van Dyke model: the motional arm Lm–Cm–Rm represents the mechanical resonance, in parallel with the static electrode/holder capacitance C0. Series resonance is at fs = 1/(2π√(Lm·Cm)).

Lm — motional inductance

Represents the vibrating mass of the quartz. Large (often henries), which is why Q is so high.

Cm — motional capacitance

The mechanical stiffness/elasticity. Tiny (femtofarads), giving a very sharp resonance.

Rm — motional resistance (ESR)

The mechanical losses. Low Rm = high Q and easy start-up.

C0 — shunt capacitance

The static capacitance of the electrodes and holder, in parallel with everything.

The ratio C0/Cm sets how far apart the two resonances sit; because Cm is so tiny, fs and fp are extremely close — typically a fraction of a percent apart.

Series vs Parallel Resonance (fs and fp)

A quartz crystal doesn't have one resonance — it has two, very close together: series resonance fs and parallel (anti-) resonance fp.

Crystal reactance vs frequency graph: capacitive below the series resonant frequency fs, then a steep inductive region between fs and the parallel resonant frequency fp, then capacitive again above fp
Crystal reactance vs frequency. Below fs the crystal is capacitive; at fs (series resonance) the reactance is zero and impedance is minimum. Between fs and fp it is inductive — the band where oscillators run; at fp (parallel resonance) impedance is maximum.
Series resonance (fs)Parallel resonance (fp)
What resonatesLm with CmLm with Cm in series, then C0
ImpedanceMinimum (≈ Rm)Maximum (high)
Crystal looksResistiveResistive (very high)
Oscillator modeSeries-mode crystalParallel / load-capacitance crystal
Set byLm, Cm onlyAlso depends on load capacitance CL

Because fp depends on C0 and the external load capacitance, a parallel-mode crystal is trimmed to hit its marked frequency only when it sees the specified CL. Get the load caps wrong and the clock runs slightly fast or slow — the most common cause of a crystal being "off frequency".

The Pierce Crystal Oscillator

A crystal on its own is passive. To make it oscillate it needs an amplifier with feedback — and the Pierce oscillator is the circuit built into virtually every microcontroller.

Pierce crystal oscillator circuit: an inverting amplifier with a feedback resistor Rf, the quartz crystal between the XTAL1 and XTAL2 pins and two load capacitors CL1 and CL2 to ground, producing a clock output
The Pierce oscillator: an inverting amplifier, a ~1 MΩ feedback resistor Rf to bias it, the crystal between XTAL1 (XIN) and XTAL2 (XOUT), and two load capacitors CL1, CL2 to ground. The crystal runs in its inductive band and sustains a stable clock.

The feedback resistor Rf (≈1 MΩ) biases the inverter into its linear, high-gain region so it can amplify. The crystal, working in the inductive region between fs and fp, forms a resonant π-network with the two load capacitors that gives exactly the 360° phase shift and unity loop gain needed for a stable oscillation (the Barkhausen criterion). The output is a clean clock at the crystal frequency.

Worked example — sizing the load capacitors

A parallel-mode crystal is marked CL = 12 pF. The two load capacitors appear in series to the crystal, so:

CL = (C1 · C2) / (C1 + C2) + Cstray

With equal caps, C1 = C2 = 2 × (CL − Cstray). Taking Cstray ≈ 3 pF: C1 = C2 = 2 × (12 − 3) = 18 pF. Fit two 18 pF capacitors, one from each pin to ground.

Key Specs & How to Choose a Crystal

Reading a crystal datasheet comes down to frequency, accuracy, load capacitance, ESR and drive level.

Frequency

The marked resonant frequency, e.g. 32.768 kHz, 8 MHz, 25 MHz. Check series- or parallel-mode.

Tolerance & stability

Room-temperature error plus drift over temperature, both in ppm. Add them for worst case.

Load capacitance CL

For parallel-mode parts — size the load caps to match, or the frequency shifts.

ESR (Rm)

Equivalent series resistance; lower ESR starts and runs more easily.

Drive level

Power dissipated in the crystal; stay within the limit, especially for 32.768 kHz tuning forks.

Aging

Slow ppm/year drift; matters for precision timekeeping.

The classic mistake

Mixing up a series-mode and a parallel-mode crystal, or fitting the wrong load capacitors, makes the clock run off frequency — and can break USB, RTC time-keeping or radio tuning. Always match CL to the datasheet.

Types & Accuracy — Crystal, Resonator, TCXO, OCXO

Timing sources form a ladder from cheap-and-loose to ultra-precise. Pick the cheapest one that still meets your accuracy budget.

Timing source accuracy ladder from RC oscillator at plus or minus 5 percent, ceramic resonator at 0.5 percent, quartz crystal at 10 to 30 ppm, TCXO at a few ppm, to OCXO at parts per billion, with application examples
The accuracy ladder: RC oscillator (±5%) → ceramic resonator (±0.5%) → quartz crystal (±10–30 ppm) → TCXO (±0.5–2 ppm) → OCXO (parts-per-billion). A 32.768 kHz crystal times clocks, a MHz crystal clocks MCUs and radios, a ceramic resonator gives a cheap MCU clock.

RC oscillator

On-chip, no external part, ~±5%. Fine for blinking LEDs, not for timing.

Ceramic resonator

Piezoceramic, ~±0.5%, built-in caps, fast start — low-cost MCU clocks.

Quartz crystal

~±10–30 ppm. The workhorse for USB, RTC, radios, MCUs.

TCXO / OCXO

Temperature-compensated or oven-controlled crystal oscillators for ppm–ppb precision.

Applications of Crystals & Resonators

If a device keeps time, talks on a bus, or transmits radio, it almost certainly has a crystal or resonator inside.

Real-time clocks (32.768 kHz)

Watches, RTC chips, MCUs and appliances keep time with the tuning-fork crystal.

Microcontroller clocks

MHz crystals or ceramic resonators clock the CPU core and peripherals.

USB, Ethernet, CAN

Data buses need an accurate crystal to stay inside their frequency tolerance.

Radios & RF

Bluetooth, Wi-Fi, GPS, and transmitters lock their carriers to a crystal reference.

Telecom & instruments

TCXO and OCXO references give base stations and test gear ppb stability.

Consumer & IoT

Cameras, remotes, sensors and IoT nodes all rely on a crystal or resonator clock.

Crystal vs Ceramic Resonator vs RC Oscillator

Three ways to make a clock, three very different trade-offs of cost, size and accuracy.

Quartz crystalCeramic resonatorRC oscillator
ElementQuartz (piezoelectric)PiezoceramicResistor + capacitor
Accuracy±10–30 ppm±0.1–0.5%±1–5%
External capsTwo load caps neededUsually built-in (3-pin)None (on-chip)
Start-upSlowerFastInstant
CostLow–mediumLowest externalFree (integrated)
Use forUSB, RTC, radio, precise timingCheap MCU clocksNon-timing clocks

In short: use a quartz crystal when accuracy matters, a ceramic resonator to save cost and parts when it doesn't, and the built-in RC oscillator only when timing is irrelevant.

Key Terms at a Glance

The essential crystal-and-resonator vocabulary engineers and students search for.

Quartz crystal

Piezoelectric frequency reference.

Piezoelectric effect

Voltage ⇆ mechanical strain.

fs / fp

Series & parallel resonance.

Load capacitance CL

Cap the crystal expects to see.

ESR / Rm

Motional resistance / losses.

ppm

Parts per million of error.

AT-cut

Common MHz thickness-shear cut.

TCXO / OCXO

Compensated / oven oscillators.

Frequently Asked Questions

Quick, expert answers to the questions people ask most about crystals and resonators.

What is a crystal and a resonator?

A crystal, short for quartz crystal, is a piezoelectric component that vibrates at one very precise mechanical resonant frequency when an AC voltage is applied to its electrodes, so it is used as an accurate frequency reference for clocks and timing. A resonator is any component that resonates at a set frequency; in electronics the term usually means a ceramic resonator, a lower-cost and lower-accuracy piezoceramic alternative to a quartz crystal that often has its load capacitors built in. Both are used to set the clock frequency of an oscillator.

How does a quartz crystal work?

A quartz crystal works by the piezoelectric effect. A thin slice of quartz is placed between two electrodes; when a voltage is applied, the quartz mechanically deforms, and when it springs back it generates a voltage. Driven by an AC signal it vibrates, and it vibrates most strongly at one sharp mechanical resonant frequency set mainly by the thickness and cut of the plate. Because quartz is very stable and has an extremely high quality factor, this resonance gives an accurate, stable frequency reference.

What is the difference between a crystal and a ceramic resonator?

A quartz crystal is far more accurate and stable, typically tens of parts per million, and is used where timing matters, such as USB, Ethernet, radios and real-time clocks. A ceramic resonator uses a piezoceramic element, is cheaper and smaller, usually has its two load capacitors built in so it needs fewer external parts, and starts up faster, but its accuracy is only about half a percent. Use a crystal for precise timing and a ceramic resonator for low-cost microcontroller clocks that do not need tight accuracy.

What is the difference between series and parallel resonance in a crystal?

A quartz crystal has two closely spaced resonant frequencies. At the series resonant frequency fs the motional arm of the crystal is purely resistive and the impedance is at its minimum. At the slightly higher parallel or anti-resonant frequency fp, the motional arm resonates with the shunt capacitance C0 and the impedance is at its maximum. Between fs and fp the crystal looks inductive, and this narrow band is where a crystal oscillator operates. A datasheet specifies whether a part is a series-mode or a parallel-mode (load-capacitance) crystal.

What is load capacitance and how do I choose the load capacitors?

Load capacitance CL is the capacitance the parallel-mode crystal expects to see across its terminals to oscillate at its marked frequency. In a Pierce oscillator it is set by the two load capacitors C1 and C2 to ground plus the stray capacitance Cstray of the pins and board. The two capacitors appear in series to the crystal, so CL is approximately C1 times C2 divided by C1 plus C2, plus Cstray. With equal capacitors this gives C1 = C2 = 2 times (CL minus Cstray). For example, for a CL of 12 pF with about 3 pF of stray, use two 18 pF capacitors.

What is a Pierce oscillator?

The Pierce oscillator is the standard crystal oscillator circuit built into almost every microcontroller. It uses an inverting amplifier, a large feedback resistor of about one megohm that biases the amplifier into its linear region, the quartz crystal connected between the two clock pins XTAL1 and XTAL2, and two load capacitors from those pins to ground. The crystal operates in its inductive region and, with the load capacitors, forms a resonant feedback network that sustains a stable oscillation at the crystal frequency.

Why is 32.768 kHz used for real-time clocks?

32.768 kHz is exactly 2 to the power 15, so a simple 15-stage binary counter divides it down to exactly one pulse per second, which is ideal for keeping time. These tuning-fork quartz crystals are small, extremely low power, and accurate enough for clocks and watches, which is why the 32.768 kHz crystal is the standard timekeeping crystal in real-time clock chips, watches, microcontrollers and appliances.

What does ppm mean for a crystal, and what is the difference between tolerance and stability?

ppm means parts per million, a way of expressing how far the frequency can deviate; 1 ppm of a 10 MHz crystal is 10 Hz. Frequency tolerance is the allowed error at room temperature, set by manufacturing. Frequency stability is the extra drift over the operating temperature range, and there is also aging, a slow drift over years. A datasheet lists these separately, for example plus or minus 10 ppm tolerance and plus or minus 20 ppm stability, and the total error is their sum.

What are ESR and drive level of a crystal?

ESR is the equivalent series resistance, the motional resistance Rm of the crystal at resonance; a lower ESR is easier for an oscillator to start and sustain. Drive level is the power actually dissipated in the crystal while it oscillates. Too high a drive level ages the crystal quickly or can damage it, especially a tiny 32.768 kHz tuning fork, while too low a drive level can prevent reliable start-up, so the oscillator design must keep the drive level within the datasheet limit.

What is crystal aging?

Aging is the slow, gradual change of a crystal's frequency over months and years, caused by stress relief in the mounting, mass transfer of contamination onto the quartz surface, and material changes. It is usually specified in ppm per year and is largest in the first year. Good sealing, a suitable cut, and a low drive level reduce aging, which matters most in precision timing such as clocks, instruments and communications.

What is an AT-cut crystal?

The AT-cut is the most common way of slicing a quartz crystal, at about a 35 degree angle to the crystal axis. It vibrates in the thickness-shear mode and has an excellent, nearly flat frequency-versus-temperature curve around room temperature, which is why AT-cut crystals dominate the megahertz range used for microcontrollers, USB and radios. The 32.768 kHz timekeeping crystal instead uses a tuning-fork cut that vibrates by flexing.

What is the difference between a crystal and a crystal oscillator (XO, TCXO, OCXO)?

A crystal is just the passive quartz element and needs an external oscillator circuit, such as the Pierce circuit in a microcontroller, to make it oscillate. A crystal oscillator module, or XO, packages the crystal and the oscillator circuit together and outputs a ready-made clock signal. A TCXO adds temperature compensation for much better stability, a few parts per million, and an OCXO keeps the crystal in a temperature-controlled oven for parts-per-billion stability used in GPS, telecom and instrumentation.

Where are crystals and resonators used?

They are used wherever an accurate clock or timing reference is needed: the 32.768 kHz crystal in real-time clocks, watches and timers; megahertz quartz crystals for microcontrollers, USB, Ethernet, Bluetooth, GPS and radio transmitters and receivers; ceramic resonators for low-cost microcontroller clocks; and TCXO and OCXO oscillators for precision communications and test equipment. Almost every digital and radio system contains at least one crystal or resonator.

Conclusion & Key Takeaways

A crystal is the quiet heartbeat of electronics: a slice of quartz that vibrates at one precise frequency and gives every clock, bus and radio its sense of time.

Piezoelectric

Voltage ⇆ vibration.

Very high Q

Sharp, stable resonance.

fs & fp

Runs in the inductive band.

Pierce circuit

Amp + Rf + 2 load caps.

Match CL

Or the clock drifts.

Everywhere

RTC, MCU, USB, radio.

Continue Learning