Electromagnetism

Coulomb's Law

Electric force between charges — F = k·q₁·q₂/r², the inverse-square law for electricity

Coulomb's law (1785) describes the force between two electric charges — F = k·q₁·q₂/r². Like gravity, it's inverse-square — quadruples when distance halves. Like and unlike charges repel/attract. Foundation of all electromagnetism — atomic structure, chemistry, materials, electronics. Strength: at atomic distances, ~10³⁶ times stronger than gravity, but cancels at large scales (matter is electrically neutral).

  • FormulaF = k · q₁ · q₂ / r²
  • Coulomb constant k8.99 × 10⁹ N·m²/C²
  • Equivalent (vacuum)k = 1/(4π·ε₀); ε₀ = 8.854 × 10⁻¹² F/m
  • Charge unitCoulomb (C); elementary charge e = 1.602 × 10⁻¹⁹ C
  • DirectionAlong line between charges; attraction (opposite) or repulsion (same)
  • Relative to gravity~10³⁶ times stronger between fundamental particles

Interactive visualization

Press play, or step through manually. The visualization is yours to drive — try it before reading on.

Open visualization fullscreen ↗

Watch the 60-second explainer

A condensed visual walkthrough — narrated, captioned, under a minute.

Coulomb's law

Force between two point charges q₁ and q₂ separated by distance r:

F = k · q₁ · q₂ / r²

where k = 8.99 × 10⁹ N·m²/C² is Coulomb's constant. Equivalently:

F = q₁ · q₂ / (4π · ε₀ · r²)

with ε₀ = 8.854 × 10⁻¹² F/m (permittivity of free space).

Direction — along line between charges. Like charges repel; unlike attract.

Numerical magnitudes

ConfigurationForce
Two 1 C charges 1 m apart9 × 10⁹ N (≈ 1 million tonnes!)
Two electrons 1 nm apart2.3 × 10⁻¹⁰ N
Proton-electron 1 Å apart (Bohr radius)~8.2 × 10⁻⁸ N
Two protons 1 fm apart (in nucleus)~230 N (countered by strong force)
Static charge on shoe vs ground after walking~10⁻⁵ C; pico-Newtons
1 mC at 1 m (typical lab demo)9000 N — substantial!

Vector form for multiple charges

For more than two charges, total force is the vector sum of pairwise forces:

F⃗_on_q = Σ_i k · q · q_i · (r_i_to_q) / |r_i_to_q|³

This is the principle of superposition for electric forces.

vs Gravity

AspectCoulombGravity
FormF = k·q₁q₂/r²F = G·m₁m₂/r²
Constantk = 9 × 10⁹G = 6.67 × 10⁻¹¹
SignAttractive OR repulsiveAlways attractive
Charges/massesBoth signs cancelAlways positive (no anti-mass)
Strength (proton-electron)F_e = 8.2 × 10⁻⁸ NF_g = 3.6 × 10⁻⁴⁷ N
Ratio at atomic scale~10³⁹
Why dominates at large scaleCancels (matter neutral)Always adds (only attractive)

JavaScript — Coulomb force

const k = 8.99e9;  // N·m²/C²
const e_charge = 1.602e-19;  // C

// Force between two point charges
function coulombForce(q1, q2, r) {
  return k * q1 * q2 / (r * r);
}

// Two electrons 1 nm apart
console.log(`e-e at 1 nm: ${coulombForce(-e_charge, -e_charge, 1e-9).toExponential(2)} N`);

// Force vector between two charges at positions r1, r2
function coulombForceVector(q1, q2, pos1, pos2) {
  const r = [pos2[0]-pos1[0], pos2[1]-pos1[1], pos2[2]-pos1[2]];
  const r_mag = Math.sqrt(r[0]**2 + r[1]**2 + r[2]**2);
  const F = k * q1 * q2 / (r_mag * r_mag);
  // Direction from 1 to 2
  return r.map(c => F * c / r_mag);
}

// Total force on a charge from many others
function totalForce(test_charge, test_pos, charges, positions) {
  return charges.map((q, i) => coulombForceVector(test_charge, q, test_pos, positions[i]))
                .reduce(([sx, sy, sz], [fx, fy, fz]) => [sx+fx, sy+fy, sz+fz], [0, 0, 0]);
}

// Single 2 µC charge at origin, force on 1 µC at 1 m
console.log(coulombForceVector(2e-6, 1e-6, [0,0,0], [1,0,0]));

// Compare to gravity
function gravityForce(m1, m2, r) {
  const G = 6.674e-11;
  return G * m1 * m2 / (r * r);
}

// Proton-electron at 1 Å
const p_mass = 1.673e-27;
const e_mass = 9.11e-31;
const F_e = coulombForce(e_charge, -e_charge, 1e-10);
const F_g = gravityForce(p_mass, e_mass, 1e-10);
console.log(`Coulomb/Gravity ratio: ${(Math.abs(F_e/F_g)).toExponential(2)}`); // ~10⁴⁰

// Charges in a dielectric
function coulombInMedium(q1, q2, r, dielectric_constant) {
  return coulombForce(q1, q2, r) / dielectric_constant;
}

// Sodium and chloride ions in water (κ ≈ 80) vs vacuum
const F_vac = coulombForce(e_charge, -e_charge, 0.3e-9);  // ~3 Å apart in salt
const F_water = coulombInMedium(e_charge, -e_charge, 0.3e-9, 80);
console.log(`Vacuum: ${F_vac.toExponential(2)} N. Water: ${F_water.toExponential(2)} N`);
// Water reduces the attraction by 80×, allowing salt to dissolve

// Charge on a small object: count electrons removed
function chargeFromElectrons(num_electrons) {
  return -num_electrons * e_charge;  // negative if electrons added
}

console.log(`1 µC = ${(1e-6 / e_charge).toExponential(2)} electrons`);
// ~6.2e12 electrons (huge number for tiny charge!)

Where Coulomb's law shows up

  • Atomic structure. Electrons orbit nuclei via Coulomb attraction. Sets atomic sizes, chemistry, optics, electrical properties.
  • Chemistry. Ionic bonding (Na⁺Cl⁻), covalent bonding (electron sharing), van der Waals forces — all Coulomb at heart.
  • Materials science. Crystal structures, dielectric constants, electrical conductivity all derive from Coulomb interactions.
  • Electronics. Capacitors, transistors, all charge-based devices — Coulomb force is the fundamental driver.
  • Plasmas. Hot ionized gas — Coulomb interactions between charged particles. Stars, lightning, fusion reactors.
  • Particle physics. Detector design (e.g., wire chambers), beam dynamics in accelerators, scattering experiments.
  • Biology. Membrane potentials, ion channels, neural signals — biochemistry largely about Coulomb interactions in water.

Common mistakes

  • Forgetting it's a vector. Force has direction. For multiple charges, vector-sum forces.
  • Using like charges with negative product. q₁q₂ > 0 (same sign) → positive (repulsive). q₁q₂ < 0 (opposite) → negative (attractive). Watch the signs.
  • Wrong distance units. SI uses meters. Don't mix cm or mm without conversion.
  • Treating it as the only force. At nuclear distances, strong nuclear force dominates over Coulomb between protons. Coulomb is one of four fundamental forces.
  • Ignoring shielding/dielectrics. In materials, effective force is reduced by dielectric constant. Vacuum Coulomb is upper bound.
  • Not checking neutrality. Macroscopic objects are usually nearly neutral. Most Coulomb forces in biology and chemistry are between net-neutral arrangements with displaced charges.

Frequently asked questions

Why is electric force inverse-square?

Same geometric reason as gravity — field lines emanate from a point charge, spreading over spheres of area 4πr². "Density of field" decreases as 1/r². For continuous matter (line, plane, volume of charge), the law gives different distance dependence (Gauss's law derives them all). At deep theoretical level, inverse-square comes from photon being massless.

How does Coulomb's law compare to gravity?

Both are inverse-square. But — (1) Electric is much stronger: between proton and electron, electric force ~10⁴⁰× gravity. (2) Electric can attract or repel; gravity always attracts. (3) Electric charges cancel (positive + negative = neutral); gravitational mass doesn't. So at small scales, electric dominates. At large scales (planets, stars), gravity wins because matter is neutral.

What's the elementary charge?

e = 1.602 × 10⁻¹⁹ C. The smallest unit of free charge — electron has charge -e, proton has +e. (Quarks have ±e/3 and ±2e/3, but they're confined inside protons/neutrons; not seen as free particles). All observable charges are integer multiples of e.

Why don't I feel the electric force from objects around me?

Matter is electrically neutral on macroscopic scales — equal positive and negative charges balance. Tiny imbalance ("static charge") gives small forces. To estimate — if you removed all electrons from a 1 g pebble (~10²² electrons), the resulting force on you 1 m away would be ~10²² N. Mathematics confirms how powerful electric forces are; we don't feel them because matter neutralizes.

How does Coulomb's law work in materials?

In a dielectric (insulator), nearby charges polarize the medium, reducing effective force by factor κ (dielectric constant). Force becomes F = q₁q₂ / (4π·ε₀·κ·r²). Vacuum: κ = 1. Water: κ ≈ 80 (much weaker forces). This is why salt dissolves in water — water reduces ionic interactions.

How does it apply to atoms?

Coulomb attraction between proton (in nucleus) and electron holds atoms together. Attraction strength sets atomic dimensions (Bohr radius ≈ 0.53 Å). Quantum mechanics is needed for the exact behavior — but Coulomb force is THE force in atoms. Chemistry is essentially Coulomb force at work.

Why doesn't electron crash into nucleus?

In a classical picture (electron orbiting like a planet), an accelerating electron would radiate energy and spiral inward. In quantum mechanics, electrons are in stable orbital "wave functions" — defined by Schrödinger's equation balancing kinetic and Coulomb potential energy. The lowest-energy state has a specific size. No spiral collapse.