In short
A magnetic field is a vector field \vec{B}(\vec{r}) that fills the space around moving charges. Its SI unit is the tesla (T): 1\ \text{T} = 1\ \text{N}/(\text{A}\cdot\text{m}). Earth's field at the surface is about 5\times 10^{-5} T; a refrigerator magnet is about 5\times 10^{-3} T; the field inside a 1.5-T AIIMS MRI scanner is about 30{,}000 times Earth's field.
The Biot-Savart law gives the magnetic field produced by a small current element. A wire carrying current I along a directed segment d\vec{l} produces, at a point displaced by \vec{r} = r\hat{r} from the element, an infinitesimal field
where \mu_0 = 4\pi\times 10^{-7}\ \text{T}\cdot\text{m}/\text{A} is the permeability of free space — a universal constant that sets the strength of the magnetic interaction in SI units.
Five features to remember.
- Inverse-square in r, like Coulomb's law.
- Cross product d\vec{l}\times\hat{r}: the field is perpendicular to both the current direction and the line joining the element to the field point.
- Vanishes along the line of current: if \hat{r}\parallel d\vec{l}, the cross product is zero. A point directly in front of the tip of a current element sees no field from that element.
- Right-hand thumb rule gives the direction: curl the fingers of your right hand from d\vec{l} toward \hat{r}; the thumb points along d\vec{B}.
- Superposition: the total field from an extended current is the vector integral \vec{B}(\vec{r}) = (\mu_0/4\pi)\int I\,d\vec{l}\times\hat{r}/r^2 over all current elements.
The Biot-Savart law is to magnetostatics what Coulomb's law is to electrostatics — the elemental rule from which every field (loop, solenoid, MRI magnet, planetary dynamo) can be computed by integration.
Hold a compass up to the back of a working laptop charger — the power brick with the fat cable running from the wall. The needle swings and settles, pointing in some direction that has nothing to do with north. Move the compass and the direction changes. Walk the compass slowly in a circle around the cable and the needle rotates with you, completing one full turn as you come back to where you started. The charger's cable is carrying a current — a few hundred milliamperes of DC-rectified mains — and that current is creating a magnetic field that steers your compass.
Now scale this up. An AIIMS MRI scanner threads its main coil with hundreds of amperes of direct current through thousands of turns of superconducting niobium-titanium wire, producing a 1.5-tesla field at the centre of the bore — strong enough to align proton spins in a patient's brain so they can be imaged. ISRO's satellite thruster control rooms run electromagnet-actuated valves, each valve a solenoid carrying a few tens of amperes. The transformers on the wooden poles outside every Indian colony are coils of wire handling hundreds of amperes at 11 kV, stepping it down to the 230 V that reaches your house. Every one of these devices is an application of the same rule: a current I flowing along a wire element d\vec{l} creates, at a point displaced by \vec{r} from the element, a magnetic field d\vec{B} given by the Biot-Savart law.
This chapter introduces the magnetic field \vec{B} as a vector field, explains what it means and how it is measured, states and unpacks the Biot-Savart law, and shows you how to use it. You will compute two fields from scratch — the on-axis field of a circular loop, and the field of a finite straight wire — and by the end you will be able to set up the integral for any current distribution you can draw.
What is a magnetic field?
An electric charge sitting at rest creates an electric field \vec{E} around it. A moving charge creates, in addition, a magnetic field \vec{B}. A current is just charge in motion through a wire, so every current-carrying wire surrounds itself with a magnetic field.
The magnetic field is defined operationally by the force it exerts on other moving charges. A test charge q moving with velocity \vec{v} through a region where the magnetic field is \vec{B} experiences a force
This is the Lorentz force law, and it is what the field does. You do not see \vec{B} directly; you see charges and compasses deflecting in response to it.
Two features of equation (1) carry through the whole subject.
First, \vec{B} is a vector field — it has a direction as well as a magnitude at each point in space. At your kitchen table, the Earth's \vec{B} points roughly horizontally toward magnetic north and slightly downward (the "angle of dip"); at the centre of a current loop, \vec{B} points along the loop's axis. The direction matters.
Second, the SI unit of \vec{B} is fixed by equation (1). A charge of 1 C moving at 1 m/s through a 1 T field perpendicular to its motion feels a force of 1 N. So
The tesla is a large unit. Everyday magnetic fields are much smaller.
A compass needle lines up with \vec{B} because the needle is itself a tiny magnet with a torque proportional to the field — so it rotates until its north pole points along \vec{B}. This is how you visualise the field: move a compass around a current-carrying wire and trace the directions it points. You will find the field lines form closed circles around the wire, as Hans Christian Ørsted first showed in 1820.
The Biot-Savart law
With Coulomb's law, an extended charge distribution creates an electric field you compute by summing contributions from infinitesimal charge elements:
The magnetostatic analogue is the same strategy: every infinitesimal piece of a current-carrying wire contributes a tiny d\vec{B}, and you integrate over the whole wire. The rule that gives the contribution from one piece — discovered experimentally by Biot and Savart in 1820 — is the Biot-Savart law:
Read it slowly, term by term.
- I\,d\vec{l} is the current element. I is the current in amperes; d\vec{l} is a directed infinitesimal length along the wire (direction = conventional current direction). The product I\,d\vec{l} is a vector with units of A·m.
- \vec{r} is the displacement from the element to the field point. Its magnitude is r, its direction is the unit vector \hat{r}.
- d\vec{l}\times\hat{r} is a cross product, a vector perpendicular to both d\vec{l} and \hat{r}, with magnitude |d\vec{l}|\sin\theta where \theta is the angle between d\vec{l} and \hat{r}.
- r^2 in the denominator makes the field fall off as inverse-square.
- \mu_0/(4\pi) is the SI proportionality constant, with \mu_0 = 4\pi\times 10^{-7}\ \text{T}\cdot\text{m}/\text{A} so that \mu_0/(4\pi) = 10^{-7}\ \text{T}\cdot\text{m}/\text{A} exactly.
The magnitude of the infinitesimal field is
Two special cases are immediate.
- If \theta = 0 (the field point lies along the line of the current element, directly in front of or behind it), \sin\theta = 0 and d\vec{B} = 0. A point straight ahead of a current element receives no field from that element.
- If \theta = 90° (the field point is off to the side, perpendicular to the current), \sin\theta = 1 and the contribution is maximum.
The right-hand thumb rule for direction
The direction of d\vec{B} comes from the cross product d\vec{l}\times\hat{r}. Mechanical recipe: point your right hand's fingers along d\vec{l}, curl them toward \hat{r}, and your thumb points along d\vec{l}\times\hat{r}, which is the direction of d\vec{B}.
For a long vertical wire with current flowing upward, the field at a point east of the wire: d\vec{l} is upward (\hat{z}), \hat{r} is east (\hat{x}), so d\vec{l}\times\hat{r} = \hat{z}\times\hat{x} = \hat{y} — the field points north. Walk around the wire and the field rotates with you, forming closed circles centred on the wire. This is the \vec{B}-field pattern Ørsted saw around his current-carrying wire.
Why the cross product and the inverse-square?
The Biot-Savart law is an experimental law; you cannot derive it from anything more fundamental within magnetostatics. But two of its features follow from physical reasoning once you accept that a magnetic field comes from moving charge.
Why inverse-square. If the field of a point source fell off less steeply, the total flux through a sphere enclosing the source would grow as you moved the sphere away — violating source-conservation. Inverse-square is the unique falloff for which flux through any enclosing surface is constant, the natural rate for "influence spreading out" in three-dimensional space.
Why the cross product. A current element has a built-in direction (the direction of current flow). The resulting field cannot point along that direction: rotational symmetry around the current line would then force \vec{B} to be zero. It also cannot point along \hat{r}: any radial component would imply magnetic monopoles, which do not exist in nature. The only direction consistent with both constraints is perpendicular to both d\vec{l} and \hat{r} — exactly what the cross product delivers.
The experimental content is then the inverse-square law (2) and the numerical value of \mu_0/(4\pi). Everything else follows from symmetry.
Comparison with Coulomb's law
Side by side:
Same 1/r^2, same universal-constant prefactor. Two differences:
- dq is a scalar (a charge); I\,d\vec{l} is a vector (a current element with a direction).
- The direction of d\vec{E} is along \hat{r} (radial); the direction of d\vec{B} is perpendicular to \hat{r} (tangential).
That one structural change — scalar source to vector source, radial response to perpendicular response — is the whole reason magnetism looks so different from electrostatics. Electric field lines begin on positive charges and end on negative ones; magnetic field lines form closed loops, never beginning or ending, because the only way to make them with d\vec{l}\times\hat{r} is to wrap them around the current.
Computing fields — superposition
A real wire is not a single current element; it is an extended distribution of them. To find the total \vec{B} at a point, integrate (2) over the whole current:
This is a vector integral. In practice you pick convenient axes, decompose d\vec{B} into components, exploit any symmetry (if one component cancels by symmetry, you only integrate the surviving component), and integrate. Two classic setups illustrate the method.
Explore the on-axis field of a current loop
Before deriving it in Example 1, visualise what happens. The interactive figure below lets you drag the loop's radius R while the axial distance x is fixed at 0.10 m, and read off the on-axis magnetic field B_\text{axis}(R). The current is fixed at 1 A. The formula (to be derived) is B = \mu_0 I R^2/[2(R^2+x^2)^{3/2}].
Worked examples
Example 1: Magnetic field on the axis of a circular current loop
A circular wire loop of radius R carries steady current I. Find the magnetic field at a point P on the loop's axis, distance x from the centre.
Step 1. Identify \theta for every loop element.
Every current element on the loop is tangent to the loop (lying in the loop's plane). The line from the element to P lies in a plane containing both the element's radius vector and the axis. The element itself is perpendicular to this plane, so the angle \theta between d\vec{l} and \hat{r} is exactly 90° for every element. Therefore \sin\theta = 1, and
Why: the fact that \sin\theta = 1 for every point on the loop is what makes the loop a clean example — all elements contribute with full strength 1/r^2, and r is the same for every element (each is the same distance \sqrt{R^2+x^2} from P). This symmetry is what makes the integration tractable.
Step 2. Decompose d\vec{B} into axial and radial components.
By the right-hand rule, d\vec{B} is perpendicular to \vec{r} (and perpendicular to the current element, which is out of the page). So d\vec{B} lies in the plane of \vec{r} and the axis, rotated 90° from \vec{r}. Define \alpha as the angle \vec{r} makes with the axis; then \cos\alpha = x/r and \sin\alpha = R/r.
A vector rotated 90° from \vec{r} in that plane has an axial projection of magnitude |d\vec{B}|\sin\alpha and a radial projection of magnitude |d\vec{B}|\cos\alpha.
Why: if \vec{r} points at angle \alpha above the axis, then a vector perpendicular to \vec{r} (in the same plane) points at angle (90°-\alpha) above the axis. Its axial projection is \cos(90°-\alpha) = \sin\alpha. The figure shows this decomposition: axial dashed line has length dB\sin\alpha; radial dashed line has length dB\cos\alpha.
Step 3. Use symmetry — the radial component cancels.
For every current element at angular position \phi on the loop, there is an element at \phi + 180°. Their radial d\vec{B} contributions point in opposite directions (one toward +y, one toward -y) and cancel in pairs. Only the axial component survives.
Why: cancelling the radial component by symmetry is a trick that returns again and again in magnetostatics — spotting a symmetry that kills an unwanted component reduces a 3-D vector integral to a 1-D scalar integral. And r = \sqrt{R^2+x^2} is constant around the loop (every element is the same distance from P), so r^3 comes outside the integral.
Step 4. Integrate around the loop.
The integral \int d\ell is the loop's circumference, 2\pi R:
Substituting r^3 = (R^2+x^2)^{3/2}:
Why: equation (6) is the on-axis field of a circular loop — one of the most useful results in magnetostatics. It underlies the field inside an MRI coil, the on-axis field of a Helmholtz pair, and the magnetic-dipole moment idea m = IA. The direction is given by the right-hand curl rule: curl the fingers of your right hand around the loop in the direction of the current, and the thumb points along \vec{B}.
Step 5. Two limiting cases — sanity checks.
At the centre (x = 0): r = R, so \vec{B}_\text{centre} = \mu_0 I/(2R). The field is maximum at the centre.
Far from the loop (x\gg R): (R^2+x^2)^{3/2}\approx x^3, so \vec{B}_\text{axis}\approx \mu_0 I R^2/(2x^3) = \mu_0 m/(2\pi x^3) with m = I\pi R^2 — the characteristic magnetic-dipole 1/x^3 falloff.
Result: \vec{B}_\text{axis}(x) = \mu_0\,I\,R^2/[2(R^2+x^2)^{3/2}], along the axis in the right-hand-rule direction.
What this shows: One loop, one current, three-dimensional geometry — and you still end up with a compact closed-form expression. Biot-Savart plus one symmetry argument plus one elementary integral gives the complete answer.
Example 2: Magnetic field of a finite straight wire
A straight wire segment carries steady current I. At a field point P a perpendicular distance a from the wire, the ends of the segment are seen at angles \phi_1 and \phi_2 from the perpendicular (measured at P, with the convention that both angles are positive when the ends lie on opposite sides of the foot of the perpendicular). Show that the field at P is
Step 1. Set up coordinates.
Let the wire lie along the y-axis, with O the foot of the perpendicular from P. A current element d\vec{l} at height y (i.e. d\vec{l} = \hat{y}\,dy, current flowing in the +\hat{y} direction) is at displacement
Why: \vec{r} points from the element at (0, y) to the field point at (a, 0), which is (a-0, 0-y) = (a, -y).
Step 2. Cross product d\vec{l}\times\hat{r}.
So d\vec{l}\times\hat{r} points in the -\hat{z} direction (into the page, if you hold the page so \hat{x} is right and \hat{y} is up). For a field point on the other side of the wire, the field would point the other way. Every element contributes a d\vec{B} in the same direction (-\hat{z}), so the integration is scalar.
Why: \hat{y}\times\hat{x} = -\hat{z} by the standard right-hand rule for Cartesian unit vectors. This confirms that all contributions from the wire add constructively — the field at P is the integral of magnitudes, with no component cancellation.
Step 3. Magnitude of d\vec{B}.
Why: from step 2, |d\vec{l}\times\hat{r}| = a\,dy/r. Dividing by r^2 gives a\,dy/r^3 = a\,dy/(a^2+y^2)^{3/2}.
Step 4. Integrate from y = -L_1 to y = +L_2.
To evaluate, change variables: let y = a\tan\phi, so dy = a\sec^2\phi\,d\phi and (a^2+y^2)^{3/2} = a^3\sec^3\phi. Then
When y = -L_1, \tan\phi = -L_1/a, so \phi = -\phi_1. When y = +L_2, \tan\phi = L_2/a, so \phi = +\phi_2. The integral becomes
Why: the substitution y = a\tan\phi is the standard trick for integrals of (a^2+y^2)^{-3/2} — it turns the algebraic expression into a trigonometric one whose antiderivative is \sin\phi.
Step 5. Simplify.
Using \sin(-\phi_1) = -\sin\phi_1:
Step 6. Two limiting cases.
Infinite wire (L_1, L_2 \to \infty): \phi_1 = \phi_2 = 90°, \sin\phi_1 = \sin\phi_2 = 1, so
This is the classic field of an infinite straight wire, which you will see again in the next chapter and in Ampère's law.
Semi-infinite wire starting at O (e.g. wire extending from y = 0 to +\infty, with P on the perpendicular bisector end): \phi_1 = 0, \phi_2 = 90°, so B = \mu_0 I/(4\pi a) — exactly half the infinite-wire field.
Result: B = (\mu_0 I)/(4\pi a)\,(\sin\phi_1 + \sin\phi_2).
What this shows: The finite-wire formula contains both the infinite wire and every partial-wire case as special values of \phi_1, \phi_2. In any geometry where you can identify the endpoints' angles as seen from the field point, you get the field without re-doing the integral. This is why the formula is so useful — it is the one-shot result for every polygonal-wire problem in JEE Advanced.
Common confusions
-
"\mu_0 is the magnetic analogue of \varepsilon_0, only bigger." Numerically \mu_0 = 4\pi\times 10^{-7} and \varepsilon_0 \approx 8.85\times 10^{-12}, but they have different units and play complementary roles. Their product satisfies \mu_0\varepsilon_0 = 1/c^2 exactly — a deep result connecting electricity, magnetism, and the speed of light. You will meet this again in the chapter on electromagnetic waves.
-
"Biot-Savart works for moving point charges." The version of Biot-Savart written above applies to a steady current (current that is constant in time). For a single moving point charge, the magnetic field is \vec{B} = (\mu_0/4\pi)\,q\vec{v}\times\hat{r}/r^2 (formally — there are relativistic corrections when v is not small compared to c). But the field around a wire is the sum of contributions from billions of slow-moving electrons, and the steady-current form (2) is what you use.
-
"The field lines point away from the current." Electric field lines point away from positive charges and toward negative ones. Magnetic field lines form closed loops — they do not begin or end anywhere. Around a straight wire they form concentric circles; around a loop they form rings that thread through the loop and close outside. This is Gauss's law for magnetism: \oint\vec{B}\cdot d\vec{A} = 0 through any closed surface.
-
"Biot-Savart says the force between two currents is inverse-square." No — the field of a single current element is inverse-square in the distance to that element. The force between two parallel wires is inverse in distance (not square), because when you integrate along the first wire, one power of r is absorbed. This is why the force between power lines falls off as 1/d, not 1/d^2.
-
"A very short current element doesn't produce a real field — you cannot have an isolated current element." Correct — a current element I\,d\vec{l} cannot exist in isolation (where would the charge go?). But the Biot-Savart law is a differential form: you integrate it around a complete current loop, and the integral gives the real, physically-existing field. The element is a mathematical stepping stone, not a physical object.
If you came here to understand the Biot-Savart law and compute simple fields, you have what you need. What follows is for JEE Advanced readers who want the vector-calculus version, the connection to Ampère's law, the numerical value of \mu_0 after 2019, and the special role of the Lorentz gauge.
The vector-potential form
You can rewrite Biot-Savart as the curl of a magnetic vector potential \vec{A}:
The vector potential \vec{A} is the magnetic analogue of the electric scalar potential V. It is determined up to a gauge choice (you can add any gradient \nabla\chi and the physics is unchanged). In the Lorenz gauge \nabla\cdot\vec{A} = -(1/c^2)\partial V/\partial t, the potentials (V, \vec{A}) form a 4-vector that transforms cleanly under special relativity — magnetic and electric fields are two components of one electromagnetic 4-tensor. That is the insight that unified them in the nineteenth century and put them on the footing Maxwell left behind.
The vector-potential approach is how Biot-Savart is implemented in numerical electromagnetics codes (including the MRI coil design simulations at AIIMS and the particle-accelerator magnets at BARC): you integrate for \vec{A}, then take the curl to get \vec{B}. It is almost always less work than integrating \vec{B} directly, because \vec{A} has no cross-product in its definition.
The differential form — what you cannot see in a single-element view
Taking the curl of the Biot-Savart \vec{B} gives
where \vec{J} is the volume current density (A/m²). Integrating this over any surface and using Stokes' theorem produces Ampère's circuital law:
which is the subject of Chapter 183. So Ampère's law is a consequence of Biot-Savart, not an independent law — the two are equivalent in magnetostatics. Ampère is just the symmetry-exploitation shortcut for problems where a closed-loop integral of \vec{B} is easier than a volume integral of \vec{J}. Problems without symmetry still demand Biot-Savart.
Also from the curl form:
— there are no magnetic monopoles. This is Gauss's law for magnetism, and it is structurally necessary: if Biot-Savart is written as a curl, its divergence is automatically zero (because \nabla\cdot(\nabla\times\vec{A}) = 0 always).
The 2019 SI redefinition — why \mu_0 is no longer exactly 4\pi\times 10^{-7}
Until 2019, the ampere was defined by setting \mu_0 = 4\pi\times 10^{-7} T·m/A exactly, and the tesla was derived from this. In the revised SI (effective 20 May 2019), the ampere is defined by fixing the elementary charge e at exactly 1.602{,}176{,}634\times 10^{-19} C, and \mu_0 becomes a measured quantity — though measured so precisely that to more than nine significant figures it still equals 4\pi\times 10^{-7} T·m/A. For every calculation in this chapter (and in JEE Advanced), you use \mu_0 = 4\pi\times 10^{-7} without hesitation; the post-2019 change matters only to metrology laboratories measuring fundamental constants at NPL (National Physical Laboratory) in Delhi.
Relativistic consistency — magnetism as a relativistic effect
A subtle consequence of the Biot-Savart law: what one observer sees as a pure electric field, another (moving) observer sees as a mixture of electric and magnetic fields. Specifically, if you have a static line of positive charges, an observer at rest sees only an electric field. An observer moving parallel to the line sees the charges moving (a current!) and therefore sees a magnetic field as well. The two observers agree on the physics (the force on a test charge); they disagree on whether that force is "electric" or "magnetic." Magnetism is, in this precise sense, the relativistic aspect of electricity — you do not need v \approx c to see this, because the magnetic field is proportional to v/c^2 times the electric field, and even slow drift velocities in a wire produce measurable magnetic fields because of the enormous density of charges.
This is why \mu_0\varepsilon_0 = 1/c^2: the constant \mu_0 is exactly what is needed to make magnetic forces consistent with Coulomb's law under Lorentz boosts. If you accept Coulomb's law, the Biot-Savart law is forced on you by special relativity — there is nothing genuinely new in magnetism beyond electricity-plus-relativity.
Where this leads next
- Magnetic Field of Common Current Configurations — the Biot-Savart law applied to straight wires, arcs, and loops, with ready-to-use formulas.
- Ampère's Circuital Law — the integral form that lets you bypass Biot-Savart for symmetric configurations.
- Solenoid and Toroid — where Ampère's law shines: uniform internal fields from stacks of loops.
- Magnetic Force on a Current-Carrying Conductor — Biot-Savart gives the field; the Lorentz law gives the force it exerts back.
- Torque on a Current Loop — the loop's magnetic moment, the connection to atomic magnetism.
- Gauss's Law for Magnetism — the non-existence of magnetic monopoles, expressed as \nabla\cdot\vec{B} = 0.