What is the Equation for Magnitude?

The equation that can give you either the absolute or apparent magnitude of an object is: absolute magnitude = apparent magnitude – 5log(distance) + 5. You can find more information here: