Skip to main content

Ampere's Law in AP Physics C: Electricity and Magnetism

Ampère's Law states that the line integral of the magnetic field around any closed path equals μ₀ times the net current passing through a surface bounded by that path (∮B·dl = μ₀I_enc). On AP Physics C E&M, you use it to find B for highly symmetric current distributions like long wires, solenoids, and toroids.

This definition is part of Fiveable's AP Physics C: Electricity and Magnetism review, which also has guided practice questions.

Verified for the 2027 AP Physics C: Electricity and Magnetism exam•Last updated October 2026•Fiveable Content Team

What is Ampere's Law?

Ampère's Law says that if you walk around a closed loop and add up the component of the magnetic field along your path, the total equals μ₀ times the current poking through that loop. In symbols, ∮B·dl = μ₀I_enc. The loop you choose is called an Amperian loop. The current that counts is only the enclosed current, meaning current that actually passes through a surface bounded by the loop. Current outside the loop changes B at each point, but its contributions cancel out of the total integral.

Here's the intuitive reframe. Ampère's Law is basically Gauss's Law for magnetism around currents. Gauss's Law counts charge inside a closed surface. Ampère's Law counts current through a closed loop. The law is always true. It only becomes a shortcut when symmetry lets you pull B out of the integral. That happens when B is constant in magnitude along the loop and points either parallel or perpendicular to it. Then the integral collapses to B times a length, and you solve for B in one line. The classic results are a long straight wire, B = μ₀I/(2πr). Inside a uniform wire of radius R, it's B = μ₀Ir/(2πR²). For an ideal solenoid, B = μ₀nI, and for a toroid, B = μ₀NI/(2πr).

Why Ampere's Law matters in AP® Physics C: E&M

Ampère's Law is the centerpiece of Topic 12.4 in Unit 12: Magnetic Fields and Electromagnetism. It gives you a second, often much faster way to calculate magnetic fields from currents, alongside summing up contributions piece by piece. Because AP Physics C E&M is calculus-based, the exam expects you to actually set up and evaluate the line integral. That means picking a smart Amperian loop, figuring out which current is enclosed, and handling nonuniform current densities with an integral of J over area. Ampère's Law is also one of the four ideas that make up Maxwell's Equations, so it ties the magnetism unit back to the field-based thinking you built in Unit 8 with Gauss's Law. For the full topic walkthrough, see the 12.4 Ampère's Law study guide.

How Ampere's Law connects across the course

Gauss's Law (Unit 8)

These two laws are mirror images, and the problem-solving recipe is identical. In Unit 8 you pick a Gaussian surface where E is constant and count enclosed charge. In Unit 12 you pick an Amperian loop where B is constant and count enclosed current. If you can do a nonuniform charged-cylinder Gauss problem, you can do a nonuniform current-density Ampère problem, because the integral of ρ dV just becomes the integral of J dA.

Magnetic Field of a Solenoid (Unit 12)

The solenoid is Ampère's Law's signature application. A rectangular Amperian loop with one side inside the coil picks up field only along that inside side, so B·L = μ₀(nL)I and B = μ₀nI. The field doesn't depend on the radius or on where you are inside the coil, which is why solenoids make nearly uniform magnetic fields.

Current Density and Circuits (Units 11-12)

In Unit 11 current is a single number flowing through a wire. Ampère's Law makes you think about how that current is spread across the wire's cross-section. When the current density J varies with radius, the enclosed current isn't simply a fraction of the total. You have to integrate J over the area inside your loop, and that integral is a favorite calculus move on the exam.

Ampère-Maxwell Law and Maxwell's Equations (Units 10, 12, 13)

Plain Ampère's Law fails between the plates of a charging capacitor (Unit 10), where no conduction current flows but a magnetic field still exists. Maxwell fixed this by adding a term for a changing electric flux, called displacement current. That upgrade pairs naturally with Faraday's Law in Unit 13. Together they show that changing E makes B and changing B makes E.

Is Ampere's Law on the AP® Physics C: E&M exam?

No released FRQ has used the phrase "Ampère's Law" verbatim in its prompt, but the skill shows up whenever you're asked to derive a magnetic field for a symmetric current setup. Expect tasks like these:

  • Derive B as a function of r for a long wire, a thick cylindrical conductor, or a coaxial cable. You'll often need separate answers for r < R and r > R, and sometimes a region between conductors.
  • Handle nonuniform current density, like J = kr. You integrate J over area to get I_enc, then plug into ∮B·dl = μ₀I_enc.
  • Sketch or identify a graph of B vs. r. Inside a uniform wire B rises linearly, and outside it falls off as 1/r.
  • Choose the right loop and justify it using symmetry. MCQs may ask why Ampère's Law is or isn't useful for a given shape, like a finite wire segment.
  • Find net enclosed current with direction, using the right-hand rule to decide which currents count as positive and which as negative. That's how a coaxial cable gives zero field outside.

The common thread is that you have to do the integral, not just quote the formula.

Ampere's Law vs Biot-Savart Law

Both laws find the magnetic field from currents, but they work differently. The Biot-Savart Law adds up the field from every tiny current element, dB = (μ₀/4π)(I dl × r̂)/r². It works for any shape, like a loop's center or a finite wire, but the integral can get messy. Ampère's Law works on the whole loop at once and only gives you an easy answer when there's strong symmetry, such as infinite wires, solenoids, and toroids. Here's a quick rule. If the setup has cylindrical or planar symmetry, reach for Ampère. If it's a curved or finite piece of wire, use Biot-Savart.

Key things to remember about Ampere's Law

  • Ampère's Law states that ∮B·dl = μ₀I_enc, where I_enc is the net current passing through a surface bounded by your closed loop.

  • The law is always true, but it only lets you solve for B easily when symmetry makes B constant and parallel to your Amperian loop (or perpendicular to parts of it).

  • For a long straight wire, the field outside is B = μ₀I/(2πr), and inside a uniformly distributed wire it grows linearly as B = μ₀Ir/(2πR²).

  • An ideal solenoid has a uniform interior field of B = μ₀nI, where n is turns per unit length, and essentially zero field outside.

  • When current density varies across a conductor, you must integrate J over the area inside your loop to find the enclosed current.

  • Ampère's Law is the magnetic partner of Gauss's Law, and adding Maxwell's displacement current turns it into one of the four Maxwell's Equations.

Frequently asked questions about Ampere's Law

What is Ampère's Law in AP Physics C E&M?

Ampère's Law says the line integral of the magnetic field around a closed loop equals μ₀ times the current enclosed by that loop, ∮B·dl = μ₀I_enc. It's covered in Topic 12.4, and you use it to derive B for symmetric setups like long wires, solenoids, and toroids.

If no current is enclosed, is the magnetic field zero on the Amperian loop?

Not necessarily. Zero enclosed current means the integral ∮B·dl is zero, but B itself can be nonzero at points on the loop, for example from a nearby wire outside it. You can only conclude B = 0 when symmetry guarantees B is constant along the loop, as with the region outside a coaxial cable carrying equal and opposite currents.

How is Ampère's Law different from the Biot-Savart Law?

Biot-Savart builds B by summing contributions from every small piece of current, so it works for any geometry, like the center of a circular loop. Ampère's Law treats the whole closed loop at once and is only practical with high symmetry, like an infinite wire (B = μ₀I/2πr) or a solenoid (B = μ₀nI).

Does Ampère's Law only work for symmetric situations?

No. Ampère's Law holds for any closed loop around steady currents. Symmetry is just what makes it useful, because it lets you pull B out of the integral and solve for it algebraically.

How do you find enclosed current when current density isn't uniform?

Integrate the current density over the area inside your Amperian loop. For a wire with J = kr, that's I_enc = ∫kr(2πr dr) from 0 to r, which gives 2πkr³/3. Then set B(2πr) = μ₀I_enc and solve for B.