FundamentholLog inStart lesson 1 freeBack to app

Ampere's Circuital Law

PhysicsMagnetic Effects of Current and Magnetism
For NEET aspirants

Ampere's circuital law states that the line integral of around any closed loop equals times the net current threading the loop: . It is the magnetic analogue of Gauss's law in electrostatics and, when the current distribution has enough symmetry, gives the field far faster than Biot-Savart integration. For a JEE Main and NEET student, the textbook applications are: the infinite straight wire, the long solenoid () and current-carrying cylinders (solid and hollow); the toroid is a beyond-syllabus extra. Ampere's law only calculates when a symmetric Amperian loop exists on which is constant and either parallel or perpendicular to ; otherwise, use Biot-Savart.

On this page1Statement2Straight wire3Solenoid4Toroid5Current sheet6Cylinders7Ampere or Biot-Savart
Key Formulas - Quick Reference
  1. ★ Must learnAmpere's law:
  2. ★ Must learnInfinite straight wire:
  3. ★ Must learnLong (ideal) solenoid, inside: where = turns per unit length
  4. ★ Must learnSolenoid at either end:
  5. Toroid: inside, outside
  6. ★ Must learnSolid cylinder of radius (uniform ): outside , ; inside ,
  7. Hollow cylinder (surface current): inside, outside
  8. Infinite current sheet, surface current density : on either side
Colours in figures: magnetic field current Amperian loop

1Statement of Ampere's Law

For any closed curve (Amperian loop) drawn in space, the line integral of the magnetic field along the curve equals times the algebraic sum of currents piercing the surface bounded by the curve:

Sign convention: curl the right-hand fingers along ; the thumb defines the positive normal direction. Currents flowing in the direction of this normal count as positive; currents flowing opposite count as negative.

Amperian loop enclosing currents A closed dashed loop traversed anticlockwise. Inside it, currents I1 and I3 come out of the page and I2 goes into the page. Current I4 lies outside the loop. The enclosed current is I1 minus I2 plus I3; I4 is not counted. I1 I2 I3 I4 dℓ Ienc = I1 − I2 + I3 outside: not in Ienc
Figure 1: An Amperian loop traversed anticlockwise, so currents out of the page count as positive. and (out) are positive, (into) is negative, and lies outside and is not counted: . still contributes to at points on the loop.
Important: does not mean everywhere along the loop; it just means the net enclosed current is zero. And at a point may have contributions from currents outside the loop; Ampere's law only uses the enclosed current for the integral, not for pointwise field.
Key idea
For steady currents Ampere's law holds for every loop, but it gives only for a well-chosen loop: at every point is along the loop and constant, or at right angles to it, or zero. Then becomes , where is the part of the loop along , and .
Exam Trick

Part of a loop around a long wire. Using the wire's field (Section 2), along any path from one radial line to another, , where is the angle the path sweeps at the wire, taken positive when the path runs in the sense of . A quarter circle gives ; a closed loop that goes round the wire sweeps and gives ; a closed loop that does not go round it sweeps back to zero.

Line integral of B along part of a loop A long wire carries current out of the page. Two radial lines make an angle phi at the wire. A circular arc and a wiggly path both run from one line to the other; for both, the integral of B dot d l is mu zero I phi over 2 pi. I φ both paths sweep the same φ: ∫B·dℓ = μ0Iφ/2π
Figure 2: Around a long straight wire (current out of the page) the integral of from one radial line to another depends only on the angle swept at the wire, not on the path: .

2Application: Infinite Straight Wire

Draw a circular Amperian loop of radius coaxial with the wire. By symmetry, has constant magnitude on this circle and is tangent to it, so :

This is the same result as Biot-Savart's, obtained in one line rather than by integration.

Circular Amperian loop around a straight wire A long straight wire carries current I out of the page at the centre of a dashed circle of radius r. The field B is tangent to the circle, anticlockwise, with the same size all round, so B times 2 pi r equals mu zero I. I r B constant on the whole circle B ∥ dℓ B(2πr) = μ0I
Figure 3: Circular Amperian loop of radius around a long straight wire (current out of page). By symmetry has the same magnitude everywhere on the loop and is parallel to , so .
  • Cylindrical symmetry: is the same at every point of a circle centred on the wire, so it depends only on .
  • Field lines are closed circles round the wire, unlike electric field lines, which start and end on charges.
  • Finite everywhere except at the wire: the wire is infinite, yet is finite at any non-zero ; and .
  • Direction: grip the wire with the right thumb along the current; the curled fingers give . This is a different right-hand rule from the one for the axis of a loop.

3Application: Long (Ideal) Solenoid

An ideal solenoid is tightly wound with turns per unit length carrying current , in the limit that its length its radius. The field inside is uniform and along the axis; outside it is essentially zero.

Rectangular Amperian loop for an ideal solenoid Section of a long solenoid. The turns carry current out of the page along the top and into the page along the bottom. Inside, the field B is uniform and points to the right. The rectangle PQRS has side PQ of length L inside the solenoid and side RS outside, where B is about zero. P Q R S L n turns per unit length, current I B B ≈ 0 outside
Figure 4: Long solenoid in section: turns carry current out of the page along the top and into the page along the bottom. The rectangular loop has (length ) inside, where is uniform and parallel to the axis; and are perpendicular to ; lies outside, where .

Along of length , , so . Along and , , so contribution is 0. Along (outside), . Total enclosed current . Applying Ampere's law:

At the end of a finite solenoid (still long enough for the ideal formula to hold near the middle), the field drops to , exactly half the mid-point value. The mid-point value can also be derived from the axial-loop formula by integrating over the solenoid's turns.
Axial field of a finite solenoid A solenoid eight radii long is drawn above a graph of B along its axis. B is close to mu zero n I over the middle, falls to about half of that at each end face, and goes to zero far outside. axis B μ0nI ½μ0nI end end position on axis
Figure 5: Field along the axis of a finite solenoid (length eight times its radius, computed exactly). is close to over the middle (about of it at the centre) and falls to about at each end face.
  • Between neighbouring turns the fields of the two turns cancel, so no field leaks out between the turns.
  • Outside: as a tightly wound solenoid is made longer it looks like a cylindrical current sheet, and the field outside it tends to zero.
  • Insulated turns: the wire is enamelled so that the turns do not short each other.
  • Iron core: a soft iron core inside makes the field much larger (Magnetism and Matter).
Key idea
Inside a long solenoid : uniform, along the axis, and independent of the radius. At the end faces it is half of this.
Exam Trick

Solenoid changes. Only and matter. At the same current: rewound to twice the length with the same number of turns, halves, so halves; twice the turns on the same length, doubles; wider with the same , is unchanged. On the same supply the current itself changes with the length of wire, so check too. Always convert to first (: length of the solenoid).

Quick Recall: tap to check
What does Ampere's law relate?
The line integral of round a closed loop and times the current through the loop.
How do you decide the sign of a current in ?
Curl the right-hand fingers along ; currents along the thumb are positive.
A long wire gives at distance . What is at ?
, since .
Field inside a long solenoid, and at its ends?
inside; at the end faces.

4Application: ToroidBeyond syllabus

The toroid is not listed in the JEE Main or NEET syllabus and was removed from the rationalised NCERT textbook. It is still a standard Ampere's law application, so read it for concept strength and older papers.

A toroid is a solenoid bent into a doughnut shape with turns wound around a circular ring of mean radius . Draw a circular Amperian loop of radius through the interior of the coil:

Toroid with three Amperian loops Toroid seen from above. Turns cross the inner rim out of the page and the outer rim into the page. Loop 1 in the hole encloses no current. Loop 2 in the core encloses N I and the field there runs anticlockwise. Loop 3 outside encloses N I out and N I in. 1 2 3 Loop 1 (hole): B = 0 Loop 2 (core): B = μ0NI/2πr Loop 3 (outside): B = 0
Figure 6: Toroid seen from above. Turns cross the inner rim out of the page and the outer rim into the page. Loop 1 (in the hole) encloses no current, so . Loop 2 (inside the core) encloses , so . Loop 3 (outside) encloses out and in, so .

By symmetry, is constant along the loop and tangent to it. Enclosed current :

  • Inside the coil (through the turns):
  • Outside the toroid (Amperian loop encloses no net current since equal currents go in and out at every cross-section, or no current at all):
  • In the limit (ideal toroid), with , recovering the solenoid result.

5Application: Infinite Current-Carrying Sheet

An infinite plane sheet carries a surface current density (amperes per metre width). By symmetry is parallel to the sheet, perpendicular to , and opposite on the two sides. Draw a rectangular Amperian loop of length straddling the sheet:

Note this is independent of distance from the sheet, just like the electric field of an infinite charged plane.

Infinite current sheet with rectangular Amperian loop An infinite sheet seen edge-on carries surface current density K out of the page. Above it B points left, below it B points right. A dashed rectangle of length L straddles the sheet, so 2 B L equals mu zero K L and B equals mu zero K over 2. B B L K out of page 2BL = μ0KL ⇒ B = μ0K/2
Figure 7: Infinite sheet (edge-on) carrying surface current density out of the page. is parallel to the sheet and opposite on the two sides. For the rectangle, the two long sides each give and the short sides give zero, so .
Key idea
An infinite sheet gives at every distance, pointing opposite ways on the two sides.

Two parallel sheets (JEE Advanced). Add the two sheet fields as vectors. With equal and opposite currents the fields add between the sheets and cancel outside: between, outside, just like the electric field of a parallel-plate capacitor. With currents in the same direction it is the other way round: between, outside.

6Current-Carrying Cylinders (JEE Advanced favourite)

6.1Solid cylinder, uniform current density

A solid cylinder of radius carries total current uniformly distributed. Current density .

  • Outside (): loop encloses full current , so (same as a thin wire).
  • Inside (): loop of radius encloses , so . This grows linearly with from 0 at the axis to maximum at the surface.
Solid current-carrying cylinder: Amperian loops and B against r Top: cross-section of a solid cylinder of radius R with current out of the page spread evenly, and two dashed loops, one inside (r less than R) and one outside. Bottom: B rises in a straight line from zero at the axis to mu zero I over 2 pi R at the surface, then falls as 1 over r. r < R r > R R (a) cross-section B r 0 R μ0I/2πR B ∝ r B ∝ 1/r (b) B against r
Figure 8: Solid cylinder with uniform current density (current out of page). (a) Loop of radius encloses only ; loop of radius encloses all of . (b) rises linearly inside, peaks at on the surface, and falls as outside.
Key idea
For a solid wire inside and outside, so is largest at the surface, .

6.2Hollow cylinder (thin shell of radius )

A thin cylindrical shell carrying current on its surface:

  • Inside (): loop encloses no current, so .
  • Outside (): .
B against r for hollow and solid cylinders Graph of B against r. For a thin hollow cylinder B is zero inside, jumps to mu zero I over 2 pi R at the surface and then falls as 1 over r. A solid cylinder of the same radius and current (dashed) rises linearly to the same peak and follows the same curve outside. B r 0 R μ0I/2πR B = 0 inside hollow cylinder solid cylinder
Figure 9: against for a thin hollow cylinder (solid line) compared with a solid cylinder of the same radius and current (dashed). Inside the shell ; the field jumps to at the surface; outside, both give .
Exam Trick

Current density that changes with . Add up the current through rings: . For , , so gives inside. Outside, use the whole current as usual.

Solved Example 1
A coaxial cable has an inner solid wire of radius carrying current up, and an outer thin cylindrical shell of radius carrying current down. Find at (i) , (ii) , (iii) .
Coaxial cable cross-section with three Amperian loops Cross-section of a coaxial cable. The inner solid conductor of radius a carries I0 out of the page; the thin outer shell of radius c carries I0 into the page. Dashed loops i, ii and iii lie inside the inner conductor, between the conductors and outside the cable. i ii iii a c (i) r < a: B = μ0I0r/2πa2 (ii) a < r < c: B = μ0I0/2πr (iii) r > c: B = 0
Figure 10: Coaxial cable in section: inner solid conductor of radius carries out of the page; thin outer shell of radius carries into the page. Concentric Amperian loops in the three regions give the three results of the example.
Solution:

By symmetry, Amperian loops are circles concentric with the cable.

(i) : , so .

(ii) : , so .

(iii) : , so . The equal and opposite current in the outer shell cancels the field everywhere outside the cable, the reason coaxial cables have low EMI.

Solved Example 2
A solenoid of length , turns, carries . Find the field at the middle and at the end.
Solution:

Turns per unit length: .

Middle (ideal formula, since length diameter for typical solenoid): .

End: .

Solved Example 3
Three identical long solenoids P, Q, R are connected: current enters P, splits equally between Q and R (which are in parallel). The field at the centre of P is . Find the field at the centre of Q.
Solution:

Since and is the same for identical solenoids, the field scales linearly with the current through that solenoid. Currents through Q and R are each , so .

JEE Advanced

Field in an off-axis cavity. A long cylinder carries uniform current density and has a cylindrical hole whose axis is shifted by from the cylinder's axis. Treat the hole as the full cylinder plus a smaller cylinder carrying . Inside a uniform cylinder (this is in vector form), so at any point of the hole

The field in the hole is uniform, of size , at right angles to . If the hole is on the axis () the field inside it is zero, as for the hollow cylinder.

Field in an off-axis cavity Cross-section of a long cylinder carrying current out of the page with an off-centre circular cavity. The vector d runs from the cylinder's axis O to the cavity's axis. Inside the cavity the field is uniform, of size mu zero J d over 2, at right angles to d. O d J out of page B uniform in the cavity B = μ0Jd/2, at right angles to d
Figure 11: A long cylinder with uniform current density (out of the page) has a cylindrical cavity whose axis is shifted by . The field inside the cavity is uniform: .
Quick Recall: tap to check
Field inside a thin hollow cylinder carrying current along its length?
Zero: a loop inside encloses no current.
Where is the field of a solid wire largest?
At its surface: .
Field outside a coaxial cable with equal and opposite currents?
Zero: the enclosed current is .
Field of an infinite sheet with surface current density ?
on both sides, independent of distance.

7When to Use Ampere's Law vs Biot-Savart

Use Ampere's law whenUse Biot-Savart when
High symmetry (cylindrical, planar, toroidal)Arbitrary geometry: single loop, arc, finite wire
You can pick a loop where is constant and or to Field varies along any conceivable loop
Straight wire (long), solenoid, toroid, sheet, cylinderLoop centre, loop axis, finite wire, arc, off-axis

For steady currents Ampere's law holds for every closed loop, but it cannot by itself give the field at the centre of a circular current loop, : there is no loop on which is constant and along the loop, or at right angles to it. For such shapes, Biot-Savart is the tool. Ampere's law is to Biot-Savart's law what Gauss's law is to Coulomb's law: same physics, easier only under symmetry.

Gauss's law (electric)


Closed surface
Source: enclosed charge
Easy for spheres, long lines, planes

Ampere's law (magnetic)


Closed loop
Source: enclosed current
Easy for long wires, solenoids, sheets

Flowchart: when to use Ampere's law Flowchart. To find B from a current, ask whether the current has high symmetry. If not, use Biot-Savart. If yes, pick a loop on which B is along d l and constant, or at right angles, or zero; count the enclosed current with its sign; then B times the length equals mu zero times the enclosed current. no yes Find B from a current High symmetry? Biot-Savart: dB = (μ0/4π) × I dℓ × r̂/r2 Pick a loop: B along dℓ and constant, or B ⊥ dℓ, or B = 0 Count Ienc (sign: right-hand curl) B × (length) = μ0Ienc
Figure 12: Flowchart: Ampere's law or Biot-Savart? With high symmetry pick an Amperian loop, count the enclosed current with its sign and solve for ; otherwise add up the Biot-Savart contributions.
Mind map: Ampere's circuital law Mind map with six branches: the statement, wires and cylinders, the solenoid, the toroid, the current sheet, and when to use the law, each with three key results. Ampere's circuital law Statement ∮B·dℓ = μ0Ienc right-hand sign steady currents Wire, cylinder μ0I/2πr outside solid: ∝ r inside hollow: 0 inside Solenoid B = μ0nI inside ends: ½μ0nI ≈ 0 outside Toroid B = μ0NI/2πr 0 in the hole beyond syllabus Sheet B = μ0K/2 any distance opposite sides When to use high symmetry or Biot-Savart not loop centre
Figure 13: Mind map of Ampere's circuital law and its applications.
Practice Questions
  1. A long straight wire carries . Find at from it.Answer: .
  2. A solenoid long has turns and carries . Find inside, well away from the ends.Answer: , .
  3. A long wire of radius carries spread evenly over its cross-section. Find at from the axis.Answer: (half the surface value).
  4. A loop, traversed anticlockwise, encloses out of the page and into it. Find .Answer: .
  5. Numerical answer: along a quarter circle centred on a long wire carrying , traversed in the sense of , in units of ?Answer: .
  6. Which graph shows against for a thin hollow pipe carrying current along its length?
    (A) rising line, then
    (B) zero inside, a jump at the surface, then
    (C) constant everywhere
    (D) everywhereAnswer: (B).
  7. A wire of radius has current density . Inside it, is proportional to
    (A) (B) (C) (D) Answer: (B): .
  8. Statement I: Ampere's law gives the field at the centre of a circular loop in one line. Statement II: Ampere's law holds for every closed loop.
    (A) both true
    (B) I true, II false
    (C) I false, II true
    (D) both falseAnswer: (C): for steady currents the law always holds, but it needs symmetry to give .

Common Mistakes to Avoid

Watch out
  • Applying Ampere's law to any current geometry: the law is always true but only useful if symmetry lets you pull out of the line integral. Without symmetry, you get one equation with two unknowns ( direction and magnitude).
  • Confusing with : a loop with no enclosed current has zero line integral, but at points on the loop can be non-zero (produced by currents outside).
  • Wrong sign of enclosed current: always fix direction first, then apply right-hand rule to define the positive-current direction.
  • Using for a short solenoid: valid only when length diameter, deep inside. Near the ends or for short coils, use the general axial formula from Biot-Savart.
  • Confusing (turns per unit length) with (total turns) in the solenoid formula.
  • Using the full current inside a solid wire: at only is enclosed.
  • Assuming toroid field is uniform: inside the toroid, so field is stronger near the inner edge than the outer edge. Only in the thin-toroid limit is it nearly uniform.

Frequently Asked Questions

Q1. What is Ampere's circuital law?

Ampere's law states that the line integral of around any closed loop equals times the net current enclosed: . It is a fundamental relation between magnetic field and current, valid for every loop when the currents are steady, and useful for calculating when the current distribution is highly symmetric.

Q2. When can Ampere's law be used to calculate the magnetic field?

Ampere's law calculates only when you can find an Amperian loop on which has constant magnitude and is either parallel or perpendicular to . This requires strong symmetry: straight wires, solenoids, toroids, current sheets, cylinders. For arbitrary shapes, Biot-Savart is the right tool.

Q3. What is the magnetic field inside a long solenoid?

Inside an ideal long solenoid with turns per unit length carrying current , the field is uniform and along the axis: . Outside, it is essentially zero. At either end (still on the axis), the field drops to .

Q4. Why is the magnetic field zero outside a toroid?

A circular Amperian loop in the central hole encloses no current at all. A loop outside the toroid is crossed by every turn twice, once going in and once coming out, so the net enclosed current is zero. Either way, symmetry plus zero net enclosed current gives outside.

Q5. What is the magnetic field inside and outside a solid current-carrying cylinder?

For a solid cylinder of radius with uniform current density: inside (), (grows linearly from zero at the axis); outside (), (falls as , same as a thin wire). The field is maximum at .

Q6. Does mean everywhere on the loop?

No. It means only that the net current enclosed by the loop is zero. at individual points on the loop can be non-zero, produced by currents outside the loop. The line integral cancels because contributions of opposite sign balance.

Q7. How is Ampere's law analogous to Gauss's law?

Gauss's law in electrostatics relates the electric flux through a closed surface to the enclosed charge: . Ampere's law relates the circulation of around a closed loop to the enclosed current: . Both are always true; both are useful for direct field calculation only under symmetry.

Q8. Why is the field of an infinite current sheet independent of distance?

By symmetry, from an infinite sheet is parallel to the sheet, perpendicular to the current direction, and constant on either side. An Amperian rectangle of length straddling the sheet gives , so , with no dependence. This mirrors the field of an infinite plane of charge in electrostatics.

Q9. Is Ampere's law valid for time-varying currents?

In the original form , it holds only for steady (DC) currents. For time-varying currents (like charging a capacitor), Maxwell added a displacement-current term giving the Ampere-Maxwell law: . This is covered in the Class 12 chapter on electromagnetic waves.

Keep going

All concepts in Magnetic Effects of Current and Magnetism →