Dear Student , The magnetic moment of a bar magnet is the product of the pole strength and the distance between the poles.i. e. magnetic moment M=q×l
Regards
The direction of magnetic moment for a bar magnet is:
Define magnetic dipole moment of a current loop