← thecodex.expert
Simulations Hub Biot-Savart Law (Concept)
Overview Simulation The Physics Sources
Simulation · Electromagnetism

Magnetic Field Around a Wire

Reading time: 5 minConfidence: HighLast verified: July 2026

This simulation shows the circular magnetic field lines surrounding a straight current-carrying wire, viewed end-on, with adjustable current strength, direction, and a probe point letting you read off the field's magnitude at any distance from the wire.

Interactive simulation

Field at probe: — µT
Field direction: —

The physics behind this simulation

For an infinite straight wire, the Biot-Savart law gives a magnetic field magnitude that depends only on the current and the distance from the wire:

B = μ₀I/(2πr)

The field circles around the wire in closed loops, with direction given by the right-hand rule: point your right thumb in the direction of current flow, and your curled fingers show the direction the field circles — counterclockwise when viewed from the direction the current is flowing toward you (current "out of the page"), clockwise when the current flows away from you ("into the page").

Common mistakeThe magnetic field around a straight wire is not radial (pointing directly away from or toward the wire) — it's tangential, circling around the wire at a constant distance. This is a common point of confusion for students used to the radial electric field of a point charge.

Sources

  • Biot, J.B., Savart, F. (1820). Annales de Chimie et de Physique, 15, 222–223.
  • Griffiths, D.J. (2017). Introduction to Electrodynamics, 4th ed. Cambridge University Press, Ch. 5.
Last verified: July 2026 · Source: Biot & Savart (1820) · Confidence: high