Guides / Electricity & magnetism

The Biot–Savart law: magnetic fields from currents

Every electric current makes a magnetic field. The Biot–Savart law (said "bee-oh sah-VAR") tells you how strong that field is and which way it points, for any shape of wire.

The law

A tiny piece of wire (a short length of wire, pointing the way the current flows) carrying current creates a small magnetic field at a point a distance away:

To get the total field, you add up (integrate) the contributions from every piece of the wire. Like gravity, the field from each piece falls off as . Unlike gravity, the cross product means the field wraps around the current instead of pointing toward it.

Which way does the field point?

Use the right-hand rule: point your right thumb along the current, and your fingers curl the way the magnetic field circles the wire.

Results you'll use most

Doing the integral for common shapes gives formulas you can use directly. These give the field's magnitude , and the right-hand rule gives its direction.

Long straight wire

Here is the perpendicular distance from the wire. The field gets weaker as , not , because the wire is long.

Center of a circular loop

For a coil of tightly wound turns, multiply by .

Inside a long solenoid

where is the number of turns per metre. (This one usually comes from Ampère's law, which gives the same answer more easily for very symmetric shapes.)

Worked example: field near a wire and inside a loop

A long straight wire carries . What's the magnetic field from it? And if the same current flows around a single loop of radius , what's the field at its center?

Knowns
  1. 1
  2. 2
Open this example in Newtonpad Change any number and every answer updates.

The wire's field is about , or . That's about the same as Earth's magnetic field (roughly 25 to 65 ), which is why a compass near a current-carrying wire swings. The loop gives about at its center.

What is a tesla in base units?

Newtonpad shows the answer above as . That's exactly a tesla. From the magnetic force on a moving charge, , so . Seeing the base units is a useful check: if your answer came out in anything else, something in the setup went wrong.

Common mistakes

Try your own numbers

Open the example, double the distance from the wire, and watch the field drop by half. Newtonpad already has built in, so you can type it straight into your equations.

More guides