1. Home
  2. Class 11–12
  3. Physics
  4. CBSE Class 12
  5. Potential Energy of a Magnetic Dipole

Potential Energy of a Magnetic Dipole

Turn a bar magnet slowly round in a uniform field, watch its energy rise from −mB to +mB, find the work to turn it, then let it go and see the energy swap into motion.

Interactive 3DPhysicsAdvanced7 min read

Drag to rotate · Right-drag to pan · Click, then scroll to zoom · Space play · Left arrowRight arrow step

What's happening

Formula & steps

    Your progress and quiz scores are saved on this device, and in your account once you sign up.

    Try this in the 3D model

    • In Energy at every angle, at what angle is the energy zero, and why is that a sensible place to start from?
    • In Energy at every angle, why is 180° called unstable when the torque there is zero?
    • In The work to turn it, where does the energy go after you let the magnet go at 90°?

    Turning against the field

    A magnet in a uniform field feels a torque τ=mBsin⁡θ\tau = mB\sin\theta that tries to line it up with the field. To turn it the other way, you must push against that torque, and the work you do is stored as potential energy.

    Add up the work for each small turn dθd\theta:

    U(θ)=∫90°θmBsin⁡θ dθ=−mBcos⁡θU(\theta) = \int_{90°}^{\theta} mB\sin\theta\, d\theta = -mB\cos\theta

    We choose U = 0 at θ = 90°, where the magnet is across the field. In vector form:

    U=−m⃗⋅B⃗=−mBcos⁡θU = -\vec{m} \cdot \vec{B} = -mB\cos\theta

    Energy at every angle

    In the 3D model, choose Energy at every angle and press Play. A magnet of m=1.5m = 1.5 A m² is turned slowly round in a field of 0.2 T.

    angle θ U
    0° −0.3 J, the least
    60° −0.15 J
    90° 0
    120° +0.15 J
    180° +0.3 J, the most
    • At θ = 0° the energy is lowest, −mB-mB. Nudge the magnet and the torque pulls it back: stable equilibrium.
    • At θ = 180° the torque is zero too, but the energy is highest, +mB+mB. The slightest nudge and it swings right round: unstable equilibrium.

    The work to turn it

    Choose The work to turn it. Turning the magnet slowly from θ1\theta_{1} to θ2\theta_{2} takes work

    W=U(θ2)−U(θ1)=mB(cos⁡θ1−cos⁡θ2)W = U(\theta_{2}) - U(\theta_{1}) = mB\left(\cos\theta_{1} - \cos\theta_{2}\right)

    From 0° to 60°: W=0.3×(1−0.5)=0.15W = 0.3 \times (1 - 0.5) = 0.15 J. To 90°: 0.3 J. All the way to 180°: 2mB=0.62mB = 0.6 J.

    Now let the magnet go at 90°. The field swings it back: potential energy becomes kinetic energy, most at θ = 0°, and it swings on to the other side. Friction slowly takes the energy away, and it settles at 0°, the lowest energy. A compass needle does just this.

    Like an electric dipole

    This is the same as for an electric dipole in an electric field, U=−p⃗⋅E⃗U = -\vec{p} \cdot \vec{E}. Swap p for m and E for B.

    Worked example

    A magnet of moment 0.5 A m² is free to turn in a uniform field of 0.4 T. (a) Find its energy in the stable and unstable positions. (b) How much work is needed to turn it from the stable position to 120°?

    1. (a) Stable, θ = 0°: U=−mB=−0.5×0.4=U = -mB = -0.5 \times 0.4 = −0.2 J. Unstable, θ = 180°: +0.2 J.
    2. (b) W=mB(cos⁡0°−cos⁡120°)=0.2×(1+0.5)=W = mB(\cos 0° - \cos 120°) = 0.2 \times (1 + 0.5) = 0.3 J.

    Remember: U=−m⃗⋅B⃗=−mBcos⁡θU = -\vec{m} \cdot \vec{B} = -mB\cos\theta: least (stable) along the field, greatest (unstable) against it; turning from θ₁ to θ₂ takes W=mB(cos⁡θ1−cos⁡θ2)W = mB(\cos\theta_{1} - \cos\theta_{2}).

    Formulas and where to use them

    Potential energy

    U=−m⃗⋅B⃗=−mBcos⁡θU = -\vec{m} \cdot \vec{B} = -mB\cos\theta
    where
    mm
    magnetic dipole moment (A m²)
    BB
    uniform magnetic field (T)
    θ\theta
    angle between m and B

    Use it when: A magnet or current loop in a uniform field, with U = 0 taken at θ = 90°.

    Work to turn it

    W=mB(cos⁡θ1−cos⁡θ2)W = mB\left(\cos\theta_{1} - \cos\theta_{2}\right)
    where
    θ1, θ2\theta_{1},\ \theta_{2}
    starting and final angles

    Use it when: Turning a magnet slowly from one angle to another.

    Common mistakes

    • Dropping the minus sign. The energy is lowest, −mB, when the magnet points along the field.
    • Mixing up torque and energy. At 0° and 180° the torque is zero, but the energy is −mB at one and +mB at the other.
    • Using sin θ for the work. W comes from the change in cos θ.

    Quick check

    Test yourself — pick an answer to see if you got it.

    1. A magnet of moment 1.5 A m² lies along a field of 0.2 T. Its potential energy is…

    2. The potential energy of a magnet in a uniform field is greatest when it is…

    3. The work needed to turn that magnet from 0° to 180° is…

    4. Which position is stable?

    5. Turning a magnet from 0° to 60° in a field takes work equal to…

    Saved on this device.
    Spotted a mistake or a bug in the 3D model?

    Report a mistake

    in Potential Energy of a Magnetic Dipole. Thank you — every report makes the lesson better for the next reader.

    We'll also include a link to the step of the 3D model you're on and your browser type, so we can reproduce it.