Fiveable

💡AP Physics C: E&M (2025) Unit 12 Review

QR code for AP Physics C: E&M (2025) practice questions

12.4 Ampère's Law

💡AP Physics C: E&M (2025)
Unit 12 Review

12.4 Ampère's Law

Written by the Fiveable Content Team • Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examWritten by the Fiveable Content Team • Last updated September 2025
💡AP Physics C: E&M (2025)
Unit & Topic Study Guides
Pep mascot

Ampère's law connects magnetic field strength to current flowing through an Amperian loop. It's crucial for determining magnetic fields around wires and inside solenoids. The law provides a framework for analyzing the relationship between current and magnetic fields.

Maxwell's equations describe electromagnetism, with Ampère's law as the fourth equation. This law states that magnetic fields can originate from electric currents and changing electric fields, providing a comprehensive understanding of electromagnetic phenomena.

Magnetic Fields from Moving Charges

Pep mascot
more resources to help you study

Ampère's Law and Magnetic Fields

Ampère's law establishes a fundamental relationship between electric currents and the magnetic fields they produce. This relationship is expressed through a mathematical formula involving an integral around a closed path.

  • The integral form of Ampère's law is: Bd=μ0Ienc\oint \vec{B} \cdot d\vec{\ell} = \mu_0 I_{enc}
  • This equation relates the magnetic field B\vec{B} along a closed path to the current IencI_{enc} enclosed by that path
  • The constant μ0\mu_0 is the permeability of free space (4π×1074\pi \times 10^{-7} T·m/A)

For a long, straight current-carrying wire, Ampère's law allows us to derive the magnetic field:

  • Bwire=μ02πIrB_{\text{wire}} = \frac{\mu_0}{2\pi} \frac{I}{r}
  • BwireB_{\text{wire}} represents the magnetic field strength at a distance rr from the wire
  • The field forms concentric circles around the wire, with direction determined by the right-hand rule

For a long solenoid, Ampère's law gives us:

  • Bsol=μ0nIB_{\text{sol}} = \mu_0 n I
  • BsolB_{\text{sol}} is the magnetic field strength within the solenoid
  • nn represents the number of turns per unit length of the solenoid
  • The field inside is uniform and parallel to the solenoid axis, while the field outside is negligible

Amperian Loops

An Amperian loop is a mathematical construct that enables the application of Ampère's law. It serves as a tool for analyzing magnetic fields in various configurations.

  • The loop is an imaginary closed path that encircles current-carrying conductors
  • The shape of the loop can be chosen strategically to simplify calculations
  • For symmetrical situations, the loop is chosen to match the symmetry of the current distribution
  • The path integral Bd\oint \vec{B} \cdot d\vec{\ell} is evaluated along this loop

When applying Ampère's law with an Amperian loop:

  1. Identify the current distribution and its symmetry
  2. Choose an appropriate Amperian loop that exploits this symmetry
  3. Determine which segments of the loop contribute to the integral
  4. Calculate the enclosed current
  5. Solve for the unknown magnetic field

Superposition of Magnetic Fields

When multiple current-carrying conductors are present, the principle of superposition allows us to find the net magnetic field at any point.

  • Each current source produces its own magnetic field
  • The total magnetic field is the vector sum of all individual fields
  • Mathematically: Btotal=B1+B2+B3+...\vec{B}_{total} = \vec{B}_1 + \vec{B}_2 + \vec{B}_3 + ...
  • Direction is as important as magnitude when adding these vector fields

This principle applies to various configurations:

  • Multiple parallel wires
  • Combinations of loops and straight segments
  • Complex current distributions in conductors

Maxwell's Equations and Electromagnetism

Maxwell's equations form the foundation of classical electromagnetism, with Ampère's law being one of the four fundamental equations. Maxwell expanded Ampère's law to include the effect of changing electric fields.

  • The original Ampère's law: Bd=μ0I\oint \vec{B} \cdot d\vec{\ell} = \mu_0 I
  • Maxwell's addition: Bd=μ0I+μ0ε0dΦEdt\oint \vec{B} \cdot d\vec{\ell} = \mu_0 I + \mu_0 \varepsilon_0 \frac{d\Phi_E}{dt}
  • The term μ0ε0dΦEdt\mu_0 \varepsilon_0 \frac{d\Phi_E}{dt} represents the contribution from changing electric flux

This addition has profound implications:

  • A changing electric field generates a magnetic field, even in the absence of current
  • This completes the symmetry between electricity and magnetism
  • It predicts electromagnetic waves, unifying optics with electromagnetism
  • The speed of these waves matches the speed of light, revealing light as an electromagnetic phenomenon

🚫 Boundary Statement

The exam only expects quantitative application of Ampère's law for situations involving symmetrical magnetic fields, such as long straight wires, long current-carrying solenoids, and conductive slabs or cylindrical conductors carrying a current density. Students are not expected to use Maxwell's fourth equation with a changing electric field on the exam but should understand that a changing electric field generates a magnetic field.

Practice Problem 1: Magnetic Field of a Wire

A long, straight wire carries a current of 5.0 A. Calculate the magnetic field strength at a distance of 10 cm from the wire.

Solution

To solve this problem, we can apply the formula for the magnetic field around a long, straight wire derived from Ampère's law:

Bwire=μ02πIrB_{\text{wire}} = \frac{\mu_0}{2\pi} \frac{I}{r}

Given:

  • Current I=5.0I = 5.0 A
  • Distance r=10r = 10 cm = 0.10 m
  • Permeability of free space μ0=4π×107\mu_0 = 4\pi \times 10^{-7} T·m/A

Substituting these values:

Bwire=4π×1072π5.00.10B_{\text{wire}} = \frac{4\pi \times 10^{-7}}{2\pi} \frac{5.0}{0.10}

Bwire=2×107×5.00.10B_{\text{wire}} = 2 \times 10^{-7} \times \frac{5.0}{0.10}

Bwire=2×107×50B_{\text{wire}} = 2 \times 10^{-7} \times 50

Bwire=1.0×105B_{\text{wire}} = 1.0 \times 10^{-5} T or 10 μT

The magnetic field at 10 cm from the wire is 10 μT, directed tangentially around the wire according to the right-hand rule.

Practice Problem 2: Solenoid Magnetic Field

A solenoid has 200 turns per meter and carries a current of 3.0 A. What is the magnetic field strength inside the solenoid?

Solution

For a long solenoid, we can use the formula derived from Ampère's law:

Bsol=μ0nIB_{\text{sol}} = \mu_0 n I

Given:

  • Number of turns per unit length n=200n = 200 turns/m
  • Current I=3.0I = 3.0 A
  • Permeability of free space μ0=4π×107\mu_0 = 4\pi \times 10^{-7} T·m/A

Substituting these values:

Bsol=4π×107×200×3.0B_{\text{sol}} = 4\pi \times 10^{-7} \times 200 \times 3.0

Bsol=4π×107×600B_{\text{sol}} = 4\pi \times 10^{-7} \times 600

Bsol=7.54×104B_{\text{sol}} = 7.54 \times 10^{-4} T or 0.754 mT

The magnetic field inside the solenoid is 0.754 mT, directed along the axis of the solenoid.

Frequently Asked Questions

What is Ampère's law and how does it work?

Ampère’s law relates the line integral of B around a closed Amperian loop to the total current enclosed: ∮ B · dℓ = μ0 Ienc. In practice you pick a loop that matches the symmetry of the problem so B is constant along parts of the path or zero elsewhere. For a long straight wire this gives B = μ0I/(2πr); for a long ideal solenoid (many closely spaced turns, negligible outside field) B = μ0 n I inside and ≈0 outside. Use the right-hand rule to get B’s direction around currents and superpose fields from multiple conductors when needed. Don’t try Ampère’s law for nonsymmetric setups—the AP C: E&M exam expects it only for symmetrical cases (long wires, long solenoids, cylinders). Maxwell’s addition (displacement current) exists but you won’t need the full form on the AP exam. For a focused review and worked examples, see the Ampère’s law study guide (Fiveable) here: https://library.fiveable.me/ap-physics-c-e-m/unit-5/4-amperes-law/study-guide/RURo66Hv1aueyDWX—and practice problems at (https://library.fiveable.me/practice/ap-physics-c-e-m).

Why do we use an Amperian loop instead of just measuring the magnetic field directly?

You use an Amperian loop because Ampère’s law turns a hard vector field problem into a simple scalar integral when the situation has symmetry. Instead of trying to measure B at every point, you choose a closed path where B is either constant or perpendicular/parallel to each segment so the line integral ∮B·dℓ = μ0 Ienc gives B directly (e.g., long straight wire → B = μ0I/2πr, long solenoid → B = μ0 n I). Directly computing B from the Biot–Savart law requires integrating vector contributions from every current element and is much harder except for simple geometries. Remember AP C only expects quantitative Ampère’s-law use for highly symmetric cases (long wires, long solenoids, cylinders), so pick Amperian loops that exploit that symmetry. For a quick refresher and worked examples, see the Topic 12.4 study guide (https://library.fiveable.me/ap-physics-c-e-m/unit-5/4-amperes-law/study-guide/RURo66Hv1aueyDWX) and plenty of practice problems at (https://library.fiveable.me/practice/ap-physics-c-e-m).

I'm confused about the difference between the magnetic field inside and outside a solenoid - can someone explain?

Think of a long solenoid as lots of closely spaced current loops stacked along an axis. Using Ampère’s law with a rectangular Amperian loop that runs partly inside and partly outside the coil, the line integral around the loop picks up the current enclosed only from the turns inside the loop. For an ideal long solenoid the result is B_inside = μ0 n I (uniform, along the axis) and the contribution from the outside path is essentially zero, so B_outside ≈ 0. That’s why AP problems (and the CED) say long solenoids have uniform internal fields and negligible external fields (12.4.A.1.ii and 12.4.A.1.iii). Real, finite solenoids leak field at the ends and produce nonzero B outside (you’d use Biot–Savart to get that detail), but for AP-C you should apply the “long solenoid” idealization unless told otherwise. For a focused review, see the Topic 12.4 study guide (https://library.fiveable.me/ap-physics-c-e-m/unit-5/4-amperes-law/study-guide/RURo66Hv1aueyDWX) and practice problems at Fiveable (https://library.fiveable.me/practice/ap-physics-c-e-m).

How do I know which equation to use for Ampère's law problems - the wire one or the solenoid one?

Use the shape and symmetry of the current to pick the formula. For a single long, straight wire use B_wire = μ0/(2π) · I / r—that comes from Ampère’s law with a circular Amperian loop centered on the wire (cylindrical symmetry). For an ideal long solenoid use B_sol = μ0 n I—that comes from an Amperian rectangle that encloses turns, assuming the field is uniform inside and negligible outside. Quick checks: is the conductor essentially one long straight current (use the wire formula)? Is it a tightly wound long solenoid with many turns per length and you want the inside field (use the solenoid formula)? The AP C exam expects only these symmetric cases (long straight wires and long solenoids)—use Ampère’s law with an Amperian loop aligned to the symmetry. For more examples and practice, see the Topic 12.4 study guide (https://library.fiveable.me/ap-physics-c-e-m/unit-5/4-amperes-law/study-guide/RURo66Hv1aueyDWX) and more problems at (https://library.fiveable.me/practice/ap-physics-c-e-m).

What's the difference between a long straight wire and a solenoid when calculating magnetic fields?

Short answer: use symmetry. For a long straight wire the field is azimuthal and falls off with distance; Ampère’s law with a circular Amperian loop centered on the wire gives B_wire = μ0 I / (2π r). For an ideal (very) long solenoid the field inside is nearly uniform and parallel to the axis and essentially zero outside; choose an Amperian rectangle that runs partly inside and partly outside to get B_sol = μ0 n I (n = turns per length). Key differences to remember for the AP exam: the wire has cylindrical symmetry so B ∝ 1/r; the solenoid has translational symmetry along its axis so B inside is constant and independent of r. Pick your Amperian loop to match symmetry (circle for a wire, rectangle coaxial with solenoid loops). Use the right-hand rule for direction and superposition if multiple sources are present. The CED limits quantitative Ampère’s-law work to these symmetric cases (see Topic 12.4 in the CED and the Fiveable study guide) (https://library.fiveable.me/ap-physics-c-e-m/unit-5/4-amperes-law/study-guide/RURo66Hv1aueyDWX). For more review and practice, check the unit overview (https://library.fiveable.me/ap-physics-c-e-m/unit-12) and 1000+ practice problems (https://library.fiveable.me/practice/ap-physics-c-e-m).

Can someone explain what mu naught times n times I means in the solenoid equation?

In Bsol = μ0 n I, each symbol is literal: μ0 is the permeability of free space (μ0 = 4π × 10^−7 T·m/A), n is the number of turns per unit length of the solenoid (turns/m), and I is the current through each turn (A). Physically: each loop of wire creates a small magnetic field along the axis; having n loops per meter means n·I is the total “current-turns” per meter that add up. μ0 converts that current-turns density into magnetic field strength (in tesla). Derivation quick-check (Ampère’s law, AP-allowed): choose a rectangular Amperian loop that runs inside along the axis and back outside where B ≈ 0. ∮B·dl = Bℓ = μ0 (nℓ) I ⇒ B = μ0 n I. AP CED assumes a very long solenoid (uniform inside, negligible outside), so this formula is exactly the one you’ll use on the exam. For extra practice, see the Topic 12.4 study guide (https://library.fiveable.me/ap-physics-c-e-m/unit-5/4-amperes-law/study-guide/RURo66Hv1aueyDWX) or try problems at (https://library.fiveable.me/practice/ap-physics-c-e-m).

Why does the magnetic field outside a long solenoid equal zero?

For an ideal, very long solenoid the magnetic field outside is (for AP problems) essentially zero because of symmetry and Ampère’s law. Pick a rectangular Amperian loop that goes partly inside the solenoid and partly outside. Ampère’s law says ∮B·dl = μ0 Ienc. For that loop Ienc equals μ0 times the net current piercing the loop; if the loop runs outside the winding region it encloses no net current (the many turns’ currents cancel for a very long, tightly wound solenoid), so the line integral around the outside portion is zero. By symmetry the field inside is uniform (B = μ0 n I) and the outside field must be negligible to make the integral consistent—so B_out ≈ 0. Remember this is the AP “ideal long solenoid” result (CED 12.4.A.1.ii and 12.4.A.1.iii). For more worked explanations and examples using Amperian loops, see the Topic 12.4 study guide (https://library.fiveable.me/ap-physics-c-e-m/unit-5/4-amperes-law/study-guide/RURo66Hv1aueyDWX) and unit review (https://library.fiveable.me/ap-physics-c-e-m/unit-12).

I don't understand how to choose the right Amperian loop for different shapes - any tips?

Pick the Amperian loop to match the symmetry so B·dℓ is easy and |B| is constant along parts of the path. Quick rules you can use on AP C (Topic 12.4): - Identify symmetry: cylindrical (long straight wire, solid cylinder) → choose concentric circular loops about the wire axis so B is tangential and constant (gives B = μ0I/2πr). - Solenoid (very long, uniform inside): use a rectangular loop with one side inside (where B ≈ μ0nI) and one outside (B ≈ 0) so only the inside segment contributes. - Cylindrical current distributions: use circular Amperian loops coaxial with the cylinder; inside use enclosed current fraction (current density). - Always check that for chosen segments B is either parallel, antiparallel, or perpendicular to dℓ so the integral simplifies. Use right-hand rule to get direction and the sign of Ienc. AP exams only expect symmetric cases listed in the CED, so focus practice there. For a short guided review and examples, see the Topic 12.4 study guide (https://library.fiveable.me/ap-physics-c-e-m/unit-5/4-amperes-law/study-guide/RURo66Hv1aueyDWX) and practice problems (https://library.fiveable.me/practice/ap-physics-c-e-m).

What happens when you have multiple current-carrying wires and need to find the total magnetic field?

Use superposition: the net B at a point is the vector sum of the fields from each wire. For each long straight wire you can use the CED formula B = μ0 I / (2πr) (direction from the right-hand rule); then add those B vectors (account for sign/direction). Ampère’s law (∮B·dℓ = μ0 Ienc) is great when the geometry has high symmetry (long straight wire, long solenoid, concentric cylinders) so you can get B directly for that source, but it doesn’t give a simple shortcut for arbitrary multiple-wire arrangements. For non-symmetric sets use the Biot–Savart law or compute each wire’s B (magnitude + direction) and sum vectorially. On the AP exam you’ll only be asked to use Ampère’s law in symmetric cases—otherwise rely on superposition and the single-wire result (and the right-hand rule). For a quick refresher, check the Topic 12.4 study guide (https://library.fiveable.me/ap-physics-c-e-m/unit-5/4-amperes-law/study-guide/RURo66Hv1aueyDWX) and practice problems (https://library.fiveable.me/practice/ap-physics-c-e-m).

How does Maxwell's addition to Ampère's law relate to changing electric fields creating magnetic fields?

Maxwell’s addition to Ampère’s law adds the “displacement current” term, μ0ε0 dΦE/dt, so the full law is ∮B·dℓ = μ0Ienc + μ0ε0 dΦE/dt. That means a changing electric flux (a changing electric field) produces a magnetic field just like a real current does. Practically this fixes the capacitor paradox: between capacitor plates there’s no conduction current, but the changing E-field gives a displacement current that produces the same B-field around the gap, keeping Ampère’s law and charge conservation consistent. For AP C: E&M you don’t need to solve many problems using the displacement-current term, but you must understand conceptually that changing E creates B (CED 12.4.A.4). Review the Topic 12.4 study guide for a clear summary (https://library.fiveable.me/ap-physics-c-e-m/unit-5/4-amperes-law/study-guide/RURo66Hv1aueyDWX). For broader review and lots of practice problems, check the unit page (https://library.fiveable.me/ap-physics-c-e-m/unit-12) and the practice set (https://library.fiveable.me/practice/ap-physics-c-e-m).

Why is the principle of superposition important for magnetic fields from multiple conductors?

Because magnetic fields are vectors and produced linearly by currents, the principle of superposition lets you find the net B at a point by vector-adding the contributions from each conductor. That’s crucial because Ampère’s law (CED 12.4.A.1) is only directly solvable for highly symmetric situations (long straight wire, long solenoid, cylinders). In most real setups with multiple wires or loops you can: - Use Biot–Savart or the known B for each simple element (e.g., B_wire = μ0I/(2πr)) - Treat each element’s field as a vector and add them componentwise to get the net field (CED 12.4.A.3) Superposition also tells you how directions combine—fields from currents in the same sense add, opposite senses subtract—so you can predict cancellations, reinforcement, or null points. For AP problems, use symmetry + Ampère where allowed; otherwise compute individual contributions and superpose. For a focused review on Ampère’s law and examples, see the topic study guide (https://library.fiveable.me/ap-physics-c-e-m/unit-5/4-amperes-law/study-guide/RURo66Hv1aueyDWX). For more practice, check the AP problem bank (https://library.fiveable.me/practice/ap-physics-c-e-m).

What does "enclosed current" actually mean in Ampère's law?

"Enclosed current" in Ampère’s law means the net electric current that actually passes through the surface spanned by your chosen closed Amperian loop. Mathematically Ienc is the algebraic sum of currents piercing that loop (currents going one way count positive, the opposite way negative, based on your chosen orientation). Ampère’s law uses that Ienc in the line integral ∮B·dℓ = μ0 Ienc to relate the circulation of B around the loop to the currents threading the loop. In practice pick an Amperian loop that matches the symmetry (e.g., a circle around a long straight wire or a rectangle through a solenoid) so it’s easy to tell which currents pass through the loop. For AP purposes you won’t need the displacement-current term except as conceptual context (Maxwell’s addition)—focus on counting physical currents through the loop. See the Topic 12.4 study guide for worked examples (https://library.fiveable.me/ap-physics-c-e-m/unit-5/4-amperes-law/study-guide/RURo66Hv1aueyDWX) and more practice (https://library.fiveable.me/practice/ap-physics-c-e-m).

How do I remember when to use the 1/r relationship versus the constant field inside a solenoid?

Use symmetry and the Amperian loop. If the current source is a long straight wire (cylindrical symmetry) choose a circular Amperian loop centered on the wire—B is tangent and depends on radius r, so Ampère’s law gives B = μ0 I/(2πr) (the 1/r falloff). For a long solenoid you have translational symmetry along its axis and many closely spaced turns: pick a rectangular Amperian loop that goes inside and outside. Inside the ideal (very long) solenoid B is uniform and parallel to the axis, and outside is negligible, so Ampère’s law gives B = μ0 n I (constant inside). Quick memory trick: “single straight conductor → radial dependence (1/r). many turns packed into a long tube → inside uniform (constant).” For more AP-aligned practice and worked examples, see the Topic 12.4 study guide (https://library.fiveable.me/ap-physics-c-e-m/unit-5/4-amperes-law/study-guide/RURo66Hv1aueyDWX) and Unit 12 review (https://library.fiveable.me/ap-physics-c-e-m/unit-12).

I missed the lab on Ampère's law - what's the main difference between how magnetic fields behave around wires versus inside coils?

Short answer: around a long straight wire the magnetic field circles the wire and falls off as 1/r (B = μ0 I / 2πr), while inside a long solenoid the field is nearly uniform and along the axis (B = μ0 n I) with almost zero field outside. Why that difference? Ampère’s law uses symmetry and an Amperian loop: for a straight wire you pick a circular loop centered on the wire and get the 1/r result. For an ideal long solenoid you choose a rectangular Amperian loop that encloses many turns; symmetry gives a constant B inside and negligible B outside (AP tests only require these symmetrical cases per the CED). Use the right-hand rule for field direction and superposition if you combine sources. Want practice applying Ampère’s law and solenoid/wire problems? See the Topic 12.4 study guide (https://library.fiveable.me/ap-physics-c-e-m/unit-5/4-amperes-law/study-guide/RURo66Hv1aueyDWX) and thousands of practice Qs (https://library.fiveable.me/practice/ap-physics-c-e-m).

Why do we assume solenoids are "very long" in AP Physics problems?

You assume solenoids are “very long” so you can use symmetry and ignore edge effects when applying Ampère’s law. For a long solenoid the turns are effectively translationally symmetric along the axis, so the magnetic field inside is uniform and parallel to the axis (B = μ0 n I) and the field outside is negligible. That symmetry makes a simple Amperian loop (rectangular around the axis) give a clean ∮B·dℓ = μ0 Ienc result. Real, finite solenoids have fringing fields near the ends, so the inside field isn’t perfectly uniform and there’s nonzero outside field—but AP CED limits quantitative Ampère applications to “long solenoids,” so you’re allowed to ignore those complications on the exam. For the official topic study guide and practice problems on Ampère’s law, see the Fiveable resource (https://library.fiveable.me/ap-physics-c-e-m/unit-5/4-amperes-law/study-guide/RURo66Hv1aueyDWX) and the unit page (https://library.fiveable.me/ap-physics-c-e-m/unit-12).