The law of charges states that like electrical charges repel each other while opposite charges attract, with the resulting force governed by the magnitude of the charges and the distance between them. While we usually focus on moving electrons (current) when building circuits, understanding stationary charges (electrostatics) is what keeps your sensitive microcontrollers from turning into expensive silicon paperweights and ensures your high-speed data lines don't cross-talk.
The Core Rule: Attraction, Repulsion, and Coulomb's Math
At the bench, the law of charges is the foundational rule of electrostatics. If you bring two positively charged objects together, they push apart. Bring a positive and a negative together, they pull toward one another. But to actually design around this, you need the math that quantifies that push or pull: Coulomb's Law.
The formula calculates the electrostatic force (F) between two point charges (q1 and q2) separated by a distance (r):
Where Coulomb's constant k ≈ 8.987 × 109 N·m²/C²
Worked Numeric Example
Let's calculate the actual physical force between two small static charges. Imagine two components on a board, each holding a static charge of 1 microcoulomb (1 µC, or 1 × 10-6 C), spaced 10 centimeters (0.1 meters) apart.
- Numerator: (1 × 10-6) × (1 × 10-6) = 1 × 10-12 C²
- Denominator: (0.1 m)² = 0.01 m²
- Calculation: F = (8.987 × 109) × (1 × 10-12 / 0.01)
- Result: F = 0.8987 Newtons
Almost 0.9 Newtons is roughly the gravitational weight of a 90-gram object (like a medium-sized multimeter probe). That is a surprisingly strong physical pushing force generated by invisible particles on a dry workbench, which is exactly why ungrounded static buildup can violently arc across a gap.
What the Law of Charges Changes in a Real Circuit
When you move from static physics to a powered PCB, the law of charges stops being about physical objects pushing each other and starts dictating parasitic capacitance and crosstalk.
Because opposite charges attract, a voltage on one PCB trace will attract opposite charges in an adjacent trace, separated only by the fiberglass dielectric of the board. This creates an invisible, unwanted capacitor. In low-speed DC circuits, you never notice this. But in high-speed digital circuits (like routing USB 2.0 or Ethernet to an ESP32-S3), a fast voltage edge on Trace A forces a rapid rearrangement of charges on Trace B. This electrostatic coupling injects noise spikes into your data lines, causing packet drops or phantom GPIO triggers. The law of charges is the exact reason we use ground planes and guard traces to intercept these electrostatic field lines before they hit sensitive nodes.
Where You Meet This in Practice
You interact with the physical consequences of this law every time you pick up a tool or route a cable. Here is where it shows up outside the textbook:
- Twisted Pair Cabling (RS-485 / Ethernet): By twisting the wires, the physical geometry ensures that the attractive and repulsive electrostatic forces from external noise sources cancel each other out over the length of the cable.
- Capacitor Dielectrics: When you apply voltage to a ceramic capacitor, the internal molecular dipoles physically align due to the attraction of opposite charges. High-K dielectrics (like X7R) align heavily, which is why they exhibit microphonics and voltage coefficient drops.
- Triboelectric Effect (Shuffling Feet): Dragging rubber soles across a synthetic carpet strips electrons from the carpet and packs them onto your body. The mutual repulsion of these excess like-charges is what creates the high voltage potential waiting to discharge.
Real-World Scenario Walkthrough: The Bricked ESP32 Gate
To see what happens when you ignore electrostatic accumulation, let's look at a common bench failure.
The Setup: It is mid-winter, and your workshop humidity is sitting at 15%. You are breadboarding a custom motor driver using an ESP32 DevKit v1 and a few IRF520 MOSFETs. You are not wearing an ESD strap. You walk across the carpeted room, pick up the ESP32, and touch the GPIO pin to connect a jumper wire.
The Numbers: The human body acts as a capacitor. According to the standard Human Body Model (HBM) for ESD, your body has a capacitance of roughly 150 pF (150 × 10-12 F). Walking on dry carpet generated a static charge that pushed your body's voltage potential to 4,000V relative to the grounded bench. The energy stored on your body is calculated as:
E = 0.5 × C × V²
E = 0.5 × (150 × 10-12) × (4000)² = 1.2 millijoules (mJ)
The Outcome: The moment your finger nears the ESP32's GPIO pin, the 4,000V potential overcomes the air gap's dielectric breakdown. A microsecond arc dumps that 1.2 mJ of energy into the pin. The ESP32 instantly resets. When it boots back up, that specific GPIO pin reads a permanent 0V and will not toggle.
What Went Wrong: The law of charges forced the excess electrons on your body to violently equalize with the uncharged PCB. The 1.2 mJ spike punched straight through the ESP32's nanometer-thin gate oxide, which is only rated to withstand about 3.6V. The silicon melted at the microscopic level, shorting the gate to the substrate. A simple 10kΩ pulldown resistor or a TVS diode on the GPIO line would have provided a lower-resistance path to ground, safely bleeding off the charge before it breached the IC.
Common Confusions: Electrostatics vs. Electrodynamics
People frequently confuse the Law of Charges (Coulomb's Law) with Ohm's Law. They govern entirely different domains of electrical physics.
| Feature | Law of Charges (Coulomb's Law) | Ohm's Law |
|---|---|---|
| Domain | Electrostatics (stationary charges) | Electrodynamics (moving charges / current) |
| Primary Variable | Force (Newtons) and Electric Field | Current (Amperes) and Voltage Drop |
| Governs | Capacitance, ESD, crosstalk, insulation | Resistors, wire heating, power dissipation |
| Key Formula | F = k(q1q2/r²) | V = I × R |
FAQ: Quick Answers on Electrostatic Forces
Does the law of charges apply to AC circuits?
Yes, but dynamically. In an AC circuit, the voltage polarity reverses constantly (e.g., 60 times a second for 60Hz mains). This means the electrostatic field around the conductors is constantly collapsing and reversing. This continuous attraction and repulsion of charges in the surrounding dielectric (like the insulation on a wire) causes a tiny amount of current to 'leak' through the capacitance of the cable, known as capacitive reactance.
If electrons are negative, why do we say current flows positive to negative?
This is a historical artifact, not a physics error. Benjamin Franklin guessed the direction of charge flow before the electron was discovered. We kept 'conventional current' (positive to negative) because the math for the law of charges and circuit analysis works perfectly as long as you are consistent. The physical electrons still flow negative to positive, but the electrostatic forces calculated via Coulomb's law remain identical either way.
Where can I find the exact charge value of an electron?
The elementary charge of a single electron is a fundamental physical constant. According to the NIST CODATA reference, it is exactly -1.602176634 × 10-19 Coulombs. This exact value is now baked into the modern SI definition of the Ampere.
For a deeper dive into how static electricity builds up on the bench and how to safely dissipate it, the All About Circuits textbook chapter on static electricity provides excellent foundational reading. Additionally, Georgia State University's HyperPhysics offers interactive calculators for Coulomb's Law if you want to model the forces between specific charge geometries.






