Magnetic field of current-carrying wire
Any wire carrying a steady current produces a magnetic field in the surrounding space. The strength and direction of that field depend on the magnitude and direction of the current, as well as the geometry of the wire. This relationship is what the Biot-Savart law captures mathematically, and it underpins the design of electromagnetic devices like transformers, motors, and generators.
Biot-Savart law
Mathematical formulation
The Biot-Savart law gives the infinitesimal magnetic field produced at a field point by a small current element :
where:
- is the infinitesimal magnetic field contribution
- is the permeability of free space
- is the steady current through the wire
- is an infinitesimal directed length element along the wire (pointing in the direction of current flow)
- is the unit vector pointing from the current element to the field point
- is the distance between the current element and the field point
To find the total magnetic field from an entire wire or current distribution, you integrate over all current elements:
This integral is a vector integral, so you need to keep track of directions carefully at every step.
Infinitesimal current element
The key idea is that you break the wire into tiny segments , each of which acts as a point-like source of magnetic field. Each segment contributes a small , and you sum (integrate) all these contributions along the entire wire to get the total field. This is a direct application of the superposition principle to magnetostatics.
Cross product and the right-hand rule
The cross product controls both the direction and part of the magnitude of .
Direction: Use the right-hand rule. Point your fingers along (the current direction), then curl them toward . Your thumb points in the direction of .
For a long straight wire, this means the field lines wrap around the wire in concentric circles. You can use a simpler version of the right-hand rule here: point your right thumb along the current, and your fingers curl in the direction of .
Magnitude: The cross product contributes a factor of , where is the angle between and :
Notice that when (field point directly ahead of or behind the current element), the contribution vanishes. The contribution is maximum when .

Applications of Biot-Savart law
Magnetic field of a long straight wire
For an infinitely long straight wire carrying current , integrating the Biot-Savart law over the entire wire gives:
where is the perpendicular distance from the wire. The field lines form concentric circles centered on the wire, and the magnitude falls off as .
Sketch of the derivation:
- Place the wire along the -axis. Choose a field point at perpendicular distance .
- A current element at position on the wire gives and .
- Integrate from to .
- The standard integral evaluates to , yielding the result above.
For a finite wire segment subtending angles and as measured from the perpendicular, the result generalizes to:
This finite-wire formula is one you'll use repeatedly in problem sets.
Magnetic field of a circular loop
On the axis of a circular loop of radius carrying current , the Biot-Savart law gives:
where is the distance along the axis from the center of the loop. At the center of the loop (), this simplifies to:
The field at the center points along the axis of the loop, perpendicular to the plane of the current. Its direction follows from the right-hand rule: curl your right-hand fingers in the direction of the current, and your thumb points along .
Note that the field is not uniform everywhere inside the loop. It's only approximately uniform very close to the center. The on-axis formula shows the field falls off as at large distances (), which is the signature of a magnetic dipole.
Magnetic field of a solenoid
A solenoid is a tightly wound helical coil. While you can derive the solenoid field by superposing contributions from many circular loops using the Biot-Savart law, in practice Ampère's law is far more efficient here. The result for an ideal (infinitely long) solenoid is:
where is the number of turns per unit length. The field is uniform and directed along the solenoid axis inside, and essentially zero outside. This is one of the cleanest results in magnetostatics.

Relationship to Coulomb's law
The Biot-Savart law for magnetostatics is structurally analogous to Coulomb's law for electrostatics. Both are inverse-square laws that require integration over a source distribution:
| Feature | Coulomb's law | Biot-Savart law |
|---|---|---|
| Source | Charge element | Current element |
| Field | ||
| Distance dependence | ||
| Direction | Along (radial) | Perpendicular to both and (cross product) |
| Constant |
The cross product in the Biot-Savart law is the crucial difference. It means magnetic fields always point perpendicular to the plane defined by the current element and the displacement vector, unlike electric fields which point radially from charges.
Superposition principle
The Biot-Savart law relies on the superposition principle: the total magnetic field at any point is the vector sum of contributions from every current element in the system. This holds because Maxwell's equations (and hence the Biot-Savart law) are linear in the sources.
In practice, this means you can compute the field from each wire or current segment independently and then add the results as vectors. For complicated geometries, this is exactly what the integral does.
Ampère's circuital law vs. Biot-Savart law
Both laws describe how steady currents produce magnetic fields, but they're suited to different situations.
Ampère's law () is powerful when the geometry has enough symmetry to pull out of the integral. It works cleanly for infinite straight wires, infinite solenoids, and toroidal coils. Outside these high-symmetry cases, it's not directly useful for computing .
Biot-Savart law is fully general. It applies to any steady current distribution regardless of symmetry. It's the tool you reach for when the geometry is irregular: a finite wire segment, an oddly shaped loop, or a current distribution without a convenient Amperian loop.
The Biot-Savart law is more fundamental in the sense that you can derive Ampère's circuital law from it (by taking the curl of and applying vector identities). Ampère's law, in turn, is one of Maxwell's equations and generalizes beyond magnetostatics when the displacement current term is included.
Limitations and assumptions
Steady currents only. The Biot-Savart law assumes . If currents are time-varying, the fields they produce include radiation effects and displacement current contributions that the Biot-Savart law does not capture. You need the full set of Maxwell's equations (or the retarded potentials, specifically the Jefimenko equations) for time-dependent problems.
Classical and continuous. The law treats current as a continuous, classical quantity. At atomic scales, quantum electrodynamics replaces this classical picture. For most macroscopic and mesoscopic problems in this course, the classical treatment is perfectly adequate.
Equivalent volume current form. For volume current densities , the Biot-Savart law generalizes to:
where is the separation vector and is the volume element. This is the form you'll encounter most often in Electromagnetism II, since real current distributions are three-dimensional.