Magnetic Field Calculator (Biot–Savart & Ampère)

Magnetic flux density of a long wire, circular loop, solenoid or toroid.

Results

Flux density B—
Flux density B—
Flux density B—
Field strength H—

How to use the Magnetic Field Calculator

  1. Enter or select: Source, Current I, Distance / radius r, Axial distance x, Number of turns N, Solenoid length ℓ.
  2. The results (Flux density B, Field strength H) are calculated instantly as you type.
  3. Use “Copy link” to share the calculation with the same input values.

Formula

  • Wire: B = μ₀I/(2πr)
  • Loop centre: B = μ₀NI/(2r)
  • Loop axis: B = μ₀NIr²/(2(r² + x²)^(3/2))
  • Solenoid: B = μ₀NI/ℓ
  • Toroid: B = μ₀NI/(2πr)
ExpressionApply operationsCalculated result