# How to measure capacitor value using an LC circuit?

How would I measure the value of capacitor using an inductor of unknown value but with a function generator producing a sine wave of 1MHz?

I have an oscilloscope handy.

I lost the labelling on the capacitor.

• If L = unknown then so is C. Commented Jan 12, 2021 at 14:40
• Why would you use an inductor of unknown value when you can grab a resistor of known value for pennies? Also, many multimeters now can measure capacitance. Commented Jan 12, 2021 at 17:25

Put the inductor back in the junk box. You don't know its value, so it is of no help in finding the value of your capacitor.

Instead, get out some resistors, and set up this circuit:

simulate this circuit – Schematic created using CircuitLab

Try various values of R1 until you get approximately half the voltage on V_C as on V_Siggen. It needn't be exact - "in the ballpark" is sufficient. You just don't want 3 V for V_Siggen and 3 millivolts for V_C.

Use the 10X probe on your scope.

Measure the voltages. Peak to peak or RMS, whichever floats your boat. Just use the same method for both measurements.

With two known voltages and one known impedance, you can apply the voltage divider equations and determine the impedance of the capacitor at the frequency your signal generator produces (1MHz from the question.)

That would be $$\ Z_{C1} = \frac {Z_{R1}}{\frac{V_{Siggen}}{V_C} -1} \$$

From the impedance and the frequency, you calculate the capacitance as $$\C = \frac {1}{2 \pi f Z_C} \$$.

All values must be in base units - ohms, farads, volts, hertz.

Keep in mind that capacitors aren't ideal. If you have an electrolytic capacitor (the kind with aluminum foil in a roll) then it'll probably give you funky values because the rolled up foil will act like an inductor at 1MHz. There's also other stuff that can cause the results to be off.

If that's too much math and you have a sound card in your PC, then you could download the program described here.

That's a GNU-Radio flow graph that uses the sound card and a series resistor to measure impedances. It can also measure capacitance and inductance - and resistance, of course.

I put it together to learn about GNU-Radio, but also because this kind of question (how to measure capacitance/inductance/speaker impedance) comes up from time to time here on the EE stack. I thought it'd be nice to have a tool to hand people who don't have a room full of equipment.

• Hi there, I did that but I think that the capacitor value is within the pF range. I think that your method works for large values? Commented Jan 13, 2021 at 8:25
• It'll work for any values, but the capacitance of the scope probe may be a problem - and you'll have to deal with that no matter how you try to measure the capacitor.
– JRE
Commented Jan 13, 2021 at 8:35
• A 10pf capacitor would have around 16 kiloohms impedance at 1 MHz. A series resistor of 16k should work fine using the resistor and oscilloscope method. The soundcard method might not. The impedance of a 10 pf capacitor is like 1.6 Mohm at 10 kHz. I've never tried it for any capacitor that small.
– JRE
Commented Jan 13, 2021 at 8:41
• Thanks, I will give this a go tomorrow when I'm in the lab. Thanks a lot for your ongoing help. You must be very passionate about this. Commented Jan 13, 2021 at 9:07