Photometry & Magnitudes

Flux Density & Magnitude Conversion Workbench

Convert both ways using an explicit AB, ST or entered zero-point convention, with correct frequency/wavelength density units and nonpositive-flux handling.

Astronomy & Space · model workbench

Choose the spectral-density and zero-point convention before taking a logarithm.

Private calculations in your browser · explicit inputs and model boundaries
Example preview · One millijansky in ABThe selected zero point anchors the magnitude scale
-19.7-7.87-9.84-3.94009.843.9419.77.87Converted measurement: -6.56002625, 16.4000656log10(flux / zero density)Magnitude (mag)

At the zero density, magnitude is zero. Each tenfold density increase lowers magnitude by 2.5; the density unit and spectral convention are retained in the results.

  1. 1EnterProvide the known values
  2. 2CalculateResults update automatically
  3. 3VerifyReview the details and units
Try an example

Name the passband and magnitude system, or explicitly state bolometric. Quantities being compared must share the stated convention.

Signed background-subtracted measurements are retained, but zero and negative values have no finite ordinary logarithmic magnitude.

Calculation result

Enter valid values to see the result.

Your entries are calculated in this browser and are not submitted to 365CALCS.COM.

Feedback

Understand the relationship

The reasoning behind the result

Magnitude compares a density with a stated zero point

m=−2.5 log₁₀(f/f0)

Both f and f0 must use the same spectral-density definition and unit. Their ratio is dimensionless. A factor of ten less density adds 2.5 magnitudes, while a zero magnitude simply means the density equals its reference.

The AB option deliberately uses the common 3,631-Jy reference. The also common formula with an exact additive constant of 48.60 in cgs implies about 3,630.780548 Jy instead; the two differ by roughly 0.0000656 mag. This workbench does not silently mix them.

ST is constant per wavelength, AB per frequency

mST=−2.5 log₁₀(fλ in erg/s/cm²/Å)−21.10

The ST convention uses a zero density of 10^(−21.10/2.5), about 3.630780548×10⁻⁹ erg/s/cm²/Å. A constant density per wavelength is not a constant density per frequency.

An entered custom zero point is interpreted as the density for magnitude zero in the exact selected unit and band. This supports an externally supplied calibration, but it is not a universal Vega conversion. A Vega-based broad-band reference depends on the passband and adopted spectrum.

The spectral Jacobian includes wavelength squared

fλ=fν |dν/dλ|=fν c/λ²

Frequency is ν=c/λ. Equal energy in a small spectral interval means fν dν and fλ dλ have matching magnitudes, producing the c/λ² conversion. The wavelength must first be in metres when using SI c.

Per-ångström and per-nanometre units require their own length factors: one erg/s/cm²/Å is 10⁷ W/m²/m, while one W/m²/nm is 10⁹ W/m²/m. For compatible band-averaged densities the appropriate pivot wavelength is needed; a guessed central wavelength does not reproduce arbitrary passband integration.

A signed measurement can exist without a logarithmic magnitude

Background subtraction can yield zero or negative estimated flux. Those are valid signed measurements to retain, but the ordinary logarithm has no finite magnitude for them. The tool labels that state and does not clamp the flux, invent a pseudocount or claim a nondetection limit.

Asinh magnitudes and statistical upper limits require additional conventions or uncertainty data and are not computed here. Large finite magnitudes are calculated in log space; if the inverse density cannot be represented in the chosen unit, an explicit numerical-range error is returned.

Follow the numbers

AB magnitude 20 in microjansky

  1. Use the declared AB zero point f0=3,631 Jy=3.631×10⁹ µJy.
  2. For m=20, the density ratio is 10^(−0.4×20)=10⁻⁸.
  3. The density is 3.631×10⁹×10⁻⁸=36.31 µJy, equivalent to 3.631×10⁻³¹ W/m²/Hz.

The unit changes the density number, while the physical density and magnitude remain the same.

Quick guide

How to use this calculator

  1. Select forward or inverse conversion, and identify the band and system.
  2. Choose per-frequency or per-wavelength density and its exact unit.
  3. When crossing spectral forms, supply the monochromatic wavelength or the appropriate filter pivot wavelength.
  4. Inspect the actual zero density and the signed measured value. A nonpositive measurement is not replaced by a limit.

Calculation method

Calculation and interpretation

Choose the spectral-density and zero-point convention before taking a logarithm.

m=−2.5 log₁₀(f/f0); f=f0·10^(−0.4m); fλ(per metre)=fν·c/λ²; 1 Jy=10⁻²⁶ W/m²/Hz.

Worked example

AB magnitude 20 in microjansky

The unit changes the density number, while the physical density and magnitude remain the same.

m=−2.5 log₁₀(f/f0); f=f0·10^(−0.4m); fλ(per metre)=fν·c/λ²; 1 Jy=10⁻²⁶ W/m²/Hz.

Supported inputs

Precision and limits

No spectrum integration

This converts compatible spectral densities. It does not integrate a source spectrum through a response curve or infer a passband's pivot wavelength.

Calibration remains explicit

Catalog-specific offsets, extinction, detector response, color transformations and uncertainty limits are not automatically applied.

Continue calculating

Related calculators