Calculators · Oscillator helper
Crystal load capacitor
LiveCalculate matching load capacitors for crystals and simple oscillator circuits.
Go from crystal and IC datasheets to practical C1 and C2 starting values.
Inputs
Set the calculator
Live visual
Calculation cue
--
Enter valid values to show the live visual.
Result
--
Enter valid values to calculate.
Result detail
Results appear here once the inputs are valid.
Calculator guide
From datasheet to the right crystal capacitors
Formulas, examples, and practical notes for using the result with confidence.
Overview
You have picked a crystal for a microcontroller, RTC, or oscillator and now the schematic wants two mysterious capacitors. This page helps you find the numbers in the right datasheets, estimate the capacitance already hiding in the IC and PCB, and turn that information into practical starting values for C1 and C2.
The calculator assumes two equal load capacitors from the crystal pins to ground. That is the common Pierce-oscillator arrangement used by many microcontrollers, but the exact IC reference design always gets the final say.
Current example
Enter valid values above and this example will update with the calculator state.
What a crystal actually does
The crystal is a precise mechanical resonator inside an electronic oscillator.
A quartz crystal bends slightly when voltage is applied and creates voltage when it bends back. Cut to the right shape, it rings at a very repeatable frequency, a bit like a microscopic tuning fork.
The crystal does not normally generate a clock by itself. The oscillator amplifier inside the microcontroller, RTC, or clock IC keeps nudging it, while the crystal selects the narrow frequency where that loop is happiest.
That stable clock controls instruction timing, serial baud rates, USB timing, real-time clocks, and many radio or measurement functions. The two load capacitors help the complete oscillator operate at the condition the crystal manufacturer used when specifying its frequency.
Microcontroller clock
Runs the CPU and keeps digital timing predictable.
Real-time clock
Uses a 32.768 kHz crystal to count seconds with very low power.
Communication timing
Keeps interfaces and radios close enough to their required frequency.
Why the two load capacitors are needed
C1, C2, and the hidden parasitics create the effective load seen by the crystal.
In a typical Pierce oscillator, C1 connects one crystal pin to ground and C2 connects the other pin to ground. From the crystal’s point of view those capacitors act mainly in series, while IC pin capacitance, package capacitance, pads, and traces add an extra stray contribution.
The total is called load capacitance, written CL. A parallel-resonant crystal is calibrated to its nominal frequency at a particular CL, so changing the load slightly “pulls” the oscillator frequency. Too much capacitance usually pulls frequency lower and can slow startup; too little usually pulls it higher.
The load capacitors also form part of the oscillator feedback network. Random values may still oscillate on a breadboard, but correct values give the circuit a much better chance of reliable startup and sensible frequency accuracy across component and temperature variation.
Effective load capacitance
Step 1: find CL in the crystal datasheet
Use the load-capacitance value for the exact crystal ordering code, not a similar part.
Open the manufacturer datasheet for the exact crystal part number. Look in the electrical characteristics table for “Load capacitance”, “CL”, or “Nominal load capacitance”. Common values include 6 pF, 8 pF, 10 pF, 12.5 pF, 18 pF, and 20 pF.
Check the ordering-information table as well. Manufacturers often sell the same frequency and package with several CL options, and a suffix in the ordering code selects the version. A generic distributor title may not show that difference.
Do not use shunt capacitance, usually written C0, in the calculator. C0 is a different crystal model parameter. Also do not type the crystal frequency into this field; frequency and load capacitance are separate specifications.
If the exact datasheet does not state CL, inspect the product page, ordering code, or ask the supplier. Guessing from another crystal with the same frequency can produce the wrong capacitor values.
Parameter-table clue
A row reading “Load capacitance, CL: 12.5 pF” means 12.5 pF goes into the first calculator field.
Ordering-code clue
If an 8 MHz family offers 8 pF and 18 pF options, match the suffix on your actual reel, bag, BOM, or invoice.
Step 2: estimate Cstray from the IC and PCB
Cstray collects the capacitance already present before C1 and C2 are fitted.
Next open the microcontroller, RTC, or oscillator datasheet and its hardware-design application note. Search for “crystal oscillator”, “external clock”, “load capacitor”, “pin capacitance”, “stray capacitance”, or “Pierce oscillator”. The vendor may give a complete reference circuit, recommended C1/C2 values, or a capacitance estimate to use.
Some ICs include programmable or fixed load capacitors internally. If the documentation says the selected internal value already supplies the crystal load, external capacitors may be smaller or unnecessary. Follow that IC’s method instead of automatically adding two parts.
When no combined estimate is supplied, Cstray includes oscillator-pin input capacitance plus package, pad, via, solder-mask, trace, and nearby-ground effects as seen through both crystal nodes. For a compact PCB, 2 pF to 5 pF is a common first-pass range, not a guaranteed fact. Sockets, breadboards, long traces, and large pads can add more.
If the IC reference design recommends equal external capacitors for the same crystal CL, you can back-estimate its assumed stray value with Cstray ≈ CL - C/2. That is often more useful than trying to add every tiny parasitic from scratch.
Back-estimate stray capacitance
Step 3: calculate C1 and C2
For equal load capacitors, subtract Cstray from CL and double what remains.
Enter the crystal’s datasheet CL and your combined Cstray estimate above. With C1 equal to C2, the two external capacitors contribute half of their individual value, which leads to the compact equal-capacitor formula.
Choose the nearest sensible standard capacitor value, normally using stable C0G/NP0 ceramic parts for tighter timing work. The calculator result is a starting value; the IC vendor’s recommended range, oscillator gain margin, and measured frequency still matter.
If the result is zero, negative, or only a couple of picofarads, stop and recheck the inputs. Internal and stray capacitance may already meet most of CL, or the IC may be intended to use internal load capacitors instead.
Equal external capacitors
18 pF crystal on a compact PCB
With CL = 18 pF and Cstray = 3 pF, C1 = C2 ≈ 2 × (18 - 3) = 30 pF. A nearby standard value such as 30 pF or 33 pF becomes the value to review against the IC reference design.
Step 4: place the parts and verify the clock
Good layout protects startup and frequency accuracy as much as good arithmetic.
Place the crystal and both capacitors close to the oscillator pins. Keep the two traces short, avoid vias where practical, keep noisy clocks and switching nodes away, and use the ground arrangement recommended by the IC vendor. A long trip across the board adds capacitance and picks up noise.
For a prototype, leave footprints that allow a few nearby capacitor values or no-fit parts. If the clock runs slightly fast, a little more load capacitance generally pulls a parallel-resonant crystal lower; if it runs slow, a little less may pull it higher. Make small changes and preserve startup margin.
Measure using the IC’s buffered clock-output pin when available. A normal oscilloscope probe placed directly on a high-impedance crystal node adds capacitance and can shift or stop the oscillator, especially with a 32.768 kHz watch crystal.
Crystal capacitor mistakes worth avoiding
Most wrong values come from reading the wrong datasheet row or forgetting internal capacitance.
The calculation is simple only after the inputs are understood. Confirm the exact crystal ordering code, then treat the oscillator IC documentation as part of the design rather than relying on a generic capacitor pair copied from another board.
A clock that starts once on the bench is not automatically robust. Startup margin can disappear at low voltage, cold temperature, high capacitor tolerance, or on a board with different parasitics.
Assumptions and limits
- Results are design estimates, not a substitute for datasheets, measurements, safety approvals, or engineering review.
- Component tolerance, temperature, supply variation, and real loading can move the final circuit away from the ideal calculation.
- Calculator results are estimates for design and learning. Verify values against datasheets, tolerances, temperature, load behaviour, and safety requirements before using them in a real circuit.
Licensing
Calculator copy, equations, and generated visuals are provided for learning and design-reference use on Kobee unless a specific licence is shown.
Next tools