Skip to main content

Unit 12 · Topic 12.3

12.3 Magnetic Fields of Current-Carrying Wires and the Biot-Savart Law

Currents create magnetic fields, and the Biot–Savart law tells you the field each small piece of current makes. This topic covers the right-hand rule for wires, how to integrate the Biot–Savart law for wires, loops and arcs, and the force a magnetic field exerts on a current-carrying wire.

Key terms

  • Biot–Savart law
  • current element
  • right-hand rule for wires
  • field at the center of a loop
  • force on a current-carrying wire

The field around a wire

A current in a long straight wire makes a magnetic field whose lines are circles centered on the wire. To find the direction, point your right thumb along the conventional current; your fingers curl the way the field lines go around. The field gets weaker as you move away from the wire.

For a long straight wire, the field at distance r is B=μ0I2πrB = \dfrac{\mu_0 I}{2\pi r}. You can get this from the Biot–Savart law, but Ampère's law (12.4) gets there much faster.

The Biot–Savart law

Split a current into tiny pieces, each a current element I dℓ⃗I\,d\vec{\ell} pointing along the current. Each piece makes a small field at a point a distance r away:

dB⃗=μ04πI dℓ⃗×r^r2d\vec{B} = \frac{\mu_0}{4\pi}\frac{I\,d\vec{\ell} \times \hat{r}}{r^2}

Here r^\hat{r} is a unit vector from the piece to the point. The size is dB=μ04πI dℓsin⁡θr2dB = \dfrac{\mu_0}{4\pi}\dfrac{I\,d\ell\sin\theta}{r^2}, where θ is the angle between dℓ⃗d\vec{\ell} and r^\hat{r}. Notice two features: the field falls off as 1/r², like the field of a point charge, and a piece of wire pointing straight at (or away from) the point contributes nothing, because sin 0° = 0.

To find the total field, add up all the pieces with an integral. Use symmetry first: often some components cancel, or every piece points the same way, which makes the integral simple.

Results to know

You're expected to work out the field at the center of a circular arc, on the axis of a circular loop, and on the perpendicular bisector of a straight wire segment. These are the standard results:

Current shapePointField strength
Circular loop, radius Rcenterμ0I2R\dfrac{\mu_0 I}{2R}
Arc of angle θ (radians), radius Rcenterμ0Iθ4πR\dfrac{\mu_0 I\theta}{4\pi R}
Circular loop, radius Ron the axis, distance x from the centerμ0IR22(R2+x2)3/2\dfrac{\mu_0 IR^2}{2(R^2 + x^2)^{3/2}}
Straight segment, length Lperpendicular bisector, distance aμ0IL2πaL2+4a2\dfrac{\mu_0 IL}{2\pi a\sqrt{L^2 + 4a^2}}
Long straight wiredistance rμ0I2πr\dfrac{\mu_0 I}{2\pi r}

Force on a current-carrying wire

A current is moving charge, so a magnetic field pushes on it. For a straight wire of length ℓ\ell in a uniform field, F⃗=Iℓ⃗×B⃗\vec{F} = I\vec{\ell} \times \vec{B}, with size F=IℓBsin⁡θF = I\ell B\sin\theta. The vector ℓ⃗\vec{\ell} points along the conventional current. For a curved wire or a field that varies, add up the pieces: F⃗=∫I dℓ⃗×B⃗\vec{F} = \displaystyle\int I\,d\vec{\ell} \times \vec{B}.

Two parallel wires each sit in the other's field, so they push on each other. Currents in the same direction attract; opposite currents repel. The force per unit length is Fℓ=μ0I1I22πd\dfrac{F}{\ell} = \dfrac{\mu_0 I_1 I_2}{2\pi d}, where d is the distance between the wires.

Worked examples

Try each one yourself first, then open the solution.

  1. Example 1Calculator allowed

    Deriving the field at the center of an arc

    A wire bent into a circular arc of radius R spans an angle θ (in radians) and carries current I. Use the Biot–Savart law to find the field at the arc's center.

    Show the solution
    1. Step 1: Every piece dℓ⃗d\vec{\ell} of the arc is perpendicular to the line from it to the center, so the angle between dℓ⃗d\vec{\ell} and r^\hat{r} is 90° and sin 90° = 1. Every piece is the same distance R away.
    2. Step 2: By the right-hand rule, every piece's dB⃗d\vec{B} points the same way (perpendicular to the plane of the arc), so the sizes simply add.
    3. Step 3: B=∫μ04πI dℓR2=μ0I4πR2∫dℓ=μ0I4πR2(Rθ)=μ0Iθ4πRB = \displaystyle\int \frac{\mu_0}{4\pi}\frac{I\,d\ell}{R^2} = \frac{\mu_0 I}{4\pi R^2}\int d\ell = \frac{\mu_0 I}{4\pi R^2}(R\theta) = \frac{\mu_0 I\theta}{4\pi R}.
    4. Step 4: Check: a full loop has θ = 2π, giving μ0I2R\dfrac{\mu_0 I}{2R}, the known result.

    Answer: B=μ0Iθ4πRB = \dfrac{\mu_0 I\theta}{4\pi R}, perpendicular to the plane of the arc

  2. Example 2Calculator allowed

    A semicircle with straight leads (classic trap)

    A wire carries 8.0 A. It runs straight toward a point P, bends around a semicircle of radius 5.0 cm centered on P, then runs straight away from P along the same line, on the other side of P. Find the magnetic field at P.

    Show the solution
    1. Step 1: The straight parts point directly toward or away from P, so for each piece dℓ⃗d\vec{\ell} is parallel to r^\hat{r} and dℓ⃗×r^=0d\vec{\ell} \times \hat{r} = 0. They add nothing at P.
    2. Step 2: Only the semicircle counts, with θ = π: B=μ0Iπ4πR=μ0I4RB = \dfrac{\mu_0 I\pi}{4\pi R} = \dfrac{\mu_0 I}{4R}.
    3. Step 3: B=(4π×10−7)(8.0)4(0.050)≈5.0×10−5 TB = \dfrac{(4\pi \times 10^{-7})(8.0)}{4(0.050)} \approx 5.0 \times 10^{-5}\text{ T}, perpendicular to the plane of the semicircle.
    4. Step 4: The trap is adding a long-wire field for each straight lead. That formula is for a point off to the side of a wire, not on the wire's own line.

    Answer: About 5.0 × 10⁻⁵ T, perpendicular to the plane of the semicircle

  3. Example 3Calculator allowed

    Force on a wire in a uniform field

    A straight wire 0.40 m long carries 3.0 A in a uniform 0.25 T magnetic field. The wire makes a 30° angle with the field. Find the size of the magnetic force on it.

    Show the solution
    1. Step 1: F=IℓBsin⁡θ=(3.0)(0.40)(0.25)sin⁡30∘F = I\ell B\sin\theta = (3.0)(0.40)(0.25)\sin 30^\circ.
    2. Step 2: F=(0.30)(0.50)=0.15 NF = (0.30)(0.50) = 0.15\text{ N}, directed perpendicular to both the wire and the field, along ℓ⃗×B⃗\vec{\ell} \times \vec{B}.

    Answer: 0.15 N

Common mistakes

  • Curling the left hand, or pointing the thumb along the electron flow. Use your right thumb along the conventional current.
  • Applying the long-wire formula to a short segment or to a point on the wire's own line.
  • Adding field magnitudes from different pieces without checking direction. Add vectors, or use symmetry to show the pieces line up.
  • Thinking parallel currents repel because like charges repel. Parallel currents in the same direction attract.

On the exam

  • Free-response questions often ask you to derive a field with the Biot–Savart law. Show the expression for dB, explain why sin θ or r is constant (or how they vary), and write the integral with clear limits.
  • Expect superposition: a shape made of arcs and straight pieces, where you add each part's field at one point, paying attention to whether each points into or out of the page.

Connected topics

Videos

  • Topic 12.3 - Biot-Savart Law

    Lessons With LondotWatch on YouTube (opens in a new tab)

  • Biot-Savart Law and Magnetic Field around a Current Carrying Wire

    Flipping PhysicsWatch on YouTube (opens in a new tab)

  • Biot–Savart Law Explained Simply | AP Physics C: E&M - Unit 12 - Lesson 6

    Allen Tsao The STEM CoachWatch on YouTube (opens in a new tab)

  • AP Physics C - Biot Savart Law

    Dan Fullerton (APlusPhysics)Watch on YouTube (opens in a new tab)

  • Force on a Wire in a Magnetic Field | Physics with Professor Matt Anderson | M23-07

    Physics with Professor Matt AndersonWatch on YouTube (opens in a new tab)

Check yourself

4 questions on 12.3 Magnetic Fields of Current-Carrying Wires and the Biot-Savart Law. Pick an answer to see if you got it, and why.

Question 1 of 4Calculator allowed

A single circular loop of wire with radius 10 cm carries a current of 5.0 A. What is the magnitude of the magnetic field at its center?

Question 2 of 4Calculator allowed

A flat circular coil has N turns, radius R and current I. A second flat coil has 2N turns, radius 2R and current I. How does the field at the center of the second coil compare with that of the first?

Question 3 of 4Calculator allowed

A long wire carrying current I runs straight toward point P, follows a semicircle of radius R centered on P, and then runs straight away from P along the same line it came in on. What is the magnitude of the magnetic field at P?

Question 4 of 4Calculator allowed

A closed loop carrying current I is made of a quarter circle of radius a, a quarter circle of radius b (with b > a), and two straight radial segments joining their ends. Both arcs are centered on point P. What is the magnitude of the magnetic field at P?

0 of 4 answered