AP PHYSICS C: ELECTRICITY AND MAGNETISM • MAGNETIC FIELDS AND ELECTROMAGNETISM

Magnetic Fields of Current-Carrying Wires and the Biot-Savart Law

How moving charges create magnetic fields, and the foundational law that quantifies them everywhere in space.

Historical Context & Motivation

For centuries, electricity and magnetism were regarded as entirely separate phenomena—static charges produced electric forces, and lodestones attracted iron, but no one suspected a deep connection between the two. The pivotal moment arrived in 1820 when Hans Christian Ørsted noticed that a compass needle deflected when placed near a wire carrying an electric current, demonstrating that moving charges produce magnetic fields. This single observation launched an intense period of research across Europe, as physicists raced to quantify the relationship between current and the magnetic field it generates. Within months, Jean-Baptiste Biot and Félix Savart performed careful experiments on the force exerted by a current-carrying wire on a nearby magnetic pole, establishing the mathematical law that bears their names. Their work, together with André-Marie Ampère's force law and ultimately James Clerk Maxwell's synthesis, revealed that magnetism is not an independent force of nature but rather an intrinsic consequence of electric charges in motion.

1820
Ørsted's Discovery
Hans Christian Ørsted demonstrates that a current-carrying wire deflects a compass needle, revealing the connection between electricity and magnetism.
1820
Biot-Savart Experiments
Jean-Baptiste Biot and Félix Savart quantify how the magnetic field from a long straight wire varies inversely with distance, establishing the Biot-Savart law in differential form.
1826
Ampère's Force Law
André-Marie Ampère publishes a comprehensive theory of forces between current-carrying conductors, introducing the circuital law that complements the Biot-Savart approach.
1865
Maxwell's Equations
James Clerk Maxwell unifies electricity and magnetism into four elegant equations, with the Biot-Savart law emerging as a particular solution of Ampère's law with Maxwell's correction.

The central question that drove this era of physics—and the question we address in this lesson—is deceptively simple: given an arbitrary distribution of steady currents, how do we calculate the magnetic field at every point in space? The Biot-Savart law provides the general answer, serving as the magnetic analog of Coulomb's law for electrostatics. Mastering it equips you to handle any steady-current geometry—from straight wires to loops to solenoids—making it one of the most powerful tools in classical electromagnetism.

Core Principles & Definitions

Before diving into calculations, it is essential to establish the foundational ideas that govern how currents produce magnetic fields. The Biot-Savart law rests on the principle of superposition: the total magnetic field at any point is the vector sum of contributions from every infinitesimal current element in the system. Each of these infinitesimal contributions depends on the magnitude and direction of the current element, its position relative to the field point, and the inverse square of the separation distance. Understanding these dependencies—and the inherent cross-product geometry—is the key to applying the law successfully on the AP exam.

1

Current Element (Idl⃗)

An infinitesimal vector element of a current-carrying wire. Its direction follows the conventional current direction, and its magnitude is I dl, where I is the current and dl is the infinitesimal arc length.
2

Displacement Vector (r̂)

The unit vector pointing from the current element (source point) to the field point where B⃗ is being calculated. The separation distance r appears squared in the denominator, producing an inverse-square dependence.
3

Cross Product Geometry

The differential field dB⃗ is proportional to dl⃗ × r̂, meaning it is perpendicular to both the current element and the displacement vector. The right-hand rule determines dB⃗'s direction.
4

Superposition Principle

The total magnetic field at any point is found by integrating dB⃗ over the entire current distribution. Because B⃗ is a vector, components must be integrated separately and then combined.
5

Permeability of Free Space (μ₀)

The magnetic constant μ₀ = 4π × 10⁻⁷ T·m/A sets the scale for magnetic fields in vacuum. It plays a role analogous to 1/(4πε₀) in Coulomb's law.
KEY TAKEAWAY
Think of the Biot-Savart law as the magnetic counterpart of Coulomb's law. Just as you can compute the electric field from any charge distribution by summing (integrating) contributions from infinitesimal charge elements, you compute the magnetic field by integrating contributions from infinitesimal current elements. The crucial difference is geometry: while Coulomb's law gives a field along the line connecting source and field point, the Biot-Savart law produces a field perpendicular to both the current direction and the displacement vector, wrapping around the wire like water swirling around an oar drawn through a still pond.

Visualizing the Biot-Savart Law

The diagram shows a vertical current-carrying wire with an infinitesimal element Idl⃗ (cyan) pointing upward in the direction of conventional current. The displacement vector (violet) extends from the source element to the field point P (pink). The resulting differential field dB⃗ (emerald) points out of the page, perpendicular to the plane defined by dl⃗ and r̂, as required by the cross product.

The geometry displayed above captures the essence of the Biot-Savart law. Notice three critical features. First, the differential field dB⃗ is always perpendicular to the plane containing both dl⃗ and r̂; this is a direct consequence of the cross product. Second, the magnitude of dB depends on sin θ, where θ is the angle between the current element and the displacement vector—when dl⃗ is parallel to r̂ (θ = 0 or π), the contribution vanishes entirely. Third, the inverse-square dependence on r means that nearby current elements dominate the field, just as nearby charges dominate the electric field in Coulomb's law. To obtain the total field at P, you must integrate dB⃗ over the entire length of the current distribution, carefully tracking vector directions at every step.

Mathematical Framework

The Biot-Savart law provides the general recipe for computing the magnetic field from any steady current distribution. We begin with the differential form and then apply it to the most important geometry tested on the AP exam: the infinite straight wire.

BIOT-SAVART LAW (VECTOR FORM)
dB⃗ = (μ₀ / 4π) × (I dl⃗ × r̂) / r²
where μ₀ = 4π × 10⁻⁷ T·m/A is the permeability of free space, I is the steady current, dl⃗ is the infinitesimal directed wire element, is the unit vector from source to field point, and r is the distance from source to field point.
BIOT-SAVART LAW (MAGNITUDE FORM)
|dB| = (μ₀ I dl sin θ) / (4π r²)
where θ is the angle between dl⃗ and r̂. This scalar form is often the starting point for integration problems.

Derivation: Magnetic Field of an Infinite Straight Wire

Consider an infinitely long straight wire carrying current I along the z-axis. We seek the magnetic field at a perpendicular distance R from the wire. Place the field point P in the xy-plane at distance R from the wire. For a current element at position z on the wire, the distance from that element to P is r = √(R² + z²), and the angle between dl⃗ (which points along ẑ) and r̂ satisfies sin θ = R / √(R² + z²). By symmetry, all dB⃗ contributions point in the same azimuthal direction (φ̂), so the integration reduces to a scalar integral over z from −∞ to +∞.

INTEGRATION FOR INFINITE WIRE
B = (μ₀I / 4π) ∫₋∞^∞ R dz / (R² + z²)^(3/2) = μ₀I / (2πR)
The integral evaluates to 2/R using the substitution z = R tan φ. The result yields the familiar inverse-distance dependence of the field around an infinite straight wire.
MAGNETIC FIELD OF INFINITE STRAIGHT WIRE
B = μ₀I / (2πR)
Direction: field lines form concentric circles around the wire, with direction given by the right-hand rule—curl the fingers of your right hand in the direction of the field while your thumb points in the direction of current.
💡 AP Exam Tip
The result B = μ₀I/(2πR) for the infinite straight wire appears on the AP equation sheet. However, you are expected to know how to derive it from the Biot-Savart law via integration. Free-response questions frequently ask you to set up the integral, identify the geometric quantities, and evaluate it—partial credit is awarded at each step.

Key Geometries: Loops, Arcs, and Solenoids

While the infinite straight wire is the most fundamental application of the Biot-Savart law, the AP Physics C exam also requires proficiency with circular current loops and arc segments. In each case, the strategy is the same: identify dl⃗, compute r and sin θ for each infinitesimal element, determine the direction of dB⃗ using the cross product, exploit symmetry to eliminate vanishing components, and then integrate. The table below summarizes the key results you should know.

Summary of magnetic field results derivable from the Biot-Savart law for standard AP geometries.
GeometryField ExpressionWhere / Notes
Infinite straight wireB = μ₀I / (2πR)At perpendicular distance R; concentric circular field lines
Circular loop (center)B = μ₀I / (2R)At the center of a loop of radius R; field along axis of loop
Circular loop (on axis)B = μ₀IR² / [2(R² + x²)³ᐟ²]At distance x along the axis from center of loop of radius R
Arc segment (angle φ)B = μ₀Iφ / (4πR)At the center of a circular arc of radius R subtending angle φ (in radians)
Finite straight segmentB = (μ₀I / 4πR)(sin θ₂ − sin θ₁)At perpendicular distance R; θ₁ and θ₂ are angles from the endpoints to P
A circular current loop of radius R carrying current I (amber arrow). The magnetic field at the center (emerald dot) points along the loop's axis (pink arrow), with magnitude B = μ₀I/(2R). The key simplification is that every element dl⃗ on the loop is perpendicular to the displacement vector r̂ pointing to the center, so sin θ = 1 for every element.

The circular loop result is particularly elegant because the geometry eliminates the angular factor entirely. Since every infinitesimal arc element dl⃗ is tangent to the circle and the displacement vector from each element to the center is radial, the angle between them is always 90°, giving sin θ = 1. Additionally, by symmetry, the components of dB⃗ that lie in the plane of the loop cancel in opposing pairs, leaving only the axial component. This is a powerful example of how exploiting symmetry before integrating dramatically simplifies Biot-Savart calculations. For arc segments subtending angle φ rather than the full 2π, you simply replace the full circumference integral with a partial one, yielding B = μ₀Iφ/(4πR) at the arc's center—a result frequently tested in multiple-choice questions.

Worked Example: Field at the Center of a Wire Loop Combination

Consider a wire bent into a shape consisting of two straight segments and one semicircular arc. The semicircular portion has radius R = 0.10 m and lies in the xy-plane, centered at the origin. A steady current I = 5.0 A flows through the wire. The two straight segments extend radially outward along the x-axis from the ends of the semicircle to infinity. Find the magnetic field at the center of the semicircular arc.

Magnetic Field at the Center of a Semicircular Arc with Radial Leads
1
Step 1 — Identify Contributing SegmentsThe wire consists of three parts: two straight radial segments and one semicircular arc. For the radial segments, the current element dl⃗ is directed along the radial direction (parallel or antiparallel to r̂ from the element to the center). Since the Biot-Savart cross product dl⃗ × r̂ = 0 when the vectors are parallel, the straight radial segments contribute zero magnetic field at the center.
B_straight = 0 for both radial leads
2
Step 2 — Analyze the Semicircular ArcFor the semicircular arc, every element dl⃗ is tangent to the circle, and the displacement vector from each element to the center is radial. These two vectors are always perpendicular, so sin θ = 1 for every element. The distance from each element to the center is uniformly r = R. By the right-hand rule, every element produces a dB⃗ that points in the same direction (out of the xy-plane, i.e., +ẑ or −ẑ depending on current direction).
3
Step 3 — Set Up and Evaluate the IntegralThe semicircle subtends an angle φ = π radians. Using the arc-segment formula: B = μ₀Iφ / (4πR). Substituting φ = π gives B = μ₀I(π) / (4πR) = μ₀I / (4R). This is exactly half the field at the center of a full circular loop, which makes sense since a semicircle is half a full circle.
B = μ₀I / (4R)
4
Step 4 — Substitute Numerical ValuesB = (4π × 10⁻⁷ T·m/A)(5.0 A) / [4 × (0.10 m)] = (4π × 10⁻⁷ × 5.0) / 0.40. Computing the numerator: 4π × 10⁻⁷ × 5.0 = 20π × 10⁻⁷ ≈ 6.28 × 10⁻⁶. Dividing by 0.40: B ≈ 1.57 × 10⁻⁵ T = 15.7 μT.
B ≈ 15.7 μT, directed perpendicular to the plane of the semicircle
5
Step 5 — Verify DirectionUsing the right-hand rule: curl the fingers of your right hand in the direction of current flow around the semicircle. Your thumb points in the direction of B⃗ at the center. If the current flows counterclockwise as viewed from above, B⃗ points in the +ẑ direction (out of the page).

Biot-Savart Law vs. Ampère's Law

On the AP exam, you will encounter two primary tools for computing magnetic fields from steady currents: the Biot-Savart law and Ampère's law. Both are always valid for magnetostatics, but they differ significantly in practical applicability. Ampère's law, ∮B⃗ · dl⃗ = μ₀I_enc, is far easier to apply when the problem possesses sufficient symmetry—specifically, when a convenient Amperian loop can be chosen along which B is either constant or zero. The Biot-Savart law, by contrast, is the universal workhorse: it can handle any current geometry, symmetric or not, at the cost of a potentially challenging integral.

Comparison of the two primary methods for finding magnetic fields from steady currents.
FeatureBiot-Savart LawAmpère's Law
Fundamental expressiondB⃗ = (μ₀/4π)(I dl⃗ × r̂)/r²∮ B⃗ · dl⃗ = μ₀ I_enc
Symmetry requirementNone—works for any geometryRequires high symmetry (infinite wire, solenoid, toroid)
Gives field directly?Yes—yields B⃗ at any pointYes, but only when B can be factored out of the integral
Typical AP applicationsFinite wire, arc segments, loops, non-symmetric geometriesInfinite wire, solenoid, toroid, coaxial cable
Analogy in electrostaticsCoulomb's lawGauss's law
Computational difficultyOften requires challenging integrationSimple algebra when symmetry is present
KEY TAKEAWAY
The relationship between the Biot-Savart law and Ampère's law mirrors the relationship between Coulomb's law and Gauss's law in electrostatics. In both cases, the more 'general' law (Coulomb/Biot-Savart) works for any configuration but may require difficult integration, while the 'symmetric' law (Gauss/Ampère) gives instant results when the right symmetry is present. On the AP exam, your first instinct when computing B should be: check for Ampère's-law symmetry first. If the geometry lacks the necessary symmetry, fall back to Biot-Savart.

Connections to Advanced Theory

The Biot-Savart law, while complete for magnetostatics, is part of a much richer theoretical framework. Maxwell's equations generalize the relationship between currents and magnetic fields to include time-varying electric fields (the displacement current), while the magnetic vector potential A⃗ provides an alternative formulation that is especially powerful in advanced electrodynamics and quantum mechanics. Understanding where the Biot-Savart law sits within this hierarchy deepens your appreciation of its scope and limitations.

How the Biot-Savart law connects to the full Maxwell framework.
ConceptBiot-Savart / MagnetostaticsFull Electrodynamics (Maxwell)
Source of BSteady currents only (∂E/∂t = 0)Steady and time-varying currents, plus displacement current ε₀(∂E/∂t)
Governing equation∇ × B⃗ = μ₀J⃗∇ × B⃗ = μ₀J⃗ + μ₀ε₀(∂E⃗/∂t)
Vector potentialA⃗ = (μ₀/4π)∫ J⃗ dV′/r — staticRetarded potentials account for propagation delay at speed c
RadiationNo electromagnetic radiation predictedAccelerating charges radiate electromagnetic waves

For the AP Physics C exam, you will not be asked to work with retarded potentials or the displacement current in the context of Biot-Savart problems. However, understanding that the Biot-Savart law applies strictly to steady (DC) currents is important for conceptual questions that distinguish between magnetostatics and electrodynamics. Additionally, the concept of the magnetic dipole moment m⃗ = NIA⃗ for a current loop connects the Biot-Savart result to the broader topic of magnetic dipoles, which appears in both the electromagnetism and the mechanics portions of the AP Physics C curriculum when discussing torque on current loops in external fields.

Practice Problems

1
A long straight wire carries a steady current I directed to the right. At a point P located directly above the wire, what is the direction of the magnetic field produced by the wire?
2
A long straight wire carries a current of 10 A. What is the magnitude of the magnetic field at a perpendicular distance of 0.05 m from the wire?
3
A wire carrying current I is bent into a quarter-circle arc of radius R, with straight radial segments extending from each end of the arc to the center. What is the magnitude of the magnetic field at the center of curvature of the arc?
PROBLEM 4APPLIED
A circular loop of wire of radius R = 0.08 m carries a current I = 3.0 A and lies in the xy-plane centered at the origin. (a) Using the Biot-Savart law, derive the expression for the magnetic field magnitude on the axis of the loop at a distance x from its center. (b) Calculate the magnetic field at the center of the loop (x = 0). (c) Calculate the magnetic field at a point on the axis where x = 0.06 m. (d) At what axial distance x does the field drop to exactly 1/8 of its value at the center? Express your answer in terms of R.
PROBLEM 5CRITICAL THINKING
Two coaxial circular loops, each of radius R and carrying current I in the same direction, are separated by a distance d along their common axis. (a) Write an expression for the total magnetic field on the axis at the midpoint between the two loops. (b) For the special case d = R (Helmholtz coils), show that the first and second derivatives of B with respect to x both vanish at the midpoint, and explain the physical significance of this result. (c) Discuss qualitatively how the field uniformity near the midpoint of Helmholtz coils compares to the field of a single loop, and explain why this configuration is useful in experimental physics.

Lesson Summary

The Biot-Savart law is the foundational tool for computing the magnetic field produced by any steady current distribution. In its differential form, dB⃗ = (μ₀/4π)(I dl⃗ × r̂)/r², it expresses how each infinitesimal current element contributes to the field through an inverse-square law with a cross-product geometry that ensures B⃗ is perpendicular to both the current direction and the displacement vector. The total field at any point is obtained by integrating over the entire current path, applying the superposition principle.

Key results derived from the Biot-Savart law include B = μ₀I/(2πR) for an infinite straight wire, B = μ₀I/(2R) at the center of a circular loop, and B = μ₀Iφ/(4πR) at the center of an arc subtending angle φ. When solving problems, always begin by identifying which segments contribute (radial segments give zero contribution), exploit symmetry to eliminate vanishing components before integrating, and use the right-hand rule to determine directions. Remember that Ampère's law is the preferred tool when sufficient symmetry exists, but Biot-Savart remains the universal fallback for any current geometry.

Varsity Tutors • AP Physics C: Electricity and Magnetism • Magnetic Fields of Current-Carrying Wires and the Biot-Savart Law