Dove's LibraryDove's Library

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

Introduction to the Biot-Savart Law

The Biot-Savart Law lets you calculate or derive expressions for magnetic fields created by electric currents flowing through wires. It’s analogous to Coulomb’s Law for electric fields, but it applies to moving charges (currents).
Its purpose: to determine the magnitude and direction of the magnetic field a current-carrying wire creates at any point in space.

The Biot-Savart Law Equation

General Form

dB⃗=μ04πIdℓ⃗×r^r2d\vec{B} = \frac{\mu_0}{4\pi} \frac{I d\vec{\ell} \times \hat{r}}{r^2}
where: - dB⃗d\vec{B} = infinitesimal magnetic field contribution (T) - μ0=4π×10−7\mu_0 = 4\pi \times 10^{-7} T·m/A, the permeability of free space - II = current through the wire (A) - dℓ⃗d\vec{\ell} = infinitesimal length element of wire (a vector pointing in the current direction) - r^\hat{r} = unit vector pointing from the wire element to the observation point - rr = distance from the wire element to the observation point (m) - ×\times = cross product

Understanding the Components

μ0\mu_0 (mu-naught): the magnetic permeability constant that shows up in every magnetic field equation.
II: the current flowing through the wire, constant for a given wire.
dℓd\ell: a small segment of wire, and this is what you integrate over.
r^\hat{r} (r-hat): a unit vector with magnitude 1, pointing radially from the wire element toward the observation point.
rr: the distance from the wire element to the observation point.

Magnitude Form

For practical calculations, the magnitude is:
dB=μ04πI dℓsin⁡θr2dB = \frac{\mu_0}{4\pi} \frac{I \, d\ell \sin\theta}{r^2}
where θ\theta is the angle between dℓ⃗d\vec{\ell} and r^\hat{r}.
An important simplification: when dℓ⃗d\vec{\ell} is perpendicular to r^\hat{r}, which happens a lot, sin⁡θ=1\sin\theta = 1, so:
dB=μ0I dℓ4πr2dB = \frac{\mu_0 I \, d\ell}{4\pi r^2}
To find the total magnetic field, integrate over the whole wire:
B⃗=∫dB⃗=μ0I4π∫dℓ⃗×r^r2\vec{B} = \int d\vec{B} = \frac{\mu_0 I}{4\pi} \int \frac{d\vec{\ell} \times \hat{r}}{r^2}

Magnetic Field Pattern Around a Wire

The magnetic field vectors around a current-carrying wire are tangent to concentric circles centered on the wire.
5.3 - Magnetic Fields of Current-Carrying Wires and the Biot-Savart Law
The right-hand rule for a wire: - Point your thumb in the direction of the current. - Your fingers curl in the direction of the magnetic field circles.
The field has no component toward or away from the wire and no component parallel to the wire. It only wraps around. That comes straight from the cross product in the Biot-Savart Law: dB⃗d\vec{B} is perpendicular to both dℓ⃗d\vec{\ell} (which runs along the wire) and r^\hat{r} (which points from the wire out to the point), and the only direction perpendicular to both is around the wire.

Magnetic Field from a Current Loop

A special and important case is a circular loop of wire carrying current.

Formula for the Center of a Loop

At the center of a circular loop of radius RR carrying current II:
B=μ0I2RB = \frac{\mu_0 I}{2R}
This comes from integrating the Biot-Savart Law around the entire loop (angle θ=2π\theta = 2\pi), as you’ll see in the example problem.
Only the Biot-Savart Law itself is on the AP equation sheet, not this result, so be ready to derive it.
5.3 - Magnetic Fields of Current-Carrying Wires and the Biot-Savart Law
A physical insight: a current loop acts like a magnetic dipole, with a field pattern very similar to a bar magnet’s.

Force on a Current-Carrying Wire

A current-carrying wire sitting in an external magnetic field feels a force.

Formula

F⃗B=Iℓ⃗×B⃗\vec{F}_B = I\vec{\ell} \times \vec{B}
For a wire segment of length ℓ\ell:
FB=IℓBsin⁡θF_B = I\ell B\sin\theta
where θ\theta is the angle between the wire (the current direction) and the magnetic field.
For a curved wire or a varying field, integrate over the wire:
F⃗B=∫I dℓ⃗×B⃗\vec{F}_B = \int I \, d\vec{\ell} \times \vec{B}
Maximum force: when the wire is perpendicular to the field (θ=90°\theta = 90°), F=IℓBF = I\ell B.
No force: when the wire is parallel to the field (θ=0°\theta = 0°), F=0F = 0.
5.3 - Magnetic Fields of Current-Carrying Wires and the Biot-Savart Law
Uniform field shortcut. In a uniform field, a curved wire feels the same net force as a straight wire running between its two ends with the same current. For example, a semicircle of radius RR lying in the page, with B⃗\vec{B} perpendicular to the page, feels F=I(2R)BF = I(2R)B, the same as its straight diameter. You need the integral F⃗B=∫I dℓ⃗×B⃗\vec{F}_B = \int I\,d\vec{\ell} \times \vec{B} when the field changes along the wire:

Example: Force in a Field That Isn’t Uniform

Problem: A long straight wire carries I1=20I_1 = 20 A up the page. A 0.080 m rod lies in the page perpendicular to the long wire, with its near end 0.020 m from the wire and its far end 0.10 m away. The rod carries I2=5.0I_2 = 5.0 A away from the long wire. Find the magnetic force on the rod.
5.3 - Magnetic Fields of Current-Carrying Wires and the Biot-Savart Law
The long wire’s field, B1=μ0I12πrB_1 = \frac{\mu_0 I_1}{2\pi r} (into the page on the rod’s side), gets weaker along the rod, so you can’t just use F=IℓBF = I\ell B. Cut the rod into pieces drdr. Each piece is perpendicular to B⃗1\vec{B}_1, so dF=I2B1 drdF = I_2B_1\,dr:
F=∫0.0200.10I2μ0I12πr dr=μ0I1I22πln⁡0.100.020F = \int_{0.020}^{0.10} I_2\frac{\mu_0 I_1}{2\pi r}\,dr = \frac{\mu_0 I_1 I_2}{2\pi}\ln\frac{0.10}{0.020}F=(2.0×10−7 T\cdotpm/A)(20 A)(5.0 A)ln⁡5.0=3.2×10−5 NF = (2.0 \times 10^{-7}\text{ T·m/A})(20 \text{ A})(5.0 \text{ A})\ln 5.0 = 3.2 \times 10^{-5} \text{ N}
Direction: dℓ⃗d\vec{\ell} points away from the wire (i^\hat{i}) and B⃗1\vec{B}_1 points into the page (−k^-\hat{k}), and i^×(−k^)=+j^\hat{i} \times (-\hat{k}) = +\hat{j}. The force points up the page, parallel to the long wire’s current.

Force Between Two Parallel Wires

Each wire sits in the magnetic field of the other, so two current-carrying wires push or pull on each other. Wire 1’s field at wire 2, a distance dd away, is B1=μ0I12πdB_1 = \frac{\mu_0 I_1}{2\pi d}, and it’s perpendicular to wire 2. So the force on a length ℓ\ell of wire 2 is
F=I2ℓB1=μ0I1I2ℓ2πdF = I_2\ell B_1 = \frac{\mu_0 I_1 I_2 \ell}{2\pi d}
Wire 2 pulls on wire 1 with the same size force in the opposite direction (Newton’s third law). - Currents in the same direction attract. - Currents in opposite directions repel.
5.3 - Magnetic Fields of Current-Carrying Wires and the Biot-Savart Law
Example. Two long parallel wires 4.0 cm apart carry 8.0 A and 5.0 A in the same direction. Find the force on a 0.50 m length of either wire.
F=(4π×10−7 T\cdotpm/A)(8.0 A)(5.0 A)(0.50 m)2π(0.040 m)=1.0×10−4 NF = \frac{(4\pi \times 10^{-7}\text{ T·m/A})(8.0 \text{ A})(5.0 \text{ A})(0.50 \text{ m})}{2\pi(0.040 \text{ m})} = 1.0 \times 10^{-4} \text{ N}

Example Problem: Magnetic Field at the Center of a Circular Arc

Problem: A wire carrying current II forms a circular arc with radius RR, sweeping through an arbitrary angle θ\theta (in radians). Derive an expression for the magnetic field at the center of the arc (point P).
5.3 - Magnetic Fields of Current-Carrying Wires and the Biot-Savart Law

Solution

Step 1: Start with the Biot-Savart Law
dB⃗=μ04πI dℓ⃗×r^r2d\vec{B} = \frac{\mu_0}{4\pi} \frac{I \, d\vec{\ell} \times \hat{r}}{r^2}
Step 2: Identify the constants
For this geometry: - The current II is constant. - The distance from any point on the arc to the center is r=Rr = R, also constant. - The wire element dℓ⃗d\vec{\ell} is always perpendicular to r^\hat{r} (the radial direction). - So ∣dℓ⃗×r^∣=dℓ|d\vec{\ell} \times \hat{r}| = d\ell, since sin⁡90°=1\sin 90° = 1.
Step 3: Set up the integral
Since μ0/(4π)\mu_0/(4\pi), II, and RR are all constants, factor them out:
B=μ0I4πR2∫dℓB = \frac{\mu_0 I}{4\pi R^2} \int d\ell
Step 4: Express dℓd\ell in terms of the angle
For a circular arc, dℓ=R dθd\ell = R \, d\theta.
The arc runs from 00 to θ\theta, the total angle swept:
B=μ0I4πR2∫0θR dθB = \frac{\mu_0 I}{4\pi R^2} \int_0^\theta R \, d\theta
Step 5: Simplify
B=μ0I4πR2⋅R∫0θdθB = \frac{\mu_0 I}{4\pi R^2} \cdot R \int_0^\theta d\thetaB=μ0I4πR∫0θdθB = \frac{\mu_0 I}{4\pi R} \int_0^\theta d\theta
Step 6: Integrate
∫0θdθ=[θ]0θ=θ−0=θ\int_0^\theta d\theta = [\theta]_0^\theta = \theta - 0 = \theta
Step 7: Final answer
B=μ0Iθ4πR\boxed{B = \frac{\mu_0 I \theta}{4\pi R}}
The physical read: the magnetic field at the center is proportional to - the current II, so more current means a stronger field, - the angle θ\theta, so a bigger arc means a stronger field, and inversely proportional to the radius RR, so a bigger radius means a weaker field at the center.

Special Case: The Complete Loop

For a complete circular loop, the angle swept is θ=2π\theta = 2\pi radians (360°).
Substitute θ=2π\theta = 2\pi into the result:
B=μ0I(2π)4πRB = \frac{\mu_0 I (2\pi)}{4\pi R}B=2μ0I4RB = \frac{2\mu_0 I}{4R}B=μ0I2RB = \frac{\mu_0 I}{2R}
That confirms the complete-loop formula from earlier.
This shows the power of the general result: the formula B=μ0Iθ4πRB = \frac{\mu_0 I\theta}{4\pi R} works for any arc angle, and the complete loop is just the special case where θ=2π\theta = 2\pi.

Example Problem: Field on the Perpendicular Bisector of a Straight Wire

Problem: A straight wire of length LL carries current II. Derive the magnetic field at point P, a distance aa from the wire’s midpoint along the perpendicular bisector.
5.3 - Magnetic Fields of Current-Carrying Wires and the Biot-Savart Law

Solution

Step 1: Set up one piece
Put the wire on the xx-axis from −L/2-L/2 to L/2L/2, with P a height aa above the middle. A piece dxdx at position xx is a distance r=x2+a2r = \sqrt{x^2 + a^2} from P, and the angle θ\theta between dℓ⃗d\vec{\ell} and r^\hat{r} has sin⁡θ=ar\sin\theta = \frac{a}{r}. So the Biot-Savart Law gives
dB=μ04πI dxsin⁡θr2=μ0I4πa dx(x2+a2)3/2dB = \frac{\mu_0}{4\pi}\frac{I\,dx\sin\theta}{r^2} = \frac{\mu_0 I}{4\pi}\frac{a\,dx}{(x^2 + a^2)^{3/2}}
Step 2: Check the direction
With the current to the right and P above the wire, dℓ⃗×r^d\vec{\ell} \times \hat{r} points out of the page for every piece. Since every dB⃗d\vec{B} points the same way, you can add the magnitudes directly.
Step 3: Integrate
B=μ0Ia4π∫−L/2L/2dx(x2+a2)3/2=μ0Ia4π[xa2x2+a2]−L/2L/2B = \frac{\mu_0 I a}{4\pi}\int_{-L/2}^{L/2}\frac{dx}{(x^2 + a^2)^{3/2}} = \frac{\mu_0 I a}{4\pi}\left[\frac{x}{a^2\sqrt{x^2 + a^2}}\right]_{-L/2}^{L/2}
(That integral comes from the substitution x=atan⁡ϕx = a\tan\phi, or a table of integrals.) Plugging in the limits and simplifying:
B=μ0IL2πaL2+4a2\boxed{B = \frac{\mu_0 I L}{2\pi a\sqrt{L^2 + 4a^2}}}
Step 4: Check the limit
For a very long wire (L≫aL \gg a), L2+4a2≈L\sqrt{L^2 + 4a^2} \approx L, and the result becomes B=μ0I2πaB = \frac{\mu_0 I}{2\pi a}, the infinite-wire field from Topic 5.4. Even a fairly short wire gets close: with L=4aL = 4a, the field is 420=0.89\frac{4}{\sqrt{20}} = 0.89 of the infinite-wire value, because the far ends of a wire contribute very little at P.

Example Problem: Field on the Axis of a Circular Loop

Problem: A circular loop of radius RR carries current II. Derive the magnetic field at point P on the loop’s central axis, a distance xx from its center.
5.3 - Magnetic Fields of Current-Carrying Wires and the Biot-Savart Law

Solution

Step 1: One piece of the loop
Every piece dℓd\ell of the loop is the same distance from P, r=R2+x2r = \sqrt{R^2 + x^2}, and dℓ⃗d\vec{\ell} is always perpendicular to r^\hat{r} (so sin⁡θ=1\sin\theta = 1):
dB=μ04πI dℓR2+x2dB = \frac{\mu_0}{4\pi}\frac{I\,d\ell}{R^2 + x^2}
Step 2: Use symmetry
Each dB⃗d\vec{B} is perpendicular to its own r⃗\vec{r}, so it tilts away from the axis. The piece on the opposite side of the loop makes a dB⃗d\vec{B} tilted the other way, so the parts perpendicular to the axis cancel in pairs. Only the parts along the axis survive. Since dB⃗d\vec{B} is perpendicular to r⃗\vec{r}, similar triangles give the part along the axis as dBdB times RR2+x2\frac{R}{\sqrt{R^2 + x^2}}:
dBx=μ0I dℓ4π(R2+x2)⋅RR2+x2=μ0IR dℓ4π(R2+x2)3/2dB_x = \frac{\mu_0 I\,d\ell}{4\pi(R^2 + x^2)} \cdot \frac{R}{\sqrt{R^2 + x^2}} = \frac{\mu_0 I R\,d\ell}{4\pi(R^2 + x^2)^{3/2}}
Step 3: Integrate around the loop
Everything except dℓd\ell is constant, and ∮dℓ=2πR\oint d\ell = 2\pi R:
B=μ0IR4π(R2+x2)3/2(2πR)⇒B=μ0IR22(R2+x2)3/2B = \frac{\mu_0 I R}{4\pi(R^2 + x^2)^{3/2}}(2\pi R) \quad\Rightarrow\quad \boxed{B = \frac{\mu_0 I R^2}{2(R^2 + x^2)^{3/2}}}
The field points along the axis, the way your thumb points when your fingers curl with the current.
Step 4: Check the limits - At the center (x=0x = 0): B=μ0IR22R3=μ0I2RB = \frac{\mu_0 I R^2}{2R^3} = \frac{\mu_0 I}{2R}, which matches the loop formula above. - One radius out (x=Rx = R): B=μ0IR22(2R2)3/2=Bcenter23/2B = \frac{\mu_0 I R^2}{2(2R^2)^{3/2}} = \frac{B_{center}}{2^{3/2}}, about 35% of the value at the center. - Far away (x≫Rx \gg R): B≈μ0IR22x3B \approx \frac{\mu_0 I R^2}{2x^3}. The field drops off as 1/x31/x^3, just like a magnetic dipole’s field (Topic 5.1).

Example Problem: Combining Arcs and Straight Segments

Problem: A loop is made of two quarter circles that share the same center P, with radii R1=0.10R_1 = 0.10 m and R2=0.20R_2 = 0.20 m, joined by two straight radial pieces. It carries 4.0 A, counterclockwise around the outer arc and clockwise around the inner arc. Find the magnetic field at P.
5.3 - Magnetic Fields of Current-Carrying Wires and the Biot-Savart Law
Use superposition: find the field from each piece at P, then add them as vectors. - Straight pieces: they point straight at P, so 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. - Outer arc: a quarter circle has θ=π2\theta = \frac{\pi}{2}, so B2=μ0I(π/2)4πR2=μ0I8R2B_2 = \frac{\mu_0 I(\pi/2)}{4\pi R_2} = \frac{\mu_0 I}{8R_2}, out of the page (counterclockwise current). - Inner arc: B1=μ0I8R1B_1 = \frac{\mu_0 I}{8R_1}, into the page (clockwise current).
B=μ0I8(1R1−1R2)=(4π×10−7 T\cdotpm/A)(4.0 A)8(10.10 m−10.20 m)=3.1×10−6 TB = \frac{\mu_0 I}{8}\left(\frac{1}{R_1} - \frac{1}{R_2}\right) = \frac{(4\pi \times 10^{-7}\text{ T·m/A})(4.0 \text{ A})}{8}\left(\frac{1}{0.10 \text{ m}} - \frac{1}{0.20 \text{ m}}\right) = 3.1 \times 10^{-6} \text{ T}
The net field points into the page, because the inner arc is closer to P and wins.

Common Current Configurations

Using the Biot-Savart Law, you can derive the magnetic fields for various wire setups:
Configuration
Magnetic Field
Location
Straight infinite wire
B=μ0I2πrB = \frac{\mu_0 I}{2\pi r}
Distance rr from wire
Straight wire of length LL
B=μ0IL2πaL2+4a2B = \frac{\mu_0 I L}{2\pi a\sqrt{L^2 + 4a^2}}
Distance aa from the midpoint, on the perpendicular bisector
Circular loop
B=μ0I2RB = \frac{\mu_0 I}{2R}
Center of loop (radius RR)
Circular loop (on its axis)
B=μ0IR22(R2+x2)3/2B = \frac{\mu_0 I R^2}{2(R^2 + x^2)^{3/2}}
Distance xx from the center, along the axis
Circular arc (angle θ\theta)
B=μ0Iθ4πRB = \frac{\mu_0 I\theta}{4\pi R}
Center of arc
Solenoid (coil)
B=μ0nIB = \mu_0 n I
Inside a long solenoid (nn = turns per length)
Note: the straight infinite wire formula gets derived using Ampère’s Law in the next topic.

Right-Hand Rules Summary

For Magnetic Field from Current (Biot-Savart)

Straight wire: - Thumb: points in the current direction. - Fingers: curl in the direction of the magnetic field circles.
Current loop: - Fingers: curl in the direction of the current around the loop. - Thumb: points in the direction of the magnetic field through the center.

For Force on Current in a Field

Wire in an external field: - Thumb: current direction (II). - Fingers: field direction (B⃗\vec{B}). - Palm: force direction (F⃗\vec{F}).

Preview: Ampère’s Law

In the next topic, we’ll get into Ampère’s Law, which gives you an alternative and often simpler way to calculate magnetic fields when there’s enough symmetry.
Ampère’s Law:
∮B⃗⋅dℓ⃗=μ0Ienclosed\oint \vec{B} \cdot d\vec{\ell} = \mu_0 I_{enclosed}
With Maxwell’s addition (a term for changing electric fields, covered in the next topic), this becomes the fourth of Maxwell’s equations. Ampère’s Law is especially useful for: - Long straight wires. - Solenoids. - Toroids. - Any configuration with cylindrical or planar symmetry.
Ampère’s Law relates to Biot-Savart the same way Gauss’s Law relates to Coulomb’s Law. Both give you the same answers, but Ampère’s Law is far easier when symmetry is present.

Summary of Key Formulas

Biot-Savart Law

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

Magnetic Field Magnitudes

Barc=μ0Iθ4πR(arc at center)B_{arc} = \frac{\mu_0 I\theta}{4\pi R} \quad \text{(arc at center)}Bloop=μ0I2R(complete loop at center)B_{loop} = \frac{\mu_0 I}{2R} \quad \text{(complete loop at center)}

Force on a Wire

F⃗B=Iℓ⃗×B⃗\vec{F}_B = I\vec{\ell} \times \vec{B}FB=IℓBsin⁡θF_B = I\ell B\sin\theta

Common Mistakes

  1. Forgetting the cross product in Biot-Savart. The dℓ⃗×r^d\vec{\ell} \times \hat{r} term means the field depends on the angle between the wire element and the radius vector. When they’re perpendicular (the common case), it simplifies, but don’t forget it’s there.
  1. Using the wrong angle in the arc formula. The angle θ\theta in B=μ0Iθ4πRB = \frac{\mu_0 I\theta}{4\pi R} has to be in radians, not degrees. A semicircle is θ=π\theta = \pi, not θ=180\theta = 180.
  1. Confusing radius R with distance r. In the arc problem, r=Rr = R, since the distance from the wire to the center equals the arc radius. But in general problems with arbitrary observation points, rr varies and isn’t the same as the geometric radius.
  1. Using the wrong right-hand rule. To find B from a current, curl your fingers in the current direction with your thumb showing the field direction (for loops), or point your thumb in the current direction with your fingers curling for the field circles (for straight wires). Don’t confuse this with the force rule.
  1. Forgetting that the constants are constant during integration. When you integrate Biot-Savart, μ0\mu_0, 4π4\pi, II, and often RR (for circular geometry) are constants you can factor out. Pull them out early to simplify the integral.

AP® is a registered trademark of the College Board, which is not affiliated with Dove's Library and was not involved in the production of, and does not endorse, this website.

Providing free, high-quality AP notes to help students succeed, earn college credit, and reach their educational goals, ensuring everyone has access to the resources they need.

© 2026 Standard Learning Group, Inc., which operates Dove's Library. All rights reserved.