Magnetic field due to current loops
The magnetic field at distance $z$ along the axis from the centre of a current loop with radius $a$ and current $I$ is $$ \begin{align*} B(z) = \frac{\mu_0 I a^2}{2(a^2+z^2)^{3/2}}. \end{align*} $$ (Derivation)
-
Helmholtz coils: to create almost uniform magnetic field, put two current loops with radius $R$ and the same current direction at a distance $R$ apart.
-
Maxwell coils: to createagnetic field with almost constant gradient, put two current loops with radius $R$ and the opposite current direction at a distance $\sqrt{3}R$ apart.