The law of electric charges states that like charges repel each other, while opposite charges attract. This fundamental rule of electrostatics dictates everything from how energy is stored in a ceramic capacitor to why a static shock from a doorknob can instantly brick an unprotected ESP32 microcontroller. In a real circuit or installation, this law governs the physical forces between electrons, determines the capacitance and voltage ratings of energy storage components, and defines the catastrophic risk of electrostatic discharge (ESD) when handling bare silicon.
The Core Mechanism: Attraction, Repulsion, and Coulomb's Law
At the subatomic level, matter is composed of protons (positive), electrons (negative), and neutrons (neutral). The interaction between these particles is governed by the electromagnetic force. When you isolate stationary charges, the electrostatic component of this force takes over. According to HyperPhysics, the exact magnitude of this attractive or repulsive force is calculated using Coulomb's Law, an inverse-square law that mirrors Newton's law of universal gravitation but operates with vastly greater strength at short distances.
The formula for Coulomb's Law is:
F = k * (|q1 * q2| / r²)
- F = Electrostatic force (Newtons, N)
- k = Coulomb's constant (approximately 8.99 × 10⁹ N·m²/C² in a vacuum)
- q1, q2 = Magnitude of the two charges (Coulombs, C)
- r = Distance between the center of the charges (meters, m)
The absolute value bars around the charges mean we calculate the magnitude of the force first. If the signs of q1 and q2 are the same (both positive or both negative), the force is repulsive. If the signs are opposite, the force is attractive. Because k is such a massive number, even microscopically small accumulations of charge can generate surprisingly large physical forces.
Worked Numeric Example: Calculating Electrostatic Force
To understand the sheer scale of electrostatic forces, let us calculate the attraction between two small point charges suspended in air (which behaves similarly to a vacuum for this calculation).
| Parameter | Value | Context |
|---|---|---|
| Charge 1 (q1) | +2 µC (2 × 10⁻⁶ C) | A small positive static charge |
| Charge 2 (q2) | -3 µC (-3 × 10⁻⁶ C) | A small negative static charge |
| Distance (r) | 0.05 m (5 cm) | Roughly the width of a standard PCB |
Plugging these values into Coulomb's Law:
- Multiply the charges: |(2 × 10⁻⁶) * (-3 × 10⁻⁶)| = 6 × 10⁻¹² C²
- Square the distance: (0.05)² = 0.0025 m²
- Divide charge product by distance squared: (6 × 10⁻¹²) / 0.0025 = 2.4 × 10⁻⁹
- Multiply by Coulomb's constant: (8.99 × 10⁹) * (2.4 × 10⁻⁹) = 21.576 Newtons
A force of 21.5 Newtons is equivalent to the gravitational weight of a 2.2 kg (4.8 lb) object. Think about that: two invisible charges, each only a few millionths of a Coulomb, separated by a mere 5 centimeters, pull on each other with the same force as a heavy bag of flour. This immense force is exactly why dielectric breakdown in capacitors and ESD events are so violently destructive to microelectronics.
Where You Meet This in Practice: From ESD to Capacitors
You might think electrostatics only applies to rubbing balloons on your hair, but the law of electric charges is actively at work on your workbench and inside your electrical panels.
Capacitor Energy Storage
A capacitor is essentially a trap built on the law of electric charges. When a DC voltage is applied across a capacitor's plates, electrons are forced onto one plate (making it negative) and pulled from the other (making it positive). Because opposite charges attract, the electrons on the negative plate desperately want to cross the dielectric gap to reach the positive plate. The dielectric material (ceramic, tantalum, or electrolytic oxide) physically blocks them. The energy stored in the capacitor is literally the potential energy of that electrostatic attraction. When you short the leads, you remove the barrier, and the attractive force drives the current spike.
Electrostatic Discharge (ESD) in Microcontrollers
When you walk across a carpeted workshop in dry winter air, friction strips electrons from the carpet and deposits them on your body. Because like charges repel, these excess electrons spread out evenly across your skin, pushing against each other and raising your body's electrical potential—often to 3,000V or more. When you reach for a grounded metal chassis or an ungrounded ESP32 GPIO pin, the massive potential difference causes the charges to violently attract to the lower-potential ground. According to the ESD Association, a Human Body Model (HBM) strike of just 100V can destroy modern silicon gate oxides. The physical repulsion of charges on your body is the direct cause of the high voltage that fries your components.
High-Voltage Insulator Design
In high-voltage AC/DC installations, like-charges repelling each other causes electrons to push toward the outer surface of a conductor. While this is heavily tied to the skin effect at high frequencies, electrostatic repulsion also dictates the design of corona rings on high-voltage transmission hardware. Engineers use smooth, rounded metal toroids to spread the like-charges out over a larger surface area, reducing the localized repulsive force and preventing the air from ionizing into a conductive plasma (corona discharge).
Common Confusions: Electric Charges vs. Magnetic Poles
People frequently confuse the law of electric charges with the laws of magnetism because both follow a 'like repels, opposites attract' framework. However, as detailed in All About Circuits, there is a massive structural difference between the two phenomena.
Electric charges can exist as isolated monopoles. You can have a single, isolated electron (a negative charge) or a single proton (a positive charge) sitting in space. Magnetic poles, however, cannot be isolated. If you cut a bar magnet in half to separate the North and South poles, you do not get a magnetic monopole; you simply get two smaller magnets, each with its own North and South pole. Furthermore, while stationary electric charges generate electrostatic fields, they do not generate magnetic fields until they begin to move (current). Moving electric charges (current) generate magnetic fields, which is the foundational principle behind inductors, transformers, and electric motors.
What is the difference between the law of electric charges and Ohm's law?
The law of electric charges deals with electrostatics—the physical forces between stationary charges and the potential energy they create. Ohm's Law (V = I * R) deals with electrodynamics—the continuous flow of those charges (current) through a resistive medium. The law of charges explains why a static shock happens; Ohm's Law explains how much current flows through a heater element once the circuit is closed.
How does the law of electric charges apply to static electricity damage in microcontrollers?
Friction causes an imbalance of electrons on your body. Because like charges repel, they distribute across your surface, creating a high-voltage electrostatic field. When you touch a microcontroller pin, the opposite charges in the silicon substrate or the ground plane violently attract those electrons. This rapid, uncontrolled movement of charge (current) generates localized heat that melts the microscopic silicon pathways or punctures the nanometer-thin gate oxides inside the CMOS transistors.
Can the law of electric charges be violated or shielded?
The law itself cannot be violated; it is a fundamental property of the universe. However, its effects can be shielded using a Faraday cage. Because like charges repel, excess charges placed on a conductive enclosure will push each other until they all reside on the absolute outermost surface of the conductor. This leaves the interior of the enclosure completely free of electrostatic fields, protecting sensitive electronics inside from external static charges and electromagnetic interference.






