Crystal Load Capacitor Calculator
Use this tool to size crystal capacitors for MCU, oscillator, and clock circuits. All capacitance values are in pF.
What is crystal load capacitance?
A quartz crystal is specified to oscillate accurately at a target load capacitance (CL), such as 18 pF. In most Pierce oscillator circuits, you place two capacitors (C1 and C2) from each crystal pin to ground. These two capacitors are seen by the crystal as a series combination, plus extra parasitic capacitance from the board and IC pins.
If your effective load is too high or too low, oscillator frequency can shift and startup margin can suffer. That is why crystal capacitor calculation is one of the most important details in clock design.
Core equation used by this calculator
The calculator uses the standard approximation:
CL = (C1 × C2) / (C1 + C2) + Cs
- CL: crystal load capacitance from datasheet
- C1, C2: external load capacitors
- Cs: total stray/parasitic capacitance
Special case when C1 = C2
If both capacitors are equal, the series term becomes C/2, so: CL = C/2 + Cs, therefore C = 2 × (CL − Cs). This gives a quick starting value for most microcontroller designs.
How to use this crystal capacitor calculator
1) Find equal capacitor values
Choose Find equal capacitors, enter CL and Cs, then calculate. The result shows the ideal C1 = C2 and nearby standard capacitor values.
2) Solve for C2 if C1 is fixed
Useful when you already have one capacitor value in stock or want asymmetric loading. Enter CL, Cs, and C1 to compute the required C2.
3) Check resulting CL
Enter Cs, C1, and C2 to see the actual load capacitance your circuit presents to the crystal. This is perfect for reviewing an existing schematic or BOM.
Practical design tips
- Use C0G/NP0 ceramic capacitors for best temperature stability.
- Keep traces from crystal to MCU short and symmetric.
- Avoid routing noisy digital lines near crystal pins.
- Estimate parasitics carefully: pin + pad + trace + package all matter.
- Validate with frequency measurement if precision timing is required.
Worked example
Suppose your 16 MHz crystal specifies CL = 18 pF, and your board parasitics are estimated at Cs = 3 pF. For equal capacitors:
C = 2 × (18 − 3) = 30 pF
Since 30 pF is not always a standard value, you might choose 27 pF or 33 pF and then verify frequency error against your application tolerance.
Troubleshooting quick checklist
- Oscillator fails to start: reduce capacitor values slightly, improve layout, or verify gain margin.
- Frequency low: effective load may be too high.
- Frequency high: effective load may be too low.
- Intermittent startup: check grounding, crystal ESR limits, and drive level requirements.
FAQ
Do C1 and C2 need to be exactly equal?
No. Equal values are common, but unequal values can be used to compensate for asymmetrical parasitics.
Can I ignore stray capacitance?
Not if you care about accuracy. Even a few pF can noticeably shift the oscillator frequency.
Is this formula exact?
It is an industry-standard first-order approximation and works well for most designs. For very tight ppm requirements, include full parasitic modeling and lab characterization.