At 20 °C and 101.325 kPa, dry air has a density of about 0.001204 g/cm³ (1.204 kg/m³). This calculator estimates air density from temperature, absolute pressure, and relative humidity, returning the result in g/cm³; its estimate uses the ideal-gas model and treats air as a mixture of dry air and water vapor.
Formula
The calculator applies the ideal-gas relation separately to dry air and water vapor, then adds their mass densities:
ρ = (p − e) / (RdT) + e / (RvT)
- ρ is moist-air density in kg/m³.
- p is absolute pressure in pascals (Pa).
- e is water-vapor partial pressure in Pa.
- T is absolute temperature in kelvins (K), calculated as °C + 273.15.
- Rd is the specific gas constant for dry air, 287.05 J/(kg·K).
- Rv is the specific gas constant for water vapor, 461.5 J/(kg·K).
The calculator estimates saturation vapor pressure with the Magnus approximation: es = 2338.8 × exp(17.27t/(t + 237.3)) Pa, where t is temperature in °C. Actual vapor pressure is e = (RH/100)es, with relative humidity RH entered as a percentage. It converts the final density from kg/m³ to g/cm³ by dividing by 1000, because 1 kg/m³ equals 0.001 g/cm³.
Worked Example
Using the default inputs—20 °C, 101.325 kPa, and 0% relative humidity—the vapor pressure is zero. Convert temperature and pressure first:
- T = 20 + 273.15 = 293.15 K
- p = 101.325 × 1000 = 101325 Pa
- e = 0 Pa
Then ρ = (101325 − 0)/(287.05 × 293.15) + 0/(461.5 × 293.15) ≈ 1.20412 kg/m³. Converting units gives 1.20412/1000 ≈ 0.001204 g/cm³, or 0.001204 when rounded to six decimal places.
Assumptions
- Air behaves as an ideal gas, and the stated pressure is absolute pressure.
- Dry air and water vapor are represented by fixed specific gas constants.
- Saturation vapor pressure uses the Magnus approximation, suitable for ordinary atmospheric conditions, not every extreme temperature or humidity situation.
- Relative humidity is between 0% and 100%; the calculation does not model fog, cloud droplets, or suspended particles.
What the Units Mean
The question “Density of air in g/cm?” is usually asking for grams per cubic centimetre, written g/cm³. The exponent 3 matters: density is mass divided by volume, and a cubic centimetre is a volume unit. Writing g/cm without the exponent is incomplete and can be confused with grams per centimetre, which is a different kind of measurement.
Air’s density is small compared with that of liquids and solids. At the reference conditions of 20 °C and standard atmospheric pressure, 1 cm³ of dry air has a mass of roughly 0.0012 g, or 1.2 milligrams. The same density expressed in a more convenient engineering unit is about 1.2 kg/m³. These are equivalent ways to describe the same quantity, not different physical values.
Why Temperature, Pressure, and Humidity Matter
For a gas, density changes when its pressure or temperature changes. At the same temperature and composition, increasing absolute pressure increases density. At the same pressure, warming air generally lowers its density because the gas expands. This is why warm air tends to rise relative to cooler surrounding air, although actual air movement also depends on wind, mixing, and local weather.
Humidity has a subtler effect. Water vapor has a lower molecular mass than the average dry-air mixture, so replacing some dry-air molecules with water vapor makes air slightly less dense at the same temperature and pressure. For example, warm humid air is usually less dense than warm dry air under otherwise equal conditions. The calculator accounts for this by calculating separate contributions from dry air and vapor.
Altitude changes pressure, so air density usually decreases as elevation increases. A fixed “sea-level density” is therefore not a universal value for every location. Weather systems also change pressure, while temperature and moisture vary from place to place and over time.
Using the Calculator and Interpreting Results
- Enter air temperature in degrees Celsius. The formula converts it to kelvins; Celsius temperatures below absolute zero are rejected.
- Enter absolute pressure in kPa, not gauge pressure. A pressure reading relative to surrounding air must be converted to absolute pressure before use.
- Enter relative humidity as a percentage from 0 to 100. Use 0% for the dry-air reference example.
- Read the result in g/cm³. For comparison with many weather, engineering, or science references, multiply by 1000 to express it in kg/m³.
At the default settings, the result is about 0.001204 g/cm³. If the air is warmer or the pressure lower, expect a smaller value, all else being equal. The displayed precision is not a promise that real outdoor air density is known to six decimal places: uncertainty in local conditions and in the model can be larger than the last displayed digits.
Common Misconceptions and Limits
One common mistake is treating 1.2 kg/m³ and 0.0012 g/cm³ as contradictory. They match exactly by unit conversion. Another is using Celsius directly in a gas-law denominator; gas-law temperature must be on an absolute scale, which is why the calculation adds 273.15.
Pressure must also be absolute. For instance, a gauge pressure of zero at sea level means atmospheric pressure is still present; it does not mean the air pressure is zero. Entering zero kPa causes the calculator to reject the input, appropriately, because a zero-pressure gas sample is not an ordinary atmospheric condition and the density calculation would not describe surrounding air.
This is an estimate rather than a high-precision moist-air standard. It assumes ideal-gas behavior and uses an approximate vapor-pressure equation. For calibration, meteorological analysis, or high-accuracy engineering, use a recognized moist-air formulation and measured local pressure, temperature, and humidity. Near unusual temperature extremes, in rapidly changing conditions, or when aerosols and liquid water matter, this simple model may not represent the actual air sample.
Frequently Asked Questions
What is the density of air in g/cm³ at room temperature?
At 20 °C and 101.325 kPa, dry air is about 0.001204 g/cm³. Temperature, pressure, and humidity change the value.
How many kg/m³ is air?
At the same reference conditions, air density is about 1.204 kg/m³. Multiply a value in g/cm³ by 1000 to convert it to kg/m³.
Does humid air weigh more than dry air?
At equal temperature and pressure, humid air is generally less dense because water vapor is lighter than the average dry-air mixture. A given volume therefore contains slightly less mass.
Is air density the same at every altitude?
No. Atmospheric pressure generally falls with altitude, and air density usually falls with it. Temperature and weather also affect the local value.
Why does the calculator ask for absolute pressure?
Gas density depends on the total pressure measured from zero pressure. Gauge pressure is measured relative to ambient pressure, so it must be converted to absolute pressure before calculation.
Related
Formula used
in t | Temperature | °C | 20 | -273.15 in p | Absolute pressure | kPa | 101.325 | 0 in rh | Relative humidity | % | 0 | 0 | 100 out d | Air density | g/cm³ | (p * 1000 - (rh / 100) * 2338.8 * exp(17.27 * t / (t + 237.3))) / (287.05 * (t + 273.15)) + ((rh / 100) * 2338.8 * exp(17.27 * t / (t + 237.3))) / (461.5 * (t + 273.15)) | 6
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
- Pressure Density Depth Formula for Fluids98,066 Pa
- Pressure Density Temperature Equation Calculator100,961.74 Pa
- Pressure Density Cup: What It Measures and How It Works1.0000 g/mL
- Pressure, Density, and Temperature: How They Relate101,307 Pa
- Pressure-Based vs Density-Based Solvers in CFD
- Pressure-Based vs Density-Based Solvers in CFD