The magnetic moment is the magnetic strength and orientation of a magnet or other object that produces a magnetic field. Examples of objects that have magnetic moments include: loops of electric current (such as electromagnets), permanent magnets, elementary particles (such as electrons), various molecules, and many astronomical objects (such as many planets, some moons, stars, etc).
More precisely, the term magnetic moment normally refers to a system's magnetic dipole moment, the component of the magnetic moment that can be represented by an equivalent magnetic dipole: a magnetic north and south pole separated by a very small distance. The magnetic dipole component is sufficient for small enough magnets or for large enough distances. Higher-order terms (such as the magnetic quadrupole moment) may be needed in addition to the dipole moment for extended objects.
The magnetic dipole moment of an object is readily defined in terms of the torque that the object experiences in a given magnetic field. The same applied magnetic field creates larger torques on objects with larger magnetic moments. The strength (and direction) of this torque depends not only on the magnitude of the magnetic moment but also on its orientation relative to the direction of the magnetic field. The magnetic moment may be considered, therefore, to be a vector. The direction of the magnetic moment points from the south to north pole of the magnet (inside the magnet).
The magnetic field of a magnetic dipole is proportional to its magnetic dipole moment. The dipole component of an object's magnetic field is symmetric about the direction of its magnetic dipole moment, and decreases as the inverse cube of the distance from the object.