01 / 21

Ampère's
Law

Discover how electric currents create magnetic fields and learn to calculate field strengths using one of electromagnetism's most powerful tools.

College Physics

What Is a Magnetic Field?

A magnetic field \(\vec{B}\) is a vector field that exerts a force on moving charges and current-carrying conductors. Its SI unit is the tesla (T).

Source
Moving electric charges or changing electric fields produce \(\vec{B}\).
Direction
Field lines form closed loops: they never start or end on a charge.
Units
\(1\;\text{T} = 1\;\frac{\text{kg}}{\text{A}\cdot\text{s}^2}\)

Current Creates a Field

\(I\) \(\vec{B}\) (field lines) Right-hand rule: thumb along I, fingers curl with B

Why Ampère's Law Matters

Calculating \(\vec{B}\) from the Biot-Savart law requires integrating over every piece of a current distribution. For problems with high symmetry, Ampère's Law provides a shortcut: it directly relates the magnetic field around a closed loop to the current passing through it.

Analogy
Ampère's Law is to magnetism what Gauss's Law is to electricity: a symmetry-based shortcut.
Power
Turns complex integrals into simple algebra when the right Amperian loop is chosen.

The Formal Statement

\(\oint \vec{B}\cdot d\vec{\ell}\)
Circulation of \(\vec{B}\) around a closed Amperian loop.
\(\mu_0\)
Permeability of free space: \(4\pi\times10^{-7}\;\text{T}\cdot\text{m/A}\).
\(I_{\text{enc}}\)
Net current threading through the surface bounded by the loop.

Choosing an Amperian Loop

\(I\) (into page) \(d\vec{\ell}\) \(\vec{B}\) \(r\) Amperian loop of radius r (green dashed)

Ampère's Law vs Biot-Savart

Ampère's Law Biot-Savart Law
Form \(\oint \vec{B}\cdot d\vec{\ell} = \mu_0 I_{\text{enc}}\) \(d\vec{B}=\frac{\mu_0}{4\pi}\frac{I\,d\vec{\ell}\times\hat{r}}{r^2}\)
Best for High-symmetry geometries Any current distribution
Approach Choose a clever loop Integrate over current elements
Analogy Gauss's Law Coulomb's Law

How to Apply Ampère's Law

1
Identify the symmetry. Is the problem cylindrical, planar, toroidal, or solenoidal?
2
Choose an Amperian loop where \(\vec{B}\) is constant along the path and parallel (or perpendicular) to \(d\vec{\ell}\).
3
Evaluate the left side: \(\oint \vec{B}\cdot d\vec{\ell} = B \oint d\ell\) when \(B\) is constant and parallel to \(d\vec{\ell}\).
4
Find \(I_{\text{enc}}\): sum all currents passing through the surface bounded by your loop (sign from right-hand rule).
5
Solve for \(B\): set \(B \oint d\ell = \mu_0 I_{\text{enc}}\) and isolate \(B\).

Example: Infinite Straight Wire

Find the magnetic field at distance \(r\) from a long straight wire carrying current \(I\).

\(I\) (out of page) \(r\) \(B(2\pi r) = \mu_0 I\) \(B = \frac{\mu_0 I}{2\pi r}\)

Example: Inside a Solenoid

\(\vec{B}\) Amperian rectangle \(L\) \(n = N/L\) turns/m

Example: Toroid

\(r\) \(\vec{B}\) \(N\) total turns wound around the ring

When Does Ampère's Law Work?

Ampère's Law is always true but only practically useful when you can exploit symmetry. The key requirement: you must find a loop where \(\vec{B}\cdot d\vec{\ell}\) simplifies.

✓
Infinite straight wire: cylindrical symmetry → use circular loop.
✓
Infinite solenoid: translational symmetry → use rectangular loop.
✓
Toroid: circular symmetry → use circular loop.
✕
Finite wire, arbitrary shape: no useful symmetry → use Biot-Savart instead.

\(\vec{B}\) Inside a Thick Wire

\(R\) \(r\) \(r\) \(B\) \(R\) \(B \propto r\) \(B \propto 1/r\)

Maxwell's Correction

Ampère's original law fails when there is a time-varying electric field (e.g., a charging capacitor). Maxwell added the displacement current term to fix this:

Displacement Current
\(I_d = \epsilon_0 \dfrac{d\Phi_E}{dt}\): not a real current, but it produces \(\vec{B}\) just like one.
Key Consequence
This correction made electromagnetic waves possible: Maxwell's equations became self-consistent.

Common Mistakes

✕ Wrong Loop Shape
Choosing a loop where \(\vec{B}\) is not constant in magnitude or not parallel to \(d\vec{\ell}\). The integral cannot simplify.
✕ Forgetting Sign Convention
Currents going in opposite directions through the loop must be given opposite signs. The right-hand rule determines which is positive.
✕ Using Total Current
Only the current enclosed by the Amperian loop matters, not the total current in the circuit.

Summary of Key Results

Geometry Loop Shape Result for \(B\)
Long straight wire Circle (radius \(r\)) \(\dfrac{\mu_0 I}{2\pi r}\)
Inside thick wire Circle (radius \(r < R\)) \(\dfrac{\mu_0 I r}{2\pi R^2}\)
Solenoid (inside) Rectangle \(\mu_0 n I\)
Toroid (inside) Circle (radius \(r\)) \(\dfrac{\mu_0 N I}{2\pi r}\)

Question 1 of 5

A long straight wire carries current \(I = 3\;\text{A}\). What is the magnetic field at a distance \(r = 0.1\;\text{m}\) from the wire?
(\( \mu_0 = 4\pi\times10^{-7}\;\text{T}\cdot\text{m/A} \))

Question 2 of 5

A solenoid has \(n = 500\;\text{turns/m}\) and carries \(I = 2\;\text{A}\). What is the magnetic field inside the solenoid?

Question 3 of 5

An Amperian loop encloses two wires: one carrying \(5\;\text{A}\) out of the page and another carrying \(3\;\text{A}\) into the page. What is \(I_{\text{enc}}\)?

Question 4 of 5

What is the magnetic field outside an ideal solenoid?

Question 5 of 5

Which of the following is the correct reason Maxwell added the displacement current term to Ampère's Law?