
Physics II course sequence · Interactive lesson
Ampere's law and enclosed current
Ampere's law trades an integral over all of space for a count of the currents threading one loop. The trade is always valid, but it only pays when symmetry lets you lift B out of the integral, so the first skill is choosing the loop.
UPII-09.05 · Lesson 5 of 8 in this unit. Position is not a completion score.Build the model
The field on a loop knows every current; the circulation round it knows only the enclosed ones.
The key idea
Ampere's law says the circulation of the magnetic field around any closed loop — the running sum of B⋅dl once round — equals μ₀ times the net steady current threading a surface bounded by that loop.
Example. Around a circle of radius 1.5 cm centred on a wire carrying 20 A, ∮B⋅dl = μ₀ × 20 A = 2.51 × 10⁻⁵ T m; widen the circle to 6.0 cm and the circulation is unchanged, because the same 20 A still threads it.
The complete physical model and assumptions
The Biot-Savart law answers every magnetic-field question in principle and almost none in practice: the integral over current elements is tractable for only a handful of geometries. Ampere's law rearranges the same physics into a statement about a closed path. Walk once around any closed loop adding B⋅dl step by step, and the total — the circulation — depends on nothing about the field's detailed shape, only on the net steady current threading a surface the loop bounds: ∮B⋅dl = μ₀ Ienc. Currents outside the loop still make field at every point of the path, but their contributions cancel exactly on the way round. The law is always true for steady currents, and that is the trap, because true is not the same as useful. Getting B out of it means lifting B outside the integral, which needs a path that falls into pieces on each of which B runs along dl with one and the same |B|, or else B⋅dl vanishes — a claim about the symmetry of the source, not about the law. Three families qualify: long straight cylinders, long solenoids and toroids, and wide flat sheets. Everywhere else the law still holds and still says nothing about B at a point. And when the current is not steady — the gap of a charging capacitor, where no charge crosses the surface at all — the count needs Maxwell's extra term before it is even true.
1Circulation is what the left-hand side counts
Give the closed loop a direction, cut it into short vectors dl, and at each step take the component of B along dl. The sum once round is the circulation ∮B⋅dl, a scalar measured in T m. Try it on a field you already know. A long wire carrying 12 A makes a field μ₀I/(2πr) that is everywhere tangent to the circle of radius r about the wire, so on that circle B⋅dl is simply B dl and the sum is B(2πr). At r = 1.0 cm the field is 2.4 × 10⁻⁴ T and the path is 0.0628 m, giving 1.51 × 10⁻⁵ T m. At r = 2.0 cm the field halves and the path doubles, and the product is the same 1.51 × 10⁻⁵ T m, which is μ₀ × 12 A. The 1/r of the field and the 2πr of the path cancel, and that cancellation is the whole content of the law: the circulation has forgotten the radius and remembers only the current.
2Signing the enclosed current with your right hand
Ienc is a signed count, so the direction of travel round the loop must be fixed first. Curl the fingers of your right hand along the way you traverse the loop, and your thumb points along the positive normal of any surface capping it. Current crossing that surface along the thumb counts positive, current crossing the other way counts negative, and current that misses the surface does not count at all. Take a loop walked counterclockwise as the reader sees it, threaded by 5.0 A toward the reader, 8.0 A away and 1.0 A toward: Ienc = 5.0 − 8.0 + 1.0 = −2.0 A, so the circulation is μ₀ × (−2.0 A) = −2.5 × 10⁻⁶ T m. A negative answer is not a mistake; it reports that the field runs against the way you walked. Two consequences are worth stating. Reverse the traversal and both sides change sign together, so the law is untouched. And the capping surface may be a flat disc or a deep bag: for steady currents charge piles up nowhere, so every surface bounded by that loop is pierced by the same net current.
3Always true, rarely solvable: the symmetry test
Ampere's law constrains one number, the circulation, not the field at a point. Turning it into B takes a further step the law does not licence: writing ∮B⋅dl as B times a length requires the path to fall into pieces on each of which either B runs along dl with one and the same |B|, or B⋅dl is zero because B lies across dl or is negligible there. That is a claim about the symmetry of the current distribution, and it must be argued before the law is used. Run the test in order. Does the geometry force |B| to depend on one coordinate only? Does it fix the direction of B? Can you draw a closed path made of pieces on which B⋅dl is either B dl or zero? A single circular coil fails at the first question: it has an axis of rotational symmetry, yet no closed path through a point on that axis keeps |B| constant, so the circulation is known while the field is not, and only Biot-Savart will deliver it.
4Working one loop: inside a thick conductor
Take a straight cylindrical conductor of radius R carrying a steady current I spread uniformly, so J = I/(πR²) everywhere in the metal. Rotational symmetry and the straightness of the wire together force B to be tangent to circles about the axis with |B| depending only on r, which is exactly the licence the symmetry test demanded. For a circle of radius r < R the circulation is B(2πr), and the enclosed current is the fraction of the cross-section inside that circle: Ienc = J πr² = I r²/R². Setting the two equal gives B = μ₀ I r/(2πR²), so the field climbs in a straight line from zero on the axis. For r > R the whole current is enclosed and B = μ₀I/(2πr). With R = 2.0 mm and I = 10 A the field is 0.50 mT halfway out, peaks at 1.0 mT on the surface, and is back to 0.50 mT at r = 4.0 mm. The maximum always sits at the surface, which is a quick check on any answer.
5Reading it against Gauss's law
The two laws are one bargain struck in different integrals. Gauss's law integrates E over a closed surface and returns Qenc/ε₀; Ampere's law integrates B around a closed loop and returns μ₀Ienc. Each is exact, each is blind to detail, and each pays out only when a symmetry argument lets the field come outside the integral — a sphere, cylinder or plane there, a circle, rectangle or toroid here. The contrast is just as instructive. The flux of B out of any closed surface is zero, ∮B⋅dA = 0, because no magnetic charge has ever been found for field lines to start on, so B lines close on themselves and can circulate. An electrostatic field is the mirror image: it has flux out of charges but no circulation at all, ∮E⋅dl = 0, which is exactly what allows a potential V to exist. There is no equally useful scalar magnetic potential, and the nonzero circulation of B is the reason.
6Where the count breaks, and what repairs it
Put an amperian loop around the wire feeding a charging capacitor. Cap it with a flat disc and the disc cuts the wire, so Ienc is the charging current, say 2.0 A. Cap the same loop with a bag that bulges through the gap between the plates, and no charge crosses it at all, so Ienc = 0. One loop, two answers: the steady-current law has been used outside its range, because charge is piling up on the plates and the current is not steady. Maxwell's repair is to notice what is changing inside the bag. The gap field is E = q/(ε₀A), so the electric flux through the bag is ΦE = EA = q/ε₀ and ε₀ dΦE/dt = dq/dt = 2.0 A, exactly the missing amount. The mended law, ∮B⋅dl = μ₀Ienc + μ₀ε₀ dΦE/dt, returns the same answer for every capping surface, and that extra term is what later lets electromagnetic waves exist.
Key equations
Read the units, assumptions and limits before substituting.
Ampere's law for steady currents
∮ B⋅dl = μ₀ Ienc
Trades an integral over every current element for one signed count of what threads the loop.
B in T, dl in m, Ienc in A; μ₀ = 4π × 10⁻⁷ T m A⁻¹The circulation, once symmetry is argued
∮ B⋅dl = B ℓ
This line, not the law, is where symmetry is spent: no constant |B| on the path, no B on the left.
ℓ is the path length over which |B| is constant and along dl; ℓ = 2πr for a circle of radius rEnclosed current from a current density
Ienc = ∫ J⋅dA
Counts only current crossing the capping surface, signed by the right hand against the traversal.
J in A m⁻², dA in m²; for uniform J through a circle of radius r, Ienc = J πr²Inside a uniform solid cylinder
B = μ₀ I r / (2π R²), r ≤ R
Enclosed current grows as r² and the path as r, so B climbs linearly to μ₀I/(2πR) at the surface.
I total current in A, R the conductor radius in m, r the distance from the axis in mGauss's law, for comparison
∮ E⋅dA = Qenc/ε₀
The same bargain in a different integral: enclosed source on the right, symmetry needed on the left.
Closed surface; E in V m⁻¹, dA in m², Qenc in C, ε₀ = 8.85 × 10⁻¹² F m⁻¹Where the steady-current form stops
∮ B⋅dl = μ₀ Ienc + μ₀ε₀ dΦE/dt
The Ampere-Maxwell form; the extra term is what stops a capacitor gap breaking the count.
ΦE is the electric flux through the same capping surface, in V m, so dΦE/dt is in V m s⁻¹Interactive lab
Predict first. Explore the model. Compare the result.
Explore the model
Try this. Drag the loop outward. Inside the metal the enclosed current grows as r² while the path grows as r, so B rises in a straight line; past r = {rw|1} mm the count is stuck at {i|0} A and B falls as 1/r.
Live results
- ENCLOSED CURRENT
- 7.11 A
- CIRCULATION ∮B⋅dl
- 8.94 μT m
- B ON THE LOOP
- 0.711 mT
- PEAK B AT r = R
- 1.067 mT
Results follow this lesson’s model and assumptions. Displayed values are rounded.
Predict → change one variable → check
Plan a change before running it. Every other input stays at the saved baseline.
Saved baseline. Current I in the wire: 16 A; Conductor radius R: 3.0 mm; Amperian loop radius r: 2.0 mm
This experiment is kept only while this page is open. It does not change saved course progress.
Catch the common trap
The usual slip is to read ∮B⋅dl = μ₀Ienc as B = μ₀Ienc/(2πr) and use it anywhere, which smuggles in two false claims. First, zero circulation is not zero field: draw a small loop beside a current-carrying wire, enclosing nothing, and the circulation is exactly zero while B is nonzero at every point of it, the positive and negative contributions cancelling around the trip. Second, the field on the path is made by every current there is, not only the enclosed ones; outside currents drop out of the circulation, never out of B. You may write ∮B⋅dl = B(2πr) only when a symmetry argument, made before the law is invoked, guarantees that |B| is the same at every point of the path and points along it.
Practice & worked examples
3 authored examples. Make an attempt, then reveal the reasoning one step at a time.
EasyExample 1
An amperian loop is traversed counterclockwise as a reader sees it. Three long wires thread the loop: 9.0 A toward the reader, 4.0 A away from the reader, and 2.0 A toward the reader. A fourth wire carrying 15 A toward the reader passes just outside the loop. Find the circulation ∮B⋅dl around the loop.
Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.
0 of 4 steps revealed.
- Fix the sign convention first. Curling the right hand counterclockwise as the reader sees it puts the thumb toward the reader, so current toward the reader counts positive and current away from the reader counts negative.
- Count only what threads the loop: Ienc = +9.0 A − 4.0 A + 2.0 A = 7.0 A. The 15 A wire lies outside, so it contributes nothing to the count however close it runs.
- Apply Ampere's law: ∮B⋅dl = μ₀ Ienc = (4π × 10⁻⁷ T m A⁻¹)(7.0 A).
- Evaluate: ∮B⋅dl = 8.8 × 10⁻⁶ T m. Traversing the loop the other way would give −8.8 × 10⁻⁶ T m, because reversing dl reverses the thumb as well.
Answer. ∮B⋅dl = +8.8 × 10⁻⁶ T m (8.80 × 10⁻⁶ T m to three figures)
MediumExample 2
A straight copper rod of radius R = 3.5 mm carries a steady 24 A spread uniformly over its cross-section. Find the current density, the field at r = 1.4 mm from the axis and the field at r = 7.0 mm, and say where |B| is largest.
Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.
0 of 5 steps revealed.
- Current density: J = I/(πR²) = 24 A ÷ [π(3.5 × 10⁻³ m)²] = 24 A ÷ (3.85 × 10⁻⁵ m²) = 6.2 × 10⁵ A m⁻².
- Inside, at r = 1.4 mm: the circle encloses Ienc = J πr² = I r²/R² = 24 A × (1.4/3.5)² = 24 A × 0.160 = 3.84 A.
- Rotational symmetry makes |B| constant and tangential on that circle, so B(2πr) = μ₀ Ienc and B = μ₀(3.84 A) ÷ [2π(1.4 × 10⁻³ m)] = 5.5 × 10⁻⁴ T.
- Outside, at r = 7.0 mm: the loop now encloses the whole 24 A, so B = μ₀(24 A) ÷ [2π(7.0 × 10⁻³ m)] = 6.9 × 10⁻⁴ T.
- |B| rises linearly out to the surface and falls as 1/r beyond it, so the maximum is at r = R: B = μ₀(24 A) ÷ [2π(3.5 × 10⁻³ m)] = 1.4 × 10⁻³ T.
Answer. J = 6.2 × 10⁵ A m⁻²; B(1.4 mm) = 5.5 × 10⁻⁴ T; B(7.0 mm) = 6.9 × 10⁻⁴ T; |B| is largest at the surface, 1.4 × 10⁻³ T
HardExample 3
A coaxial cable has a solid inner conductor of radius 1.2 mm carrying 5.0 A out of the page. Its outer shield, of inner radius 3.6 mm and outer radius 4.4 mm, returns the same 5.0 A into the page, spread uniformly over the shield's cross-section. Find B at r = 2.0 mm, r = 4.0 mm and r = 6.0 mm from the axis.
Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.
0 of 5 steps revealed.
- Every radius here has full rotational symmetry about the axis, so on a circle of radius r the field is tangential with constant |B| and B(2πr) = μ₀ Ienc. Only the count changes from region to region. Traverse counterclockwise, so current out of the page is positive.
- At r = 2.0 mm the loop encloses the whole inner conductor and none of the shield: Ienc = 5.0 A, so B = μ₀(5.0 A) ÷ [2π(2.0 × 10⁻³ m)] = 5.0 × 10⁻⁴ T.
- Inside the shield the return current is counted by area. The annulus from 3.6 mm out to 4.0 mm is (4.0² − 3.6²)/(4.4² − 3.6²) = 3.04/6.40 = 0.475 of the shield, carrying 0.475 × 5.0 A = 2.375 A into the page.
- So at r = 4.0 mm, Ienc = +5.0 A − 2.375 A = 2.625 A, and B = μ₀(2.625 A) ÷ [2π(4.0 × 10⁻³ m)] = 1.3 × 10⁻⁴ T.
- At r = 6.0 mm the loop encloses both conductors: Ienc = 5.0 A − 5.0 A = 0, so ∮B⋅dl = 0. Here symmetry earns its keep: |B| is the same all round that circle, so a zero sum forces B = 0 and the cable leaks no field.
Answer. B(2.0 mm) = 5.0 × 10⁻⁴ T; B(4.0 mm) = 1.3 × 10⁻⁴ T; B(6.0 mm) = 0 exactly
Quick check
Select an answer and explain it before checking.
Review & continue
Ampere's law says the circulation of the magnetic field around any closed loop — the running sum of B⋅dl once round — equals μ₀ times the net steady current threading a surface bounded by that loop.
- Explain the relationship without looking at the equation.
- Check a sign, a unit and a model assumption in your working.
- Return to the lab or worked example if a step is still unclear.
Optional supporting lessons
These chapter resources can help with earlier ideas; they are not additional required Physics II completion tasks.