Rate this calculator

Crystal Oscillator Load Capacitor Calculator

Calculate the correct C1 and C2 load capacitors for a Pierce oscillator from your crystal's datasheet CL specification.

Crystal Parameters

pF
pF

Cstray is typically 2–5 pF from PCB traces and microcontroller pin capacitance.

Results

Calculated C1 = C218.0 pF
Nearest E12 value18.0 pF
XTALC1GNDC2GND

Pierce oscillator: C1 = C2 = 2 × (CL − Cstray)

Common Crystal Reference Values

FrequencyCL (datasheet)Recommended C1 = C2
32.768 kHz7 pF8 pF
8 MHz12 pF18 pF
12 MHz12 pF18 pF
16 MHz12 pF18 pF
20 MHz18 pF30 pF
25 MHz15 pF24 pF

* Assumes Cstray = 3 pF. Adjust based on your PCB layout.

Why Crystal Load Capacitance Matters

A crystal oscillates at its specified frequency only when it sees the correct load capacitance CL on its terminals. Using wrong capacitor values will shift the oscillation frequency, cause start-up problems, or prevent oscillation entirely.

In a Pierce oscillator, two equal capacitors C1 and C2 are placed from each crystal pin to ground. The series combination of C1 and C2, plus the stray capacitance, must equal the crystal's specified CL:

Load Capacitance Formula

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

For C1 = C2 (symmetric)

C1 = C2 = 2 × (CL − Cstray)

Key Points

  • CL is specified in the crystal datasheet — always check it
  • Stray capacitance comes from PCB traces and IC pin capacitance (2–5 pF typical)
  • Too low C1/C2: crystal may oscillate at incorrect overtone frequency
  • Too high C1/C2: frequency pulls low, oscillator may not start
  • Most microcontrollers also specify an acceptable CL range — follow both
  • For 32.768 kHz RTC crystals, CL is often only 6–7 pF

Applications

  • Microcontroller system clock (8, 16, 20 MHz)
  • Real-time clock (32.768 kHz)
  • USB clock generation (12, 48 MHz)
  • RF reference oscillators (25, 26 MHz)

Practical Examples

16 MHz Arduino crystal

Standard 16 MHz crystal for ATmega328P (Arduino Uno). Datasheet specifies 18 pF load capacitance and stray ≈ 3 pF per node.

C1 = C2 = 2 × (CL − Cstray) = 2 × (18 − 3) = 30 pF · Use 22 pF (next standard below)

32.768 kHz RTC crystal

RTC crystal frequency = 2^15 Hz, divides exactly to 1 Hz with a 15-stage binary counter. Used in all clock/calendar ICs.

f = 32768 Hz · T = 30.5 µs · 2^15 = 32768 counter stages → 1 pulse/second

Did you know? A quartz crystal oscillates due to the piezoelectric effect: mechanical stress produces electric charge and vice versa. AT-cut quartz crystals have a temperature coefficient near zero around 25 °C, giving frequency stabilities of ±20–50 ppm without any compensation circuit.