๐ŸŽขPrinciples of Physics II

Magnetic Field Formulas

Study smarter with Fiveable

Get study guides, practice questions, and cheatsheets for all your subjects. Join 500,000+ students with a 96% pass rate.

Get Started

Why This Matters

Magnetic field formulas are the backbone of electromagnetism, one of the most heavily tested topics in Physics II. You're being tested on your ability to connect current flow to field generation, field geometry to symmetry, and changing flux to induced voltage. These aren't isolated equations. They form a coherent story about how moving charges create fields, how those fields exert forces, and how changing fields generate new currents.

The key principles you'll need to master include field generation (how currents produce magnetic fields), force interactions (how fields act on charges and wires), and electromagnetic induction (how changing fields create voltage). Don't just memorize formulas. Know what physical situation each formula describes and when to apply it. If you can identify the symmetry of a problem and connect it to the right law, you'll navigate even the trickiest exam questions.


Field Generation: How Currents Create Magnetic Fields

Moving charges produce magnetic fields, and the geometry of the current flow determines the field's shape and strength. These formulas let you calculate the magnetic field produced by different current configurations.

Biot-Savart Law

dBโƒ—=ฮผ04ฯ€Iโ€‰dlโƒ—ร—r^r2d\vec{B} = \frac{\mu_0}{4\pi} \frac{I \, d\vec{l} \times \hat{r}}{r^2}

This is the fundamental field equation. It describes the tiny contribution dBโƒ—d\vec{B} to the magnetic field produced by an infinitesimal current element Iโ€‰dlโƒ—I \, d\vec{l} at a distance rr.

  • Inverse-square dependence: field strength falls off as 1/r21/r^2 from the current element, similar to Coulomb's law for electric fields
  • Right-hand rule determines direction: curl fingers from dlโƒ—d\vec{l} toward r^\hat{r}, and your thumb points along dBโƒ—d\vec{B}
  • To find the total field from an entire wire or loop, you integrate dBโƒ—d\vec{B} over the full current path

Magnetic Field of a Long Straight Wire

B=ฮผ0I2ฯ€rB = \frac{\mu_0 I}{2\pi r}

The field decreases as you move farther from the wire (inversely proportional to distance rr). Field lines form concentric circles around the wire. Use the right-hand rule with your thumb along the current direction; your fingers curl in the direction of Bโƒ—\vec{B}.

This formula is your starting point for problems involving parallel wires or wire interactions.

Magnetic Field at the Center of a Circular Loop

B=ฮผ0I2RB = \frac{\mu_0 I}{2R}

The field at the center depends inversely on the loop radius RR. Its direction is perpendicular to the plane of the loop: curl your right-hand fingers along the current, and your thumb points along Bโƒ—\vec{B}.

For NN identical loops stacked together (a flat coil), the field multiplies: B=ฮผ0NI2RB = \frac{\mu_0 N I}{2R}. This is the building block for understanding solenoids and electromagnets.

Magnetic Field of a Solenoid

B=ฮผ0nIB = \mu_0 n I

Here nn is the number of turns per unit length (n=N/Ln = N/L). The field inside a long solenoid is remarkably uniform, with parallel field lines running along the axis. The field outside is approximately zero.

This is a high-symmetry case that Ampรจre's Law handles cleanly. Expect it on exams.

Compare: Long straight wire vs. solenoid. Both use current to generate fields, but the wire produces a field that decreases with distance while the solenoid produces a uniform field inside. If a problem asks about creating a constant magnetic field region, the solenoid is your answer.


Ampรจre's Law: The Symmetry Shortcut

When current distributions have high symmetry, Ampรจre's Law provides an elegant way to calculate the magnetic field without doing a full Biot-Savart integration.

Ampรจre's Law

โˆฎBโƒ—โ‹…dlโƒ—=ฮผ0Ienc\oint \vec{B} \cdot d\vec{l} = \mu_0 I_{enc}

This relates the line integral of Bโƒ—\vec{B} around a closed loop (called an Amperian loop) to the total current IencI_{enc} enclosed by that loop.

The catch: it's only practical when Bโƒ—\vec{B} is constant in magnitude along your chosen loop, so the dot product simplifies. This happens with cylindrical symmetry (long straight wires), solenoidal symmetry (solenoids), and toroidal symmetry (toroids).

Think of it as analogous to Gauss's Law for electric fields. The strategy is the same: choose your loop wisely so the math collapses.

Steps for applying Ampรจre's Law:

  1. Identify the symmetry of the current distribution
  2. Choose an Amperian loop where Bโƒ—\vec{B} is either constant and parallel to dlโƒ—d\vec{l}, or perpendicular to dlโƒ—d\vec{l} (contributing zero)
  3. Evaluate โˆฎBโƒ—โ‹…dlโƒ—\oint \vec{B} \cdot d\vec{l}, which typically simplifies to Bร—(loopย length)B \times (\text{loop length})
  4. Determine IencI_{enc}, the total current passing through the loop
  5. Set them equal and solve for BB

Compare: Biot-Savart Law vs. Ampรจre's Law. Biot-Savart works for any current configuration but requires integration. Ampรจre's Law is faster but only applies to symmetric situations. Know which tool fits the problem's geometry.


Force Interactions: Fields Acting on Charges and Currents

Magnetic fields don't just exist passively. They exert forces on moving charges and current-carrying conductors.

Lorentz Force (Force on a Moving Charge)

Fโƒ—=q(vโƒ—ร—Bโƒ—)\vec{F} = q(\vec{v} \times \vec{B})

The force is perpendicular to both the velocity vโƒ—\vec{v} and the field Bโƒ—\vec{B}. Its magnitude is F=qvBsinโกฮธF = qvB\sin\theta, where ฮธ\theta is the angle between vโƒ—\vec{v} and Bโƒ—\vec{B}.

  • No work done: because the force is always perpendicular to the velocity, magnetic forces change a charge's direction but never its speed (and therefore never its kinetic energy)
  • Circular motion results when vโƒ—โŠฅBโƒ—\vec{v} \perp \vec{B}. Setting the magnetic force equal to centripetal force gives the radius of the circular orbit: r=mvqBr = \frac{mv}{qB}. This principle underlies mass spectrometers and cyclotrons.

Magnetic Force on a Current-Carrying Wire

Fโƒ—=I(Lโƒ—ร—Bโƒ—)\vec{F} = I(\vec{L} \times \vec{B})

This gives the force on a straight wire segment of length LL carrying current II in an external field Bโƒ—\vec{B}. The vector Lโƒ—\vec{L} points in the direction of current flow. The magnitude is F=ILBsinโกฮธF = ILB\sin\theta.

Use the right-hand rule: point fingers along Lโƒ—\vec{L} (current direction), curl toward Bโƒ—\vec{B}, and your thumb gives Fโƒ—\vec{F}. This force is what makes electric motors rotate.

Compare: Force on a charge vs. force on a wire. Both use cross products with Bโƒ—\vec{B}, but the charge formula uses qvโƒ—q\vec{v} while the wire formula uses ILโƒ—I\vec{L}. The connection: ILโƒ—I\vec{L} represents many charges moving together. A current II through length LL is equivalent to a collection of charges each with velocity vv, so the physics is the same at a different scale.


Electromagnetic Induction: Changing Fields Create Voltage

A changing magnetic environment induces electric effects. This is the principle behind generators, transformers, and wireless charging.

Magnetic Flux

ฮฆB=Bโƒ—โ‹…Aโƒ—=BAcosโกฮธ\Phi_B = \vec{B} \cdot \vec{A} = BA\cos\theta

Magnetic flux measures how much magnetic field passes through a given surface. The angle ฮธ\theta is between Bโƒ—\vec{B} and the area normal (the vector perpendicular to the surface). Flux is maximized when the field is perpendicular to the surface (ฮธ=0ยฐ\theta = 0ยฐ, so cosโกฮธ=1\cos\theta = 1) and zero when the field runs parallel to the surface (ฮธ=90ยฐ\theta = 90ยฐ).

You need to understand flux before Faraday's Law makes sense, because flux is the quantity whose change drives induction.

Faraday's Law of Induction

E=โˆ’NdฮฆBdt\mathcal{E} = -N\frac{d\Phi_B}{dt}

The induced emf in a coil of NN turns equals the negative of the rate of change of magnetic flux through the coil. For a single loop, N=1N = 1.

There are three ways to change flux (and exam problems test all three):

  1. Change BB: increase or decrease the field strength
  2. Change AA: expand, shrink, or deform the loop area (e.g., a sliding rail on a track)
  3. Change ฮธ\theta: rotate the loop relative to the field (this is how generators work)

A rotating coil in a constant magnetic field continuously changes ฮธ\theta, producing a sinusoidal AC voltage.

Lenz's Law

The induced current flows in whatever direction creates a magnetic field that opposes the change in flux that caused it. If flux through a loop is increasing, the induced current produces a field opposing the increase. If flux is decreasing, the induced current tries to maintain it.

This is conservation of energy in disguise. If induced currents aided the flux change instead of opposing it, you'd get a runaway process that creates energy from nothing.

Mathematically, Lenz's Law is encoded in the negative sign in Faraday's Law. On problems, use Faraday's Law to find the emf magnitude, then use Lenz's Law to determine which way the current flows.

Compare: Faraday's Law vs. Lenz's Law. Faraday tells you the magnitude of induced emf. Lenz tells you the direction. On free-response questions, you'll often need both: calculate the emf with Faraday, then use Lenz to explain which way current flows.


Quick Reference Table

ConceptBest Examples
Field from steady currentLong straight wire, circular loop, solenoid
Symmetry-based calculationAmpรจre's Law (solenoids, toroids, infinite wires)
General field calculationBiot-Savart Law (any current geometry)
Force on moving chargesLorentz Force (circular motion, mass spectrometers)
Force on conductorsCurrent-carrying wire in field (motors)
Quantifying field through surfaceMagnetic flux
Induced voltageFaraday's Law (generators, transformers)
Direction of induced effectsLenz's Law (opposes change)

Self-Check Questions

  1. A long straight wire and a solenoid both carry the same current. How does the magnetic field's spatial dependence differ between them, and why does this difference arise from their geometries?

  2. You need to calculate the magnetic field around a current-carrying wire. Under what conditions would you choose Ampรจre's Law over the Biot-Savart Law, and what must be true about the field for Ampรจre's Law to be useful?

  3. Compare the Lorentz force on a single moving charge to the force on a current-carrying wire. How are the formulas related, and why does a magnetic force do no work on a free charge but can do work on a wire?

  4. A bar magnet approaches a conducting loop. Using both Faraday's Law and Lenz's Law, explain how to determine (a) whether an emf is induced, (b) its magnitude, and (c) the direction of the induced current.

  5. If you wanted to maximize the induced emf in a generator, which variables in Faraday's Law would you optimize, and what practical trade-offs might limit each approach?