Wiki · Read the guide: A crystal's load capacitors

Crystal Load Cap

Size the load capacitors of a crystal oscillator: from the datasheet nominal CL and the stray capacitance get the two caps, the nearest E-series value and the error on the effective CL. Demonstration tool.

Crystal and stray capacitance

XTALC1C2OSC_INOSC_OUT
Pierce oscillator with two load capacitors. The calculation uses equivalent stray capacitance across the crystal terminals, derived from PCB and chip contributions.

Result

Capacitors C1 = C2 (ideal)
— pF
Nearest E12
— pF
Nearest E24
— pF
Effective CL (with E24)
— pF
Error
— —

Ideal value, before rounding

The effective load combines the selected standard component value with the sum of equivalent stray contributions. Demonstration tool: it does not assess drive level, ESR or oscillation margin.

Load capacitance from the crystal datasheet (typically 8–20 pF).

Equivalent stray capacitance across the crystal terminals. For two equal branches to ground, use half of one branch’s stray; if entering chip capacitance below, include only the PCB here.

Equivalent chip contribution to the crystal load, added to C_stray. Leave 0 if it is already included in the previous value.

How is it computed?

A crystal oscillates at its nominal frequency only if it "sees" the load capacitance CL given by the datasheet. The model combines the series of the two external capacitors with the equivalent PCB and pin stray contribution:

CL=C1 C2C1+C2+CstrayC_L = \dfrac{C_1\,C_2}{C_1+C_2} + C_{\text{stray}}con C1=C2=C  ⇒  CL=C2+Cstray\text{con } C_1=C_2=C \;\Rightarrow\; C_L = \dfrac{C}{2} + C_{\text{stray}}⇒C1=C2=2 (CL−Cstray)\Rightarrow\quad C_1=C_2 = 2\,(C_L - C_{\text{stray}})

The tool computes the ideal value, rounds it to the nearest E12/E24 value (capacitors come in standard values) and recomputes the effective CL with the resulting error.

Why does the load capacitance matter?

If the effective load capacitance departs from CL, the crystal frequency shifts (pulling) by several ppm. It is a silent mistake: the clock seems to run but is off frequency, and in a communication system the ppm build-up breaks timing. An off-frequency clock can also move the emissions and fail EMC tests.

Estimating C_stray

C_stray is equivalent stray capacitance across the crystal terminals. Add direct coupling between the terminals and, for two symmetric branches to ground, half of one branch’s stray. For example, 3 pF on each branch contributes 1.5 pF equivalent; with CL = 12 pF and no other contributions, the ideal capacitor value is 21 pF. C_pin must also be an equivalent contribution: do not include it twice. The model adds the two fields before applying the formula described above.

What are the E12 / E24 series?

Capacitors only come in standard (E-series) values: E12 with 12 values per decade (10% tolerance), E24 with 24 values (5%). The tool shows the nearest of both; the effective CL and error are computed on E24, the finer one. On a tie the lower value is chosen.

What are the tool’s limitations?

  • It assumes the two capacitors are equal (C1 = C2), the standard case for a crystal Pierce oscillator.
  • It sizes the load capacitance only: it does not assess drive level, ESR, negative resistance or oscillation margin (these need the crystal and package parameters).
  • The frequency pulling in ppm depends on the crystal sensitivity (ppm/pF, from the datasheet) and is not estimated here.
  • Demonstration tool: real oscillator design relies on the crystal and MCU datasheets.

References

  • Generic application notes on crystal (Pierce) oscillator design and load capacitance, published by MCU and crystal vendors.