Magnetic Field Wire

Enter current and distance to compute the magnetic flux density around a straight wire via B = μ₀I / 2πr.

Input Values

A

Amperes — direction does not affect field magnitude.

Perpendicular distance from the wire center.

Formula

B = μ₀ · I / (2π · r)

μ₀ = 4π × 10⁻⁷ T·m/A

Results

Enter current and distance, then click Calculate.

Copied!

Summary

Enter current and distance to compute the magnetic flux density around a straight wire via B = μ₀I / 2πr.

How it works

  1. Enter the current (I) flowing through the wire in amperes.
  2. Enter the perpendicular distance (r) from the wire's center in meters or centimeters.
  3. The calculator applies B = μ₀I / 2πr, where μ₀ = 4π × 10⁻⁷ T·m/A.
  4. Results are displayed in Tesla, millitesla, and Gauss.
  5. Use the unit toggles to enter distance in meters or centimeters.

Use cases

  • Physics homework involving Ampere's law problems.
  • Estimating EMF exposure near high-current power cables.
  • Engineering checks when routing PCB traces near current-carrying conductors.
  • Lab prep for verifying measured magnetic fields with a Hall probe.
  • Teaching demonstrations of the inverse-distance relationship of B.

Frequently Asked Questions

Last updated: 2026-06-11 · Reviewed by Nham Vu