Solve absolute magnitude, apparent magnitude, or stellar distance with extinction, parsec, light-year, and parallax support plus luminosity comparison.
Related Calculators
- Distance Modulus Calculator
- Parallax Angle Calculator
- Luminosity Radius Temperature Calculator
- Solar Mass Calculator
- Arc Seconds Per Pixel Calculator
- All Physics Calculators
Absolute Magnitude Formula
The calculator uses three formulas, one per mode.
Absolute mode solves for absolute magnitude from apparent magnitude and distance:
Apparent mode rearranges the same distance modulus to solve for apparent magnitude:
Distance mode solves d = 10^((m - M - A + 5)/5) parsecs. Every mode also reports the visual-band luminosity ratio against the Sun:
- M = absolute magnitude in the same photometric band as m; the solar comparison assumes the visual band
- m = apparent magnitude as seen from Earth
- d = distance to the object in parsecs
- Msun = absolute magnitude of the Sun, fixed at 4.83
- A = extinction in magnitudes in that same band; blank means zero
Assumptions: distances are converted to parsecs internally. Light-years use 1 pc = 3.261563777 ly. For reference, parallax in arcseconds gives d = 1/p; this calculator accepts milliarcseconds and uses d = 1000/p. The optional extinction A is included in all three solves. Set it to zero only when that approximation is appropriate. Use matching bands for m, M and A. The positive-parallax inverse is a simple estimate; uncertain or non-positive parallaxes require a distance model.
The Absolute mode takes what you measure (m) and how far the object is, and returns the intrinsic brightness M. The Apparent mode does the reverse: given the intrinsic M and a distance, it predicts how bright the object will look. The Distance mode solves the extinction-corrected distance modulus. The visual-band ratio uses M☉ ≈ 4.83; it is not total bolometric luminosity and is not converted to watts.
Reference Tables
Assigned illustrative visual magnitudes for checking the formula; these rows are not current catalog measurements:
| Illustrative input | Absolute Magnitude (M) | Visual ratio to Sun |
|---|---|---|
| Sun | +4.83 | 1 |
| Example A | +1.42 | ~23 |
| Example B | +0.58 | ~50 |
| Example C | −5.85 | ~18,707 |
| Example D | −7.84 | ~116,950 |
| Example E | +15.60 | ~0.0000492 |
| Example F | −19.3 | ~4.49 × 10^9 |
Distance modulus (m − M) for common distances:
| Distance | In parsecs | m − M |
|---|---|---|
| 10 pc (reference) | 10 | 0.00 |
| 100 pc | 100 | 5.00 |
| 1 kpc | 1,000 | 10.00 |
| Galactic center | ~8,200 | ~14.57 |
| LMC | ~50,000 | ~18.49 |
| Andromeda (M31) | ~7.78 × 10^5 | ~24.45 |
Worked Examples and FAQ
Example 1: Find a star’s absolute magnitude. Suppose a star has m = −1.46, distance 2.64 pc and A = 0. Plug into M = m − 5·log10(d) + 5:
M = −1.46 − 5·log10(2.64) + 5 = −1.46 − 2.107 + 5 = +1.43. The value follows from the stated example inputs.
Example 2: Predict the apparent magnitude of the Sun from 10 pc. By definition, m = M = +4.83. From 10 pc the Sun would be a faint naked-eye star.
Example 3: Convert M = +4.83 to luminosity. L/Lsun = 10^((4.83 − 4.83)/2.5) = 10^0 = 1. This means one solar visual-band luminosity, not a bolometric power estimate.
Example 4: A star has absolute magnitude −2.0. How does it compare to the Sun? L/Lsun = 10^((4.83 − (−2.0))/2.5) = 10^2.732 ≈ 540. The star is roughly 540 times as luminous in the visual band as the Sun, assuming matching visual magnitudes.
Why is 10 parsecs the reference distance? It is a convention. Placing every object at 10 pc removes distance from the comparison, so two stars with the same M put out the same visible-light power.
What if I only have parallax? Select Parallax (mas) in the unit dropdown. Distance in parsecs equals 1 divided by parallax in arcseconds, or 1000 divided by parallax in milliarcseconds. Gaia data is usually in mas.
Why do extinction and reddening matter? Dust between you and the star absorbs and scatters light, making m larger (fainter) than it would otherwise be. If you ignore extinction, the M you compute will be too faint. Subtract the extinction A from m before using the formula when accuracy matters.
Is this visual or bolometric magnitude? The calculator uses the standard visual-band convention with Msun = 4.83. For bolometric work, use Mbol,sun = 4.74 and apply a bolometric correction to the star's M.
Can I use this for galaxies or quasars? Yes for nearby galaxies where Euclidean distance applies. For high-redshift sources you need the distance modulus based on luminosity distance, which includes cosmological terms not handled here.
