Crystal Load Capacitance Calculator
Enter your crystal's load capacitance and stray capacitance to find the two external capacitors needed for a Pierce oscillator.
Use the Crystal Load Capacitance Calculator
Crystal & Circuit Parameters
From the crystal datasheet. Common values: 6, 8, 12, 18 pF.
PCB trace + MCU pin capacitance combined. Typically 2–7 pF.
Common CL Presets
Results
Formula (Pierce Oscillator)
CL is the crystal's required load capacitance. Cs is the total stray capacitance (PCB traces + MCU pin). C1 and C2 are the two external capacitors placed between each crystal pin and ground.
Effective Load Verification
Summary
This calculator computes the external capacitor values (C1 and C2) required for a Pierce crystal oscillator. It applies the standard formula C1 = C2 = 2 × (CL − Cs), where CL is the crystal's specified load capacitance and Cs is the total stray capacitance from PCB traces and MCU pins. Results include exact values and the nearest E12/E24 standard capacitor sizes.
How it works
- Enter the crystal's specified load capacitance (CL) in picofarads — find this on the crystal datasheet.
- Enter your PCB stray capacitance (Cs), typically 2–7 pF depending on layout and microcontroller pin capacitance.
- The calculator solves the Pierce oscillator formula: C1 = C2 = 2 × (CL − Cs).
- The result shows the required capacitor value and the nearest standard E12/E24 values.
- Use identical capacitors for C1 and C2 to keep the oscillator balanced.
Use cases
- Selecting load capacitors for a microcontroller crystal (STM32, PIC, AVR, ESP32).
- Debugging an oscillator that fails to start or drifts due to incorrect loading.
- Verifying a schematic's capacitor values against the crystal datasheet.
- Adjusting for board-specific stray capacitance measured or estimated from layout.
- Teaching Pierce oscillator theory with an interactive example.