How this calculator helps
Atmospheric scale height is a compact way to describe how quickly an atmosphere thins out as you move upward. Instead of tracking pressure or density at every altitude one by one, scientists often summarize the vertical structure with a single characteristic distance called the scale height, written as . This calculator estimates that value from temperature, molar mass, and gravitational acceleration. It also uses the result to show how much atmospheric density remains at a chosen altitude compared with the surface value.
The idea is simple but powerful. Warm gases spread out more easily, so higher temperature increases scale height. Heavy molecules are harder to support thermally, so larger molar mass decreases scale height. Stronger gravity also compresses the atmosphere, which lowers scale height. Those three effects together explain why different worlds have such different atmospheric profiles. Earth, Mars, Titan, and Venus can all be discussed with the same basic equation, even though their atmospheres behave very differently in detail.
This page is designed for quick first-pass estimates, classroom work, and scenario comparisons. If you want to know whether a thin atmosphere drops off rapidly, whether a hot atmosphere extends far upward, or how much density remains at a given height, this model gives a useful starting point. It is not a full atmospheric simulation, but it is one of the standard approximations used in planetary science and atmospheric physics.
What the inputs mean
Temperature T (K) is the absolute temperature of the atmospheric layer you want to model. The formula assumes an isothermal atmosphere, meaning temperature is treated as constant over the altitude range of interest. That does not mean real atmospheres are perfectly uniform; it means the calculator is using one representative temperature to produce a clean estimate.
Molar Mass M (g/mol) is the mean molar mass of the gas mixture. For a pure gas, this is just the gas's molar mass. For a mixed atmosphere, it is the average molar mass of the composition you want to represent. Earth's lower atmosphere is often approximated with about 28.97 g/mol, while hydrogen-rich atmospheres can be much lighter and therefore have much larger scale heights.
Gravity g (m/s²) is the local gravitational acceleration. Near the surface of a planet or moon, this is often treated as constant for moderate altitude ranges. Stronger gravity pulls the gas downward more effectively, so the atmosphere becomes more compressed and the scale height becomes smaller.
Altitude z (m) is the height at which you want to compare density with the surface value. Once the calculator finds the scale height, it applies the exponential density relation to estimate the fraction of density remaining at that altitude. If the result says 36.79%, for example, that means the model predicts the density there is about 36.79% of the density at the reference level.
Formula used by the calculator
The calculator uses the standard isothermal scale-height equation derived from hydrostatic balance and the ideal gas law. In words, the scale height equals the gas constant times temperature, divided by molar mass and gravity. The script converts molar mass from grams per mole to kilograms per mole before applying the formula so the units remain consistent.
The general expression above is preserved from the original page, but for this calculator the specific physical relationship is the one below. Here is scale height, is the universal gas constant, is temperature, is molar mass, and is gravitational acceleration.
If density at the surface is , then density at altitude follows an exponential decay. That is why one scale height is such a useful benchmark: after rising by one scale height, density falls to about of its starting value, or roughly 36.8%.
How to read the result
The first number returned is the scale height in meters and kilometers. A larger value means the atmosphere decreases more gradually with altitude. A smaller value means the atmosphere is more tightly compressed near the surface. The second part of the result reports the density at your chosen altitude as a percentage of the surface density. That percentage is often the most intuitive output when you are thinking about how quickly an atmosphere thins out.
For example, if the calculator reports a scale height near 8.4 km and you enter an altitude of 8,400 m, the density fraction should be close to 36.8%. At two scale heights, the density fraction drops to about 13.5%. At three scale heights, it is about 5.0%. These are useful mental checkpoints when you want to judge whether a result is reasonable.
Worked example
Consider a simple Earth-like example. Use a temperature of 288 K, a mean molar mass of 28.97 g/mol, and gravity of 9.81 m/s². The calculator converts the molar mass to kilograms per mole and then evaluates the scale-height formula. The result is about 8.4 km. If you then choose an altitude of 10,000 m, the density ratio is approximately , which gives a value a little above 30% for this example.
That does not mean every real measurement at 10 km must match the estimate exactly. Real atmospheres have temperature gradients, humidity changes, circulation, and layered structure. The point of the example is to show the physical trend: with Earth-like temperature and composition, density falls substantially over the first several kilometers, but not instantly. The atmosphere has a finite vertical extent that can be summarized well by the scale height concept.
Limitations and assumptions: Assumptions and limits
This calculator assumes an ideal gas in hydrostatic equilibrium with constant temperature and constant gravity over the altitude range considered. Those assumptions are often good enough for introductory work and rough comparisons, but they are still assumptions. If temperature changes strongly with altitude, if composition varies with height, or if you are modeling very large altitude ranges, a single scale height may no longer describe the atmosphere accurately.
Humidity can also matter in terrestrial applications because moist air has a different effective molar mass than dry air. On giant planets or in upper atmospheres, gravity may change enough with altitude that the constant-gravity approximation becomes weaker. In chemically active atmospheres, the mean molar mass may not stay fixed. None of those effects make the calculator useless; they simply define the situations where you should treat the output as a first-order estimate rather than a final answer.
As a practical rule, this tool is best used to understand trends. Increase temperature and the scale height should rise. Increase molar mass and the scale height should fall. Increase gravity and the scale height should also fall. If your result does not follow those expectations, the most likely cause is a unit mistake or an unrealistic input value.
Physical background
In planetary science, the scale height characterizes how quickly atmospheric density decreases with altitude. If the atmosphere behaves like an ideal gas in hydrostatic equilibrium, density falls off exponentially according to . The scale height is the altitude at which the density drops by a factor of . It depends on temperature, mean molecular mass, and gravity. Warmer atmospheres or lighter gases have larger scale heights, extending farther into space.
Deriving the formula
The scale height follows from the condition of hydrostatic balance, , combined with the ideal gas law , where is the molar mass and is the universal gas constant. Solving these equations yields the familiar scale-height relationship used by the calculator. The constant equals 8.314 J/(mol·K), and converting molar mass from grams per mole to kilograms per mole keeps the units consistent so the final answer comes out in meters.
Introduction: Why altitude matters
Once the scale height is known, it becomes straightforward to estimate how density or pressure changes with altitude. The exponential term reveals that each additional scale height reduces density by the same constant factor. At two scale heights, only about 13% of the original density remains; at five scale heights, less than 1% is left. This is why aircraft performance, mountaineering conditions, atmospheric drag, and remote sensing all depend strongly on altitude even when the horizontal distance traveled is modest.
Planetary examples
Earth's atmosphere near the surface has a scale height of roughly 8 km under common textbook assumptions. Mars, with lower gravity and a carbon-dioxide-rich atmosphere, has a scale height of a similar order but under very different temperature conditions. Titan's cold but low-gravity environment produces another distinct balance. Hydrogen-rich atmospheres on giant planets or hot exoplanets can have very large scale heights because the gas is light and, in some cases, very hot. The same equation helps compare all of these worlds, which is one reason the concept appears so often in astronomy and planetary science.
When a single scale height is not enough
Real atmospheres are layered. The troposphere, stratosphere, mesosphere, and thermosphere can each have different temperature behavior and composition. An isothermal scale height is most appropriate within a limited layer where temperature remains roughly uniform. To model an entire atmosphere more accurately, scientists often compute separate local scale heights or integrate the governing equations numerically. The calculator on this page intentionally keeps the model simple so the relationship between inputs and outputs remains transparent.
Practical interpretation
If you are using this tool for education, the most important lesson is how each variable changes the result. If you are using it for engineering or science screening calculations, the result can help you estimate whether a more detailed model is necessary. A very small scale height suggests rapid atmospheric thinning and stronger confinement near the surface. A very large scale height suggests a more extended atmosphere and slower density decline with altitude. The density percentage at altitude is especially useful when you want a quick sense of how much atmosphere remains relative to the starting level.
Because the calculator reports both the scale height and the density fraction, it supports two common questions at once: “How extended is this atmosphere?” and “How much density is left at this altitude?” That combination makes it useful for classroom demonstrations, rough mission planning, and comparative planetology exercises.
How to use this calculator
- Enter Temperature T (K) using the unit or time period shown by the field.
- Enter Molar Mass M (g/mol) using the unit or time period shown by the field.
- Enter Gravity g (m/s²) using the unit or time period shown by the field.
- Run the calculation and compare the output with a second scenario before acting on it.
Arcade Mini-Game: Atmospheric Scale Height Calculator Calibration Run
Use this quick arcade run to practice separating useful scenario inputs from common planning mistakes before you rely on the calculator output.
Start the game, then use your pointer or arrow keys to catch useful inputs and avoid bad assumptions.
