Atmospheric Scale Height Calculator

Find how quickly an isothermal atmosphere thins with altitude.

Physics and EnergyUpdated 2026-11-202 min read
Atmospheric Scale Height Calculator
Earth's air is about 28.97 atomic mass units.
Scale height
...
Scale height in km...

What it does

Atmospheric scale height measures how quickly air thins as you climb. In a simple isothermal atmosphere, pressure and density fall exponentially with altitude, and the scale height is the distance over which they drop by a factor of about 2.718.

NASA's planetary atmosphere exercises describe the scale height as the height below which roughly 63 percent of the atmospheric mass lies. The same source notes that a more massive planet compresses its atmosphere and reduces the scale height.

University of Rochester astronomy lectures derive the relation H = kT over mu g from hydrostatic balance and the ideal gas law. They show that pressure as a function of height follows an exponential with that decay length.

This tool takes temperature in kelvin, mean molecular mass in atomic mass units and surface gravity in metres per second squared. It returns the scale height in metres and kilometres.

Real atmospheres are not isothermal. Temperature varies with altitude, and composition can change, so the computed value is a useful local estimate rather than a full atmospheric profile.

How to use

  1. Enter a representative temperature in kelvin.
  2. Enter the mean molecular mass in atomic mass units. Earth's air is about 28.97.
  3. Enter the surface gravity in metres per second squared.
  4. Read the scale height in metres and kilometres.
  5. Check that a warmer atmosphere gives a larger value.
  6. Compare Earth with a colder or lower gravity body to see the effect.

Formula

H = k T / (mu x m_u x g), where k is Boltzmann's constant, m_u is the atomic mass constant, T is temperature, mu is mean molecular mass and g is gravity.
k
Boltzmann's constant, 1.380649e-23 J/K.
T
Atmospheric temperature in kelvin.
mu
Mean molecular mass in atomic mass units.
g
Gravitational acceleration in metres per second squared.

The engine converts mean molecular mass to kilograms using the atomic mass constant 1.66053906660e-27 kg. It uses the exact defined value of Boltzmann's constant.

Worked example

Example: Earth's lower atmosphere

Temperature 288 K, mean molecular mass 28.97 amu, gravity 9.80665 m/s².

  1. Convert molecular mass: 28.97 x 1.66053906660e-27 = 4.811e-26 kg per molecule.
  2. Multiply by gravity: 4.811e-26 x 9.80665 = 4.718e-25.
  3. Multiply Boltzmann's constant by temperature: 1.380649e-23 x 288 = 3.976e-21.
  4. Divide: 3.976e-21 / 4.718e-25 = 8,428.64 m.
  5. The tool reports height 8,428.64 m and 8.4286 km.
  6. About 63 percent of the atmospheric mass lies below roughly one scale height.

Reference table

Scale height under different conditions
Temperature KMolecular mass amuGravity m/s²Scale height km
28828.979.806658.4286
25028.979.806657.3135
28844.019.806655.5509
28828.973.7122.2660

Limits

  • The model assumes constant temperature with altitude.
  • It assumes an ideal gas and a thin atmosphere relative to the planet's radius.
  • Changes in composition with height are ignored.
  • The result is a local scale height, not a global average.

Common mistakes

  • Entering temperature in Celsius instead of kelvin.
  • Using the molecular mass of one gas when the atmosphere is a mixture.
  • Using gravity in feet per second squared with SI constants.
  • Assuming the atmosphere ends at one scale height. It does not; density only falls by e.
  • Applying the isothermal result to a region with strong temperature gradients.

Try it yourself

Quick checks. Answers sit tucked under each question.

What is Earth's scale height near 288 K?

About 8.43 km using air with mean molecular mass 28.97 amu.

What happens to scale height if temperature doubles?

It doubles, because H is proportional to temperature.

Why does lower gravity increase scale height?

Weaker gravity means the atmosphere is less compressed, so it extends farther upward.

Questions

What is atmospheric scale height?

The vertical distance over which pressure or density falls by a factor of e.

What does it depend on?

Temperature, mean molecular mass and gravitational acceleration.

Why is Earth's value about 8 km?

Because of its temperature, air composition and surface gravity.

Does the atmosphere end there?

No. The exponential continues. Roughly 63 percent of the mass is below one scale height.

Can this be used for other planets?

Yes, with their temperature, composition and gravity.

Why is the model isothermal?

It gives a simple closed form. Real temperature profiles require a layered calculation.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.