The law of electrical charges states that like charges repel each other, while opposite charges attract. This single sentence is the fundamental mechanical driver behind every circuit you build, dictating everything from the static shock you feel on a dry winter day to the steady electron flow powering your ESP32 microcontroller. Understanding this law isn't just about passing an electrical theory exam; it is the key to understanding why capacitors store energy, why wires heat up, and why a single touch from an ungrounded finger can instantly destroy a $5 power MOSFET.

The Core Rule and the Math Behind It

At the subatomic level, matter is made of protons (positive charge) and electrons (negative charge). The qualitative rule is simple: positives repel positives, negatives repel negatives, and positives attract negatives. But on the workbench, we need numbers. The quantitative expression of this law is Coulomb's Law, which calculates the exact force of attraction or repulsion between two point charges.

The formula is expressed as:

F = k * (|q1 * q2|) / r^2

  • F = Force in Newtons (N)
  • k = Coulomb's constant (8.987 × 10^9 N·m²/C² in a vacuum/air)
  • q1, q2 = The magnitude of the two charges in Coulombs (C)
  • r = Distance between the charges in meters (m)
Worked Numeric Example:
Imagine you have two static charge buildups on a plastic project enclosure, each holding 1 µC (1 × 10^-6 Coulombs) of positive charge, separated by a distance of 5 cm (0.05 meters). What is the repulsive force between them?

1. Multiply the charges: (1 × 10^-6) * (1 × 10^-6) = 1 × 10^-12 C²
2. Square the distance: 0.05² = 0.0025 m²
3. Apply Coulomb's constant: F = (8.987 × 10^9) * (1 × 10^-12) / 0.0025
4. F = 0.008987 / 0.0025 = 3.59 Newtons

3.59 Newtons is roughly the gravitational weight of a 360-gram object—about the mass of a heavy Fluke 87V multimeter. For microscopic particles, a repulsive force capable of lifting a multimeter is absolutely massive. This inverse-square relationship means if you halve the distance to 2.5 cm, the force quadruples to 14.3 Newtons.

Charge Properties and Bench-Scale Values

To apply the law of electrical charges to real hardware, you need a sense of scale. A single Coulomb is an enormous amount of charge, which is why we usually deal in microcoulombs (µC) or nanocoulombs (nC) in practical electronics. The table below maps theoretical particles to real-world bench components and hazards.

Particle / Entity Charge Value (Coulombs) Polarity Practical Significance
Electron (Elementary) -1.602 × 10^-19 C Negative The fundamental charge carrier in all copper wiring and silicon semiconductors.
Proton (Elementary) +1.602 × 10^-19 C Positive Locked in the atomic nucleus; provides the positive attraction that keeps electrons bound to atoms.
1 µF Capacitor at 12V 12 × 10^-6 C (12 µC) Separated (+/-) Calculated via Q = CV. Represents the actual stored charge separating the plates in a standard decoupling capacitor.
Human Body Model ESD 0.1 µC to 0.5 µC Variable Typical charge transferred when touching a grounded chassis after walking across a nylon carpet (~2000V to 4000V potential).
Car Battery Terminal Macroscopic Neutrality Net Zero Despite high voltage potential, the net charge of the physical lead post is zero; it's the chemical potential that drives separation.

Where You Meet This in Practice

The law of electrical charges isn't an abstract concept; it physically alters how your components behave and how you must handle them on the bench.

1. Capacitors and Dielectric Polarization

When you apply 12V DC across a ceramic capacitor, electrons are forced onto one plate and pulled from the other. The law of electrical charges dictates that the negative plate and positive plate attract each other. This intense attraction creates an electric field across the dielectric material between the plates. The molecules inside the dielectric physically stretch and align (polarize) in response to this attractive force. This mechanical tension in the electric field is exactly how a capacitor stores energy. If you exceed the voltage rating, the attractive force becomes so strong that it rips electrons directly through the dielectric, resulting in a catastrophic short circuit.

2. Electron Flow (Current) in Conductors

When you connect a 12V battery to a DC motor, the chemical reaction inside the battery creates a massive surplus of electrons at the negative terminal and a deficit at the positive terminal. Because like charges repel, the surplus electrons push each other out of the terminal and into the copper wire. Simultaneously, the positive terminal (lacking electrons) attracts them. This continuous push-pull of repulsion and attraction is electrical current. The battery doesn't 'create' electrons; it simply uses chemical energy to separate them, relying on the law of electrical charges to force them back together through your load.

3. ESD and the Death of MOSFETs

This is where ignoring the law of charges gets expensive. Power MOSFETs, like the ubiquitous IRF540N, are controlled by voltage applied to the gate pin. The gate is separated from the conductive channel by an ultra-thin layer of silicon dioxide (often just 50 to 100 nanometers thick).

If you shuffle across a carpet and build up a 2000V static charge, your body holds a surplus of electrons. When your finger touches the gate pin, those electrons violently repel each other and rush into the gate. The voltage gradient across that 100 nm oxide layer can exceed 20 million volts per meter—far beyond the ~10 million V/m dielectric breakdown limit of silicon dioxide. The repulsive force of the like-charges physically punctures a microscopic hole through the gate oxide, permanently shorting the gate to the channel and destroying the component. This is why we use grounded wrist straps and anti-static mats: to safely bleed off repelling charges before they find a path through your silicon.

Common Confusions: Charges vs. Current vs. Magnetism

Even experienced makers sometimes blur the lines between related electrical concepts. Here is how to keep them straight:

  • Charge (Coulombs) vs. Current (Amperes): Charge is the physical 'stuff' (the electrons). Current is the flow rate of that stuff. One Ampere equals one Coulomb of charge passing a specific point in one second. The law of electrical charges explains why the electrons move; current is just the measurement of how fast they are moving.
  • Electrical Charges vs. Magnetic Poles: While both follow an inverse-square law and feature 'opposites attract, likes repel' behavior, they are fundamentally different. Magnetic poles always exist in pairs (dipoles)—you cannot cut a magnet in half and isolate a 'North' monopole. Electrical charges, however, can exist entirely alone (monopoles). You can have an object with a net negative charge and zero positive charge.
  • Voltage vs. Charge: Voltage (Volts) is the potential energy difference per unit of charge (Joules per Coulomb). You can have a massive voltage with very little actual charge (like a 10,000V static shock that is harmless because the total Coulomb count is microscopic), or a low voltage with massive charge (like a 12V car battery that can deliver hundreds of amps).

Frequently Asked Questions

Does the law of electrical charges apply to AC circuits?
Yes, absolutely. In an AC circuit, the polarity of the voltage source reverses periodically (e.g., 60 times a second in US mains power). This means the attractive and repulsive forces on the electrons in the wire constantly flip directions. The electrons don't flow in a continuous loop from the power plant to your house; they simply vibrate back and forth in place, pushed and pulled by the alternating attractive and repulsive forces of the changing electric field.

Why don't the protons in a copper wire move to balance out the charges?
In solid conductors like copper, the protons are locked tightly inside the atomic nuclei, which are bound together in a rigid crystalline lattice structure. Only the outermost 'valence' electrons are loosely bound and free to move. Therefore, when we talk about charge movement in solid wires, we are exclusively talking about the movement of negative electrons. The positive protons stay exactly where they are.

How does this law relate to grounding?
Grounding provides a massive, nearly infinite reservoir of neutral charge (the Earth). If an object has a surplus of electrons (negative charge), the repulsive force between those electrons drives them into the ground wire, where they spread out and neutralize. If an object has a deficit of electrons (positive charge), the attractive force pulls electrons up from the earth to fill the void. Grounding works entirely by giving the law of electrical charges a safe path to reach equilibrium.

For deeper reading on the fundamental constants used in these calculations, refer to the NIST Reference on Fundamental Physical Constants. For practical applications of static electricity and Coulomb's law in circuit design, All About Circuits provides excellent open-source textbook modules.