Calculate air density from pressure and temperature with the ideal-gas formula: density equals pressure times molar mass divided by the gas constant times absolute temperature. Enter air pressure and temperature to get density in kg/m³, with the calculator using dry air as its stated model.
Formula
For dry air treated as an ideal gas, the density formula is ρ = pM/(RT). Here, ρ is density in kilograms per cubic metre (kg/m³), p is absolute pressure in pascals (Pa), M is the molar mass of dry air in kilograms per mole (kg/mol), R is the molar gas constant, 8.31446261815324 J/(mol·K), and T is absolute temperature in kelvins (K).
The calculator accepts pressure in kilopascals and temperature in degrees Celsius, so its expression explicitly converts them: p in Pa is the entered pressure multiplied by 1,000 Pa/kPa, and T in K is the entered temperature plus 273.15. It uses a conventional mean molar mass for dry air of 0.02896546 kg/mol. Because 1 J = 1 Pa·m³, the formula’s units reduce to kg/m³.
Worked Example
Using the calculator’s default inputs, pressure is 101.325 kPa and temperature is 20 °C.
- Convert pressure: 101.325 kPa × 1,000 Pa/kPa = 101,325 Pa.
- Convert temperature: 20 °C + 273.15 = 293.15 K.
- Substitute into the formula: ρ = (101,325 Pa × 0.02896546 kg/mol) / (8.31446261815324 J/(mol·K) × 293.15 K).
- Calculate: ρ ≈ 1.204118 kg/m³, or 1.204 kg/m³ to three decimal places.
The displayed absolute temperature is 293.15 K. The density result is the mass of dry air per unit volume under the specified pressure and temperature.
Assumptions
- Air is dry and has a fixed mean molar mass of 0.02896546 kg/mol.
- Air behaves as an ideal gas; real-gas deviations are ignored.
- The pressure entered is absolute pressure, not gauge pressure.
- Temperature is uniform and expressed as a Celsius value above absolute zero.
How Pressure and Temperature Affect Density
At a fixed temperature and composition, density is directly proportional to absolute pressure: doubling pressure doubles the calculated density. At fixed pressure, density is inversely proportional to absolute temperature. Warmer air therefore has lower density when pressure is held constant, because the same gas mass occupies more volume.
These comparisons must use absolute units. Celsius is an offset scale, so it cannot be used directly in the denominator. For example, 20 °C is 293.15 K—not 20 K. Likewise, the formula requires pressure measured from a vacuum. A gauge pressure reading is relative to the surrounding atmosphere and must be converted to absolute pressure before use.
Altitude often brings lower atmospheric pressure and lower air density, but temperature also varies with weather and height. Pressure and temperature together—not altitude alone—determine the result in this formula. For a real location, use pressure measured or reported for that location and time.
Using the Result and Choosing Inputs
Use the calculator when you need a quick estimate of dry-air density from a known pressure and temperature—for example, to compare air conditions, interpret a gas-law calculation, or obtain a basic input for an engineering estimate. It is not a lookup table for a particular altitude or weather station; those conditions need their own pressure and temperature values.
- Pressure: Enter absolute pressure in kPa. Standard sea-level pressure is approximately 101.325 kPa, but local pressure can differ. If you have pressure in hPa, divide by 10 to convert to kPa; if you have pressure in Pa, divide by 1,000.
- Temperature: Enter the air temperature in °C. The input must be at or above −273.15 °C, the physical lower limit represented by absolute zero.
- Density: Read the answer in kg/m³. To convert kg/m³ to g/L, the numerical value is unchanged; 1 kg/m³ equals 1 g/L. To convert to g/m³, multiply by 1,000.
Keep the pressure and temperature representative of the same air sample or location. Mixing a station’s pressure with a temperature from a different elevation or time can produce a mathematically valid but physically misleading estimate.
Dry Air, Humidity, and Model Limits
The calculator treats air as dry, so it uses one fixed molar mass. Humid air is a mixture of dry-air gases and water vapor. At the same total pressure and temperature, adding water vapor generally lowers density: water molecules have a lower molar mass than the average molecules in dry air. A humidity-aware calculation therefore needs additional information, such as water-vapor pressure or relative humidity together with temperature, as well as a model for moist air.
The ideal-gas approximation is useful for ordinary atmospheric calculations, but it is still an approximation. At conditions far from ordinary atmospheric pressure and temperature, real-gas behavior and changes in gas composition can matter. The fixed dry-air molar mass is also an average, not the molar mass of every air sample; composition changes slightly with humidity, altitude, and pollutants.
Finally, density is not the same quantity as weight. Density is mass per volume. Weight is a force that depends on gravitational acceleration, so converting density to weight per volume requires an additional gravitational value and a clear definition of the units being used.
Common Errors and Misconceptions
- Using Celsius in place of kelvins: Convert with T(K) = t(°C) + 273.15. A negative or small Celsius number does not mean a negative absolute temperature.
- Using gauge pressure: The ideal-gas equation needs absolute pressure. Add local atmospheric pressure to gauge pressure, with both expressed in the same units.
- Assuming standard pressure applies everywhere: 101.325 kPa is a reference value, not a guarantee of the pressure at a location.
- Calling the result universal: The result depends on pressure, temperature, and gas composition; the value here is for the stated dry-air approximation.
Rounding pressure or temperature too early can slightly affect the final digits. Retain the original input precision through the calculation and round only the reported density to suit the quality of the measurements.
Frequently Asked Questions
What is the formula for air density using pressure and temperature?
For dry air treated as an ideal gas, use ρ = pM/(RT), where pressure is absolute, temperature is in kelvins, M is the molar mass of dry air, and R is the molar gas constant.
What is the density of air at 20 °C and sea-level pressure?
With 20 °C, 101.325 kPa absolute pressure, and the dry-air assumptions used here, the estimate is 1.204 kg/m³.
Can I use Celsius in the air-density equation?
Not directly. Convert Celsius to kelvins by adding 273.15 before using temperature in the denominator.
Does humidity increase or decrease air density?
At the same total pressure and temperature, more water vapor generally decreases air density because water vapor has a lower molar mass than dry air’s average. This calculator does not make a humidity correction.
Should I enter gauge pressure or absolute pressure?
Enter absolute pressure. Gauge pressure is measured relative to ambient atmospheric pressure, so convert it before using the formula.
Related
Formula used
in p | Air pressure | kPa | 101.325 | 0 in t | Air temperature | °C | 20 | -273.15 out rho | Air density | kg/m^3 | (p * 1000) * 0.02896546 / (8.31446261815324 * (t + 273.15)) | 3 out tk | Absolute temperature | K | t + 273.15 | 2
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