Electromagnetism
Biot-Savart Law
dB = (μ₀/4π) (I dℓ × r̂)/r² — magnetic field of an infinitesimal current segment
The Biot-Savart law (Jean-Baptiste Biot and Félix Savart, 1820) gives the magnetic field dB at point P due to an infinitesimal current element I dℓ at distance r: dB = (μ₀/4π) (I dℓ × r̂)/r², where μ₀ = 4π × 10⁻⁷ T·m/A and r̂ points from the current element to P. Magnetic analog of Coulomb's law (1/r² fall-off). Integrating around a closed loop gives the total B field: e.g., at center of circular loop radius R: B = μ₀I/(2R); along axis at distance z: B = μ₀IR²/(2(R²+z²)^(3/2)). For an infinite straight wire: B = μ₀I/(2πd) (Ampère's law gives this faster). Cross product captures right-hand rule. Used in MRI gradient coil design, motor calculations, and the foundational derivation of Maxwell's equations from experiment.
- Differential formdB = (μ₀/4π) I dℓ × r̂ / r²
- Magnetic constantμ₀ = 4π × 10⁻⁷ T·m/A
- AuthorsBiot & Savart 1820
- Loop centerB = μ₀I/(2R)
- Infinite wireB = μ₀I/(2πd)
- DirectionRight-hand rule from cross product
Interactive visualization
Press play, or step through manually. The visualization is yours to drive — try it before reading on.
Watch the 60-second explainer
A condensed visual walkthrough — narrated, captioned, under a minute.
Why Biot-Savart matters
- Motor design. Stator and rotor flux distributions begin as Biot-Savart integrals over winding geometries. Detents, cogging torques, and back-EMF waveforms all trace back to the per-segment field contributions of the windings.
- MRI gradient coils. Image localization in MRI requires linearly varying B fields across the imaging volume. Designers use Biot-Savart kernels in stream-function optimization to reverse-engineer the wire pattern from a target field.
- Particle accelerators. Bending dipoles, focusing quadrupoles, and corrector windings in synchrotrons are designed by integrating Biot-Savart contributions from racetrack and saddle coils to picotesla precision.
- Transformer cores and chokes. Off-axis fringe fields, leakage flux, and EMI are estimated by Biot-Savart sums over the actual three-dimensional wire layout — not the idealized infinite-solenoid approximation.
- Plasma confinement. Tokamaks and stellarators tune magnetic surface geometry by superposing Biot-Savart fields from poloidal and toroidal coil sets, then solving for plasma equilibrium.
- Geomagnetic modeling. The Earth's main field is modeled as Biot-Savart contributions from current loops in the molten outer core; secular variation tracks how those source currents shift over decades.
- Foundation of EM theory. Biot-Savart's experimental success in 1820 — coupled with Coulomb's 1/r² law for electrostatics — gave Maxwell the empirical scaffolding to write down the full field equations forty years later.
Common misconceptions
- "Exact for moving charges." Biot-Savart is rigorously valid only for steady currents (∂J/∂t = 0). For point charges in motion, the qv × r̂/r² form is a slow-motion approximation; the full relativistic answer uses Liénard-Wiechert potentials with retardation.
- "You always have to integrate." If the geometry has enough symmetry — infinite wire, infinite plane, ideal solenoid, toroid — Ampère's law evaluates B in one line. Biot-Savart is the workhorse only when symmetry runs out.
- "Only for circuits." The integral form generalizes to any current density: B(r) = (μ₀/4π) ∫ J(r') × (r − r')/|r − r'|³ dV'. It applies to plasma columns, beams of charged particles, or magnetized matter (with replacement J → ∇×M).
- "r is the distance from the wire." r is the distance from the differential current element dℓ to the field point, not the perpendicular distance to the wire as a whole. The two only coincide for the closest segment of an infinite straight wire.
- "Field is parallel to the current." Exactly opposite — the cross product makes B perpendicular to both dℓ and the displacement vector. B circulates around currents; it does not point along them.
- "μ₀ is fundamental." Since the 2019 SI redefinition, μ₀ is no longer defined exactly as 4π × 10⁻⁷; it is now a measured quantity tied to the elementary charge and Planck's constant. The numerical value is essentially unchanged but no longer exact by definition.
Canonical integrals worth memorizing
- Center of circular loop, radius R. B = μ₀I/(2R), along the loop axis. Magnitude scales linearly with current and inversely with radius.
- On-axis at distance z from a circular loop. B = μ₀IR²/(2(R²+z²)^(3/2)). At large z this becomes the magnetic dipole field B ≈ μ₀(IA)/(2πz³) where A = πR² is loop area.
- Infinite straight wire, perpendicular distance d. B = μ₀I/(2πd). Field circles the wire; right-hand rule gives the sense.
- Finite straight wire. B = (μ₀I)/(4πd) (sinθ₂ − sinθ₁), with θ measured from the perpendicular foot.
- Helmholtz coil pair. Two coaxial loops separated by distance equal to their radius produce a near-uniform B at the midpoint — sum of two on-axis fields whose first and second derivatives in z cancel by symmetry.
- Solenoid, finite length. Integrate the on-axis loop expression along the length; on-axis B = (μ₀nI/2)(cosα₁ − cosα₂), reducing to μ₀nI for the infinite case.
Frequently asked questions
How does Biot-Savart relate to Ampère's law?
Biot-Savart and Ampère's law are mathematically equivalent for steady currents — both compute the magnetic field around currents. Biot-Savart gives the differential contribution dB from each current element via direct integration, useful when the current geometry has no symmetry. Ampère's law (∮ B·dℓ = μ₀ I_enc) bypasses integration when symmetry is high enough that B is constant along a chosen Amperian loop. For a finite arc or a square loop, you reach for Biot-Savart; for an infinite wire or a long solenoid, Ampère is dramatically faster. The two are derivable from each other; both ultimately follow from ∇×B = μ₀J, the magnetostatic Maxwell equation.
Why is there an r² fall-off (analog to Coulomb)?
The r² in the denominator is the same geometric factor that appears in Coulomb's law and Newton's law of gravity. Field lines from a point source spread over a sphere whose surface area grows as 4πr², so flux density per unit area drops as 1/r². Biot-Savart's source is a current element I dℓ rather than a point charge, but the geometric dilution is identical. The cross product I dℓ × r̂ then encodes the direction of the field — perpendicular to both the current and the line from the element to the field point, which is the right-hand rule. Without 1/r², electromagnetism could not coexist with relativity in flat 3D space.
What's the right-hand rule?
Point your right thumb in the direction of conventional current flow. Your fingers curl in the direction of the magnetic field circulation around the wire. Equivalently, for the cross product I dℓ × r̂: align fingers along dℓ, curl them toward r̂, and your thumb points in the direction of dB. For a current loop, curl fingers along the current direction; thumb points along the axis where B emerges (the loop's north pole). This convention exists because B is a pseudovector — it flips under mirror reflection, while a real vector wouldn't. The choice of right (rather than left) is arbitrary but universally adopted since André-Marie Ampère.
How do you integrate for a finite straight wire?
For a finite straight wire along the x-axis from x=a to x=b with current I, the field at perpendicular distance d from the line is B = (μ₀I)/(4πd) × (sin θ₂ − sin θ₁), where θ₁ and θ₂ are the angles from the perpendicular dropped from the field point to the wire ends. Letting both angles approach ±90° (infinite wire) recovers B = μ₀I/(2πd). The integration uses dℓ × r̂ = sinφ dℓ and dℓ = (d/cos²φ) dφ, after which the integrand becomes simply (μ₀I)/(4πd) cosφ dφ — a textbook example of why parameterizing by the angle, not by length, makes Biot-Savart tractable.
Where does Biot-Savart fail (relativistic)?
Biot-Savart is exact only for steady currents in magnetostatics. For time-varying currents, retardation effects matter — the field at distance r reflects the source's state at retarded time t − r/c, not the present moment. The fully time-dependent generalization is the Liénard-Wiechert potentials and Jefimenko's equations, which include both retarded charge density and the time derivative of current density. For point charges in motion, replacing I dℓ with qv gives an approximate B = (μ₀/4π) qv × r̂/r², but this misses the radiation field that becomes essential when accelerations are large. The simple Biot-Savart form is a low-frequency, slow-motion limit.
How is it used in MRI coil design?
MRI scanners need three things from their gradient coils: a strong main field B₀ (1.5T to 7T), spatially varying gradient fields (a few mT/m for spatial encoding), and shaped RF transmit/receive fields. All three require Biot-Savart integration over coil geometries — typically thousands of loop turns or saddle coils. Designers pick winding patterns that produce a target B(x,y,z) profile, then solve the inverse problem: given the desired field, what wire layout produces it? Modern shielded gradient coils use stream-function optimization driven by Biot-Savart kernels. For superconducting persistent-mode magnets, field homogeneity within parts per million across the imaging volume requires tightly controlled current distributions — every wire's contribution computed via Biot-Savart.