Chapter 12. Sources of Magnetic Fields
12.5 Ampère’s Law
Learning Objectives
By the end of this section, you will be able to:
- Explain how Ampère’s law relates the magnetic field produced by a current to the value of the current
- Calculate the magnetic field from a long straight wire, either thin or thick, by Ampère’s law
A fundamental property of a static magnetic field is that, unlike an electrostatic field, it is not conservative. A conservative field is one that does the same amount of work on a particle moving between two different points regardless of the path chosen. Magnetic fields do not have such a property. Instead, there is a relationship between the magnetic field and its source, electric current. It is expressed in terms of the line integral of
Figure 12.14 shows an arbitrary plane perpendicular to an infinite, straight wire whose current I is directed out of the page. The magnetic field lines are circles directed counterclockwise and centered on the wire. To begin, let’s consider

With
For path M, which circulates around the wire,
Path N, on the other hand, circulates through both positive (counterclockwise) and negative (clockwise)
The extension of this result to the general case is Ampère’s law.
Ampère’s law
Over an arbitrary closed path,
where I is the total current passing through any open surface S whose perimeter is the path of integration. Only currents inside the path of integration need be considered.
To determine whether a specific current I is positive or negative, curl the fingers of your right hand in the direction of the path of integration, as shown in Figure 12.14. If I passes through S in the same direction as your extended thumb, I is positive; if I passes through S in the direction opposite to your extended thumb, it is negative.
Problem-Solving Strategy: Ampère’s Law
To calculate the magnetic field created from current in wire(s), use the following steps:
- Identify the symmetry of the current in the wire(s). If there is no symmetry, use the Biot-Savart law to determine the magnetic field.
- Determine the direction of the magnetic field created by the wire(s) by right-hand rule 2.
- Chose a path loop where the magnetic field is either constant or zero.
- Calculate the current inside the loop.
- Calculate the line integral
around the closed loop. - Equate
with and solve for
Example
Using Ampère’s Law to Calculate the Magnetic Field Due to a Wire
Use Ampère’s law to calculate the magnetic field due to a steady current I in an infinitely long, thin, straight wire as shown in Figure 12.15.

Strategy
Consider an arbitrary plane perpendicular to the wire, with the current directed out of the page. The possible magnetic field components in this plane,
Solution
Show Answer
Over this path
Thus Ampère’s law reduces to
Finally, since
This agrees with the Biot-Savart calculation above.
Significance
Ampère’s law works well if you have a path to integrate over which
Example
Calculating the Magnetic Field of a Thick Wire with Ampère’s Law
The radius of the long, straight wire of Figure 12.16 is a, and the wire carries a current

Strategy
This problem has the same geometry as Example 12.6, but the enclosed current changes as we move the integration path from outside the wire to inside the wire, where it doesn’t capture the entire current enclosed (see Figure 12.16).
Solution
Show Answer
For any circular path of radius r that is centered on the wire,
From Ampère’s law, this equals the total current passing through any surface bounded by the path of integration.
Consider first a circular path that is inside the wire
We can consider this ratio because the current density J is constant over the area of the wire. Therefore, the current density of a part of the wire is equal to the current density in the whole area. Using Ampère’s law, we obtain
and the magnetic field inside the wire is
Outside the wire, the situation is identical to that of the infinite thin wire of the previous example; that is,
The variation of B with r is shown in Figure 12.17.

Significance
The results show that as the radial distance increases inside the thick wire, the magnetic field increases from zero to a familiar value of the magnetic field of a thin wire. Outside the wire, the field drops off regardless of whether it was a thick or thin wire.
This result is similar to how Gauss’s law for electrical charges behaves inside a uniform charge distribution, except that Gauss’s law for electrical charges has a uniform volume distribution of charge, whereas Ampère’s law here has a uniform area of current distribution. Also, the drop-off outside the thick wire is similar to how an electric field drops off outside of a linear charge distribution, since the two cases have the same geometry and neither case depends on the configuration of charges or currents once the loop is outside the distribution.
Example
Using Ampère’s Law with Arbitrary Paths
Use Ampère’s law to evaluate

Strategy
Ampère’s law states that
Solution
Show Answer
(a) The current going downward through the loop equals the current going out of the loop, so the net current is zero. Thus,
(b) The only current to consider in this problem is 2A because it is the only current inside the loop. The right-hand rule shows us the current going downward through the loop is in the positive direction. Therefore, the answer is
(c) The right-hand rule shows us the current going downward through the loop is in the positive direction. There are
Significance
If the currents all wrapped around so that the same current went into the loop and out of the loop, the net current would be zero and no magnetic field would be present. This is why wires are very close to each other in an electrical cord. The currents flowing toward a device and away from a device in a wire equal zero total current flow through an Ampère loop around these wires. Therefore, no stray magnetic fields can be present from cords carrying current.
Check Your Understanding
Consider using Ampère’s law to calculate the magnetic fields of a finite straight wire and of a circular loop of wire. Why is it not useful for these calculations?
Show Solution
In these cases the integrals around the Ampèrian loop are very difficult because there is no symmetry, so this method would not be useful.
Summary
- The magnetic field created by current following any path is the sum (or integral) of the fields due to segments along the path (magnitude and direction as for a straight wire), resulting in a general relationship between current and field known as Ampère’s law.
- Ampère’s law can be used to determine the magnetic field from a thin wire or thick wire by a geometrically convenient path of integration. The results are consistent with the Biot-Savart law.
Conceptual Questions
Is Ampère’s law valid for all closed paths? Why isn’t it normally useful for calculating a magnetic field?
Show Solution
Ampère’s law is valid for all closed paths, but it is not useful for calculating fields when the magnetic field produced lacks symmetry that can be exploited by a suitable choice of path.
Problems
A current I flows around the rectangular loop shown in the accompanying figure. Evaluate
Show Solution
a.
Evaluate
The coil whose lengthwise cross section is shown in the accompanying figure carries a current I and has N evenly spaced turns distributed along the length l. Evaluate
Show Solution
a.
A superconducting wire of diameter 0.25 cm carries a current of 1000 A. What is the magnetic field just outside the wire?
A long, straight wire of radius R carries a current I that is distributed uniformly over the cross-section of the wire. At what distance from the axis of the wire is the magnitude of the magnetic field a maximum?
Show Solution
at the radius R
The accompanying figure shows a cross-section of a long, hollow, cylindrical conductor of inner radius
A long, solid, cylindrical conductor of radius 3.0 cm carries a current of 50 A distributed uniformly over its cross-section. Plot the magnetic field as a function of the radial distance r from the center of the conductor.
Show Solution

A portion of a long, cylindrical coaxial cable is shown in the accompanying figure. A current I flows down the center conductor, and this current is returned in the outer conductor. Determine the magnetic field in the regions (a)
Glossary
- Ampère’s law
- physical law that states that the line integral of the magnetic field around an electric current is proportional to the current
Licenses and Attributions
Ampère’s Law. Authored by: OpenStax College. Located at: https://openstax.org/books/university-physics-volume-2/pages/12-5-amperes-law. License: CC BY: Attribution. License Terms: Download for free at https://openstax.org/books/university-physics-volume-2/pages/1-introduction