What is crystal load capacitance?
The capacitance the crystal was trimmed to see, listed as CL on its datasheet. The circuit must present this value, C1 and C2 in series plus the stray capacitance, for the crystal to run at its marked frequency.
Two numbers go into this crystal load capacitance calculator: the CL on the datasheet and your stray capacitance. Out come the two load capacitors, the nearest standard values and the CL they actually give. Add the crystal's C0 and motional capacitance to see the frequency error in ppm.
From the crystal datasheet.
PCB traces and oscillator pins. AN2867 uses 5 pF in its example.
Optional: if the MCU datasheet lists it. Adds to each leg, so Cs is then only the PCB part.
Optional: shows how far CL moves.
Optional: from the datasheet.
Optional: listed as C1 in crystal datasheets. 1 fF = 0.001 pF.
Optional: turns the ppm error into hertz.
C1 = C2, nearest E12
15 pF
exact 14 pF
Enter C0 and the motional capacitance from the crystal datasheet to see the frequency error in ppm.
The stray figure is an estimate. Confirm the final values by measuring the frequency on the assembled board, and check the oscillator gain margin (AN2867 asks for more than 5).
Standard E12 pairs closest to CL = 12 pF
| C1 | C2 | CL | CL error |
|---|---|---|---|
| 12 pF | 18 pF | 12.2 pF | +0.2 pF |
| 12 pF | 15 pF | 11.67 pF | -0.333 pF |
| 15 pF | 15 pF | 12.5 pF | +0.5 pF |
| 12 pF | 12 pF | 11 pF | -1 pF |
| 10 pF | 15 pF | 11 pF | -1 pF |
| 15 pF | 18 pF | 13.18 pF | +1.18 pF |
Use C1 = C2 = 2 × (CL − Cs). A crystal with CL = 15 pF and 5 pF of stray capacitance needs 20 pF on each side. The crystal sees the two capacitors in series, so together they contribute 10 pF, and the 5 pF of stray brings the total to 15 pF.
In a Pierce oscillator the crystal sits between two capacitors to ground, so the crystal oscillator load capacitance is those two in series, plus whatever stray capacitance the board and pins add.
With equal capacitors this solves directly. For a chosen C1, the second capacitor follows:
If the MCU datasheet lists the capacitance of each oscillator pin, that capacitance belongs in each leg, and Cs is then only the PCB part:
The load sets the frequency through the crystal's motional capacitance Cm and shunt capacitance C0:
CL − Cs = 10 pF, so C1 = C2 = 20 pF. That is an E24 value. Restricted to E12, the nearest part is 22 pF, which gives CL = 16 pF: 1 pF high, so the crystal runs a little slow.
With 5 pF of stray, C1 = C2 = 15 pF. At typical C0 = 1.0 pF and motional capacitance 3.4 fF the trim sensitivity is −9.33 ppm/pF. A ±5 % capacitor moves CL by ±0.375 pF, which is ±3.5 ppm, or ±0.3 s per day for a real-time clock.
Designing for CL = 10 pF with Cs = 5 pF gives C1 = C2 = 10 pF. If the real stray is only 3 pF, the crystal sees 8 pF. With Cm = 0.027 pF and C0 = 5.57 pF the frequency error is +128 ppm, about 1020 Hz.
CL = 12 pF, PCB 2.5 pF and an average pin capacitance of 5.5 pF. C1 = C2 = 2 × (12 − 2.5) − 5.5 = 13.5 pF, which Microchip rounds down to 13 pF.
Exact C1 = C2 in pF. Round to the nearest standard value and use the crystal oscillator capacitor calculator above to see the CL you end up with.
| CL \ Cs | 2 pF | 3 pF | 4 pF | 5 pF | 6 pF | 7 pF |
|---|---|---|---|---|---|---|
| 6 pF | 8 | 6 | 4 | 2 | n/a | n/a |
| 7 pF | 10 | 8 | 6 | 4 | 2 | n/a |
| 8 pF | 12 | 10 | 8 | 6 | 4 | 2 |
| 9 pF | 14 | 12 | 10 | 8 | 6 | 4 |
| 10 pF | 16 | 14 | 12 | 10 | 8 | 6 |
| 12 pF | 20 | 18 | 16 | 14 | 12 | 10 |
| 12.5 pF | 21 | 19 | 17 | 15 | 13 | 11 |
| 15 pF | 26 | 24 | 22 | 20 | 18 | 16 |
| 18 pF | 32 | 30 | 28 | 26 | 24 | 22 |
| 20 pF | 36 | 34 | 32 | 30 | 28 | 26 |
Parts per million of frequency change for each pF of CL error. Typical parameters of two published crystals; a smaller CL is more sensitive.
| Crystal | 6 pF | 8 pF | 10 pF | 12.5 pF | 15 pF | 18 pF | 20 pF |
|---|---|---|---|---|---|---|---|
| ST AN2867 8 MHz example | −101 | −73.3 | −55.7 | −41.3 | −31.9 | −24.3 | −20.6 |
| Epson FC-135 32.768 kHz | −34.7 | −21 | −14 | −9.33 | −6.64 | −4.71 | −3.85 |
Treat the calculated value as a starting point. The stray figure is an estimate, so build a board, measure the frequency without loading the oscillator (use a buffered clock output or a very low-capacitance probe) and adjust the capacitors. Too much load slows the crystal and also makes it harder to start: AN2867 asks for an oscillator gain margin above 5, and the critical gain rises with C0 and CL. Use C0G/NP0 capacitors, keep traces short and symmetrical with a ground guard, and keep switching signals away from the oscillator pins. This model only covers the load: the initial tolerance, temperature curve and aging of the crystal add on top. The ppm budget in AN2867 adds the crystal's datasheet accuracy to the pulling error, and notes that temperature variation is not included.
The capacitance the crystal was trimmed to see, listed as CL on its datasheet. The circuit must present this value, C1 and C2 in series plus the stray capacitance, for the crystal to run at its marked frequency.
With equal capacitors, C1 = C2 = 2 × (CL − Cs), where CL comes from the crystal datasheet and Cs is the stray capacitance. A 15 pF crystal with 5 pF of stray needs 20 pF on each side.
The crystal sees the two capacitors in series through ground, so together they contribute half of one capacitor. Stray capacitance adds on top of that.
ST uses 5 pF in its AN2867 example. Microchip estimates about 2.5 pF for the traces of a tight layout, and its worked example adds 4.5 and 6.5 pF for the two oscillator pins. If your MCU datasheet lists pin capacitance, enter it separately, because it adds to each leg rather than directly to CL.
Not with 5 pF of stray: 22 pF on each side gives CL = 16 pF, below the 18 pF the crystal was trimmed for, so it runs fast. The match is 26 pF on each side, or 27 pF as the nearest standard value.
No, only the series combination sets CL, so unequal values work and can get closer to a target with standard parts. Most application notes assume equal values, so keep them close and recheck the gain margin.
The crystal runs off frequency: too little load runs fast, too much runs slow. The trim sensitivity is in the crystal's C0 and motional capacitance; the 8 MHz crystal in AN2867 moves 55.7 ppm per pF at a 10 pF load. Far too much load can also stop the oscillator from starting.
C0G/NP0 ceramic. Its value does not move with temperature or voltage the way X7R does, and any change in the capacitors becomes a change in frequency.
See all free electronics tools →
ProtoFlow is free AI PCB design software: describe a circuit and get a schematic with real parts, PCB layout with an autorouter, SPICE simulation and Gerber files. Native KiCad, Altium and EAGLE import and export. Free on macOS, Windows and Linux.
Free to start. No card required.