Sign in to save

Bookmark this page so you can find it later.

Sign in to save

Bookmark this page so you can find it later.

Biot-Savart Magnetic Field Line Visualizer

Explore how moving charges and currents generate magnetic fields. Adjust source geometry, currents, and probe positions to see field lines, vector arrows, and magnitude heatmaps update from the Biot-Savart law.

Click anywhere to move the probe (orange marker). Vector arrows always indicate the local B field direction.

Probe Reading

Probe position
(8.0, 5.0) cm
|B| at probe
10.60 μT
Bx
-5.62 μT
By
8.99 μT
Long-wire formula at probe distance
10.60 μT

Controls

A

Display

Presets

Reference Guide

Biot-Savart Law

Every current element contributes a small field perpendicular to itself and to the displacement vector to the probe point.

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

The total field is obtained by integrating over the entire current path. The vacuum permeability is μ0=4π×107Tm/A\mu_0 = 4\pi \times 10^{-7}\,\mathrm{T\cdot m/A}.

Long Straight Wire

For an infinitely long, straight wire carrying current I, the field encircles the wire (right-hand rule).

B=μ0I2πrB = \frac{\mu_0 I}{2\pi r}

Doubling the distance halves the field. The direction is azimuthal, perpendicular to both the wire and the radial vector.

Circular Loop on Axis

Along the axis of a circular loop of radius R carrying current I, the field falls off like a dipole.

Bz=μ0IR22(R2+z2)3/2B_z = \frac{\mu_0 I R^2}{2(R^2 + z^2)^{3/2}}

At the center (z = 0) the field reduces to B0=μ0I/(2R)B_0 = \mu_0 I / (2R). Far away it decays as 1/z31/z^3.

Ideal Solenoid

For a long, tightly wound solenoid with n turns per unit length, the interior field is uniform.

Binside=μ0nIB_{\text{inside}} = \mu_0 n I

Outside an ideal solenoid the field is essentially zero. Real solenoids have weak fringing fields near the ends.

Helmholtz Coil Pair

Two coaxial coils of radius R separated by distance R produce a remarkably uniform field at the midpoint.

Bcenter=8μ0I125RB_{\text{center}} = \frac{8\,\mu_0 I}{\sqrt{125}\,R}

Used for sensitive experiments needing low-gradient calibrated fields, like cancelling Earth's field.

Parallel Wire Force

Two parallel wires carrying currents I1I_1 and I2I_2 separated by d exert a force per unit length on each other.

FL=μ0I1I22πd\frac{F}{L} = \frac{\mu_0 I_1 I_2}{2\pi d}

Same-direction currents attract. Opposite currents repel. This relationship historically defined the ampere.

Related Content