4.3 Ampère's Circuital Law, the Solenoid and Forces between Currents
Round any closed path, the magnetic field adds up to $\mu_0$ times the current threading the path. With symmetry this one line gives the field of a long wire and of a solenoid — and the force between two parallel currents, which once defined the ampere.
In an electrical substation, thick copper bars carry the current of a whole town. Engineers bolt them down firmly — not because of their weight, but because if a fault shorts the circuit, tens of thousands of amperes surge through them for a fraction of a second, and neighbouring bars carrying opposite currents fling themselves apart with forces of hundreds of newtons per metre. Every parallel pair of current-carrying wires attracts or repels in this way; until 2019 that force was how the ampere itself was defined.
To find such forces we need the field of a long straight wire. The Biot–Savart law of Section 4.2 can give it, but the integration is not easy. For highly symmetric currents there is a much quicker route, Ampère's circuital law, which plays the same role for magnetic fields that Gauss's law (Section 1.3) plays for electric fields: it turns an integral over a whole circuit into one line of algebra. In this section we state Ampère's law, use it for a long straight wire (outside and inside) and for a long solenoid, and then find the force between two parallel currents and the definition of the ampere.
Ampère's Circuital Law
Instead of adding up the field produced by each piece of the current, Ampère's law looks at the field along a closed path. Pick any closed curve and walk round it. At each short step $d\mathbf l$ take the component of $\mathbf B$ along your step and multiply by the step length; add up all the steps.
For steady currents in vacuum, the circulation of the magnetic field round any closed loop equals $\mu_0$ times the net current threading the loop: $$\oint_C\mathbf B\cdot d\mathbf l=\mu_0 I_\text{enc},$$ where $I_\text{enc}$ is the algebraic sum of the currents through any surface bounded by $C$, with signs given by the right-hand rule. Currents outside the loop contribute to $\mathbf B$ at points of the loop, but not to the circulation.
The law is always true for steady currents, but it is only useful for finding $\mathbf B$ when symmetry lets us choose a loop on which $B$ is constant and either parallel or perpendicular to $d\mathbf l$; then $\oint\mathbf B\cdot d\mathbf l$ becomes simply $B$ times a length. (For currents that change in time Maxwell added a second term — the displacement current — in Chapter 8.) The comparison with Gauss's law is close: there, a closed surface, the flux of $\mathbf E$ and the enclosed charge; here, a closed curve, the circulation of $\mathbf B$ and the enclosed current.
- Use symmetry to decide the shape of the field lines (circles round a straight wire; straight and parallel inside a long solenoid).
- Choose an Amperian loop through the point of interest made of pieces on which $\mathbf B$ is either parallel to $d\mathbf l$ with constant magnitude, or perpendicular to it (or zero).
- Evaluate $\oint\mathbf B\cdot d\mathbf l$ as $B\times$(length of the parallel pieces).
- Count the current threading the loop, with signs; set the two equal and solve for $B$. Give the direction with the right-hand rule.
The Field of a Long Straight Wire
Take a very long straight wire carrying a steady current $I$. By symmetry the field cannot depend on position along the wire or on the angle round it, and the Biot–Savart law shows that every element's $d\mathbf B$ is perpendicular to the plane containing the wire and the point, so the field has no component towards or away from the wire, nor along it. The field lines are therefore circles centred on the wire, and $B$ depends only on the distance $r$. Choose as Amperian loop the field-line circle of radius $r$. On it $\mathbf B\parallel d\mathbf l$ and $B$ is constant: $$\oint\mathbf B\cdot d\mathbf l=B\,(2\pi r)=\mu_0I\quad\Longrightarrow\quad B=\frac{\mu_0I}{2\pi r}.$$ Inside a thick wire of radius $R$ with the current spread uniformly over its cross-section, a circle of radius $r\lt R$ encloses only the fraction $\pi r^2/\pi R^2$ of the current, so $B(2\pi r)=\mu_0I\,r^2/R^2$.
At distance $r$ from a very long straight wire carrying a steady current $I$, the magnetic field lines are circles round the wire and $$B=\frac{\mu_0I}{2\pi r}\qquad(r\ \text{outside the wire}).$$ For a wire of radius $R$ carrying a uniformly distributed current, $$B=\frac{\mu_0I\,r}{2\pi R^2}\qquad(r\le R),$$ rising linearly from zero on the axis to its largest value $\dfrac{\mu_0I}{2\pi R}$ at the surface. Direction (right-hand grip rule): grip the wire with the right thumb along the current; the fingers curl the way $\mathbf B$ goes round.
The Solenoid
A solenoid is a long wire wound as a tight helix of many turns, usually on a cylindrical former. Each turn is nearly a circular loop, and the fields of neighbouring turns add. Between neighbouring wires the fields of the two wires nearly cancel, while inside the coil the fields of all the turns point the same way along the axis. For a long, tightly wound solenoid the result is a strong, nearly uniform field inside, parallel to the axis, and a very weak field outside (the same field lines that are crowded together inside spread out over the whole of the space outside). In the idealised limit of an infinitely long solenoid, the field outside is zero.
Now apply Ampère's law to a rectangular loop $abcd$: side $ab$ of length $h$ runs inside, parallel to the axis; side $cd$ runs outside; sides $bc$ and $da$ cross the winding at right angles to the axis. Along $ab$, $\mathbf B\parallel d\mathbf l$, contributing $Bh$. Along $bc$ and $da$, $\mathbf B$ is perpendicular to $d\mathbf l$ inside and zero outside, contributing nothing; along $cd$ the field is zero. So $\oint\mathbf B\cdot d\mathbf l=Bh$. If the solenoid has $n$ turns per unit length, the loop is threaded by $nh$ turns, each carrying $I$: $$Bh=\mu_0\,(nh)\,I\quad\Longrightarrow\quad B=\mu_0nI.$$ The answer does not depend on where inside the loop's side $ab$ lies — the field is the same everywhere inside, not just on the axis.
Inside a long, tightly wound solenoid with $n$ turns per unit length ($n=N/L$ for $N$ turns over length $L$) carrying a steady current $I$, far from the ends, $$B=\mu_0nI,$$ uniform and directed along the axis (right-hand thumb rule: fingers along the current in the turns, thumb along $\mathbf B$). Outside, $B\approx0$. At either end, on the axis, the field is about half this value, $\tfrac12\mu_0nI$. A long solenoid behaves like a bar magnet, with its north pole at the end from which $\mathbf B$ emerges (Chapter 5).
The field does not depend on the radius of the solenoid, only on the number of turns per metre and the current. That is why solenoids are the standard way to produce a known, uniform magnetic field in the laboratory, and — wound with superconducting wire — the main magnet of an MRI scanner.
Not in the CBSE, JEE Main or NEET 2026 syllabi, which limit Ampère's law to the straight wire and the solenoid. JEE Advanced 2026 lists Ampère's law without restricting its applications, so the toroid can be set there, although it is not named.
A toroid is a solenoid bent round into a closed ring (a doughnut), with $N$ turns in all. By symmetry its field lines are circles concentric with the ring. A circular Amperian loop of radius $r$ inside the winding is threaded $N$ times by the current $I$, so $$B\,(2\pi r)=\mu_0NI\quad\Longrightarrow\quad B=\frac{\mu_0NI}{2\pi r}.$$ A loop in the central hole encloses no current, and a loop outside the whole ring is threaded by equal currents going up and coming down; in both cases $B=0$. So the field of an ideal toroid is entirely confined to its core. For $N=1000$ turns, $I=1.5$ A and a mean radius of $15$ cm, $B=2.0\times10^{-3}$ T. If $r$ varies little across the winding, $\dfrac{N}{2\pi r}=n$ and the result is the solenoid's $\mu_0nI$. Toroids are used in transformers and in fusion reactors (tokamaks) to confine plasma. The toroid is not in the current NCERT syllabus; JEE Main still sets problems on it.
Force between Two Parallel Currents and the Ampere
Two long parallel wires $a$ and $b$, a distance $d$ apart, carry currents $I_a$ and $I_b$. Wire $a$ produces at wire $b$ the field $B_a=\dfrac{\mu_0I_a}{2\pi d}$, perpendicular to wire $b$. By Result 4.2, a length $L$ of wire $b$ therefore feels the force $$F_{ba}=I_bLB_a=\frac{\mu_0I_aI_b}{2\pi d}\,L.$$ For the direction, take both currents along $+\hat{\mathbf k}$, with $b$ at distance $d$ along $+\hat{\mathbf i}$ from $a$. The field of $a$ at $b$ is $\hat{\mathbf k}\times\hat{\mathbf i}=+\hat{\mathbf j}$, and the force on $b$ is along $\hat{\mathbf k}\times\hat{\mathbf j}=-\hat{\mathbf i}$ — towards $a$. The same argument shows that $b$ pulls $a$ with an equal and opposite force, as Newton's third law requires. Reversing one current reverses both forces.
Two long, straight, parallel conductors a distance $d$ apart in vacuum, carrying steady currents $I_a$ and $I_b$, exert on each other forces of equal magnitude per unit length $$f=\frac{F}{L}=\frac{\mu_0I_aI_b}{2\pi d}.$$ Parallel currents attract; antiparallel currents repel. (Opposite to the rule for charges, where like charges repel.)
The ampere was defined (from 1948 to 2019) as the steady current which, flowing in two straight, parallel conductors of infinite length and negligible cross-section placed $1$ m apart in vacuum, produces between them a force of $2\times10^{-7}$ newton per metre of length. Putting $I_a=I_b=1$ A and $d=1$ m into Result 4.10 gives $f=\mu_0/2\pi$, which is why $\mu_0$ was exactly $4\pi\times10^{-7}$ T m/A.
Since 2019 the SI fixes instead the elementary charge, $e=1.602176634\times10^{-19}$ C exactly, so $1$ A is the current carrying $1/(1.602176634\times10^{-19})$ elementary charges per second. $\mu_0$ is now a measured constant, equal to $4\pi\times10^{-7}$ T m/A to better than one part in a billion — so all our calculations are unchanged.
1. Thinking $\oint\mathbf B\cdot d\mathbf l=0$ means $\mathbf B=\mathbf 0$ on the loop. A loop that encloses no current has zero circulation, but the field on it need not be zero — the outside wires still produce a field there (Interactive 1).
2. Using $\mu_0I/2\pi r$ for short wires. It holds only for very long straight wires (and for points not near the ends).
3. Using the outside formula inside a thick wire. Inside, only the enclosed fraction of the current counts: $B\propto r$, and $B=0$ on the axis.
4. Putting the solenoid's total turns $N$ in place of $n$. $B=\mu_0nI$ uses turns per metre, $n=N/L$.
5. Getting the attraction rule backwards. Currents in the same direction attract — unlike charges of the same sign, which repel.
Exercises
- 1 Find the field $10$ cm from a long straight wire carrying $5.0$ A.
- 2 At what distance from a long wire carrying $50$ A is the field $1.0\times10^{-4}$ T?
- 3 The field $50$ cm from a long wire is $4.0\times10^{-6}$ T. Find the current.
- 4 An Amperian loop is threaded by a current of $5.0$ A out of the page and $3.0$ A into the page; a $2.0$ A current passes outside it. Taking the loop anticlockwise, find $\oint\mathbf B\cdot d\mathbf l$.
- 5 Ampère's law is true for a short straight wire too. Why can we not use it to find that wire's field?
- 6 A long vertical wire carries a current upwards. What is the direction of its field at a point due east of the wire?
- 7 Modelling. A power line $10$ m above the ground carries $100$ A. Find the field at ground level directly below it and compare it with the Earth's field of about $5\times10^{-5}$ T.
- 8 The field $2.0$ cm from a long wire is $3.0\times10^{-4}$ T. What is it $6.0$ cm from the wire?
- 1 A long copper wire of radius $1.5$ mm carries $6.0$ A uniformly spread over its cross-section. Find the field at $0.50$ mm, $1.5$ mm and $3.0$ mm from its axis.
- 2 Where is the field of such a wire greatest? Where is it zero?
- 3 Two long parallel wires $12$ cm apart carry $6.0$ A each in opposite directions. Find the field midway between them.
- 4 Repeat part 3 with the currents in the same direction.
- 5 Two long parallel wires $8.0$ cm apart carry $3.0$ A and $9.0$ A in the same direction. Where between them is the field zero?
- 6 Two long straight wires lie along the $x$- and $y$-axes (insulated where they cross), each carrying $5.0$ A in the positive axis direction. Find the field at $(4.0\ \text{cm},\,4.0\ \text{cm})$ and at $(4.0\ \text{cm},\,-4.0\ \text{cm})$, both in the $xy$-plane.
- 1 A solenoid $40$ cm long has $800$ turns and carries $3.0$ A. Find the field inside it.
- 2 How many turns per metre are needed for a field of $0.050$ T with a current of $4.0$ A?
- 3 Estimate the field on the axis at one end of the solenoid of part 1.
- 4 The solenoid of part 1 is stretched to twice its length, keeping the same turns and current. What is the new field inside?
- 5 An electron moves inside the solenoid of part 1 at $1.0\times10^6$ m/s (a) along the axis, (b) perpendicular to the axis. Describe its motion and find the radius in case (b).
- 6 Explain, using the idea of field lines, why the field just outside a long solenoid is very weak.
- 7 A solenoid is wound in three layers, each with $10$ turns per centimetre, and carries $2.0$ A. Find the field inside.
- 1 Two long parallel wires $5.0$ cm apart carry $8.0$ A and $12$ A in opposite directions. Find the force per metre and say whether it attracts or repels.
- 2 Find the force on a $2.0$ m length of each wire in part 1.
- 3 Two equal currents $1.0$ m apart produce a force of $8.0\times10^{-7}$ N per metre. Find the current.
- 4 Modelling. In a substation fault, two parallel bus bars $10$ cm apart carry $2.0\times10^4$ A in opposite directions. Find the force per metre on each bar.
- 5 Three long parallel wires $A$, $B$, $C$ lie in one plane with $AB=BC=10$ cm, each carrying $10$ A in the same direction. Find the force per metre on $B$ and on $A$.
- 6 A fixed horizontal wire carries $50$ A. A parallel wire of mass $2.0$ g per metre directly above it carries $50$ A in the opposite direction. Find its equilibrium height.
- 7 Use Newton's third law to explain why the forces on two parallel wires carrying different currents are nevertheless equal in size.
E1. Board · 3 marks State Ampère's circuital law. Use it to obtain the magnetic field inside a long solenoid having $n$ turns per unit length and carrying a current $I$. Find the field inside a solenoid $60$ cm long with $1200$ turns carrying $0.50$ A.
E2. Board · 2 marks Define one ampere in terms of the force between two parallel currents (as in the definition used until 2019). Find the force per metre between two long parallel wires $2.0$ m apart, each carrying $1.0$ A.
E3. JEE Main Two long parallel wires $P$ and $Q$, $10$ cm apart, carry $5.0$ A and $15$ A in the same direction. The magnetic field is zero at a point (A) $2.5$ cm from $P$, between the wires (B) $5.0$ cm from $P$, between the wires (C) $7.5$ cm from $P$, between the wires (D) $5.0$ cm from $P$, on the side away from $Q$.
E4. NEET A long straight wire of radius $R$ carries a current distributed uniformly over its cross-section. The ratio of the magnetic field at distance $R/2$ from the axis to that at distance $2R$ is (A) $1:1$ (B) $1:2$ (C) $2:1$ (D) $1:4$.
E5. JEE Advanced (One or more correct.) Two infinitely long straight wires, parallel to the $z$-axis, pass through $(-a,0)$ and $(a,0)$ in the $xy$-plane and each carries a current $I$ in the $+z$ direction. Which statements are correct? (A) The magnetic field at the origin is zero. (B) The field at $(0,a)$ is parallel to the $x$-axis. (C) The magnitude of the field at $(0,a)$ is $\dfrac{\mu_0I}{2\pi a}$. (D) The wires repel each other.
E6. JEE Advanced A toroid of $500$ turns has a mean radius of $10$ cm and carries $2.0$ A. The magnetic field inside its core is (A) $1.0\times10^{-3}$ T (B) $2.0\times10^{-3}$ T (C) $6.3\times10^{-3}$ T (D) zero.
Research question. How strong is the magnetic field at ground level near an overhead power line, and why does placing the outgoing and returning conductors close together make the field die away much faster with distance?
Why it matters. People living near transmission lines often ask whether the fields are safe. International guidelines (for example those of the International Commission on Non-Ionizing Radiation Protection) set a public reference level of $200\ \mu\text{T}$ for $50$ Hz fields, and power companies in India, Europe and elsewhere must show that their lines comply. Designers reduce the field by arranging the conductors so that their fields cancel — an application of superposition and of Result 4.8.
What to do.
- Model a single long conductor $15$ m above flat ground carrying $1000$ A. Find $B$ at ground level directly below it and at horizontal distances of $10$, $20$, $50$ and $100$ m.
- Now model the line as a pair of conductors $15$ m up, $5.0$ m apart, carrying $1000$ A in opposite directions (the go and return paths). Using superposition of the two vector fields, find $B$ at the same ground points. (Use components; a spreadsheet helps.)
- Plot both sets of results on log–log axes. Measure the slopes far from the line and explain them: what does the pair look like from far away?
- Compare your largest values with the $200\ \mu\text{T}$ reference level and with the Earth's field ($\approx50\ \mu\text{T}$).
Tools: Spreadsheet or calculator; log–log graph paper or plotting software.
Hand in: Your two tables, the graph with measured slopes, and a short paragraph for a resident explaining the results.
Going further. Real lines carry three-phase alternating current in three conductors. Find out how the "phase arrangement" on a double-circuit tower is chosen to reduce the field further.
🧪 Self-check quiz
Q1. A closed loop encircles a wire carrying $2$ A out of the page and another carrying $2$ A into the page. The value of $\oint\mathbf B\cdot d\mathbf l$ round the loop is
Q2. The magnetic field at distance $r$ from a long straight wire carrying a steady current is proportional to
Q3. The number of turns per metre of a long solenoid is doubled and the current is halved. The field inside
Q4. Two long parallel wires carry currents in the same direction. They
Q5. Inside a long straight wire carrying a uniformly distributed current, the magnetic field at distance $r$ from the axis