The guide
The secant says a star at the horizon crosses infinite air, and the sky says about 38 times the zenith
Why starlight dims toward the horizon, where the simple secant fails, what curvature and refraction do to the number, and how astronomers turn air mass into a correction.
- 28.654 secant at 88 degrees, against 19.433 by Kasten and Young
- 38.88 horizon air mass of a homogeneous atmosphere of 8435 m
- 11.13 peak of the Young and Irvine formula, at 86.6 degrees
- 0.399 mag dimming at 60 degrees for 0.20 magnitudes per air mass
- 1.4659 air mass at an altitude of 42.946 degrees
Read the full guide Fold the guide
A star straight overhead shines through one thickness of atmosphere. The same star seen low in the west shines through far more, and it looks dimmer and redder for it. Astronomers put a number on that thickness, the air mass, and then argue about how to compute it near the horizon, where every simple formula is tested and most of them break.
What the number means
Air mass is the amount of air along the line of sight, written as the integral of air density along the light ray. The relative air mass is the ratio of that amount at some angle to the amount straight up. By definition it is 1 at the zenith, the point directly overhead, and it grows as the star moves toward the horizon.
Angles come in two flavours. The zenith angle is measured from straight up, and the altitude is measured up from the horizon, so the altitude is 90 degrees minus the zenith angle. Most trouble with air-mass formulas starts when the wrong one is used.
Light is weakened by scattering and absorption on the way, a process the Beer-Lambert law describes as exponential attenuation with distance. More air along the path means more dimming, which is why a body near the horizon looks fainter than the same body near the zenith.
The secant, and where it fails
Treat the atmosphere as a flat slab of constant density and the path grows as the secant of the zenith angle. At 60 degrees from the zenith that gives exactly 2. At 75 degrees it gives 3.864. For moderate angles it is a fine approximation.
It fails because the Earth is round. The secant becomes infinite at the horizon, while a real horizon path is long but finite, at most about 40 times the zenith path. The source puts the useful limit of the secant at roughly 60 to 75 degrees, depending on how much error you can stand.
The slip that goes with it is to take the secant of the altitude instead of the zenith angle. For a star 60 degrees from the zenith, the altitude is 30 degrees, and the secant of 30 degrees is 1.1547, not 2. Handing degrees to a function that wants radians is worse: the cosine of 60 radians is negative, and the answer comes out as minus 1.0500.
Formulas fitted to the real sky
Many authors have fitted formulas to tables of air mass. Young and Irvine in 1967 added a small correction to the secant. It works to about 80 degrees, climbs to a maximum of 11.13 at 86.6 degrees, falls to zero near 88 degrees and heads for minus infinity at the horizon. Past its range it is not a rough answer. It is not an air mass at all.
Hardie in 1962 used a polynomial in the secant minus one, usable to perhaps 85 degrees. Rozenberg in 1966 and Kasten and Young in 1989 are written in the cosine and stay sensible all the way to 90 degrees, with horizon values of 40 and about 38. Young in 1994 and Pickering in 2002 are also good to the horizon.
Compare them at 88 degrees from the zenith. The secant says 28.654. Rozenberg gives 19.257 and Kasten and Young 19.433. Hardie, past its range, gives 9.311. At 85 degrees the secant is 11.474 against 10.306 for Kasten and Young. The disagreement is small at 60 degrees and enormous at 88, which is where the formulas earn or lose trust.
Refraction and the two kinds of zenith angle
The air bends starlight, so a body appears higher than it truly is. At the horizon the shift is about 35 arc minutes, slightly more than the Sun’s apparent diameter. Most air-mass formulas use the apparent zenith angle, the one you measure. A few, including the Young and Irvine and Young 1994 formulas, use the true angle.
Feed a true-angle formula an apparent angle, or the reverse, and the error is small at high altitude and large near the horizon. A calculator that applies no refraction should say so, and show which kind of angle each formula wants. Sailors avoid the problem by not shooting stars below 20 degrees above the horizon.
A round atmosphere of one height
A cleaner model treats the atmosphere as a shell of uniform density and height y over an Earth of radius R. A ray at zenith angle z crosses a path whose length follows from the geometry of a line and a sphere. Divide by the height and the relative air mass appears.
The height can come from physics. A homogeneous atmosphere has height k times T0 over m times g, with the Boltzmann constant k, a sea-level temperature of 288.15 K, the mass of an air molecule and the gravitational acceleration. With the NIST value of k that is about 8435 m. The horizon air mass of that model is the square root of 1 plus 2R over y, which is 38.88 for a mean Earth radius of 6371 km.
The model slightly understates how fast air mass rises near the horizon. Choose the height so the model matches a published value, 19.787 at 88 degrees, and R over y is 631.01, the height about 10,096 m and the horizon value 35.54. The same model then gives 1.9953 at 60 degrees, close to the secant’s 2.
From air mass to a correction
Astronomers measure the dimming in magnitudes. The scale is logarithmic: one magnitude is a factor of about 2.512 in brightness, and five magnitudes is a factor of 100. An extinction coefficient states how many magnitudes the sky removes per air mass.
Take 0.20 magnitudes per air mass as an example, not as a measurement. At the zenith the dimming is 0.200 magnitudes. At 60 degrees from the zenith, with an air mass near 2, it is 0.399 magnitudes, which makes the star about 31 percent fainter than it would be overhead. The extinction page describes the usual approach: multiply the extinction curve by the mean air mass over the observation.
You do not always start from an angle. From a latitude, a declination and an hour angle, the altitude follows from the sine rule of spherical astronomy. At latitude 51.5 degrees, declination 20 degrees and an hour angle of 45 degrees the altitude is 42.946 degrees, the zenith angle 47.054 and the Kasten and Young air mass 1.4659.
A worked pass shows how the pieces fit. Start from a star at 60 degrees from the zenith, so the altitude is 30 degrees. The secant gives 2.000 and Kasten and Young give 1.994, a difference of 0.006 air masses, which is 0.001 magnitudes at 0.20 per air mass. Nobody could see that. Move the same star to 88 degrees and the formulas split by more than 9 air masses, which at the same coefficient is a difference of 1.8 magnitudes. The choice of formula matters only near the horizon, and that is exactly where observers are most tempted to trust a bad one.
The practical rule that follows is simple. Pick a formula whose stated range covers your angle, note whether it wants the true or the apparent zenith angle, and keep observations away from the last few degrees above the horizon when you can.
What the number leaves out
The relative air mass is a geometric ratio under simple assumptions. It does not include the observer’s height, which can push the value below 1 on a mountain, and most closed-form formulas leave that out. Real air thins with height, so a real profile changes the horizon value.
It carries no information about what is in the air. Scattering and absorption by dust, water and gases set the extinction coefficient, and that coefficient changes with colour, place and night. A fixed 0.20 stands in for a number you must measure.
The arithmetic has a practical edge too. A browser formats numbers by its own rules, as the Intl.NumberFormat reference describes, and the digits on screen are a display choice. A long sweep of random angles is best run in a background worker, as the Web Workers reference describes, so the page stays responsive while it runs.
Sources
Every source consulted for this guide. Links checked November 12, 2026.
- Air mass (astronomy) Wikipedia
- Extinction (astronomy) Wikipedia
- Atmospheric refraction Wikipedia
- Beer-Lambert law Wikipedia
- Magnitude (astronomy) Wikipedia
- Zenith Wikipedia
- Horizontal coordinate system Wikipedia
- Boltzmann constant NIST Fundamental Physical Constants (CODATA)
- Web Workers API MDN Web Docs (Mozilla)
- Intl.NumberFormat MDN Web Docs (Mozilla)