Coulomb's Law Calculator

Find the electric force between point charges, solve for a missing charge or distance, and see how the medium and gravity compare.

⚡ Coulomb's Law Calculator
Medium
Relative permittivity (εr)
Charge q1
Charge q2
Distance (r)
Solve for
Interaction (for an unknown charge)
Force (F, size only)
Charge q1
Charge q2
Distance (r)
Charge A (qA)
Position of A (xA)
m
Charge B (qB)
Position of B (xB)
m
Test charge (q0)
Position of test charge (x0)
m
Particle pair
Charge q1
e
Charge q2
e
Mass m1
kg
Mass m2
kg
Distance (r)
Coulomb force
—
Nature
—
Force (scientific)
—
Force in vacuum
—
k / εr
—
Product q1q2
—
Distance used
—

Distance r
—
Force
—
Charge q1
—
Charge q2
—
Distance
—
Nature
—

Net force on q0
—
Direction
—
Force from A
—
Force from B
—
Distance to A
—
Distance to B
—

Electric / gravity ratio
—
Electric force
—
Gravitational force
—
Stronger
—
Electric nature
—

⚡ What is Coulomb's Law?

Coulomb's law states that the electric force between two stationary point charges is proportional to the product of the charges and inversely proportional to the square of the distance between them. Charles-Augustin de Coulomb measured this behaviour with a torsion balance and published it in 1785. The force acts along the straight line joining the charges. Like charges repel, opposite charges attract, and by Newton's third law each charge feels a force of the same size. Everything in electrostatics, from the field of a point charge to the energy of a capacitor, builds on this one inverse square rule.

The law is used wherever charges interact at a distance. Physics students use it to find the force between charged spheres or ions, chemists use it to explain why ionic bonds are strong in air but weak in water, and engineers use it to estimate the force on dust, toner or droplets in electrostatic precipitators, printers and inkjets. Atomic physics begins with it too: the pull between the proton and electron in hydrogen is a Coulomb force. This page covers four jobs: the force between two charges, solving for any one missing quantity, the net force on a charge that sits between two others on a line, and a direct comparison with gravity.

A few points are easy to miss. The force depends on the medium, and the vacuum value is divided by the relative permittivity, so charges in water pull on each other roughly 80 times less than in vacuum. The law is for point charges or uniformly charged spheres, not arbitrary shapes. It also only covers charges at rest: moving charges add magnetic forces, which the Lorentz force calculator handles. Finally, the huge size of the Coulomb constant does not mean strong forces are common. A full coulomb is an enormous charge, and everyday objects carry nanocoulombs.

The chart in every mode helps with intuition. In the force and solve modes it plots force against distance on log-log axes, where an inverse square law is a straight line. In line mode it shows the net force along the whole line, with the singularities at each charge clipped. In gravity mode it plots both forces together, so you can see two parallel lines separated by dozens of orders of magnitude. For the field and potential of the same charges, see the electric field calculator and the electric potential calculator.

📐 Formula

F  =  k |q1 q2| / ( εr r² ),   k = 1 / (4πε0)
F = size of the force on each charge (N), repulsive if q1q2 > 0 and attractive if q1q2 < 0
k = Coulomb constant, 8.9875517862 × 109 N m²/C² (from ε0 = 8.8541878188 × 10-12 F/m, CODATA 2022)
q1, q2 = charges (C); 1 e = 1.602176634 × 10-19 C exactly
r = distance between the point charges (m)
εr = relative permittivity of the medium (1 for vacuum, about 1.0006 for air, about 80 for water)
Solve for q: |q1| = F εr r² / (k |q2|)
Solve for r: r = √( k |q1q2| / (εr F) )
Charges on a line: Fnet = FA + FB, each signed along the line (superposition)
Gravity: Fg = G m1 m2 / r² with G = 6.6743 × 10-11 m³/(kg s²)
Example: q1 = q2 = 1 µC, r = 10 cm, vacuum gives F = 0.8988 N

📖 How to Use This Calculator

Steps

1
Choose a mode. Force finds the force between two charges. Solve for finds the force, a charge or the distance from the other three. Line of charges finds the net force on a test charge between two others. vs Gravity compares the electric force with gravity.
2
Enter charges, distance and medium. Type each charge with its unit (the unit only labels the number you type), use a negative number for a negative charge, then pick a medium or type your own relative permittivity.
3
Read the result and the chart. The size of the force is shown with an SI prefix and in scientific notation, along with attraction or repulsion. The chart marks your values on the force curve.

💡 Example Calculations

Example 1 — Two 1 µC Charges 10 cm Apart

q1 = q2 = +1 µC, r = 10 cm, vacuum

1
Convert: q1q2 = 10-6 × 10-6 = 1 × 10-12 C² and r² = 0.1² = 0.01 m²
2
F = 8.98755 × 109 × 10-12 / 0.01 = 0.8988 N = 898.8 mN
3
Both charges are positive, so the force is repulsive. At 20 cm the force is a quarter of this, 224.7 mN, and at 5 cm it is four times larger, 3.595 N.
Force = 898.8 mN (repulsive)
Try this example →

Example 2 — Opposite Charges in Water

q1 = +2 µC, q2 = -3 µC, r = 0.5 m, in water (εr = 80, illustrative)

1
Vacuum force: 8.98755 × 109 × 6 × 10-12 / 0.25 = 215.7 mN
2
In water divide by 80: 215.7 mN / 80 = 2.696 mN
3
The charges have opposite signs, so the force is attractive. Water weakens it by a factor of 80, which is one reason ionic crystals dissolve.
Force = 2.696 mN (attractive)
Try this example →

Example 3 — How Far Apart for a 1 N Force?

Solve for distance: F = 1 N, q1 = q2 = 1 µC, vacuum

1
r = √( k |q1q2| / F ) = √( 8.98755 × 109 × 10-12 / 1 )
2
r = √0.00898755 = 0.09480 m = 94.80 mm
3
Two microcoulomb charges must be closer than about 9.5 cm to push each other with a full newton.
Distance = 94.80 mm
Try this example →

Example 4 — Finding an Unknown Charge

Solve for q1: F = 0.5 N attractive, q2 = -5 µC, r = 0.3 m, vacuum

1
|q1| = F r² / (k |q2|) = 0.5 × 0.09 / (8.98755 × 109 × 5 × 10-6)
2
|q1| = 0.045 / 44937.8 = 1.001 µC
3
The force is attractive and q2 is negative, so q1 must be positive.
q1 = +1.001 µC
Try this example →

Example 5 — Equilibrium Between Two Like Charges

qA = +9 µC at x = 0, qB = +1 µC at x = 1 m, test charge +1 µC at x = 0.75 m

1
Distance to A is 0.75 m, so FA = 8.98755 × 109 × 9 × 10-12 / 0.5625 = +143.8 mN (pushes right)
2
Distance to B is 0.25 m, so FB = 8.98755 × 109 × 1 × 10-12 / 0.0625 = -143.8 mN (pushes left)
3
The sum is zero. The 3 to 1 distance ratio exactly offsets the 9 to 1 charge ratio, so x = 0.75 m is an equilibrium point. Along the line it is stable for a like-charge test charge, because both charges push it back toward this spot, but it is unstable sideways.
Net force = 0 N (balanced)
Try this example →

Example 6 — Net Push From a Positive and a Negative Charge

qA = +4 µC at x = 0, qB = -1 µC at x = 1 m, test charge +1 µC at x = 0.5 m

1
A repels the test charge: FA = 8.98755 × 109 × 4 × 10-12 / 0.25 = +143.8 mN
2
B attracts it toward +x: FB = 8.98755 × 109 × 1 × 10-12 / 0.25 = +35.95 mN
3
Both point the same way, so they add: 143.8 + 35.95 = 179.8 mN toward +x.
Net force = 179.8 mN toward +x
Try this example →

Example 7 — Two Electrons 100 pm Apart

q1 = q2 = -1 e, m1 = m2 = 9.1093837139 × 10-31 kg, r = 100 pm

1
Fe = k e² / r² = 8.98755 × 109 × (1.602177 × 10-19)² / (10-10)² = 23.07 nN
2
Fg = G m² / r² = 6.6743 × 10-11 × (9.109384 × 10-31)² / 10-20 = 5.538e-51 N
3
Fe / Fg = 4.166e42. Gravity between two electrons is utterly negligible, at any distance.
Electric force is 4.166e42 times gravity
Try this example →

❓ Frequently Asked Questions

What is Coulomb's law formula?+
Coulomb's law gives the electric force between two point charges as F = k |q1 q2| / r², where k = 1/(4 pi eps0) is about 8.988e9 N m²/C², q1 and q2 are the charges in coulombs and r is the distance between them in metres. In a medium, divide by the relative permittivity.
How do I find the force between two charges?+
Multiply the size of the two charges, divide by the square of the distance, then multiply by k = 8.988e9 N m²/C². For two 1 microcoulomb charges 10 cm apart in vacuum, F = 8.988e9 x 1e-12 / 0.01 = 0.8988 N, and the force is repulsive because the charges are alike.
Is the Coulomb force attractive or repulsive?+
Like charges (both positive or both negative) repel and opposite charges attract. The calculator reports this from the sign of q1 times q2, while the size of the force uses the absolute values of the charges.
What is the value of the Coulomb constant k?+
k = 1/(4 pi eps0) = 8.9875517862e9 N m²/C², using eps0 = 8.8541878188e-12 F/m from CODATA 2022. The commonly quoted value 8.99e9 or 9e9 is a rounded form of the same constant.
How does a dielectric medium change the Coulomb force?+
The force is divided by the relative permittivity of the medium. In water (about 80) the force between two charges is about 80 times weaker than in vacuum, which is why salts dissolve into ions in water. Air is close to 1.0006, so air is nearly the same as vacuum.
How do I find the distance for a given force?+
Rearrange to r = sqrt(k |q1 q2| / (eps_r F)). For two 1 microcoulomb charges in vacuum to push each other with exactly 1 N, r = sqrt(8.988e9 x 1e-12 / 1) = 0.0948 m, or 94.80 mm.
How do you find the force on a charge from two other charges?+
Use superposition. Find the Coulomb force from each charge separately, give each a sign along the line (positive means toward +x), and add them. If the two forces are equal and opposite the net force is zero, which is an equilibrium point.
Why is the electric force so much bigger than gravity?+
For an electron pair the electric force is about 4.2e42 times the gravitational force, because k e² is vastly larger than G m². Both fall as 1 over r squared, so the ratio does not change with distance. Gravity only dominates for large objects with almost no net charge.
Does Coulomb's law work for large charged objects?+
It is exact for point charges and for uniformly charged spheres measured from their centre. For other shapes, or charged objects close together, the charge redistributes and you must integrate or use a field solver. This calculator treats every charge as a point.
What are the units of charge in Coulomb's law?+
Use coulombs (C) in SI. Practical charges are small, so the unit menu includes mC, µC, nC and pC, and elementary charges e (1 e = 1.602176634e-19 C). The distance is converted to metres and the force is shown in newtons with an SI prefix.

What is Coulomb's law formula?

Coulomb's law gives the electric force between two point charges as F = k |q1 q2| / r², where k = 1/(4 pi eps0) is about 8.988e9 N m²/C², q1 and q2 are the charges in coulombs and r is the distance between them in metres. In a medium, divide by the relative permittivity.

How do I find the force between two charges?

Multiply the size of the two charges, divide by the square of the distance, then multiply by k = 8.988e9 N m²/C². For two 1 microcoulomb charges 10 cm apart in vacuum, F = 8.988e9 x 1e-12 / 0.01 = 0.8988 N, and the force is repulsive because the charges are alike.

Is the Coulomb force attractive or repulsive?

Like charges (both positive or both negative) repel and opposite charges attract. The calculator reports this from the sign of q1 times q2, while the size of the force uses the absolute values of the charges.

What is the value of the Coulomb constant k?

k = 1/(4 pi eps0) = 8.9875517862e9 N m²/C², using eps0 = 8.8541878188e-12 F/m from CODATA 2022. The commonly quoted value 8.99e9 or 9e9 is a rounded form of the same constant.

How does a dielectric medium change the Coulomb force?

The force is divided by the relative permittivity of the medium. In water (about 80) the force between two charges is about 80 times weaker than in vacuum, which is why salts dissolve into ions in water. Air is close to 1.0006, so air is nearly the same as vacuum.

How do I find the distance for a given force?

Rearrange to r = sqrt(k |q1 q2| / (eps_r F)). For two 1 microcoulomb charges in vacuum to push each other with exactly 1 N, r = sqrt(8.988e9 x 1e-12 / 1) = 0.0948 m, or 94.80 mm.

How do you find the force on a charge from two other charges?

Use superposition. Find the Coulomb force from each charge separately, give each a sign along the line (positive means toward +x), and add them. If the two forces are equal and opposite the net force is zero, which is an equilibrium point.

Why is the electric force so much bigger than gravity?

For an electron pair the electric force is about 4.2e42 times the gravitational force, because k e² is vastly larger than G m². Both fall as 1 over r squared, so the ratio does not change with distance. Gravity only dominates for large objects with almost no net charge.

Does Coulomb's law work for large charged objects?

It is exact for point charges and for uniformly charged spheres measured from their centre. For other shapes, or charged objects close together, the charge redistributes and you must integrate or use a field solver. This calculator treats every charge as a point.

What are the units of charge in Coulomb's law?

Use coulombs (C) in SI. Practical charges are small, so the unit menu includes mC, µC, nC and pC, and elementary charges e (1 e = 1.602176634e-19 C). The distance is converted to metres and the force is shown in newtons with an SI prefix.