Accurately determine external ceramic capacitors (C1/C2) for crystal oscillators. Optimize frequency stability, startup margin, and comply with crystal datasheet specifications.
The crystal’s load capacitance (CL) is the effective capacitance that the oscillator circuit presents to the crystal terminals. For a Pierce oscillator — the most common topology — the total load capacitance is determined by the series combination of C1 and C2 plus the stray capacitance (Cs):
Matching the CL specified in the crystal datasheet is critical: deviation causes frequency pulling, reduced oscillation margin, or even failure to start. This calculator helps engineers quickly determine C1 and C2 (typically equal) given the target CL and estimated stray capacitance. Mode B computes the effective CL from existing capacitors.
Derivation for symmetric capacitors: If C1 = C2 = Cx, then total series capacitance = Cx/2, thus CL = Cx/2 + Cs → Cx = 2 × (CL – Cs). The result must be positive: CL must exceed Cs.
| Calculated Cx (pF) | E12 Recommended | E24 option | Resulting CL_eff (pF) |
|---|---|---|---|
| 18.0 | 18 pF | 18 pF | 11.0 (Cs=2pF) |
| 21.0 | 22 pF | 22 pF | 13.0 |
| 15.6 | 15 pF | 15 pF | 9.5 |
| 27.0 | 27 pF | 27 pF | 15.5 |
| 33.0 | 33 pF | 33 pF | 18.5 |
STM32 MCUs typically recommend a 16 MHz crystal with CL = 8 pF. With PCB stray ≈ 2.5 pF, required C1 = C2 = 2*(8 – 2.5) = 11 pF. The closest E12 value is 10 pF (CL_eff ≈ 7.5 pF) or 12 pF (CL_eff ≈ 8.5 pF). Both work within ±10 ppm. This calculator verifies the match instantly.
Based on application notes from STMicroelectronics (AN2867), NXP (AN1891), and Renesas crystal design guidelines. The formulas follow fundamental oscillator theory by Vittoz et al. and IEEE Std 1800™. Our calculation engine implements double-precision IEEE 754 arithmetic for reliable engineering use.