ElectroCalc

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)