AP Physics C: E&M · Unit 12 · Topic 12.4

    12.4 Ampère's Law

    Reviewed by P V Satish, Senior Faculty of Science and Academic Consultant · PG Life Sciences, PGD Biotechnology · 20+ years teaching NEET and AP · Special interest in biotechnology, biochemistry and the basics of physics
    Updated

    In short

    Ampère's law relates the magnetic field around a closed loop to the current through it: ∮B⃗⋅dℓ⃗=μ0Ienc\oint \vec{B}\cdot d\vec{\ell} = \mu_0I_{\text{enc}}. Like Gauss's law, it always holds but gives BB directly only with enough symmetry: long straight wires, thick wires, solenoids and toroids. It shows that the field inside a long solenoid is uniform, B=μ0nIB = \mu_0nI.

    What you need to know

    • State Ampère's law and choose Amperian loops using symmetry.
    • Find B inside and outside a long wire with uniform current density.
    • Derive the field of a long solenoid and of a toroid.
    • Explain the field of a coaxial cable.

    The law

    ∮B⃗⋅dℓ⃗=μ0Ienc\oint \vec{B}\cdot d\vec{\ell} = \mu_0I_{\text{enc}}

    Choose a closed path, an Amperian loop, on which BB is constant in size and either parallel or perpendicular to the path. Then the integral becomes BB times a length, and you can solve for BB. For a long straight wire, a circle of radius rr gives B(2πr)=μ0IB(2\pi r) = \mu_0I, so B=μ0I2πrB = \frac{\mu_0I}{2\pi r}, matching the Biot–Savart result in a single line.

    Inside a thick wire

    A long wire of radius RR carries current II spread uniformly. Inside, a loop of radius r<Rr < R encloses Ir2R2I\frac{r^2}{R^2}, so B(2πr)=μ0Ir2R2B(2\pi r) = \mu_0I\frac{r^2}{R^2} and B=μ0Ir2πR2B = \frac{\mu_0Ir}{2\pi R^2}, rising linearly from zero at the centre. Outside, B=μ0I2πrB = \frac{\mu_0I}{2\pi r}.

    B rises linearly inside a wire with uniform current and falls as 1/r outside; compare the charged sphere of topic 8.6.

    Solenoids and toroids

    A long solenoid has nn turns per metre. Use a rectangular loop with one side inside, parallel to the axis, and one outside where the field is negligible. Only the inside side contributes: Bℓ=μ0(nℓ)IB\ell = \mu_0(n\ell)I, so

    B=μ0nIB = \mu_0nI

    The field inside is uniform and does not depend on the solenoid's radius. With 1000 turns per metre and 2.0 A, B=(4π×10−7)(1000)(2.0)≈2.5×10−3B = (4\pi \times 10^{-7})(1000)(2.0) \approx 2.5 \times 10^{-3} T. A toroid (a solenoid bent into a ring) of NN turns gives B=μ0NI2πrB = \frac{\mu_0NI}{2\pi r} inside the windings and zero outside.

    Coaxial cables and limits

    A coaxial cable carries current II along its inner conductor and back along its outer shield. Between them, B=μ0I2πrB = \frac{\mu_0I}{2\pi r}; outside the cable, the enclosed current is zero, so B=0B = 0. That is why coaxial cables neither disturb nor pick up magnetic fields.

    Why the field outside an ideal solenoid is zero. Take a rectangular loop entirely outside the solenoid: it encloses no current, so ∮B⃗⋅dℓ⃗=0\oint \vec{B}\cdot d\vec{\ell} = 0. If the outside field had any size far away, a loop with one side very far off would show that it must be the same everywhere outside, and it must vanish at infinity, so it is zero. Real solenoids have a small field outside and fringing at the ends, which is why the formula is called the long-solenoid approximation.

    Solenoids are electromagnets: switch the current on and they produce a strong, uniform field; switch it off and the field vanishes. Door locks, relays, MRI scanners and particle accelerators all use them, and in Unit 13 the solenoid becomes the standard example of an inductor, storing energy in its magnetic field.

    Key terms

    Ampère's law
    ∮B⃗⋅dℓ⃗=μ0Ienc\oint \vec{B}\cdot d\vec{\ell} = \mu_0I_{\text{enc}}.
    Amperian loop
    An imaginary closed path chosen to exploit symmetry.
    Solenoid
    A long coil whose interior field is uniform, B=μ0nIB = \mu_0nI.
    Toroid
    A ring-shaped coil with B=μ0NI/(2πr)B = \mu_0NI/(2\pi r) inside.

    Common mistakes

    • Using the total current when the loop is inside the wire.

      Use only the current enclosed.

    • Thinking a solenoid's field depends on its radius.

      Inside a long solenoid, B = μ₀nI only.

    • Applying Ampère's law to a finite wire segment.

      Without symmetry, use Biot–Savart.

    How this topic is tested

    • Sketch the Amperian loop and say why B is constant on it.
    • Write I_enc as a function of r inside conductors.
    • Use n = N/L for solenoids.

    Practice questions

    Original AP-style multiple-choice questions. Pick an answer to see the explanation.

    1. Question 1 · SP 2 · Mathematical Routines

      What is B inside a solenoid with 1000 turns per metre carrying 2.0 A?

    2. Question 2 · SP 2 · Mathematical Routines

      Inside a long wire of uniform current density, how does B depend on r?

    3. Question 3 · SP 3 · Scientific Questioning and Argumentation

      What is the magnetic field outside a coaxial cable carrying equal and opposite currents?

    4. Question 4 · SP 3 · Scientific Questioning and Argumentation

      When does Ampère's law give B directly?

    5. Question 5 · SP 3 · Scientific Questioning and Argumentation

      Doubling the radius of a long solenoid, with the same turns per metre and current, makes the interior field…

    Free-response practice

    Write your answer first, then mark it against the scoring guide.

    Free response (no calculator) · 5 points

    A long cylindrical conductor of radius RR carries current II uniformly distributed over its cross-section.

    1. (a) Use Ampère's law to derive B for r < R.
    2. (b) Derive B for r > R.
    3. (c) Sketch B against r and identify where B is largest.

    Connected topics

    Frequently asked questions

    Is Ampère's law related to Biot–Savart?

    They are equivalent for steady currents; Ampère's law is easier when there is symmetry.

    Why is the field outside a long solenoid nearly zero?

    The fields of the turns cancel outside and add inside; for an ideal infinite solenoid the outside field is exactly zero.

    Is this one of Maxwell's equations?

    Yes, with Maxwell's added term for changing electric fields.

    How this shows up on the exam42 multiple-choice questions and 4 free-response questions. See what each FRQ type asks you to do.

    Free Unit 12 cheat sheet

    Every topic in Unit 12: Magnetic Fields and Electromagnetism on a few printable pages: the core idea, key terms, the two traps students fall into and what the exam asks.

    We'll use your email to tell you when new AP Physics C: E&M practice material is ready. No spam, and we'll delete it if you ask.

    Full-length AP Physics C: E&M practice examsUnit 12 is one of 6 units on the exam. Two timed exams in the 2027 format (42 MCQ + 4 FRQ), with explanations, scoring guides and an estimated 1–5 score. $14.99 · try 5 questions free.

    All topics in Unit 12: Magnetic Fields and Electromagnetism

    1. 12.1 Magnetic Fields
    2. 12.2 Magnetism and Moving Charges
    3. 12.3 Magnetic Fields of Current-Carrying Wires and the Biot-Savart Law
    4. 12.4 Ampère's Law

    Other units in AP Physics C: E&M

    AP® is a trademark registered by College Board, which is not affiliated with, and does not endorse, this website.