01 / 21

Magnetic Fields of
Current-Carrying Wires

Discover how electric currents create magnetic fields, master the Biot-Savart Law, and learn to calculate \( \vec{B} \) for real-world configurations.

College Physics

What Is a Magnetic Field?

A magnetic field \( \vec{B} \) is a vector field that describes the magnetic influence on moving charges, currents, and magnetic materials. It is measured in Tesla (T) in SI units.

Symbol
\( \vec{B} \) : the magnetic field vector
SI Unit
Tesla (T) = \( \frac{\text{kg}}{\text{A} \cdot \text{s}^2} \)
Source
Created by moving charges or changing \( \vec{E} \) fields

A Current Creates Circular Field Lines

\( I \)
\( \vec{B} \)
Field weakens with distance
\( r \)

The Right-Hand Rule

To find the direction of \( \vec{B} \) around a straight current-carrying wire, use the right-hand rule: point your right thumb in the direction of the conventional current \( I \), and your fingers curl in the direction of \( \vec{B} \).

\( I \)
\( \vec{B} \) out of page
\( \vec{B} \) into page

The Biot-Savart Law

The Biot-Savart Law gives the magnetic field \( d\vec{B} \) produced by a small current element \( Id\vec{l} \) at a point \( P \):

\( \mu_0 \)
Permeability of free space: \( 4\pi \times 10^{-7} \;\text{T}\cdot\text{m/A} \)
\( d\vec{l} \)
Infinitesimal length element in direction of current
\( \hat{r} \)
Unit vector from \( d\vec{l} \) toward the field point \( P \)

Biot-Savart Geometry

\( d\vec{l} \)
\( I \)
\( P \)
\( \vec{r} \)
\( \theta \)
\( d\vec{B} \)

\( \vec{B} \) for an Infinite Straight Wire

Integrating the Biot-Savart Law along an infinitely long straight wire carrying current \( I \), at a perpendicular distance \( r \):

1
Direction: Given by the right-hand rule: circles around the wire.
2
Magnitude: Inversely proportional to \( r \): double the distance, halve the field.
3
Proportional to \( I \): Double the current, double the field.

Biot-Savart vs. Ampère's Law

Biot-Savart Law Ampère's Law
Formula \( d\vec{B} = \frac{\mu_0}{4\pi}\frac{I\,d\vec{l}\times\hat{r}}{r^2} \) \( \oint \vec{B}\cdot d\vec{l} = \mu_0 I_{\text{enc}} \)
Best For Any current geometry High-symmetry cases
Approach Sum contributions from each \( d\vec{l} \) Use a closed Amperian loop
Analogy Like Coulomb's Law for \( \vec{E} \) Like Gauss's Law for \( \vec{E} \)

How to Apply the Biot-Savart Law

1
Identify the current element: Choose a small piece \( d\vec{l} \) of the wire and assign a direction along \( I \).
2
Find the displacement vector: Determine \( \vec{r} \) from \( d\vec{l} \) to the field point \( P \), and compute \( r = |\vec{r}| \) and \( \hat{r} \).
3
Evaluate the cross product: Compute \( d\vec{l} \times \hat{r} \). The magnitude is \( dl\,\sin\theta \).
4
Write \( d\vec{B} \): Plug into \( d\vec{B} = \frac{\mu_0}{4\pi}\frac{I\,d\vec{l}\times\hat{r}}{r^2} \).
5
Integrate: Sum \( d\vec{B} \) over the entire current distribution to get \( \vec{B} \).

Example 1: Infinite Wire

A long straight wire carries a current of \( I = 5 \;\text{A} \). Find the magnetic field at a perpendicular distance \( r = 0.10 \;\text{m} \).

\( I = 5 \) A
\( P \)
\( r = 0.10 \) m
\( B = ? \)

Example 2: Two Parallel Wires

Two parallel wires separated by \( d = 0.20 \;\text{m} \) carry currents \( I_1 = 3 \;\text{A} \) and \( I_2 = 3 \;\text{A} \) in the same direction. Find \( B \) at the midpoint between them.

\( I_1 = 3 \) A
\( I_2 = 3 \) A
\( P \)
\( d = 0.20 \) m
\( B_1 \)
\( B_2 \)

Example 3: Center of a Circular Loop

A circular loop of radius \( R = 0.05 \;\text{m} \) carries current \( I = 2 \;\text{A} \). Find \( B \) at its center.

\( I \)
Center
\( R = 0.05 \) m
\( \vec{B} \)

\( B \) vs. \( r \): the Inverse Relationship

\( r \) (m)
\( B \) (T)
0.05 0.10 0.15 0.20
\( B \propto \frac{1}{r} \)

Force Between Parallel Wires

Two parallel current-carrying wires exert magnetic forces on each other. The force per unit length between them is:

Same Direction
Currents in the same direction: wires attract each other.
Opposite Direction
Currents in opposite directions: wires repel each other.

Common Mistakes

✕ Wrong Hand
Using the left hand for the right-hand rule gives the opposite direction for \( \vec{B} \).
✕ Confusing \( \frac{1}{r} \) and \( \frac{1}{r^2} \)
The infinite wire field goes as \( \frac{1}{r} \), not \( \frac{1}{r^2} \). The \( r^2 \) appears in the Biot-Savart integrand, not the final result.
✕ Forgetting \( \sin\theta \)
The cross product \( d\vec{l} \times \hat{r} \) includes \( \sin\theta \). When \( d\vec{l} \parallel \hat{r} \), the contribution is zero.

Key Formulas Summary

Configuration Formula for \( B \) Direction
Biot-Savart (element) \( dB = \frac{\mu_0}{4\pi}\frac{I\,dl\,\sin\theta}{r^2} \) From \( d\vec{l}\times\hat{r} \)
Infinite straight wire \( \frac{\mu_0 I}{2\pi r} \) Right-hand rule
Center of circular loop \( \frac{\mu_0 I}{2R} \) Perpendicular to loop
Force between wires \( \frac{\mu_0 I_1 I_2}{2\pi d} \) per meter Attract (same) / Repel (opp.)

Question 1 of 5

A long straight wire carries a current of 10 A. What is the magnetic field at a distance of 0.20 m from the wire?

Question 2 of 5

A current flows to the right in a horizontal wire. Using the right-hand rule, what is the direction of \( \vec{B} \) directly above the wire?

Question 3 of 5

In the Biot-Savart Law, when the current element \( d\vec{l} \) is parallel to the displacement vector \( \hat{r} \), what is \( dB \)?

Question 4 of 5

Two parallel wires carry currents in opposite directions. The wires will:

Question 5 of 5

The magnetic field at the center of a circular loop of radius \( R \) carrying current \( I \) is \( B = \frac{\mu_0 I}{2R} \). If the radius is doubled while keeping \( I \) constant, the field at the center: