Skip to content
Omnikalc

Crystal load capacitor calculator

Work out the two capacitors a Pierce crystal oscillator needs to match the crystal's specified load capacitance, the load you get with a standard value, and how far that pulls the frequency in ppm.

Updated on
Your inputs
pF

Value out of range

pF

Value out of range

pF

Value out of range

pF

Value out of range

fF

Value out of range

Results

Ideal value for each capacitor

26.0 pF

Frequency pulling from the nominal value

-6.9 ppm

Within ±10 ppm: fine for UART, USB full speed and most clocks
Load seen by the crystal with your capacitors
18.50 pF
Pulling sensitivity
14.2 ppm/pF

Why load capacitance matters

A quartz crystal oscillates at its marked frequency only when it sees the load capacitance CL written on its datasheet, commonly 8, 12, 18 or 20 pF. In the usual Pierce oscillator, two capacitors C1 and C2 go from each crystal pin to ground. The crystal sees them in series, plus the stray capacitance of the PCB traces and the chip’s pins:

CL = (C1 × C2) ÷ (C1 + C2) + C_stray

With equal capacitors, C1 = C2 = 2 × (CL − C_stray).

Example

An 18 pF crystal on a board with about 5 pF of stray capacitance needs 2 × (18 − 5) = 26 pF on each pin. The nearest standard value is 27 pF, which gives 27 ÷ 2 + 5 = 18.5 pF of load.

How far the frequency moves

A load different from CL “pulls” the frequency. With the crystal’s motional capacitance C1 (a few femtofarads) and shunt capacitance C0 (a few picofarads):

Δf ÷ f ≈ (C1 ÷ 2) × (1 ÷ (C0 + CL_actual) − 1 ÷ (C0 + CL_spec))

With C1 = 15 fF and C0 = 5 pF, the extra 0.5 pF lowers the frequency by about 7 ppm. Too much capacitance makes the crystal slow; too little makes it fast.

Typical tolerances

Application Usual requirement
UART Under about ±1% (10,000 ppm), very easy
USB full speed ±2,500 ppm
Ethernet ±50 ppm
Bluetooth Low Energy ±50 ppm or tighter
32.768 kHz watch crystal ±20 ppm is about 1 minute per month

Practical advice

  • Stray capacitance is usually 2 to 5 pF. Measure the actual frequency on a prototype and adjust.
  • Do not simply use the CL value itself for each capacitor: that doubles the effective load error.
  • Too-large capacitors also reduce the oscillator’s gain margin and can stop low-power oscillators from starting, especially 32.768 kHz crystals.
  • Keep crystal traces short, avoid routing signals under the crystal, and place the capacitors close to the pins.

Frequently asked questions

What is a crystal's load capacitance?

It is the total capacitance the crystal must see across its pins to oscillate at its rated frequency. The manufacturer specifies it, commonly 8, 12, 18 or 20 pF.

How do I calculate the capacitors?

With equal capacitors, each one is 2 × (CL − stray capacitance). For CL = 18 pF and 5 pF of stray capacitance, use 26 pF, or 27 pF as the nearest standard value.

What happens if the capacitors are wrong?

The frequency shifts by a few to tens of ppm. Too much capacitance lowers the frequency and can stop weak oscillators from starting; too little raises it.

How do I know the stray capacitance?

Estimate 2 to 5 pF for a typical board and chip, then measure the real frequency on a prototype with a frequency counter and adjust the capacitor value.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.