Magnetics Calculators29 instruments

Field of a Straight Wire

Ampère’s law around a long conductor, compared with Earth’s field.

B=μ0I2πrB=\frac{\mu_0 I}{2\pi r}
Fig. 1 Cross-section of a long straight wire: field circles obey the right-hand rule
1 mm10 mm100 mm1 m10 mB = 100 µTI = 10 A ⊙ out of pageradial scale is logarithmic
Fig. 2 B vs. distance (log–log): slope −1
110010k110010kEarth ~50 µTdistance r (mm)B (µT)
B(r)
hover / touch plot to probe
Inputs drag, tap ± or type (SI suffixes ok: 4k7 → 4.7k)
A
mm
Current direction
Results
Flux density BB
100 µT
in gauss
1 G
Field strength HH
79.58 A/m
vs. Earth field (~50 µT)
2 ×
Compass disturbance range
40 mmdistance where B equals Earth field
Field direction
counter-clockwise

§ How it works

Ampère's circuital law states that the line integral of HH around any closed loop equals the enclosed current. Around a circle of radius rr centred on an infinitely long wire, symmetry makes HH constant and tangential:

∮H⋅dℓ=H 2πr=I⇒B=μ0H=μ0I2πr\oint \mathbf H\cdot d\boldsymbol\ell = H\,2\pi r = I \quad\Rightarrow\quad B = \mu_0 H = \frac{\mu_0 I}{2\pi r}

The field forms concentric circles. Point your right thumb along the current and your fingers curl in the direction of B\mathbf B. The field falls as 1/r1/r, a straight line of slope −1 on the log–log plot. Compare with a dipole (magnet, loop), which decays as 1/r31/r^3.

Handy rule: 1 A at 1 cm gives 20 µT, roughly half of Earth's field. That's why cables carrying DC near a compass or a magnetometer matter, and why supply and return conductors are twisted together, so their fields cancel at a distance.