Theory: Magnetic Dipole Moment and Dipole Fields
A small current loop behaves like a magnetic dipole. Its dipole moment vector points along the loop’s normal
(right-hand rule: curl fingers with the current; thumb gives the direction of the normal).
1) Dipole moment of a current loop
For a loop carrying current \(I\) with area \(A\), the dipole moment is
\[
\boldsymbol{\mu} = I\,A\,\hat{\mathbf{n}},
\]
where \( \hat{\mathbf{n}} \) is the unit normal to the loop. Units: \( \mathrm{A\cdot m^2} \).
2) Torque and potential energy in an external field
In an external magnetic field \( \mathbf{B}_{ext} \), the dipole experiences a torque
\[
\boldsymbol{\tau}=\boldsymbol{\mu}\times\mathbf{B}_{ext},
\]
tending to align \( \boldsymbol{\mu} \) with \( \mathbf{B}_{ext} \). The potential energy is
\[
U=-\boldsymbol{\mu}\cdot\mathbf{B}_{ext}=-|\boldsymbol{\mu}|\,|\mathbf{B}_{ext}|\cos\theta,
\]
where \(\theta\) is the angle between \( \boldsymbol{\mu} \) and \( \mathbf{B}_{ext} \).
3) Far-field dipole magnetic field
At observation point \( \mathbf{r} \) (measured from the dipole), the ideal dipole field is
\[
\mathbf{B}_{dip}(\mathbf{r})
=\frac{\mu_0}{4\pi r^3}\left(3(\boldsymbol{\mu}\cdot\hat{\mathbf{r}})\hat{\mathbf{r}}-\boldsymbol{\mu}\right),
\qquad
\hat{\mathbf{r}}=\frac{\mathbf{r}}{r}.
\]
This is a far-field approximation (best when \(r\) is much larger than the loop size).
The constant is \( \mu_0 = 4\pi\times 10^{-7}\ \mathrm{T\cdot m/A} \).
Useful special cases (dipole aligned with the observation axis)
-
Axial line (\(\mathbf{r}\) along \(\boldsymbol{\mu}\)):
\[
|\mathbf{B}|=\frac{\mu_0}{4\pi}\frac{2|\boldsymbol{\mu}|}{r^3}.
\]
-
Equatorial plane (\(\mathbf{r}\perp \boldsymbol{\mu}\)):
\[
|\mathbf{B}|=\frac{\mu_0}{4\pi}\frac{|\boldsymbol{\mu}|}{r^3}.
\]
What the calculator visualizes
- \(\boldsymbol{\mu}\), \(\mathbf{B}_{ext}\), and \(\boldsymbol{\tau}\) vectors (direction-focused)
- Observation vector \(\mathbf{r}\) and the far-field \(\mathbf{B}_{dip}(\mathbf{r})\)
- A schematic dipole field-line pattern in a plane containing \(\boldsymbol{\mu}\)
- A compass needle animation that rotates toward the projected \(\mathbf{B}_{ext}\)