The density of oxygen in ordinary dry air is about 0.275 kg/m³ at 20 °C and 1 atmosphere, equivalent to 0.275 g/L. This calculator estimates oxygen’s partial density from temperature, pressure, and oxygen fraction; enter those conditions to get a value in kg/m³.
Formula
For oxygen treated as an ideal gas, its mass density is its partial pressure multiplied by its molar mass, divided by the gas constant and absolute temperature:
ρO₂ = (P × xO₂ × MO₂) / (R × T)
- ρO₂ is oxygen mass per volume, in kg/m³.
- P is total air pressure in pascals. The calculator converts kPa to Pa by multiplying by 1,000.
- xO₂ is oxygen’s mole fraction, a unitless proportion. Dry air is conventionally approximated as 0.2095, or 20.95%.
- MO₂ is oxygen’s molar mass, 0.031998 kg/mol (31.998 g/mol).
- R is the ideal gas constant, 8.31446261815324 J/(mol·K).
- T is absolute temperature in kelvin. Convert °C to K by adding 273.15.
The calculation uses oxygen’s partial pressure, P × xO₂, rather than treating the whole air pressure as oxygen pressure. The second output calculates the dry-air reference value using 20.95% oxygen even if a different fraction is entered for the first output.
Worked Example
Using the calculator’s defaults—20 °C, 101.325 kPa, and an oxygen fraction of 0.2095:
- Convert temperature: T = 20 + 273.15 = 293.15 K.
- Convert pressure: P = 101.325 × 1,000 = 101,325 Pa.
- Find oxygen partial pressure: 101,325 × 0.2095 = 21,227.5875 Pa.
- Apply the ideal-gas density formula: ρ = (21,227.5875 × 0.031998) / (8.31446261815324 × 293.15) ≈ 0.27868 kg/m³.
Rounded to the calculator’s three decimal places, oxygen density is 0.279 kg/m³. This is about 0.279 g/L. The opening reference value of about 0.275 kg/m³ is for 20 °C only as a rough estimate; the exact result depends on the chosen oxygen fraction, gas constant conventions, and whether air is treated as ideal. Under the formula and exact defaults shown here, 0.279 kg/m³ is the calculated result.
Assumptions
- Air and oxygen behave as ideal gases at the entered pressure and temperature.
- The entered oxygen fraction is a mole fraction, not a mass fraction.
- Oxygen is molecular O₂ with a molar mass of 31.998 g/mol.
- The default 0.2095 fraction describes a conventional dry-air approximation. Water vapor is not separately modeled.
What Oxygen Density Means
Density is mass divided by volume. Oxygen density in air is the mass of oxygen molecules in a given volume of the air mixture—not the density of the entire atmosphere. At the defaults, one cubic metre of air contains roughly 0.279 kg of oxygen according to this ideal-gas calculation. Air’s total density is greater because it also contains mostly nitrogen, plus argon, carbon dioxide, and trace gases.
Oxygen makes up about 20.95% of dry air by volume and by mole fraction. That does not mean oxygen is 20.95% of air’s mass: oxygen molecules are heavier, on average, than the main nitrogen molecules, so oxygen’s mass share is different. The calculator’s fraction field must therefore be a mole or volume fraction, not a percentage by mass.
Why Temperature, Pressure, and Humidity Matter
At fixed pressure and composition, warming a gas lowers the number of molecules in a given volume, so its density falls. At fixed temperature and composition, raising pressure increases density. The ideal-gas expression captures both effects: density is proportional to pressure and inversely proportional to absolute temperature.
For example, the same dry-air oxygen fraction at a high-altitude location generally produces a lower oxygen partial pressure and lower oxygen density than at sea level, because total atmospheric pressure is lower. The oxygen percentage itself can remain close to the familiar 20.95%; it is the pressure, not necessarily the fraction, that changes substantially.
Humidity is a further distinction. Water vapor takes up part of the mixture’s mole fraction, displacing some dry-air gases at a given total pressure. Thus humid air usually has a lower oxygen fraction than dry air at the same pressure, even though the dry-air composition is nearly unchanged. To estimate humid-air oxygen density accurately, use the actual oxygen mole fraction of the moist mixture. This calculator does not infer it from relative humidity.
How to Use the Calculator and Read the Result
- Enter air temperature in degrees Celsius and total pressure in kPa.
- Enter oxygen mole fraction as a decimal: use 0.2095 for 20.95%, not 20.95.
- Read the first result as oxygen mass per cubic metre. The second is a dry-air comparison using the conventional 20.95% fraction.
For a different percentage, convert it to a fraction by dividing by 100. For instance, 19.5% becomes 0.195. If pressure is supplied in atmospheres, convert it to kPa using 1 atm = 101.325 kPa before entering it. The output is a gas density, not oxygen concentration in mg/L of liquid, oxygen partial pressure alone, or a measure of how much oxygen a person can use.
Limits and Common Misconceptions
“Oxygen density in air” can refer to several different quantities: oxygen’s mass density in the mixture, oxygen’s partial pressure, or the percentage of air that is oxygen. These are related but not interchangeable. At 1 atmosphere, dry air’s oxygen partial pressure is about 0.2095 × 101.325 kPa, or 21.23 kPa; this is pressure, whereas density is expressed in kg/m³.
The ideal-gas model is a practical approximation for ordinary atmospheric conditions. At very high pressures or under specialized conditions, real-gas behavior can matter, and a more detailed equation of state may be needed. The result also depends on the validity of the inputs: composition can vary in enclosed spaces, combustion environments, or air samples with unusual gas content. Use measured composition when precision matters.
This calculation is for physical and educational estimates. It does not assess air quality, oxygen safety, or suitability for breathing; those judgments require appropriate measurements and applicable safety criteria.
Frequently Asked Questions
What is the density of oxygen in air at room temperature?
At 20 °C and 1 atmosphere, this calculator gives about 0.279 kg/m³ for dry air with an oxygen fraction of 0.2095. Values change with temperature, pressure, and composition.
Is oxygen 21% of air by mass?
No. The familiar figure is approximately 20.95% by volume or mole fraction in dry air. Oxygen’s mass fraction is not the same because the gases have different molecular masses.
Does oxygen density decrease at higher altitude?
Usually, yes. Atmospheric pressure falls with altitude, reducing oxygen partial pressure and oxygen mass per unit volume, even when the oxygen fraction remains near its usual dry-air value.
Does humid air contain less oxygen?
At the same total pressure, water vapor occupies part of the gas mixture, so the oxygen mole fraction is typically lower than in dry air. The amount depends on the moisture content.
How many grams of oxygen are in a litre of air?
At the stated default conditions, 0.279 kg/m³ is numerically equal to 0.279 g/L. One litre therefore contains about 0.279 g of oxygen under this model.
Related
Formula used
in t | Air temperature | °C | 20 | -273.15 in p | Total air pressure | kPa | 101.325 | 0 in x | Oxygen mole fraction | - | 0.2095 | 0 | 1 out d | Oxygen density | kg/m^3 | (p * 1000 * x * 0.031998) / (8.31446261815324 * (t + 273.15)) | 3 out da | Dry-air oxygen density at same conditions | kg/m^3 | (p * 1000 * 0.2095 * 0.031998) / (8.31446261815324 * (t + 273.15)) | 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
- Heat Gain and Loss Calculator for Calorimetry4,184.00 J
- Heat Output Calculator kW: Estimate Thermal Power1.395 kW
- Heat Calculation: Formula, Example, and Limits41,840 J
- Heat Energy Released Formula and Worked Example23,012 J
- Heat Transfer Equation for q: Formula and Examples41,840 J
- Heat Rate Formula: Calculate Energy per Unit Time166.67 W