The density of a substance is the ratio of its mass to its volume. 
The density of gases can be found based on the ideal gas law:  PV=nRT
where P is pressure in atms, V is volume in liters, n is the number of
moles of the gas, R is the gas constant 0.082057 (L*atm/K*mol), and T is
temperature in Kelvin.  When you rearrange the equation and plug in
equivalent values, the resultant equation is d=PM/RT where d is density
and M is molar mass.
 
 
INSTRUCTIONS:
1. Select a gas by clicking on one of the five gas option buttons.
   Molar Masses:
   O2 = 31.998
   N2 = 28.014
   H2 = 2.0158
   CO2 = 44.09
   Xe = 131.29
2. Vary the pressure and temperature scrollbars to determine the density
of the gas.
Last modified: April 13, 2000