5.3 - Magnetic Fields of Current-Carrying Wires and the Biot-Savart Law
Introduction to the Biot-Savart Law
The Biot-Savart Law lets you calculate or derive expressions for magnetic fields created by electric currents flowing through wires. It’s analogous to Coulomb’s Law for electric fields, but it applies to moving charges (currents).
Its purpose: to determine the magnitude and direction of the magnetic field a current-carrying wire creates at any point in space.
The Biot-Savart Law Equation
General Form
where:
- = infinitesimal magnetic field contribution (T)
- T·m/A, the permeability of free space
- = current through the wire (A)
- = infinitesimal length element of wire (a vector pointing in the current direction)
- = unit vector pointing from the wire element to the observation point
- = distance from the wire element to the observation point (m)
- = cross product
Understanding the Components
(mu-naught): the magnetic permeability constant that shows up in every magnetic field equation.
: the current flowing through the wire, constant for a given wire.
: a small segment of wire, and this is what you integrate over.
(r-hat): a unit vector with magnitude 1, pointing radially from the wire element toward the observation point.
: the distance from the wire element to the observation point.
Magnitude Form
For practical calculations, the magnitude is:
where is the angle between and .
An important simplification: when is perpendicular to , which happens a lot, , so:
To find the total magnetic field, integrate over the whole wire:
Magnetic Field Pattern Around a Wire
The magnetic field vectors around a current-carrying wire are tangent to concentric circles centered on the wire.

The right-hand rule for a wire:
- Point your thumb in the direction of the current.
- Your fingers curl in the direction of the magnetic field circles.
The field has no component toward or away from the wire and no component parallel to the wire. It only wraps around. That comes straight from the cross product in the Biot-Savart Law: is perpendicular to both (which runs along the wire) and (which points from the wire out to the point), and the only direction perpendicular to both is around the wire.
Magnetic Field from a Current Loop
A special and important case is a circular loop of wire carrying current.
Formula for the Center of a Loop
At the center of a circular loop of radius carrying current :
This comes from integrating the Biot-Savart Law around the entire loop (angle ), as you’ll see in the example problem.
Only the Biot-Savart Law itself is on the AP equation sheet, not this result, so be ready to derive it.

A physical insight: a current loop acts like a magnetic dipole, with a field pattern very similar to a bar magnet’s.
Force on a Current-Carrying Wire
A current-carrying wire sitting in an external magnetic field feels a force.
Formula
For a wire segment of length :
where is the angle between the wire (the current direction) and the magnetic field.
For a curved wire or a varying field, integrate over the wire:
Maximum force: when the wire is perpendicular to the field (), .
No force: when the wire is parallel to the field (), .

Uniform field shortcut. In a uniform field, a curved wire feels the same net force as a straight wire running between its two ends with the same current. For example, a semicircle of radius lying in the page, with perpendicular to the page, feels , the same as its straight diameter. You need the integral when the field changes along the wire:
Example: Force in a Field That Isn’t Uniform
Problem: A long straight wire carries A up the page. A 0.080 m rod lies in the page perpendicular to the long wire, with its near end 0.020 m from the wire and its far end 0.10 m away. The rod carries A away from the long wire. Find the magnetic force on the rod.

The long wire’s field, (into the page on the rod’s side), gets weaker along the rod, so you can’t just use . Cut the rod into pieces . Each piece is perpendicular to , so :
Direction: points away from the wire () and points into the page (), and . The force points up the page, parallel to the long wire’s current.
Force Between Two Parallel Wires
Each wire sits in the magnetic field of the other, so two current-carrying wires push or pull on each other. Wire 1’s field at wire 2, a distance away, is , and it’s perpendicular to wire 2. So the force on a length of wire 2 is
Wire 2 pulls on wire 1 with the same size force in the opposite direction (Newton’s third law).
- Currents in the same direction attract.
- Currents in opposite directions repel.

Example. Two long parallel wires 4.0 cm apart carry 8.0 A and 5.0 A in the same direction. Find the force on a 0.50 m length of either wire.
Example Problem: Magnetic Field at the Center of a Circular Arc
Problem: A wire carrying current forms a circular arc with radius , sweeping through an arbitrary angle (in radians). Derive an expression for the magnetic field at the center of the arc (point P).

Solution
Step 1: Start with the Biot-Savart Law
Step 2: Identify the constants
For this geometry:
- The current is constant.
- The distance from any point on the arc to the center is , also constant.
- The wire element is always perpendicular to (the radial direction).
- So , since .
Step 3: Set up the integral
Since , , and are all constants, factor them out:
Step 4: Express in terms of the angle
For a circular arc, .
The arc runs from to , the total angle swept:
Step 5: Simplify
Step 6: Integrate
Step 7: Final answer
The physical read: the magnetic field at the center is proportional to
- the current , so more current means a stronger field,
- the angle , so a bigger arc means a stronger field, and inversely proportional to the radius , so a bigger radius means a weaker field at the center.
Special Case: The Complete Loop
For a complete circular loop, the angle swept is radians (360°).
Substitute into the result:
That confirms the complete-loop formula from earlier.
This shows the power of the general result: the formula works for any arc angle, and the complete loop is just the special case where .
Example Problem: Field on the Perpendicular Bisector of a Straight Wire
Problem: A straight wire of length carries current . Derive the magnetic field at point P, a distance from the wire’s midpoint along the perpendicular bisector.

Solution
Step 1: Set up one piece
Put the wire on the -axis from to , with P a height above the middle. A piece at position is a distance from P, and the angle between and has . So the Biot-Savart Law gives
Step 2: Check the direction
With the current to the right and P above the wire, points out of the page for every piece. Since every points the same way, you can add the magnitudes directly.
Step 3: Integrate
(That integral comes from the substitution , or a table of integrals.) Plugging in the limits and simplifying:
Step 4: Check the limit
For a very long wire (), , and the result becomes , the infinite-wire field from Topic 5.4. Even a fairly short wire gets close: with , the field is of the infinite-wire value, because the far ends of a wire contribute very little at P.
Example Problem: Field on the Axis of a Circular Loop
Problem: A circular loop of radius carries current . Derive the magnetic field at point P on the loop’s central axis, a distance from its center.

Solution
Step 1: One piece of the loop
Every piece of the loop is the same distance from P, , and is always perpendicular to (so ):
Step 2: Use symmetry
Each is perpendicular to its own , so it tilts away from the axis. The piece on the opposite side of the loop makes a tilted the other way, so the parts perpendicular to the axis cancel in pairs. Only the parts along the axis survive. Since is perpendicular to , similar triangles give the part along the axis as times :
Step 3: Integrate around the loop
Everything except is constant, and :
The field points along the axis, the way your thumb points when your fingers curl with the current.
Step 4: Check the limits
- At the center (): , which matches the loop formula above.
- One radius out (): , about 35% of the value at the center.
- Far away (): . The field drops off as , just like a magnetic dipole’s field (Topic 5.1).
Example Problem: Combining Arcs and Straight Segments
Problem: A loop is made of two quarter circles that share the same center P, with radii m and m, joined by two straight radial pieces. It carries 4.0 A, counterclockwise around the outer arc and clockwise around the inner arc. Find the magnetic field at P.

Use superposition: find the field from each piece at P, then add them as vectors.
- Straight pieces: they point straight at P, so is parallel to and . They add nothing at P.
- Outer arc: a quarter circle has , so , out of the page (counterclockwise current).
- Inner arc: , into the page (clockwise current).
The net field points into the page, because the inner arc is closer to P and wins.
Common Current Configurations
Using the Biot-Savart Law, you can derive the magnetic fields for various wire setups:
Configuration | Magnetic Field | Location |
Straight infinite wire | Distance from wire | |
Straight wire of length | Distance from the midpoint, on the perpendicular bisector | |
Circular loop | Center of loop (radius ) | |
Circular loop (on its axis) | Distance from the center, along the axis | |
Circular arc (angle ) | Center of arc | |
Solenoid (coil) | Inside a long solenoid ( = turns per length) |
Note: the straight infinite wire formula gets derived using Ampère’s Law in the next topic.
Right-Hand Rules Summary
For Magnetic Field from Current (Biot-Savart)
Straight wire:
- Thumb: points in the current direction.
- Fingers: curl in the direction of the magnetic field circles.
Current loop:
- Fingers: curl in the direction of the current around the loop.
- Thumb: points in the direction of the magnetic field through the center.
For Force on Current in a Field
Wire in an external field:
- Thumb: current direction ().
- Fingers: field direction ().
- Palm: force direction ().
Preview: Ampère’s Law
In the next topic, we’ll get into Ampère’s Law, which gives you an alternative and often simpler way to calculate magnetic fields when there’s enough symmetry.
Ampère’s Law:
With Maxwell’s addition (a term for changing electric fields, covered in the next topic), this becomes the fourth of Maxwell’s equations. Ampère’s Law is especially useful for:
- Long straight wires.
- Solenoids.
- Toroids.
- Any configuration with cylindrical or planar symmetry.
Ampère’s Law relates to Biot-Savart the same way Gauss’s Law relates to Coulomb’s Law. Both give you the same answers, but Ampère’s Law is far easier when symmetry is present.
Summary of Key Formulas
Biot-Savart Law
Magnetic Field Magnitudes
Force on a Wire
Common Mistakes
- Forgetting the cross product in Biot-Savart. The term means the field depends on the angle between the wire element and the radius vector. When they’re perpendicular (the common case), it simplifies, but don’t forget it’s there.
- Using the wrong angle in the arc formula. The angle in has to be in radians, not degrees. A semicircle is , not .
- Confusing radius R with distance r. In the arc problem, , since the distance from the wire to the center equals the arc radius. But in general problems with arbitrary observation points, varies and isn’t the same as the geometric radius.
- Using the wrong right-hand rule. To find B from a current, curl your fingers in the current direction with your thumb showing the field direction (for loops), or point your thumb in the current direction with your fingers curling for the field circles (for straight wires). Don’t confuse this with the force rule.
- Forgetting that the constants are constant during integration. When you integrate Biot-Savart, , , , and often (for circular geometry) are constants you can factor out. Pull them out early to simplify the integral.