molecalculator

Moles & Molar Mass

O2 Density Calculator: Gas Density at Any Temperature

Calculator No. 01-2164 · Updated · Formula and assumptions shown below

O₂ density 1.3302 kg/m³
O₂ density
1.3302 g/L
= O₂ density
Absolute pressure
101.325 kPa
Set in the form below
Temperature
20 °C
Set in the form below
You enter
Absolute pressure (kPa), Temperature (°C)
You get
O₂ density (kg/m³), O₂ density (g/L)
Rounding
4 dp

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

This calculator finds the density of oxygen gas, O₂, from its pressure and temperature using the ideal-gas equation. Enter pressure in kilopascals and temperature in degrees Celsius; it returns density in kilograms per cubic metre and grams per litre.

Formula

For an ideal gas, density equals pressure multiplied by molar mass, divided by the gas constant multiplied by absolute temperature:

ρ = PM / (RT)

  • ρ is oxygen density in kg/m³.
  • P is absolute pressure in pascals. The calculator converts the entered pressure from kPa to Pa by multiplying by 1,000.
  • M is the molar mass of molecular oxygen, 0.031998 kg/mol. This comes from O₂: two oxygen atoms at 15.999 g/mol each, or 31.998 g/mol, converted to kg/mol by dividing by 1,000.
  • R is the ideal gas constant, 8.31446261815324 J/(mol·K), equivalent to Pa·m³/(mol·K).
  • T is absolute temperature in kelvins. The calculator converts °C to K by adding 273.15.

The second output uses the numerical equivalence 1 kg/m³ = 1 g/L. The formula assumes oxygen behaves as an ideal gas. Enter absolute pressure, not gauge pressure: if a gauge reads pressure above the surrounding atmosphere, add local atmospheric pressure to obtain absolute pressure.

Worked Example

Using the calculator’s default values, pressure is 101.325 kPa and temperature is 20 °C. First convert the inputs:

P = 101.325 × 1,000 = 101,325 Pa
T = 20 + 273.15 = 293.15 K

Substitute the values into the ideal-gas density formula:

ρ = (101,325 Pa × 0.031998 kg/mol) / (8.31446261815324 Pa·m³/(mol·K) × 293.15 K)
ρ ≈ 1.3289 kg/m³

Because 1 kg/m³ equals 1 g/L, the second output is also 1.3289 g/L. The displayed values are rounded to four decimal places; the underlying result depends on the entered conditions and the ideal-gas approximation.

Assumptions

  • Oxygen is treated as a pure, ideal gas, with molar mass 31.998 g/mol.
  • Pressure is absolute pressure in kPa, not gauge pressure.
  • Temperature is uniform and is converted from °C to K using +273.15.
  • The gas is not treated as a liquid or as a mixture with air, water vapour, or another gas.

What O₂ Density Means

O₂ is the chemical formula for molecular oxygen: a molecule made of two oxygen atoms. Density describes mass per unit volume. At a stated temperature and pressure, oxygen density tells you how much oxygen gas occupies a particular volume. It is not one unchanging property of oxygen in its gas phase: unlike molar mass, gas density changes when pressure or temperature changes.

The molar mass is about 31.998 g/mol, based on the conventional oxygen atomic weight of 15.999. That number describes the mass of a mole of O₂ molecules, not the mass of a litre of oxygen. To find mass per volume, pressure and temperature must also be known or specified.

Oxygen is often discussed as a component of air, but the calculator’s answer is for pure O₂. Air is a mixture, mostly nitrogen and oxygen, and its density is not the same as pure oxygen’s density at the same conditions. A mixture’s density depends on its composition as well as pressure and temperature.

How Pressure and Temperature Change It

At fixed temperature, the ideal-gas equation predicts that density increases in direct proportion to absolute pressure. For example, doubling pressure while holding temperature constant doubles the calculated density. At fixed pressure, raising the temperature lowers density: the gas expands, so the same amount of gas occupies more volume. These relationships apply to absolute pressure and absolute temperature, not to gauge pressure or a Celsius value used directly in the equation.

That is why a density figure should always be accompanied by conditions. A value near 1.33 kg/m³ is a useful reference for pure oxygen around 20 °C and one standard atmosphere (101.325 kPa), but it is not a universal density for O₂. Colder or more highly compressed oxygen has a different density. At sufficiently high pressures, real-gas behaviour can also make the ideal-gas result less accurate.

Using the Calculator Correctly

  • Enter the oxygen’s absolute pressure in kPa. If you have a gauge-pressure reading, convert it to absolute pressure by adding the surrounding atmospheric pressure in the same units.
  • Enter the gas temperature in °C. The calculator adds 273.15 internally; do not enter a Kelvin value in this field.
  • Read either output unit. The numerical values in kg/m³ and g/L are equal, although the units describe the same density in different forms.
  • Keep appropriate precision. The four displayed decimal places are a calculation format, not a guarantee that pressure, temperature, gas purity, or the ideal-gas model is known that accurately.

The permitted temperature range begins at −273.15 °C because that is absolute zero, the lower limit for this conversion. The formula is undefined at absolute zero. In practice, oxygen can condense at sufficiently low temperatures, so a gas-density calculation based on an ideal gas is not appropriate when the sample is liquid or near a phase change.

Limits and Common Mix-Ups

A common mistake is to treat density as a fixed conversion factor for oxygen. It is fixed only after pressure and temperature are specified and the phase and composition are understood. Another is to use the oxygen molar mass, 31.998 g/mol, as if it were a density. Molar mass is mass per mole; density is mass per volume. The ideal-gas law connects them only when gas conditions are included.

Gauge pressure is another important source of error. A gauge reports pressure relative to the surrounding atmosphere; the gas-law equation needs absolute pressure relative to a vacuum. Using gauge pressure directly can substantially understate density, especially at low gauge readings. If the gas is humid or mixed with another gas, a pure-oxygen result is not the mixture’s density. For high accuracy at elevated pressures, use an appropriate real-gas equation or reliable property data for the stated conditions rather than assuming ideal behaviour.

This calculator is for general chemistry and lab-planning arithmetic, not equipment selection or a substitute for applicable gas-handling guidance. For bench work, follow your lab method, the safety data sheet (SDS), and your supervisor.

Frequently Asked Questions

What is the density of O₂ at room temperature?
It depends on the exact temperature and pressure. At 20 °C and 101.325 kPa absolute, the ideal-gas calculation gives about 1.3289 kg/m³, or 1.3289 g/L, for pure oxygen.

Is oxygen denser than air?
At the same temperature and pressure, pure oxygen is denser than dry air because its average molar mass is higher. The calculator gives pure O₂ density; it does not calculate air density.

Does oxygen density change with pressure?
Yes. For a fixed temperature, ideal-gas density is directly proportional to absolute pressure. A higher absolute pressure means more oxygen mass per unit volume.

What is the difference between oxygen density and molar mass?
Molar mass is mass per amount of substance, about 31.998 g/mol for O₂. Density is mass per volume and varies with temperature and pressure.

Can I use gauge pressure in the calculator?
No. Enter absolute pressure in kPa. Convert gauge pressure by adding the local atmospheric pressure, expressed in kPa, before entering it.

Is this result accurate for compressed oxygen?
The calculation uses the ideal-gas model. It is a useful approximation in many ordinary conditions, but deviations can matter at high pressure or near condensation; use real-gas property data when accuracy under those conditions is important.

Related

Formula used
in p | Absolute pressure | kPa | 101.325 | 0
in t | Temperature | °C | 20 | -273.15
out d | O₂ density | kg/m³ | p * 1000 * 0.031998 / (8.31446261815324 * (t + 273.15)) | 4
out dg | O₂ density | g/L | d | 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

The whole Moles & Molar Mass section →