What a capacitor does and why the connection order matters
A capacitor stores electrical charge temporarily and releases it when needed. The way you connect it depends on what you're trying to do: smooth out voltage ripples in a power supply, block direct current while passing alternating current, or store energy for a burst of power. The connection itself is straightforward — one leg to positive, one to ground or negative — but the order in which you connect it, and whether the capacitor is polarized, determines whether it works safely or fails.
Most capacitors have two legs (called leads). In a polarized capacitor, one leg is marked positive and one is negative; connecting them backwards will damage the capacitor and potentially the circuit. Non-polarized capacitors work either way around. Before you touch anything, identify which type you have by looking at the capacitor itself or checking its datasheet.
Key Takeaways
- Polarized capacitors have a marked positive and negative leg; connecting them backwards will destroy the capacitor and may damage your circuit.
- Always connect the capacitor after the power supply is off, then power on the circuit to avoid voltage spikes that can damage components.
- The positive leg connects to the higher voltage point in the circuit, and the negative leg connects to ground or the lower voltage point.
- Non-polarized capacitors (usually ceramic or film) work in either direction and are safer for beginners because polarity does not matter.
Identifying polarized versus non-polarized capacitors
Polarized capacitors are almost always electrolytic capacitors — they look like small cylinders with two legs sticking out. The negative leg is marked with a white or black stripe running down the side of the cylinder, or the negative leg itself is shorter than the positive one. If you cannot see a stripe, look at the datasheet for the capacitor's part number; the datasheet will show which leg is which.
Non-polarized capacitors are usually ceramic (small, flat, disc-shaped) or film (rectangular, often wrapped in plastic). These have no polarity markings because they work either way. If you are unsure, assume the capacitor is polarized and treat it carefully until you confirm otherwise.
Locating the positive and negative points in your circuit
Before you connect anything, trace the circuit to find where the positive voltage enters and where it returns to ground or the negative terminal of the power supply. The positive leg of a polarized capacitor must connect to the higher voltage point. The negative leg must connect to ground or the lower voltage point.
In a simple circuit powered by a battery, the positive terminal of the battery is the high point, and the negative terminal (or ground) is the low point. In a more complex circuit, you may need to use a multimeter to measure voltage at different points. Set the multimeter to DC voltage mode, touch the red probe to the point you are testing, and touch the black probe to ground. If the reading is positive, that point is higher voltage than ground.
Connecting the capacitor step by step
Step 1: Turn off the power supply. Even if the circuit is not running, residual charge can damage a capacitor or shock you. Unplug the power supply or flip the switch to off.
Step 2: Discharge any existing charge. If the circuit has been running, the capacitor may already be charged. Use an insulated screwdriver or a resistor to touch both legs of the capacitor to each other briefly, or touch both legs to ground. This removes any stored charge safely.
Step 3: Insert the capacitor into the breadboard or solder it to the circuit. If you are using a breadboard, push each leg into a separate hole. If you are soldering, tin the soldering iron tip with a small amount of solder, heat the joint for two to three seconds, and feed solder into the joint until it flows smoothly around the leg and the pad.
Step 4: Connect the positive leg to the high-voltage point. For a polarized capacitor, the longer leg or the leg without the stripe goes to positive. For a non-polarized capacitor, either leg works.
Step 5: Connect the negative leg to ground or the low-voltage point. For a polarized capacitor, the shorter leg or the leg with the stripe goes to negative or ground.
Step 6: Turn the power supply back on. The capacitor will charge to the voltage difference between its two legs. If the capacitor is the right value for the circuit, it will begin doing its job — smoothing voltage, blocking DC, or storing charge — without getting hot or making noise.
What to do if the capacitor gets hot or makes noise
A capacitor that becomes hot or makes a buzzing or hissing sound is failing and should be removed immediately. Turn off the power supply right away. The most common cause is reversed polarity — the positive and negative legs are swapped. Remove the capacitor, check the markings, and reconnect it the correct way around.
Another cause is overvoltage: the voltage across the capacitor is higher than its rated voltage. Check the capacitor's voltage rating (printed on the side, like "25V" or "50V") and measure the voltage at the two points where you connected it. If the measured voltage is higher than the rating, you need a capacitor with a higher voltage rating. Do not reuse a capacitor that has failed; replace it with a new one.
Common mistakes and how to avoid them
Connecting a polarized capacitor backwards is the most common mistake. Before you power on the circuit, double-check the stripe or the leg length. If you are soldering, solder the negative leg first so you can see the stripe clearly while you work.
Connecting the capacitor while the power is on can cause a voltage spike that damages the capacitor or nearby components. Always turn off the power supply before connecting or disconnecting a capacitor. Wait a few seconds after turning off the power to let any charge drain away.
Using a capacitor with a voltage rating that is too low is another common error. If the circuit voltage is 12V, do not use a 5V capacitor. The capacitor will overheat and fail. Use a capacitor rated for at least the voltage of your circuit; 25V or 50V capacitors are safe choices for most low-voltage hobby circuits.
When to use each type of capacitor
Electrolytic capacitors (polarized) are cheap and store a lot of charge in a small space, so they are common in power supplies and audio circuits. Use them when you need high capacitance — usually 1 microfarad or higher — and when the voltage is stable and predictable.
Ceramic and film capacitors (non-polarized) are better for circuits where the voltage direction changes, such as AC circuits, or where you need a small capacitance — usually less than 1 microfarad. They are also safer for beginners because polarity does not matter. If you are unsure which type to use, a non-polarized ceramic capacitor is a good default choice for most hobby projects.
Frequently Asked Questions
What happens if I connect a polarized capacitor backwards?
The capacitor will fail, usually within seconds of powering on the circuit. It may become hot, leak, or rupture. The capacitor is then unusable and must be replaced. In rare cases, the failure can damage nearby components. Always check polarity before powering on.
Can I use a capacitor with a higher voltage rating than my circuit needs?
Yes. A capacitor rated for 50V will work safely in a 12V circuit. Higher voltage ratings make the capacitor larger and more expensive, but they do not harm the circuit. Use the lowest voltage rating that is at least equal to your circuit voltage to save space and cost.
Do I need to discharge a capacitor before removing it?
Yes, if the circuit has been powered on. A charged capacitor can deliver a shock or damage components if you touch both legs together. Turn off the power, wait a few seconds, then touch an insulated screwdriver across both legs to discharge it safely.
What is the difference between a capacitor and a battery?
A battery stores chemical energy and releases it slowly over time. A capacitor stores electrical charge and releases it quickly. Capacitors charge and discharge in milliseconds or microseconds, while batteries take minutes or hours. Capacitors are used for short bursts of power or smoothing; batteries are used for sustained power.
Can I solder a capacitor directly to a circuit board?
Yes. Heat the soldering iron, tin the tip, touch it to the pad and the capacitor leg for two to three seconds, then feed solder into the joint. Remove the iron and let the joint cool. A good solder joint looks shiny and smooth, not dull or blobby. If the joint looks bad, reheat it and add a little more solder.