Solar Air Mass Calculator

Solar Energy

Relative air mass (Kasten-Young)1.00
Simple secant air mass1.00
Solar elevation angle90.00 degrees
Nearest reference conditionAM1 - sun nearly overhead
How this was calculated
  1. Take the cosine of the zenith angle: cos(0 degrees) = 1.0000.
  2. The simple secant estimate is 1 / cos(z) = 1.00, which overestimates the air mass at large zenith angles.
  3. Apply the Kasten-Young correction with its 0.50572 coefficient: the relative air mass is 1.00.
  4. Interpret the result: this is closest to the reference condition AM1 - sun nearly overhead, with the sun 90.00 degrees above the horizon.

The solar air mass describes how much atmosphere sunlight has to cross before it reaches the ground. When the sun is directly overhead, the light takes the shortest possible path and the air mass is 1. As the sun sinks, the path lengthens, the atmosphere absorbs and scatters more of the light, and the spectrum shifts toward the red. Air mass is the number that connects the geometry of the sun's position to the spectrum that solar panels, and solar measurements, actually work with.

This calculator takes the solar zenith angle, the angle between the sun and the point directly overhead. It returns the Kasten-Young air mass, the more accurate of the two standard estimates, alongside the simple secant value 1/cos(z) for comparison, plus the corresponding solar elevation angle and the conventional AM designation such as AM1.5.

The reference case in photovoltaics is built in as an example. At a zenith angle of 48.19 degrees the air mass is exactly 1.50, the AM1.5 condition under which solar panels are rated, with the sun 41.81 degrees above the horizon. Overhead sun gives 1.00, and at a zenith angle of 60 degrees the air mass has risen to 1.99, designated AM2.

Air mass is also the quiet variable behind many solar data arguments. Two measurements of the same panel taken at different times of day are not directly comparable until the air mass is accounted for, because the spectrum itself has changed between them. Reporting the air mass alongside a measurement, computed with a standard formula such as Kasten-Young, is what allows results from different laboratories, seasons and latitudes to be placed on the same footing.

Worked examples

Sun overhead

(0 degrees)

Relative air mass (Kasten-Young)1.00
Simple secant air mass1.00
Solar elevation angle90.00 degrees
Nearest reference conditionAM1 - sun nearly overhead

AM1.5 reference angle

(48.19 degrees)

Relative air mass (Kasten-Young)1.50
Simple secant air mass1.50
Solar elevation angle41.81 degrees
Nearest reference conditionAM1.5 - the photovoltaic rating standard

Low morning sun

(60 degrees)

Relative air mass (Kasten-Young)1.99
Simple secant air mass2.00
Solar elevation angle30.00 degrees
Nearest reference conditionAM2

What air mass means

Air mass is a relative path length: the actual slant path of the sunlight through the atmosphere divided by the vertical path it would take with the sun overhead. An air mass of 2 means the light crosses roughly twice as much air as it does at noon on an equatorial day. Because the atmosphere absorbs some wavelengths more strongly than others, a larger air mass does not just dim the sunlight, it changes its colour balance, removing blue light faster than red.

The standard designations follow directly: AM0 is the spectrum outside the atmosphere, used for space applications; AM1 is the overhead-sun reference; AM1.5 is the mid-latitude reference used throughout the solar industry; and values such as AM2, AM5 and AM10 describe progressively lower sun. This page names the common designations where the computed value lands close to them and otherwise reports the plain class, such as AM3.

Secant versus Kasten-Young

The simplest estimate treats the atmosphere as a flat slab, giving an air mass of 1/cos(z). That is exact enough near noon but fails as the sun drops, because the Earth's curvature and atmospheric refraction bend the real geometry. At a zenith angle of 60 degrees the secant already gives 2.00 while the corrected value is 1.99, and the gap grows quickly from there toward the horizon.

The Kasten-Young formula is the standard correction. It divides 1 by the sum of cos(z) and a term, 0.50572 times (96.07995 minus z) raised to the power -1.6364, which accounts for curvature and the density profile of the atmosphere. This calculator uses Kasten-Young as its primary result and shows the secant beside it, so the size of the correction is visible at every angle: negligible overhead, and increasingly important for morning, evening and winter sun.

The AM1.5 standard

Panel datasheets, efficiency records and solar simulators all refer to AM1.5, and this calculator's second example is that condition: a zenith angle of 48.19 degrees, an air mass of 1.50 and a solar elevation of 41.81 degrees. The angle was chosen to represent a typical mid-latitude sun, and the corresponding standard spectrum is the reference against which nameplate wattages are measured.

That has a practical consequence for anyone estimating real output. A panel only sees exactly AM1.5 when the sun passes through that zenith angle, which happens at most twice a day and not at all on many winter days at higher latitudes. Morning and evening production happens at AM2, AM5 or beyond, with a redder spectrum and lower intensity, which is part of why real daily yield curves are flatter and wider than a simple noon-peak model suggests.

Air mass through the day and year

Air mass follows the sun's elevation, which this calculator reports alongside the zenith angle since the two always add to 90.00 degrees. At solar noon the elevation is at its daily maximum and the air mass at its minimum; in the first and last hours of daylight the elevation approaches zero and the air mass climbs steeply, which is why sunlight at sunrise and sunset is visibly orange: the long path has scattered most of the blue away.

Season and latitude set the floor. A site where the noon sun never climbs high will never see AM1 conditions, even at midday in midsummer, and its winter noon air mass may exceed the values a tropical site sees in the early morning. When comparing solar resource data or planning a measurement campaign, converting the sun position to air mass with a consistent formula, Kasten-Young in this calculator, is what makes spectra taken at different times and places comparable.

Limits of the air mass model

The Kasten-Young formula describes a standard, clear atmosphere. Real air masses are modified by altitude, because a site high above sea level has less air above it, and by turbidity: dust, humidity and pollution scatter and absorb additional light without changing the geometric path length at all. Two sites at the same zenith angle and the same nominal air mass of 1.50 can therefore deliver noticeably different spectra on a hazy day.

The formula also assumes the geometric zenith angle. Near the horizon, atmospheric refraction lifts the apparent sun by roughly half a degree, so the true path differs slightly from the computed one, and below the horizon the whole concept stops applying. For photovoltaic work these limits rarely matter, since almost no power is produced at such angles anyway, but they are worth knowing before using air mass values at extreme zenith angles for atmospheric science.

Air mass and atmospheric science

Beyond photovoltaics, air mass is a working variable in atmospheric measurement: sun photometers infer aerosol and water vapour content from how sunlight is attenuated along the slant path, and the air mass factor converts their slant measurements to the vertical column quantities that models use. The same Kasten-Young geometry underlies those retrievals, which is why a formula from solar energy has become infrastructure for climate observation networks as well.

FAQs

What is solar air mass?

The solar air mass is the path length of sunlight through the atmosphere relative to the shortest, overhead path. It is 1.00 with the sun directly overhead, 1.50 at the AM1.5 reference angle, and it grows as the sun sinks, lengthening the path and reddening the spectrum. It is a purely geometric quantity: it depends only on the sun's position, not on the weather, although real spectra also depend on atmospheric conditions. At very large zenith angles the value keeps growing, but the light is then so attenuated that the figure matters less for energy applications.

How is air mass calculated?

The simple estimate is the secant of the zenith angle, 1/cos(z). The Kasten-Young formula corrects it for the Earth's curvature and atmospheric refraction using the coefficient 0.50572 and the constant 96.07995. At 60 degrees the two give 2.00 and 1.99 respectively, and they diverge further toward the horizon. This calculator reports the Kasten-Young value as the primary result because it stays accurate to much larger zenith angles than the secant. Solar position algorithms compute the zenith angle from time and location; this calculator takes it from there.

What zenith angle corresponds to AM1.5?

A zenith angle of 48.19 degrees gives an air mass of exactly 1.50, with the sun 41.81 degrees above the horizon. AM1.5 is the reference spectrum used to rate solar panels and to report solar cell efficiencies. The AM1.5 spectrum derived from this geometry is the one reproduced by solar simulators in test laboratories worldwide. The AM1.5 reference spectrum built on this geometry is designated AM1.5G for global (direct plus diffuse) light in the standards.

What is AM0?

AM0 is the extraterrestrial reference: sunlight outside the atmosphere, with no air mass at all. It is used for spacecraft and satellite solar arrays. AM1, by contrast, is the overhead-sun condition at the Earth's surface, with an air mass of 1.00. Satellites use AM0 because there is no atmosphere between their panels and the sun.

Why does air mass matter for solar panels?

Panels are rated under the AM1.5 spectrum, so their nameplate power assumes an air mass of 1.50. At higher air masses the light reaching the panel is weaker and redder than the rating spectrum, which reduces output beyond what the drop in total irradiance alone would predict, especially in the morning, evening and winter. This spectral effect is separate from clouds: it happens on perfectly clear days purely because of the longer atmospheric path.

What air mass corresponds to a zenith angle of 60 degrees?

The Kasten-Young formula gives 1.99, which this page designates AM2, while the simple secant estimate gives 2.00. The small difference at 60 degrees grows rapidly at larger zenith angles, which is why the corrected formula is preferred for low sun. The designation AM2 is simply the rounded class name for air mass values near 2.

Sources

Related calculators

Solar Panel Output Calculator
Daily, monthly and yearly energy from a solar array — panel wattage and count, peak sun hours and system losses, the way NREL's PVWatts frames it.
Solar Panel Tilt Angle Calculator
Optimal solar panel tilt from latitude, hemisphere and season - annual, winter and summer angles with the 15-degree seasonal rule.
Shadow Length Calculator
Shadow length, object height or sun elevation — any one from the other two, by plain trigonometry.