Electromagnetism · 25 April 2026↻ Updated 26 Aug 2026
Coulomb's Law Calculator — Electric Force Between Charges
Coulomb's Law describes the force between two point charges. Published by Charles-Augustin de Coulomb in 1785, it is the electrostatic analogue of Newton's Law of Gravitation — both forces follow an inverse-square relationship with distance. Coulomb's Law is the foundation of electrostatics, and from it we can derive electric fields, potential, and eventually Maxwell's equations.
Two simulators on this page do the arguing for it. In the first, the separation between two charges is something you drag with a finger, and a live dot rides the force curve while you do — the 1/r² stops being an exponent and starts being a shape. In the second, two charged balls hang from the same pivot and swing out until their repulsion is balanced by gravity, which is the classic exam problem you can grab and pull sideways.
What Is the Formula for Coulomb's Law?
| Symbol | Quantity | Value/Unit |
|---|---|---|
| F | Electrostatic force | N (positive = repulsion, negative = attraction) |
| k | Coulomb's constant | 8.99 × 10⁹ N·m²/C² |
| q₁, q₂ | Charges | Coulombs (C) |
| r | Distance between charges | m |
In SI units, where C²/N·m² is the permittivity of free space.
Sign rule: Like charges (both positive or both negative) → F > 0 → repulsion. Opposite charges → F < 0 → attraction.
The force is one view of the interaction; energy is the other. Move a charge through a field and the same law integrates to a potential — which is why the electric potential calculator can answer "how much work?" with a subtraction, while a force calculation needs directions and vector components. Same physics, two accounting systems.
How Does Electric Force Change with Distance?
Why the square? Picture the influence of a point charge as something that spreads outward evenly in every direction. Whatever total amount leaves the charge has to cross every imaginary sphere drawn around it, and the area of a sphere is . Double the radius and that same total is smeared over four times the area, so the strength at any one spot drops to a quarter. Nothing about electricity is special here — light from a bare bulb and gravity from a planet thin out for exactly the same geometric reason.
Then there is the trap that costs marks every year: the belief that the bigger charge pushes harder. It doesn't. There is one force in , and is a product that couldn't care less which factor is larger. A 10 μC charge next to a 1 μC charge feels precisely what the 1 μC charge feels, in the opposite direction — Newton's third law, arriving out of the algebra rather than being bolted on afterwards. The bench below draws both arrows from that single number, so no amount of slider-dragging can make one longer than the other.
Try it yourself
- Drag either charge along the rail and watch the hollow ghost dot beside the live one. At 50 cm or less it marks ×¼ at double the distance; past 50 cm it flips to ×4 at half the distance, because double has run off the end of the rail. Either way the two heights stay in a 4:1 ratio wherever you stop.
- Set q₁ to +10 μC and q₂ to +1 μC. The banner says one charge is 10× the other; the two arrows on the rail stay exactly the same length. Try any ratio the sliders allow — they never split.
- Flip the sign of q₂ back to negative. The arrows swing round to point inward at each other, the accent turns amber, and the banner switches from repulsion to attraction — the magnitude never noticed.
- Slide either charge to 0 μC. The force vanishes for both, the arrows disappear, and the curve pane says so out loud.
The default pair (+2 μC and −3 μC, 30 cm apart) sits at 599.333 mN of attraction. Drag them to 60 cm and the reading falls to 149.833 mN — one quarter, to the digit, for twice the distance. That factor is the whole content of the inverse square, and it holds at every separation the rail allows, which is a far more convincing demonstration than any single worked number.
Why Do Two Charged Balls Hang Apart? The Pendulum Equilibrium
Hang two pith balls from the same point on identical threads, touch them both with a charged rod, and they spring apart and stop — not at zero, not at ninety degrees, but at some particular angle they find on their own and hold. That angle is the answer to a three-way argument. The string can only pull along its own length. Gravity pulls straight down. The repulsion pushes each ball away from the other, roughly horizontally. Equilibrium is the pose where those three cancel.
Resolve the forces on one ball and the strings drop out of the problem entirely. Horizontally, the string's tension has to supply ; vertically, it has to hold up the weight, . Divide one by the other and the tension — the one force nobody knows — cancels:
That is the whole result. The angle measures the repulsion against the weight, and nothing else.
Try it yourself
- Watch first without touching anything. Both balls settle at 9.5° each — nobody typed that angle in. If your device is set to reduce motion, the scene simply starts there already at rest; otherwise you get to watch them find it: half a degree off vertical, springing apart, overshooting, and ringing down.
- Grab a ball, pull it well out to one side, and hold it there. The other ball doesn’t wait: it re-balances against wherever your finger is. Let go and both ring down together.
- Leave the masses equal and set q₁ = 400 nC against q₂ = 100 nC. Four to one, and the two angles stay identical — one force acts on both balls.
- Now put m₁ at 4 g and leave m₂ at 2 g. The angles split immediately, and the banner quotes tan θ₁/tan θ₂ = m₂/m₁ beside the measured ratio.
- Switch the free-body view to Show force triangle and pull a ball again. The three vectors laid head to tail leave a gap while the pair is swinging; the gap closes to nothing as the motion dies away.
The Math Behind the Equilibrium Angle
The formula above is not quite a solution, because depends on the separation , and depends on the very angles you are solving for. With both threads of length tied to a common pivot, the balls hang at horizontal distances and on opposite sides, so
For identical balls, and this collapses to the familiar with — one equation in one unknown, though a transcendental one that has to be solved numerically rather than rearranged.
One honest caveat about that line: it assumes the line joining the two balls is horizontal, so that the repulsion has no vertical component. That is exactly true when the balls hang at the same angle, and only then. Give them different masses and the heavier ball hangs steeper, the connecting line tilts, and the textbook prediction drifts — by a few tenths of a degree at charges like these, growing to fifteen degrees or so once the charges are large, the strings short, and the masses far apart. The simulation integrates the real two-dimensional motion, so its equilibrium ticks — drawn from the formula — mark where the balls end up almost landing; the gap is the formula's, not the simulation's.
Worked Examples for Physics Exams
Worked Example
Example 1 — Two protons
Two protons are separated by 1 nm (10⁻⁹ m). Each proton carries charge q = +1.6 × 10⁻¹⁹ C. What is the electrostatic repulsion between them?
That's 0.23 nN — tiny in everyday terms, but enormous relative to the proton's mass (1.67 × 10⁻²⁷ kg). This is why protons in a nucleus need the strong nuclear force to hold them together against electrostatic repulsion.
Worked Example
Example 2 — Comparing gravity and electrostatics
Compare the gravitational and electrostatic forces between two electrons separated by 1 mm.
Electron charge: q = −1.6 × 10⁻¹⁹ C, mass: m = 9.11 × 10⁻³¹ kg
Electrostatic: N
Gravitational: N
The electrostatic force is about 10⁴² times stronger than gravity between electrons. Gravity is utterly negligible at the subatomic scale.
Worked Example
Example 3 — Finding the charge on two hanging balls
Two identical balls of mass m = 2 g hang from the same point on L = 0.5 m threads. They carry equal charges and come to rest with each thread 10° from the vertical. Find the charge on each ball. (Take g = 9.8 m/s².)
Step 1 — the separation. Each ball sits from the vertical, on opposite sides:
Step 2 — the force, from the angle alone. With equal masses the balls hang level, so the repulsion is horizontal and applies exactly:
Step 3 — the charge, from Coulomb's Law. Both charges are equal, so :
So q ≈ 108 nC on each ball. Notice how little charge that is — a tenth of a microcoulomb, spread over two objects light enough to be lifted by a breath, is enough to hold them 17 cm apart against gravity.
Set both charge sliders in the simulator above to 110 nC — the nearest step they offer — with 2 g balls on 0.5 m threads: the pair settles at 10.1°, the balls 17.6 cm apart, a tenth of a degree from the exam answer.
Frequently Asked Questions
Related Concepts
Electric Potential Calculator →
The energy view of the same law — equipotential lines, potential difference, and the work done moving a charge between two points.
Electric Field →
Visualise the electric field vectors around point charge configurations.
Ohm's Law Calculator →
From electrostatic force to current flow — Ohm's Law in circuit form.
Explore more simulations
Every concept on PhysicStuff has an interactive simulation. No login, no setup required.