A bar magnet of magnetic moment M is kept in a uniform magnetic field of strength B, making angle θ with its direction. The torque acting on it is
MB
MBcosθ
MB(1-cosθ)
MB sinθ
τ→=M×B=MBsinθ