Magnetic Field Wire Calculator

Magnetic Field of a Wire

Calculate the magnetic field strength (B) at a distance from a straight current-carrying wire.

Last updated: March 2026 | By ForgeCalc Engineering

Magnetic Field (B)
4.0000e-5
Tesla (T)

Ampère's Law

Ampère's Law states that for any closed loop path, the sum of the length elements times the magnetic field in the direction of the length element is equal to the permeability times the electric current enclosed in the loop.

For a long, straight wire, this simplifies to a formula where the magnetic field strength decreases linearly with the distance from the wire. The field lines form concentric circles around the wire.

The Formula

B = (μ₀ * I) / (2π * r)
  • B = Magnetic field (T)
  • μ₀ = Permeability of free space (4π × 10⁻⁷ T·m/A)
  • I = Current (A)
  • r = Distance from wire (m)

Related Tools