anındahesapla

Gas density calculator

Calculate gas density from molar mass, pressure and temperature.

· Updated:

WhatsApp X Facebook

Type in the weight of one mole of the substance, the pressure and the temperature, and this tool returns the density of the gas in two units. With 44 g/mol, 1 atm and 273 K, the answer is 1.9641 g/L, which equals 1.9641 kg/m³.

Behind the scenes sits rho = PM/RT, a rearranged form of the ideal gas law. Knowing how dense a gas is lets you estimate how much material a cylinder holds, predict whether a leak will rise toward the ceiling or settle near the floor, and check laboratory measurements against theory. Try changing one input at a time. Watching the output shift after each edit builds an intuition for how each variable pushes the result up or down, and that intuition helps when a figure on a lab sheet looks suspicious.

g/mol
atm
K

Result

1.9641 g/L

Gas density: 1.9641 g/L

ρ = PM/RT

What gas density means

Density describes how much mass occupies a unit of volume. Solids and liquids keep a nearly fixed value, while gases behave differently. Their molecules sit far apart, and those gaps shrink or widen whenever pressure or temperature changes. Squeeze a sample and it grows denser. Heat it at constant pressure and it thins out. Any density figure for a gas therefore only makes sense when quoted alongside the conditions under which it was measured or calculated.

Three inputs drive the result. Molar mass (M) is the weight of one mole of the substance, given in g/mol. Pressure (P) goes in as atm, and temperature (T) in kelvin. R stands for the ideal gas constant, taken as 0.08206 so that its units line up with atm, litres and kelvin. Kelvin is required because only an absolute scale keeps the ratio physically sensible. Output appears in g/L, a unit numerically identical to kg/m³.

Uses turn up in many settings. Chemistry courses run the equation in reverse, identifying an unknown gas by deriving its molar mass from a measured density. Ventilation planners rely on it to judge whether a heavier-than-air vapour might pool in a basement or trench. Balloon lift depends on the density gap between the filling and the surrounding air. Engineers sizing pipelines and storage tanks also want the figure under the conditions a gas will face in service, since a value taken at room conditions can mislead badly when the line runs hot or under high pressure.

How to calculate gas density

Multiply pressure by molar mass, then divide by the product of the gas constant and temperature. Higher pressure or a heavier molecule raises the density, while a warmer sample lowers it. For the default inputs, the full chain reads (1 × 44) ÷ (0.08206 × 273) = 1.9641 g/L. Each litre of that gas therefore carries 1.9641 grams. Follow the steps below to reproduce the result by hand and compare it with the table.

  1. Type the molar mass in g/mol into the Molar mass (M) field.
  2. Enter the pressure in atm in the Pressure (P) field.
  3. Put the temperature in kelvin into the Temperature (T) field.
  4. Multiply pressure by molar mass and divide by 0.08206 times the temperature.
  5. Read the answer in g/L, or use the same number in kg/m³.
OutputValue
Density1.9641 g/L
kg/m³1.9641 kg/m³

A frequent slip happens before any arithmetic starts. Readings from a tyre gauge or weather report often come in kPa, bar or mmHg, and typing such a figure into a field that expects atm inflates or shrinks the output by a large factor. Converting the reading first avoids that trap. Units on the top line need equal care (grams per mole, never kilograms per mole).

Frequently Asked Questions

What is the formula for gas density?
Gas density comes from rho = PM/RT. Here P is pressure, M is molar mass, R is the gas constant and T is absolute temperature in kelvin. Rearranging the ideal gas law to isolate density gives this form.
What happens to gas density when temperature increases?
At constant pressure, a rising temperature makes the gas expand, so its density drops. Temperature sits in the denominator, which is why a larger T gives a smaller result. Warm air rising above cooler air shows this every day.
Why is R taken as 0.08206 in gas density calculations?
With pressure in atm, volume in litres and temperature in kelvin, the matching constant is 0.08206. Using it delivers the answer directly in g/L. Other unit systems call for a different version of R.
Is g/L the same as kg/m³?
Yes. Both units give the same number. In the worked example the density reads 1.9641 g/L and also 1.9641 kg/m³. Which one to quote depends on the conventions of your field.
Can I enter the temperature in Celsius?
No. Kelvin is required since the equation works on an absolute scale. Convert any Celsius reading before typing it in. Zero or a negative entry on the kelvin scale cannot describe a real sample, so such a value points to a slip.

Related calculations