molecalculator

Moles & Molar Mass

O2 Gas Density Calculator: Formula and Examples

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

O2 gas density 1.330 kg/m^3
O2 gas density
1.330 g/L
= O2 gas density
Temperature
20 °C
Set in the form below
Absolute pressure
101.325 kPa
Set in the form below
You enter
Temperature (°C), Absolute pressure (kPa)
You get
O2 gas density (kg/m^3), O2 gas density (g/L)
Rounding
3 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.

Oxygen gas (O2) has a density of about 1.31 g/L at 0 °C and 1 atmosphere, or about 1.33 g/L at 20 °C and 1 atmosphere. This calculator estimates oxygen’s density from its temperature and pressure, using the ideal-gas equation; enter those two conditions to get density in kg/m3 and g/L.

Formula

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

ρ = PM / (RT)

  • ρ is oxygen density in kg/m3.
  • P is absolute pressure in pascals (Pa). The calculator accepts kilopascals and converts them using 1 kPa = 1000 Pa.
  • M is oxygen’s molar mass, 0.031998 kg/mol (31.998 g/mol), calculated from two oxygen atoms at 15.999 g/mol each.
  • R is the molar gas constant, 8.31446261815324 J/(mol·K).
  • T is absolute temperature in kelvins: temperature in °C + 273.15.

Because 1 kg/m3 equals 1 g/L, the two displayed density values have the same numerical value. The calculation treats oxygen as an ideal gas and uses absolute, not gauge, pressure.

Worked Example

Using the calculator’s default values, temperature is 20 °C and absolute pressure is 101.325 kPa.

  1. Convert temperature: T = 20 + 273.15 = 293.15 K.
  2. Convert pressure: P = 101.325 × 1000 = 101325 Pa.
  3. Substitute the values: ρ = (101325 × 0.031998) / (8.31446261815324 × 293.15).
  4. The numerator is 3242.21235; the denominator is approximately 2436.0. Thus, ρ ≈ 1.331 kg/m3.

The calculator reports 1.331 kg/m3, equivalent to 1.331 g/L, at its displayed precision.

Assumptions

  • Oxygen is treated as a pure, ideal gas with molar mass 31.998 g/mol.
  • Pressure is absolute pressure, and temperature is converted to kelvins.
  • The calculator does not correct for non-ideal gas behavior, humidity, or mixtures with other gases.

How Oxygen Density Changes

The formula shows two direct relationships: at a fixed temperature, density rises in proportion to absolute pressure; at a fixed pressure, density falls as absolute temperature rises. Heating a sealed oxygen sample does not make its density rise if its volume stays fixed—the pressure rises instead. Density here describes mass per volume under the specified pressure and temperature.

For example, doubling pressure at the same temperature doubles the ideal-gas density. Raising the temperature from 20 °C to 40 °C at the same pressure lowers density by the ratio 293.15/313.15, to about 1.246 kg/m3. Such comparisons are valid only when the other conditions and the gas composition are held constant.

“Standard conditions” must be specified before quoting a density. A commonly used reference is 0 °C and 1 atm (101.325 kPa); at those conditions the ideal-gas estimate is about 1.31 kg/m3. Other standards use different reference temperatures or pressures, so a bare density number can be ambiguous.

Using the Calculator Correctly

Enter temperature in degrees Celsius and pressure in kilopascals. The pressure must be absolute: it is measured from a vacuum. A gauge-pressure reading is measured relative to surrounding air, so convert it before using the calculator. Near sea level, atmospheric pressure is about 101.325 kPa; for example, a gauge reading of 200 kPa corresponds to roughly 301.325 kPa absolute if local atmospheric pressure is 101.325 kPa.

  • Use the gas temperature, not the temperature of a nearby room or container, when those differ.
  • Check whether a pressure value is given in kPa, Pa, bar, or another unit before entering it. Convert it to kPa; 1 bar = 100 kPa.
  • Do not enter negative kelvin temperatures. The calculator accepts Celsius values down to absolute zero, −273.15 °C.
  • Keep enough precision in input values for the intended comparison. Extra digits in the output do not make approximate inputs exact.

For a gas mixture, this result is not automatically the mixture’s density. The mixture’s average molar mass depends on the proportion of each gas. Humid air or oxygen mixed with another gas requires those components to be included in a mixture calculation.

Ideal-Gas Estimate and Its Limits

The ideal-gas equation is a useful approximation for oxygen at ordinary temperatures and pressures. Real gas molecules occupy space and interact with one another, effects not represented by the simple formula. At sufficiently high pressure or near a condensation point, the ideal estimate can differ noticeably from a real-gas value. A real-gas equation of state or a reliable property table is preferable when high accuracy is needed under such conditions.

Oxygen is not normally a liquid or gas at every possible temperature and pressure. The calculator’s equation returns a mathematical ideal-gas estimate even where oxygen may condense or where the assumed phase is not physically stable. Check phase conditions and use a suitable reference source for engineering or high-pressure work.

Density is also not the same as “heaviness” in every practical setting. At equal temperature and pressure, oxygen is denser than air because its molar mass (about 32 g/mol) exceeds air’s average molar mass (about 29 g/mol). But gas motion, mixing, temperature gradients, and ventilation affect how gases distribute in a room; density alone does not predict a stable layer or safe breathing conditions.

Frequently Asked Questions

What is the density of oxygen gas at room temperature?
At 20 °C and 1 atm, the ideal-gas estimate is about 1.33 g/L (1.33 kg/m3). The exact value depends on the specified temperature, pressure, composition, and whether a real-gas correction is needed.

What is the density of O2 at STP?
At 0 °C and 1 atm (101.325 kPa), the ideal-gas estimate is about 1.31 g/L. State the temperature and pressure because “STP” is used with more than one convention.

Is oxygen heavier than air?
Pure oxygen is denser than dry air at the same temperature and pressure: their approximate molar masses are 31.998 and 28.97 g/mol, respectively. This comparison does not by itself predict how gases will mix or move in a particular space.

Does oxygen density change with pressure?
Yes. For a fixed temperature and ideal-gas behavior, density increases in direct proportion to absolute pressure. Doubling absolute pressure doubles the calculated density.

Why does the calculator need absolute pressure?
The gas law uses pressure measured from zero pressure (a vacuum). Gauge pressure omits atmospheric pressure, so using it directly would underestimate the gas density.

Safety and Scope

This is a gas-property calculation, not a guide to handling or supplying oxygen. Oxygen supports combustion: materials can ignite more readily and burn more intensely in oxygen-enriched environments. Keep oxygen away from flames, sparks, oils, and grease, and follow applicable safety procedures and equipment instructions when oxygen is present.

Related

Formula used
in t | Temperature | °C | 20 | -273.15
in p | Absolute pressure | kPa | 101.325 | 0.001
out d | O2 gas density | kg/m^3 | p * 1000 * 0.031998 / (8.31446261815324 * (t + 273.15)) | 3
out dg | O2 gas density | g/L | d | 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

The whole Moles & Molar Mass section →