Sub topic 3
Coulomb's law: the force between two point charges
What you need before starting
This chapter assumes you can add and scale vectors, and that you know Newton's second law (F = ma). It also assumes basic algebra and unit prefixes such as micro (10⁻⁶) and nano (10⁻⁹). It builds on the previous two chapters. Charge comes in two signs, it is conserved, and it is quantized. Objects become charged when charge moves between them. Here we put numbers on the force between charges.
The law in one line
Coulomb's law gives the size of the electrostatic force between two charged objects that are small compared with the distance between them. Such objects are called point charges.
F = k * |q1| * |q2| / r^2q1andq2are the charges in coulombs (C).ris the distance between the charges in meters (m).kis the Coulomb constant, about 8.988 × 10⁹ N·m²/C².Fis the force magnitude in newtons (N).
The constant is often written k = 1/(4π ε₀). Here ε₀ ≈ 8.854 × 10⁻¹² C²/(N·m²) is the permittivity of free space. Textbooks that go on to Gauss's law prefer this form. For plain force calculations, k is easier to use.
The law has two parts, and both matter in practice:
- Product of charges. Doubling one charge doubles the force. Doubling both quadruples it.
- Inverse square of distance. Doubling the separation divides the force by 4. Tripling it divides the force by 9.
| Change | Effect on force |
|---|---|
| Distance × 0.5 | × 4 |
| Distance × 2 | × 1/4 |
| Distance × 3 | × 1/9 |
| One charge × 2 | × 2 |
| Both charges × 2 | × 4 |
| Both charges × 2 and distance × 2 | × 1 |
Direction and sign
The magnitude formula does not say which way the force points. The force acts along the straight line joining the two charges.
- Like charges (both positive or both negative) repel. Each force points away from the other charge.
- Unlike charges attract. Each force points toward the other charge.
You can keep the sign inside the formula. Drop the absolute value bars and write:
F = k * q1 * q2 / r^2A positive result means repulsion. A negative result means attraction. This is a bookkeeping convention. A negative force here does not mean the force points in a negative coordinate direction.
The full vector form removes any ambiguity. Let r̂ be the unit vector pointing from charge 1 to charge 2. The force on charge 2 is:
F on 2 = k * q1 * q2 / r^2 * r̂If q1 q2 is positive, the force on charge 2 points along r̂, which is away from charge 1. If q1 q2 is negative, it points opposite to r̂, toward charge 1.
Newton's third law applies
The force that charge 1 exerts on charge 2 and the force that charge 2 exerts on charge 1 are equal in size and opposite in direction. This holds even when one charge is much larger than the other.
A common mistake is to think a big charge pushes harder than a small one. It does not. If a 100 µC charge and a 1 µC charge repel, each feels the same force. The two charges accelerate differently only because their masses differ.
A first calculation
Take a +1.0 µC charge and a −2.0 µC charge, 3.0 cm apart.
K = 8.9875517923e9 # Coulomb constant, N*m^2/C^2
def coulomb_force(q1, q2, r):
"""Signed force magnitude in newtons. Positive means repulsive, negative means attractive."""
return K * q1 * q2 / r**2
print(coulomb_force(1e-6, -2e-6, 0.03)) # about -19.97 N (attractive)Check the unit conversions first. 1.0 µC is 1e-6 C, 2.0 µC is 2e-6 C, and 3.0 cm is 0.03 m. The force is about 20 N and attractive. For two tiny charges 3 cm apart, that is a large force. A coulomb is a very large amount of charge, and the force in this example would shift a small object visibly.
Getting a vector out
Real problems need force components. This function returns the force on charge 2 caused by charge 1 in two dimensions.
import math
K = 8.9875517923e9 # N*m^2/C^2
def coulomb_vector(q1, pos1, q2, pos2):
"""Force (Fx, Fy) in newtons on charge q2 at pos2, caused by q1 at pos1."""
dx = pos2[0] - pos1[0]
dy = pos2[1] - pos1[1]
r = math.hypot(dx, dy)
if r == 0:
raise ValueError("charges must be at different positions")
f = K * q1 * q2 / r**2 # signed magnitude
return f * dx / r, f * dy / r # multiply by the unit vector from 1 to 2
# Two +3 uC charges, 10 cm apart on the x axis.
print(coulomb_vector(3e-6, (0.0, 0.0), 3e-6, (0.1, 0.0))) # about (8.09, 0.0)
print(coulomb_vector(3e-6, (0.1, 0.0), 3e-6, (0.0, 0.0))) # about (-8.09, 0.0)
# A +2 uC charge at the origin and a -2 uC charge at (0.03, 0.04): a 3-4-5 triangle, r = 0.05 m.
fx, fy = coulomb_vector(2e-6, (0.0, 0.0), -2e-6, (0.03, 0.04))
print(round(fx, 2), round(fy, 2)) # about -8.63 -11.5The first two lines show Newton's third law. Swapping which charge is the source reverses the force. The third case is an attraction. The force on the −2 µC charge has negative components, so it points back toward the origin. Its magnitude is sqrt(8.63² + 11.50²) ≈ 14.4 N, which matches K·q1·q2/r² with r = 0.05 m.
The function multiplies the signed magnitude by dx/r and dy/r. These are the components of the unit vector from charge 1 to charge 2. The sign of the charge product then does all the work of choosing between repulsion and attraction. Do not also flip directions by hand. That double-counts the sign, and it is one of the most common errors in this topic.
How strong is the electric force?
The electric force between a proton and an electron in a hydrogen atom is far stronger than the gravitational force between them. Take the proton and electron charges as e = 1.602 × 10⁻¹⁹ C. Take the typical separation as the Bohr radius, 5.29 × 10⁻¹¹ m.
- Electric force:
k e² / r² ≈ 8.2 × 10⁻⁸ N. - The ratio of electric to gravitational force,
k e² / (G m_p m_e), is about2.3 × 10³⁹.
The ratio does not depend on distance, because both forces fall off as 1/r². For fundamental particles, gravity is negligible. Large objects feel gravity strongly only because they contain almost exactly equal amounts of positive and negative charge. Their electric forces cancel almost completely.
When the law applies
Coulomb's law as written holds under these conditions:
- Point charges, or spherically symmetric charges. For two charged spheres, you can measure
rbetween their centers, if the charge is spread evenly over each sphere or the spheres are insulating with symmetric charge. For charged conductors close together, charge shifts around on the surfaces. The point-charge formula then gives the wrong answer. - Charges at rest, or moving slowly. The law describes electrostatics. Fast-moving charges also produce magnetic effects that this chapter does not cover.
- Vacuum, or air as an approximation. In a material such as oil or water, the force is reduced by the material's dielectric constant. Water's is about 80. We assume vacuum or air throughout this tutorial.
- Two charges only. With three or more charges, you still apply Coulomb's law to each pair. Then you add the results. That step is called superposition, and it is the subject of the next chapter.
Common errors
- Using centimeters or microcoulombs directly. The constant
kis in SI units. Convert distance to meters and charge to coulombs before you substitute. - Forgetting to square the distance. An answer that is too large by a factor of
roften meansrwas not squared. - Squaring the wrong quantity. The distance is squared. The charges are multiplied, and they are not squared unless they happen to be equal.
- Applying the sign twice. Either use the signed formula with the unit vector, or use magnitudes and decide direction from the sign rule. Never do both.
- Using an offset in place of the separation.
ris the distance between the charges, not the distance from the origin. In coordinates, compute it from the difference of positions, as the code above does. - Thinking a larger charge exerts a larger force. By Newton's third law, the forces are equal.
- Treating extended conductors as point charges when they are close. Charge redistributes on the surfaces, so the simple formula fails.
Quick checks before you trust a result
- Units.
k q1 q2 / r²has units of N·m²/C² × C² / m² = N. If your answer is not in newtons, a conversion is wrong. - Size. Typical lab-scale charges are nanocoulombs to microcoulombs. A force of millions of newtons from such charges means a unit slip.
- Direction. Sketch the two charges and draw arrows for the forces before calculating. Check that your numbers agree with the sketch.
- Scaling. Change
rby a factor of 2 and confirm your answer changes by a factor of 4. This catches missing squares quickly.
Summary of the working model
Each pair of point charges exerts equal and opposite forces on each other along the line joining them. The magnitude is k |q1| |q2| / r². The direction is away from the other charge for like signs and toward it for unlike signs. In vector form, the force on charge 2 is k q1 q2 / r² r̂, with r̂ pointing from charge 1 to charge 2. The rest of the tutorial builds on this one rule. Superposition adds the pair forces. The electric field is the same force divided by a test charge.
Exercise
A charge of +2.0 µC and a charge of +5.0 µC are 10 cm apart. Find the magnitude of the force on each charge and say whether it is attractive or repulsive.
Show answer
Convert to SI units: q1 = 2.0e-6 C, q2 = 5.0e-6 C, r = 0.10 m. Then F = k q1 q2 / r² = (8.988e9)(2.0e-6)(5.0e-6) / (0.10)² = 0.08988 / 0.01 ≈ 8.99 N. Both charges are positive, so the force is repulsive. By Newton's third law, each charge feels the same 8.99 N force, directed away from the other charge.
Exercise
Two point charges exert a force F on each other. Charge 1 is doubled and the distance is doubled. What is the new force in terms of F?
Show answer
Doubling one charge multiplies the force by 2. Doubling the distance divides the force by 2² = 4. The new force is F × 2 / 4 = F/2.
Exercise
A +3 µC charge sits at the origin. A −3 µC charge sits at (0.06 m, 0.08 m). Without a calculator for the direction, state the direction of the force on the −3 µC charge. Then find its magnitude.
Show answer
The charges have opposite signs, so the force is attractive. The force on the −3 µC charge points toward the origin, along the line from (0.06, 0.08) to (0, 0). The distance is sqrt(0.06² + 0.08²) = 0.10 m. The magnitude is F = k |q1||q2| / r² = (8.988e9)(3e-6)(3e-6) / (0.10)² = 0.08088 / 0.01 ≈ 8.09 N.