Law
The Laws of Electromagnetism
Six named laws describe how electric charges, currents, and changing fields push on each other. Three of them (Gauss, Faraday, and Ampère with Maxwell's fix), plus one more equation about magnetic flux, make up Maxwell's equations. Here is a guide to how the six fit together: the comparison table first, then when to use each one.
At a glance
Electromagnetism is built from a short list of laws. Coulomb's Law gives the force between charges. Gauss's Law says how charge makes an electric field. Biot-Savart Law and Ampère's Law say how current makes a magnetic field. Faraday's Law says a changing magnetic field makes an electric field, and Lenz's Law tells you which way the induced current goes.
These are not six separate ideas. Maxwell's equations pull them into four: Gauss's law for electric fields, Gauss's law for magnetism, Faraday's law, and the Ampère-Maxwell law. This page puts the six laws side by side so you can see which ones are Maxwell equations, which are special cases, and which to pick for a given problem.
| Law | What it relates | Equation | Maxwell equation? | Use it to find | Key condition |
|---|---|---|---|---|---|
| Coulomb's Law | Two point charges and the force between them | F = k·q₁·q₂ / r² (k = 1/(4πε₀)) | No (follows from Gauss for static point charges) | Electric force on a charge from other charges | Point charges at rest (or nearly so) |
| Gauss's Law | Electric field flux through a closed surface and the charge inside | ∮ E·dA = Q_enc / ε₀ (∇·E = ρ/ε₀) | Yes (Gauss for electric fields) | E field of symmetric charge layouts; charge on conductors | Always true; easy to use only with high symmetry |
| Biot-Savart Law | A current element and the magnetic field it makes at a point | dB = (μ₀/4π) · I dℓ × r̂ / r² | No (magnetostatic counterpart of Ampère) | B field of any wire shape, such as a loop or segment | Steady currents (magnetostatics) |
| Ampère's Law | Magnetic field around a loop and the current through it | ∮ B·dℓ = μ₀ I_enc (full form: + μ₀ε₀ dΦ_E/dt) | Yes, only with the Maxwell term added (Ampère-Maxwell) | B field of wires, solenoids, and toroids with symmetry | Steady currents in the original form; add displacement current for changing E |
| Faraday's Law | Changing magnetic flux and the induced EMF | EMF = −dΦ_B/dt (∇×E = −∂B/∂t) | Yes (Maxwell-Faraday equation) | Induced EMF in coils, generators, and transformers | Flux through the loop must change (B, area, or angle) |
| Lenz's Law | Direction of the induced current and the flux change | The minus sign in EMF = −dΦ_B/dt | Special case (the sign inside Faraday) | Direction of the induced current or magnetic force | Whenever Faraday induction occurs |
Each algorithm in depth
Click any card for the full article with an interactive visualization, complexity analysis, code examples, and FAQ.
-
Coulomb's Law
The force between two point charges is proportional to the product of the charges and falls off as the inverse square of the distance. Like charges repel and unlike charges attract. It is the oldest law here, and for static charges it follows from Gauss's law.
View interactive ↗ -
Gauss's Law
The total electric flux through any closed surface equals the enclosed charge divided by ε₀. It is always true, and it gives the field directly when the charges are symmetric: a sphere, a long line, or a flat sheet.
View interactive ↗ -
Biot-Savart Law
Gives the magnetic field made by each tiny piece of a steady current, then you add up the pieces. It works for any wire shape, including loops and short segments, and agrees with Ampère's law for steady currents.
View interactive ↗ -
Ampère's Law
The line integral of B around a closed loop equals μ₀ times the current through the loop. It gives B quickly for a long wire, solenoid, or toroid. For changing electric fields Maxwell added a displacement-current term.
View interactive ↗ -
Faraday's Law
A changing magnetic flux through a loop induces an EMF in it. The EMF equals minus the rate of change of flux. This is how generators, transformers, and induction cooktops work.
View interactive ↗ -
Lenz's Law
The induced current flows in the direction that opposes the change in flux that caused it. It is the minus sign in Faraday's law, and it is energy conservation in disguise.
View interactive ↗
From Coulomb to Maxwell: how the laws fit together
The story starts with Coulomb's Law. In 1785 Coulomb measured that the force between two charges drops as 1/r². That is the whole law for charges at rest. Add up the forces from many charges and you get the electric field.
Gauss's Law says the same thing in a different way. Draw any closed surface. The electric flux through it, which counts the field lines passing out, equals the enclosed charge divided by ε₀. For a static point charge, symmetry plus Gauss gives back Coulomb's 1/r² field. Going the other way, Coulomb's law plus the idea that fields add up gives Gauss's law. Gauss is the more general form, and it is the one that survives in Maxwell's equations.
Magnetism has a parallel pair. Biot-Savart Law gives the field from each small piece of a steady current. Ampère's Law gives the same answer by a shortcut when the current has symmetry. For steady currents the two are equivalent, once you also use the fact that magnetic field lines never start or end. That fact is the fourth equation, Gauss's law for magnetism: the magnetic flux through any closed surface is zero, or ∇·B = 0. It says there are no isolated magnetic charges. It has no page of its own here, but it is one of the four.
The last step is change over time. Faraday's Law says a changing magnetic flux makes an EMF. Maxwell then saw that a changing electric field should make a magnetic field too. Put the four equations together and you get Maxwell's equations. Lenz's Law is not a fifth equation. It is the minus sign in Faraday's law.
The four Maxwell equations, in integral form:
- Gauss (electric): ∮ E·dA = Q_enc/ε₀
- Gauss (magnetism): ∮ B·dA = 0
- Faraday: ∮ E·dℓ = −dΦ_B/dt
- Ampère-Maxwell: ∮ B·dℓ = μ₀I_enc + μ₀ε₀ dΦ_E/dt
Which law do I use? A decision guide
Start with what is given and what you want.
- Force between two point charges: use Coulomb's Law. It is one line of arithmetic.
- Electric field of a sphere, long line, or flat sheet of charge: use Gauss's Law. Pick a surface that matches the symmetry, so E is constant over it.
- Magnetic field of a long straight wire, solenoid, or toroid: use Ampère's Law. Pick a loop that matches the symmetry. For a solenoid this gives B = μ₀nI.
- Magnetic field of a wire loop, a short segment, or an odd shape: use Biot-Savart Law. There is no symmetry to exploit, so you add up the contributions piece by piece. At the center of a circular loop it gives B = μ₀I/(2R).
- EMF in a coil because the field, area, or angle is changing: use Faraday's Law. Remember to multiply by the number of turns N.
- Which way the induced current flows: use Lenz's Law. The induced current opposes the change in flux.
One trap: Gauss and Ampère are always true, but they only hand you the field easily when symmetry lets you pull E or B out of the integral. With no symmetry, they still hold, but you need another method.
Faraday's law vs Lenz's law
People often treat these as two laws. They are one law. Faraday's Law gives the size of the induced EMF: how fast the flux changes, times the number of turns. Lenz's Law gives the direction. The induced current makes its own magnetic field, and that field pushes against the change. Push a magnet toward a coil and the coil pushes back. Pull it away and the coil pulls back. If it worked the other way, a small push would make a bigger current, which would push harder still, and you would get energy from nothing. The minus sign prevents that.
The displacement-current fix
The original Ampère's Law has a flaw. Picture a capacitor being charged by a wire. Draw a loop around the wire. One surface bounded by the loop is a disk that the wire crosses, so it has current I through it. Another surface bounded by the same loop is a bag that passes between the capacitor plates, where there is no wire, so it has zero current. The law would give two different answers for the same loop.
Maxwell fixed this in the 1860s. Between the plates the electric flux is changing. He added a term, μ₀ε₀ dΦ_E/dt, which acts like a current and is called the displacement current. Now the bag surface gets a contribution from the changing electric field, and both surfaces give the same answer. The corrected law is ∮ B·dℓ = μ₀(I_enc + ε₀ dΦ_E/dt). It also keeps electric charge conserved. A changing electric field makes a magnetic field, even where there is no wire at all.
Why light is an electromagnetic wave
With the displacement current in place, the equations have a symmetry. A changing magnetic field makes an electric field (Faraday). A changing electric field makes a magnetic field (Ampère-Maxwell). Each can keep the other going. In empty space, with no charges or currents, you can combine the equations into a wave equation. The wave speed comes out as c = 1/√(μ₀ε₀).
Put in the measured values of μ₀ and ε₀ and you get about 3.0 × 10⁸ m/s. That matched the measured speed of light. Maxwell concluded that light is an electromagnetic wave. Radio waves, microwaves, X-rays, and visible light are the same kind of wave at different frequencies. None of this works without the displacement current.
Frequently asked questions
What are Maxwell's equations?
Maxwell's equations are four laws: Gauss's law for electric fields, Gauss's law for magnetism (the net magnetic flux through a closed surface is zero), Faraday's law of induction, and the Ampère-Maxwell law. Together with the Lorentz force law, which gives the force on a charge, they describe all of classical electromagnetism.
What is the difference between Gauss's law and Ampère's law?
Gauss's law links the electric field to charge. It uses a closed surface and the total flux through it. Ampère's law links the magnetic field to current. It uses a closed loop and the field summed around it. Both are easiest to use when the situation is symmetric. Gauss's law is a Maxwell equation as it stands. Ampère's law needs Maxwell's displacement-current term to be complete.
Is Lenz's law the same as Faraday's law?
Not quite. Faraday's law gives the size of the induced EMF: EMF = −dΦ_B/dt. Lenz's law is the minus sign in that equation. It tells you the direction: the induced current opposes the change in flux that caused it. Together they are one complete statement of induction.
Is Coulomb's law one of Maxwell's equations?
No. For charges at rest, Coulomb's law follows from Gauss's law plus spherical symmetry, so it is already contained in Maxwell's equations. Coulomb's law alone does not cover moving charges or changing fields.
What is displacement current?
Displacement current is the quantity ε₀ dΦ_E/dt that Maxwell added to Ampère's law (as the term μ₀ε₀ dΦ_E/dt). It is not a flow of charge. It is a changing electric field that acts like a current in making a magnetic field. It fixes the case of a charging capacitor, where there is no real current between the plates.
When should I use the Biot-Savart law instead of Ampère's law?
Use Ampère's law when the current has enough symmetry, as with a long wire, solenoid, or toroid, because it is much quicker. Use the Biot-Savart law when it does not, as with a loop or a short wire segment. For steady currents both give the same answer. Biot-Savart is not one of Maxwell's four equations.
Why does the speed of light equal 1/√(μ₀ε₀)?
Combining Faraday's law with the Ampère-Maxwell law in empty space gives a wave equation for E and B. The speed of that wave is 1/√(μ₀ε₀), which is about 3.0 × 10⁸ m/s. This matches the measured speed of light, which is how Maxwell showed that light is an electromagnetic wave.
Why is there no magnetic version of Coulomb's law for single poles?
No isolated magnetic charges (monopoles) have ever been observed. This is expressed by Gauss's law for magnetism, ∮ B·dA = 0. Magnetic field lines form closed loops, so a north pole always comes with a south pole. Magnetic fields come from currents, which is why the magnetic laws here are written in terms of current.