• Foundation
  • About 20 min
  • 5 practice questions

Magnetic dipole in a uniform field and the electrostatic analogy

Find the torque τ = m × B and potential energy U = −m · B of a magnetic dipole in a uniform field, and use the analogy with the electric dipole to write the axial and equatorial fields of a short bar magnet.

If something looks wrong, please tell us.

By the end of this lesson you can

  • Write the torque on a magnetic dipole in a uniform field and explain why there is no net force.
  • Derive U = −mB cos θ and find work done in rotating a magnet.
  • Identify stable and unstable equilibrium.
  • Use the electric-magnetic dipole analogy to find axial and equatorial fields of a short magnet.

Hang a compass needle in a magnetic field and it swings round to point along the field. The physics is the same as for an electric dipole in an electric field or a current loop in a magnetic field, so we can borrow results directly.

Torque and potential energy

A small magnetised needle of magnetic moment m in a uniform field B feels no net force (its two ends are pulled equally and oppositely) but feels a torque:

τ = m × B, |τ| = mB sin θ, where θ is the angle between m and B. The torque tends to turn m into line with B.

To rotate the needle slowly against this torque, work must be done, which is stored as magnetic potential energy. Integrating the torque, U = ∫ mB sin θ dθ = −mB cos θ. Choosing the zero of energy at θ = 90° (needle perpendicular to the field):

U = −m · B = −mB cos θ. Work to turn the magnet from θ₁ to θ₂: W = mB (cos θ₁ − cos θ₂).

A magnet in a uniform field
Angle θTorque mB sin θEnergy −mB cos θEquilibrium
0° (along B)0−mB (minimum)Stable
90°mB (maximum)0Not in equilibrium
180° (against B)0+mB (maximum)Unstable

A magnetised needle in a uniform field feels only a torque. An iron nail near a bar magnet, however, is also pulled towards it. The magnet's field is non-uniform; it induces a magnetic moment in the nail, with the induced pole of opposite kind nearer to the magnet, where the field is stronger. So the nail feels a net attraction as well as a torque.

Worked example 1: torque and energy

A bar magnet with m = 0.6 A m² is placed in a uniform field of 0.2 T, so mB = 0.12 J.

  1. At θ = 60°: τ = mB sin 60° = 0.12 × 0.866 ≈ 0.10 N m.
  2. Energy along the field: U = −0.12 J; against the field: U = +0.12 J.
  3. Work to turn it from along the field to perpendicular: W = mB (cos 0° − cos 90°) = 0.12 J.
  4. Work to turn it from along the field to opposite: W = mB (1 − (−1)) = 2mB = 0.24 J.

The electrostatic analogy

Comparing the formulas for a magnetic dipole with those for an electric dipole, every magnetic result follows from the electric one by the replacements E → B, p → m and 1/(4πε₀) → μ₀/4π.

The dipole analogy
QuantityElectric dipoleMagnetic dipole (short magnet)
Constant1/ε₀μ₀
Dipole momentpm
Axial field (r ≫ l)2p/(4πε₀r³)μ₀ 2m/(4πr³)
Equatorial field (r ≫ l)−p/(4πε₀r³)−μ₀ m/(4πr³)
Torque in a uniform fieldp × Em × B
Energy in a uniform field−p · E−m · B

Short bar magnet, distance r ≫ its size: B_axial = (μ₀/4π)(2m/r³) along m; B_equatorial = (μ₀/4π)(m/r³) opposite to m.

Using the analogy

  1. Start from the electric-dipole result For example, axial field 2p/(4πε₀r³).
  2. Replace p by m The dipole moment of the magnet.
  3. Replace 1/(4πε₀) by μ₀/4π That is, by 10⁻⁷ T m A⁻¹.
  4. Read off the magnetic result Axial field μ₀2m/(4πr³).

Worked example 2: fields of a short magnet

A short magnet has m = 0.4 A m². At 20 cm on its axis: B = 10⁻⁷ × 2 × 0.4 ÷ (0.2)³ = 8 × 10⁻⁸ ÷ 0.008 = 1 × 10⁻⁵ T, along m. At 20 cm on its equatorial line (normal bisector): B = 10⁻⁷ × 0.4 ÷ 0.008 = 5 × 10⁻⁶ T, opposite to m. As for the electric dipole, the axial field is twice the equatorial field at the same distance.

Worked example 3: two needles in equilibrium

Needle Q sits in the field of needle P. Q is in equilibrium only if its moment is parallel or antiparallel to P's field at Q. On P's axis, P's field points along m_P, so Q is in stable equilibrium when it points the same way as P and in unstable equilibrium when it points the opposite way. On P's equatorial line the field points opposite to m_P, so there the stable orientation of Q is antiparallel to P. Of all these, the lowest energy (−m_Q B) occurs where B is largest - on the axis, where the field is twice the equatorial value at the same distance.

Key takeaways

  • Uniform field: no net force; τ = m × B; U = −m · B (zero at 90°).
  • Stable equilibrium along B (U = −mB); unstable against B (U = +mB).
  • Short magnet: axial (μ₀/4π)(2m/r³), equatorial (μ₀/4π)(m/r³), from the electric-dipole formulas with p → m and 1/ε₀ → μ₀.

Check your understanding

  1. 1. A short magnet placed at 30° to a uniform field of 0.3 T feels a torque of 0.06 N m. What is its magnetic moment?

    1. 0.2 A m²
    2. 0.4 A m²
    3. 0.1 A m²
    4. 0.8 A m²
    Show answer

    Answer: B. m = τ/(B sin θ) = 0.06 ÷ (0.3 × 0.5) = 0.06 ÷ 0.15 = 0.4 A m².

  2. 2. A magnet of moment 0.5 A m² is in a field of 0.4 T. What is its potential energy when it points opposite to the field?

    1. +0.2 J
    2. −0.2 J
    3. Zero
    4. +0.4 J
    Show answer

    Answer: A. U = −mB cos 180° = +mB = 0.5 × 0.4 = +0.2 J, the maximum, corresponding to unstable equilibrium.

  3. 3. A magnet with mB = 0.3 J is turned from alignment with the field to a position perpendicular to it. How much work is done by the external agent?

    1. 0.6 J
    2. 0.15 J
    3. Zero
    4. 0.3 J
    Show answer

    Answer: D. W = mB (cos 0° − cos 90°) = 0.3 × (1 − 0) = 0.3 J.

  4. 4. A short magnet of moment 0.25 A m². What field does it produce 10 cm from its centre on the equatorial line?

    1. 2.5 × 10⁻⁵ T
    2. 5 × 10⁻⁵ T
    3. 2.5 × 10⁻⁷ T
    4. 1.25 × 10⁻⁵ T
    Show answer

    Answer: A. B_eq = (μ₀/4π)(m/r³) = 10⁻⁷ × 0.25 ÷ (0.1)³ = 2.5 × 10⁻⁸ ÷ 10⁻³ = 2.5 × 10⁻⁵ T, directed opposite to m.

  5. 5. Assertion (A): An iron nail near a bar magnet is attracted towards the magnet. Reason (R): A magnetic dipole in a uniform magnetic field experiences no net force.

    1. Both A and R are true, and R is the correct explanation of A
    2. Both A and R are true, but R is not the correct explanation of A
    3. A is true, but R is false
    4. A is false, but R is true
    Show answer

    Answer: B. Both statements are true, but R does not explain A. The nail is attracted because the magnet's field is non-uniform: it induces a moment in the nail, and the nearer induced pole is in the stronger field, giving a net pull. R is about uniform fields.

Sign in to keep track of the lessons you finish.

Next lesson → Gauss's law for magnetism

Privacy · Terms · Refunds · Delivery