The AB magnitude system is an astronomical magnitude system. Unlike many other magnitude systems, it is based on flux measurements that are calibrated in absolute units, namely spectral flux densities.
The monochromatic AB magnitude is defined as the logarithm of a spectral flux density with the usual scaling of astronomical magnitudes and a zero-point of 3631 Jansky, where 1 Jansky = 1 Jy = 10−26 W Hz−1 m−2 = 10−23 erg s−1 Hz−1 cm−2. If the spectral flux density is denoted fν, the monochromatic AB magnitude is:
In cgs units of erg s−1 cm−2 Hz−1, it is:
Actual measurements are always made across some continuous range of wavelengths. The bandpass AB magnitude is defined so that the zero point corresponds to a bandpass-averaged spectral flux density of 3631 Jansky:
where e(ν) is the "equal-energy" filter response function and the (hν)−1 term assumes that the detector is a photon-counting device such as a CCD or photomultiplier. (Filter responses are sometimes expressed as quantum efficiencies, that is, in terms of their response per photon, rather than per unit energy. In those cases the (hν)−1 term has been folded into the definition of e(ν) and should not be included.)
The STMAG system is similarly defined, but for constant flux per unit wavelength interval instead.
Expression in terms of fλ
In some fields, spectral flux densities are expressed per unit wavelength, fλ, rather than per unit frequency, fν. At any specific wavelength,
where fν is measured per frequency (e.g., Hertz), and fλ is measured per wavelength (e.g., cm). If the wavelength unit is Ångstrom,
This can then be plugged into the equations above.
The “pivot wavelength” of a given bandpass is the value of λ that makes the above conversion exact for observations made in that bandpass. For an equal-energy response function as defined above, it is 
For a response function expressed in the quantum-efficiency convention, it is:
Conversion from other magnitude systems
Magnitudes in the AB system can be converted to other systems. However, because all magnitude systems involve integration of some assumed source spectrum over some assumed passband, such conversions are not necessarily trivial to calculate, and precise conversions depend on the actual spectrum of the source in question. Various authors have computed conversions for standard situations.
- Oke, J. B. (1983). "Secondary standard stars for absolute spectrophotometry". The Astrophysical Journal. 266: 713–717. Bibcode:1983ApJ...266..713O. doi:10.1086/160817.
- Tonry, J. L. (2012). "The Pan-STARRS1 Photometric System". The Astrophysical Journal. 750: 99. arXiv: . Bibcode:2012ApJ...750...99T. doi:10.1088/0004-637X/750/2/99.
- Oke, J. B. (1974). "Absolute spectral energy distributions for white dwarfs". Astrophysical Journal Supplement Series. 236 (27): 21–25. Bibcode:1974ApJS...27...21O. doi:10.1086/190287.
- Tokunaga, A. T.; Vacca (April 2005). "The Mauna Kea Observatories Near‐Infrared Filter Set. III. Isophotal Wavelengths and Absolute Calibration". Publications of the Astronomical Society of the Pacific. 117 (830): 421–426. arXiv: . Bibcode:2005PASP..117..421T. doi:10.1086/429382. Retrieved 25 February 2014.
- Blanton, M. R. (2007). "K-Corrections and Filter Transformations in the Ultraviolet, Optical, and Near-Infrared". The Astronomical Journal. 133 (2): 734–754. arXiv: . Bibcode:2007AJ....133..734B. doi:10.1086/510127.