Air Mass Calculator

Calculate the atmospheric air mass for a given altitude above the horizon using the Kasten-Young formula — useful for planning observations and imaging.

Air mass1.413
Zenith angle
45°

Air mass = 1.0 at the zenith. Higher values mean more atmosphere and dimming.

What the Air Mass Calculator Does

This air mass calculator estimates the atmospheric air mass an observer looks through when viewing an object at a given altitude or zenith angle. Air mass is a relative number: it equals 1.0 when an object sits directly overhead and grows as the object sinks toward the horizon.

It is built for amateur and professional astronomers, astrophotographers, and anyone planning observations or solar-energy estimates. Because more air mass means more atmospheric extinction (dimming, reddening, and blurring), the value tells you how much the atmosphere will degrade your view before you point a telescope or camera.

How Air Mass Works: The Formula

The simplest model treats the atmosphere as flat parallel layers. The air mass (X) is then the secant of the zenith angle (z), the angle measured from straight up:

X = 1 / cos(z) = sec(z)

The zenith angle relates to altitude (a, the angle above the horizon) by z = 90 deg - a. So at the zenith (a = 90 deg, z = 0 deg), X = 1. At a = 30 deg (z = 60 deg), X = 2.

Near the horizon the flat-layer formula overestimates badly because Earth is curved. The Kasten-Young (1989) formula corrects this:

X = 1 / [ cos(z) + 0.50572 x (96.07995 - z)^(-1.6364) ], with z in degrees.

Worked Example

Suppose a star is 25 deg above the horizon. The zenith angle is z = 90 - 25 = 65 deg.

Simple model: X = 1 / cos(65 deg) = 1 / 0.4226 = 2.37.

Kasten-Young model: cos(65 deg) = 0.4226, and 0.50572 x (96.07995 - 65)^(-1.6364) = 0.50572 x (31.08)^(-1.6364) approximately 0.00200, so X = 1 / (0.4226 + 0.00200) = 1 / 0.4246 = 2.36.

At this altitude the two methods nearly agree (about 2.36). Right at the horizon they diverge sharply: sec(z) blows up toward infinity, while Kasten-Young gives a realistic value near 38.

Why Air Mass Matters for Observation Planning

Extinction scales with air mass, so a target loses brightness roughly in proportion to how much atmosphere its light crosses. A typical clear-site extinction of about 0.2 magnitudes per air mass in visible light means an object near air mass 1 is dimmed about 0.2 mag, while at air mass 3 it loses roughly 0.6 mag.

Lower air mass also means steadier seeing, less atmospheric color dispersion, and sharper images. Schedule faint or detailed targets for when they transit highest in the sky to keep air mass close to 1.

Tips and Common Mistakes

Keep a few practical points in mind so your air mass numbers stay meaningful:

  • Don't trust sec(z) below about 10 deg altitude. Use the Kasten-Young result near the horizon, where the simple formula diverges.
  • Mind your input: enter altitude or zenith angle consistently. Mixing them up (using altitude where the formula expects zenith) flips the result.
  • Air mass below 1 is impossible at sea level; the minimum is 1.0 at the zenith. High-altitude sites have less air overall but the relative air mass formula is unchanged.
  • Extinction per air mass varies with wavelength, humidity, dust, and elevation, so use it as a planning guide, not an exact photometric correction.
  • For solar applications, air mass 1.5 (z about 48 deg) is the standard reference used to rate photovoltaic panels.