We can use Ampere's Law for this purpose. The formula for the magnetic field produced by a straight wire carrying current I at a distance r from the wire is:
$B = \frac{\mu_0 I}{2 \pi r}$
where $\mu_0$ is the permeability of free space, which is approximately
Show more…