§ How it works
Ampère's circuital law states that the line integral of around any closed loop equals the enclosed current. Around a circle of radius centred on an infinitely long wire, symmetry makes constant and tangential:
The field forms concentric circles. Point your right thumb along the current and your fingers curl in the direction of . The field falls as , a straight line of slope −1 on the log–log plot. Compare with a dipole (magnet, loop), which decays as .
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.