NASA does not define one fixed value for air density: density changes with altitude, temperature, pressure, and humidity. This calculator estimates density from pressure and temperature using the ideal-gas relation, with inputs in pascals and kelvin and an output in kilograms per cubic metre.
Formula
The calculator uses the ideal-gas equation written for density: ρ = p / (Rair × T). Here, ρ is air density in kilograms per cubic metre (kg/m³), p is absolute pressure in pascals (Pa), T is absolute temperature in kelvins (K), and Rair is the specific gas constant for dry air, 287.05 joules per kilogram per kelvin (J/(kg·K)). Since 1 Pa equals 1 kg/(m·s²), the units reduce to kg/m³.
The second output converts the same density to grams per litre: 1 kg/m³ equals 1 g/L. Pressure must be absolute, not gauge pressure, and temperature must be Kelvin rather than Celsius. To convert Celsius to Kelvin, add 273.15.
Worked Example
Using the defaults exactly: p = 101325 Pa and T = 288.15 K, corresponding to 15 °C at standard sea-level pressure.
- Calculate the denominator: 287.05 × 288.15 = 82714.9575.
- Divide pressure by that value: 101325 / 82714.9575 ≈ 1.22498 kg/m³.
- Rounded to the calculator’s four decimal places, air density is 1.2250 kg/m³.
- Convert to grams per litre: 1.22498 × 1000 ≈ 1224.98 g/L? This unit conversion is not correct: because 1 kg/m³ equals 1 g/L, the value remains approximately 1.2250 g/L.
The calculator’s second expression should therefore preserve the numerical value. Since 1 kg/m³ = 1 g/L, the conversion factor is 1, not 1000. The result is 1.2250 g/L.
Assumptions
- Air is treated as a dry, ideal gas with a constant specific gas constant of 287.05 J/(kg·K).
- Pressure is absolute and temperature is thermodynamic temperature in kelvins.
- The model does not correct for humidity, detailed atmospheric composition, or non-ideal behavior.
What NASA Means by Air Density
In aerospace work, “air density” usually means the mass of air in a given volume at a specified location and time. It is not a universal constant. A value is meaningful only when paired with the conditions under which it applies, especially pressure and temperature.
NASA commonly uses atmospheric models to describe how pressure, temperature, and density vary with altitude. A standard reference is the U.S. Standard Atmosphere, used across aerospace engineering and other technical fields. A standard atmosphere is a modeled reference, not a promise that real weather at a particular place will match it. Winds, weather systems, latitude, season, and local temperature can produce departures.
At sea level under the familiar standard-atmosphere conditions of 15 °C and 101.325 kPa, dry-air density is about 1.225 kg/m³. That is the calculator’s default example. At greater altitude, pressure generally falls and density usually falls as well; aircraft performance, aerodynamic drag, and engine behavior are affected by this change.
How Altitude Changes Density
Altitude alone is not an input in this calculator. To estimate density at an altitude, you need the atmospheric pressure and temperature at that altitude. The relationship is direct: at fixed temperature, lower pressure means lower density; at fixed pressure, higher temperature means lower density.
For example, if air pressure is 80,000 Pa and temperature is 270 K, the ideal-gas estimate is 80000 / (287.05 × 270), or about 1.032 kg/m³. This is only an example of the calculation, not a claim that every location at a particular altitude has those conditions. Use pressure and temperature from a reliable observation or a suitable atmospheric model when altitude-specific accuracy matters.
For a standard-atmosphere value at a chosen altitude, first obtain the model’s pressure and temperature for that altitude, then enter those values here. Do not substitute altitude directly for pressure: altitude and density are related through an atmospheric model, not through a single universal linear conversion.
What Affects the Result
- Pressure: higher absolute pressure increases density if temperature stays constant.
- Temperature: warmer air is less dense at the same pressure because the gas occupies more volume.
- Humidity: humid air is generally less dense than dry air at the same pressure and temperature. Water vapour has a lower molecular mass than the main components of dry air. The calculator does not include this correction.
- Composition: the constant 287.05 J/(kg·K) assumes ordinary dry air. Different gas mixtures require their own specific gas constant.
- Measurement quality: errors in pressure or temperature flow directly into the computed density.
Using the Calculator and Reading Its Limits
Enter absolute pressure in pascals and temperature in kelvins. Common conversions include 1 kPa = 1000 Pa and 1 bar = 100,000 Pa. For a pressure reported in atmospheres, 1 atm = 101325 Pa. Convert a Celsius reading by adding 273.15; for instance, 20 °C is 293.15 K.
Absolute pressure is measured relative to a vacuum. A gauge-pressure reading is measured relative to the surrounding atmosphere, so it must be combined with local atmospheric pressure before use. Entering gauge pressure alone can create a large error or an impossible result.
The ideal-gas equation is a useful approximation for ordinary atmospheric conditions, but it is not a complete weather or high-precision atmospheric model. It also cannot infer altitude, humidity, or pressure from temperature alone. If density is needed for a flight, vehicle design, scientific analysis, or safety-critical calculation, use the relevant validated atmospheric model and measured conditions rather than relying on a generic estimate.
Frequently Asked Questions
What is the density of air according to NASA?
There is no single NASA air-density value for all conditions. A common sea-level reference is about 1.225 kg/m³ at 15 °C and 101.325 kPa, while actual density varies with pressure, temperature, humidity, and altitude.
How does NASA calculate air density?
A basic calculation uses ρ = p/(RairT), where pressure is absolute, temperature is in kelvins, and dry-air Rair is about 287.05 J/(kg·K). More detailed atmospheric work uses models that provide changing conditions with altitude.
Does air density decrease with altitude?
It generally decreases as altitude rises because atmospheric pressure falls. The exact value at a given altitude also depends on temperature, weather, and the atmospheric model used.
Is air density the same as air pressure?
No. Pressure is force per unit area; density is mass per unit volume. They are related through temperature and gas composition, but they are different physical quantities.
Does humidity make air denser?
No. At equal pressure and temperature, adding water vapour generally makes air slightly less dense than dry air. This calculator assumes dry air and therefore does not apply a humidity correction.
Related
Formula used
in p | Air pressure | Pa | 101325 | 0 in t | Air temperature | K | 288.15 | 0 out rho | Air density | kg/m^3 | p / (287.05 * t) | 4 out rho_g | Density in g/L | g/L | rho * 1000 | 4
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.
More in this section
- Skip Calculator for Soil: What It Can and Can’t Do7.500 m³
- USD to KPW Calculator: Convert Dollars to North Korean Won90,000.00 KPW
- OK Calculator on TV on the Radio? Meaning Explained
- Pension Calculator KP: Estimate Your Pension Benefits
- Neonatal Kp Calculator: What It Means80.0000 mmol/mmol
- Newton to kp Converter Calculator and Formula1.0000 kp