Coulomb's Law

Coulomb's law is the rule that decides whether two charges pull together or push apart — and how hard. Set two point charges, the distance between them and the surrounding medium, and see the electrostatic force F = k·q₁·q₂/(εr·r²): opposite signs attract, like signs repel, with equal and opposite arrows on each charge. Read the force, the field at each charge and the potential energy live, and watch the operating point slide down the inverse-square F–r curve — moving the charges twice as far apart cuts the force to a quarter. It all runs on your device.

You are in the Physics lab.

Same signs repel, opposite signs attract — and the force falls off with the square of the distance.
Force F = kq₁q₂/(εr·r²)—
Nature—
Field at q₁—
Field at q₂—
Potential energy U—
Coulomb constant k—
Sign sets the direction, distance sets the strength. Coulomb's law, F = k·q₁·q₂/r², packs two ideas into one line. The signs of the charges decide whether they attract (opposite) or repel (like) — the magnitude never cares. The distance decides how strong, and it does so through an inverse square: push the charges twice as far apart and the force drops not to a half but to a quarter. It is the same 1/r² shape as gravity — only vastly stronger, and able to pull as well as push.

Reading the simulation

What the two arrows, the ruler and the F–r curve are telling you.

1

The two equal, opposite arrows

Each charge carries one purple F arrow, and the pair is always the same length pointing opposite ways — that is Newton's third law: the two charges push or pull on each other equally. When the arrows point toward each other the charges attract (opposite signs); when they point apart they repel (like signs). The colour and glyph of each disc show its polarity — red with a "+" for positive, blue with a "−" for negative — and the badge in the corner names the force and its size.

2

Doubling r quarters the force

The ruler between the charges reads the separation r, and the lower graph plots the force against it. Because F depends on 1/r², that plot is a steep curve, not a line: the green operating point slides down it as you pull the charges apart, and doubling r drops the force to a quarter, not a half. Try the "Double the distance" preset and watch the point fall to a quarter of its height — the signature of an inverse-square law.

3

The sign of the product sets direction

Only the product q₁·q₂ decides attract versus repel. Two positives or two negatives give a positive product and repulsion; one of each gives a negative product and attraction. The magnitude never cares about the signs — it depends only on the sizes of the charges and the distance. The same sign shows up in the potential energy readout: U is negative for an attractive pair (bound) and positive for a repulsive one. Turn on Field lines to see the field stream out of positive charges and into negative ones.

How It Works

A product of charges, an inverse-square distance, a dielectric medium, and Newton's third law tying the pair together.

1

F = k·q₁·q₂/(εr·r²)

The electrostatic force between two point charges is proportional to the product of the charges and inversely proportional to the square of the distance between them, with Coulomb's constant k ≈ 8.99×10⁹ N·m²/C². Bigger charges mean a bigger force; more distance means a rapidly smaller one. The two forces are equal and opposite on the pair, as Newton's third law requires.

2

Attract or repel

Like charges repel, opposite charges attract. Same-sign charges give a positive product and a force that pushes them apart; opposite signs give a negative product and a force that pulls them together. The simulator flips the force arrows accordingly and the potential energy U = k·q₁·q₂/(εr·r) changes sign at the same moment — negative when they attract, positive when they repel.

3

The field at each charge

Factor one charge out of Coulomb's law and what is left is the electric field: each charge sits in the field E = k·|q_other|/(εr·r²) set up by the other, and feels a force F = q·E. The two field readouts show exactly that — the field at q₁ comes from q₂, and vice versa — which is why the bigger the neighbour, the stronger the field a charge experiences even though the force on the pair is shared equally.

4

The medium screens the charge

Immersing the charges in a dielectric — oil, glass or water — polarises the material, and its bound charges partly cancel the field. Coulomb's law captures this with the relative permittivity εr, dividing the force, field and energy all by the same factor. Water's εr ≈ 80 makes the same two charges pull about eighty times more weakly than in a vacuum — the reason salt dissolves so readily in water but not in oil.

What is Coulomb's law?
Coulomb's law gives the electrostatic force between two point charges: F = k·q₁·q₂/r², where q₁ and q₂ are the charges, r the distance between them and k ≈ 8.99×10⁹ N·m²/C². The force acts along the line joining the charges — repulsive for like signs, attractive for opposite. This simulator shows it as equal and opposite arrows on the two charges.
Why is Coulomb's law an inverse-square law?
The force depends on 1/r², so it falls off with the square of the distance: double the separation and the force drops to a quarter, triple it and to a ninth. It is the same inverse-square pattern as gravity, arising because a point charge's influence spreads over the surface of a sphere whose area grows as r². The F–r graph plots that curve, and the marker slides down it as you increase the separation — the force shrinking far faster than the distance grows.
When is the force attractive and when is it repulsive?
Like charges repel and opposite charges attract. Same sign → positive product q₁·q₂ → the charges push apart; opposite signs → negative product → they pull together. The magnitude depends only on the sizes of the charges and the distance; the signs decide the direction, which the simulator shows by flipping the equal and opposite force arrows and by the sign of the potential energy U = k·q₁·q₂/(εr·r).
How is Coulomb's law related to the electric field, energy and the medium?
The electric field is Coulomb's law with one charge factored out: a charge q creates a field E = k·q/(εr·r²), and a second charge Q in that field feels F = Q·E, recovering F = k·q·Q/(εr·r²). The energy stored in the pair is U = k·q₁·q₂/(εr·r), negative when they attract and positive when they repel. A dielectric medium of relative permittivity εr — oil, glass or water — screens the charges and divides all of these by εr, which is why the same charges pull far more weakly in water than in a vacuum. Our electric field simulator visualises that field.

Teaching electrostatics? You can embed this simulator on your own site free — one line of code, no sign-up.

Classroom activity

A ready-to-assign lab using the simulation above. Free to use — nothing to install or sign up for, and no student data leaves the browser.

High school, College10–20 minInteractive simulation

Learning objectives

  • Apply Coulomb’s law to the force between charges.
  • Describe how force depends on charge and separation.
  • Compare attractive and repulsive interactions.

Variables to change

  • Charge magnitudes
  • Charge signs
  • Separation distance

Procedure

  1. Place two like charges and note the force.
  2. Double one charge and observe the force.
  3. Double the separation and observe the force.
  4. Switch one charge’s sign and note the direction change.

Observations

Record the force as you change charge magnitude, separation, and sign.

Questions

  1. Write Coulomb’s law.
  2. What happened to the force when you doubled the separation?
  3. What happened when you doubled one charge?
  4. How do like and unlike charges interact?
  5. How is Coulomb’s law similar to Newton’s law of gravitation?

Explanation

Coulomb’s law F = k·q₁q₂/r² gives the electrostatic force: proportional to each charge and inverse-square in separation. Like charges repel, unlike attract — the same inverse-square form as gravity, but two-signed.

Answer key (for instructors)
  • 1. F = k·q₁·q₂/r², with k ≈ 8.99×10⁹ N·m²/C².
  • 2. It dropped to one quarter — the force is inverse-square in distance.
  • 3. The force doubled — it is proportional to each charge.
  • 4. Like charges repel; unlike charges attract.
  • 5. Both are inverse-square laws; Coulomb’s can attract or repel, while gravity only attracts.

Educators: link or embed this simulation freely in your LMS or course guide.

Add This Coulomb's Law Simulator to Your Website

Put the Coulomb's Law Simulator on your own page — free, no sign-up, no watermark. It runs entirely in your visitors' browsers. Copy the snippet and paste it into your page's HTML.

The credit line under the widget links back to LK Forge — please keep it so others can find it too.