This calculator estimates the density of pressurized air from its absolute pressure and temperature, using the ideal-gas law. Enter pressure in kPa and temperature in °C; the result is air mass per cubic metre, with a second output in kg/m³ also expressed as g/L.
Formula
The ideal-gas density equation is ρ = p / (Rair T). In the calculator’s units, this is ρ = (p × 1000) / [287.05 × (t + 273.15)].
- ρ is air density in kilograms per cubic metre (kg/m³).
- p is absolute pressure in kilopascals (kPa); multiplying by 1000 converts kPa to pascals (Pa).
- t is temperature in degrees Celsius (°C); adding 273.15 converts it to kelvins (K).
- Rair is the specific gas constant used for dry air, 287.05 J/(kg·K).
Because 1 J = 1 Pa·m³, the equation returns kg/m³. One kg/m³ has the same numerical value as one g/L, so the second output is a unit conversion requiring no numerical change. The model assumes air behaves as an ideal gas with a fixed composition.
Worked Example
For the default inputs, the absolute pressure is 101.325 kPa and the temperature is 20 °C. Convert temperature to kelvins:
T = 20 + 273.15 = 293.15 K
Convert pressure to pascals and substitute:
ρ = (101.325 × 1000) / (287.05 × 293.15)
ρ = 101325 / 84148.7075 ≈ 1.204 kg/m³
Since kg/m³ and g/L have the same numerical value, the result is 1.204 g/L as well. This is a typical near-sea-level density for dry air around room temperature, not a universal value for air under every condition.
Assumptions
- Air is treated as a dry, ideal gas with a fixed specific gas constant of 287.05 J/(kg·K).
- Pressure entered is absolute pressure, not gauge pressure.
- Temperature is uniform and converted from Celsius to kelvins.
- Humidity, composition changes, and real-gas effects are not included.
What Pressurized Air Density Means
Density is mass divided by volume. Pressurizing a fixed amount of air into a smaller space raises its density; heating air at a fixed pressure lowers its density because the gas expands. The ideal-gas equation accounts for both effects: density is directly proportional to absolute pressure and inversely proportional to absolute temperature.
“Pressurized air” does not have one density. A pressure and temperature must be specified. For example, a tank reading of 700 kPa gauge pressure is not 700 kPa absolute. Gauge pressure measures pressure above the surrounding atmosphere. To use this calculator, add the local atmospheric pressure; near sea level, a rough conversion is 700 + 101.325 = 801.325 kPa absolute. Atmospheric pressure varies with altitude and weather, so use a measured or otherwise appropriate local value for careful work.
Choosing Pressure and Temperature
The pressure and temperature should describe the same location and state of the air. A compressor outlet can be warmer than the storage tank, and pressure can differ along a pipe while air is flowing. Mixing a tank pressure with a compressor-outlet temperature may therefore describe no actual point in the system.
- For a stationary tank: use the tank’s absolute pressure and the air temperature inside it.
- For a flowing line: use pressure and temperature measured at the point being evaluated.
- For gauge readings: add local atmospheric pressure before entering the value.
- For temperature readings: use the gas temperature, not a room temperature that may differ from the air inside a compressed system.
At the same absolute pressure, colder air is denser. At the same temperature, higher absolute pressure is denser. Doubling absolute pressure while holding temperature constant doubles the calculated density under this model.
Limits and Comparisons
The ideal-gas estimate is useful for many ordinary engineering and educational calculations. At sufficiently high pressures, or near conditions where air departs appreciably from ideal behavior, a real-gas equation or compressibility factor is more appropriate. In that correction, density is often represented as ρ = p/(Z Rair T), where Z accounts for non-ideal behavior and depends on pressure, temperature, and gas composition. Do not assume Z is exactly one for precision work at high pressure.
Humidity also affects the result. At a given pressure and temperature, moist air is generally less dense than dry air because water vapour has a lower molar mass than the main components of dry air. The calculator does not accept humidity, so its answer is a dry-air approximation. For buoyancy, ventilation, or precision flow calculations, use a model that includes moisture when it matters.
Density is not the same as pressure. Pressure describes force per area; density describes mass per volume. A high pressure does not by itself identify density unless temperature and the gas model are also known. Likewise, compressed air does not become a liquid merely because its density rises; liquefaction involves much lower temperatures and conditions beyond this simple calculation.
Common Mistakes and Practical Uses
The most frequent error is entering gauge pressure as if it were absolute. Another is using Celsius directly in the ideal-gas equation: the gas law requires absolute temperature in kelvins. The calculator handles the Celsius-to-kelvin conversion, but the entered temperature still needs to be a valid description of the air.
Density estimates help with air mass in a known volume, buoyancy estimates, and converting between volumetric flow and mass flow. For example, once density is known, air mass in a volume is mass = density × volume, with volume in cubic metres. Flow calculations additionally require a flow rate and consistent conditions; a volumetric flow stated at one pressure and temperature cannot be compared directly with one stated at different conditions without conversion.
Round only after completing the calculation. Three decimal places are useful for an everyday estimate, but they do not imply that the input measurements or the ideal-gas model are accurate to that precision. For a pressure vessel, compressor, or process design, use the governing engineering method and applicable safety requirements rather than relying on this calculator alone.
Frequently Asked Questions
What is the density of air at 1 atmosphere?
It depends on temperature and humidity. For dry air at 101.325 kPa and 20 °C, this calculator gives about 1.204 kg/m³. At a different temperature, the density changes even if pressure stays the same.
How do I calculate the density of compressed air?
Use ρ = p/(RairT), with pressure as absolute pressure in pascals and temperature in kelvins. For this calculator, enter kPa and °C; it converts those units internally.
Should I use gauge pressure or absolute pressure?
Use absolute pressure. Convert a gauge reading by adding the surrounding atmospheric pressure. A gauge reading of zero means pressure is approximately atmospheric, not zero absolute pressure.
Does compressed air weigh more?
A given volume of compressed air contains more mass than the same volume at lower pressure and the same temperature. The mass of a sealed amount of air does not increase just because it is compressed; its volume decreases and its density rises.
Is air density the same in kg/m³ and g/L?
Yes, the numerical values are identical: 1 kg/m³ equals 1 g/L. The units differ, but the conversion factors of 1,000 grams per kilogram and 1,000 litres per cubic metre cancel.
Related
Formula used
in p | Absolute pressure | kPa | 101.325 | 0 in t | Temperature | °C | 20 | -273.14 out rho | Air density | kg/m³ | (p * 1000) / (287.05 * (t + 273.15)) | 3 out gl | Air density | g/L | rho | 3
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
- Fluent Pressure-Based or Density-Based Solver?