<Dd> F is force (SI unit: newton) </Dd> <Dd> q and q are the magnitudes of magnetic poles (SI unit: ampere - meter) </Dd> <Dd> μ is the permeability of the intervening medium (SI unit: tesla meter per ampere, henry per meter or newton per ampere squared) </Dd> <Dd> r is the separation (SI unit: meter). </Dd>

What do you mean by torque due to alignment of two magnets