Calculating the Density of a Gas — Overview & Examples

Before this, knowIdeal Gas Law — Overview & Calculations

Read · 4 min

We finally made it through all those gas laws! They finished on a high note with the ideal gas law. It's a powerful tool that helps us understand gas behavior. We also saw that we can use it to calculate a gas's molar mass. But, it can help us even more. Today it will help us determine a gas's density!

Why do Gases have Variable Densities?

Remember that a substance's density is its mass divided by its volume, in other words its mass per unit volume. Gases do not have a fixed density. Why not? Let's think about the physical properties of gases. We learned that gases are expandable and compressible. Their volumes can change. So, they have shifting densities. Anything that alters a gas's volume affects its density. But, solids and liquids have constant volumes. We learned about this when we compared the volumes of the phases of matter. So, we can give a fixed value for the density of a solid or liquid. But, for a gas's density, we have to state the temperature and pressure. Most often, we give the density at standard temperature and pressure. For example, chlorine, a halogen, has a density of 3.17 gL\frac{g}{L} at STP.

Deriving Density from the Ideal Gas Law

The first thing we need to do is derive a formula for a gas's density. We can do it from the ideal gas law.

  1. Start with the ideal gas law: PV=nRTPV=nRT.

  2. Solve the density equation for volume: ρ=mV→V=mρ\rho=\frac{m}{V} \rightarrow V=\frac{m}{\rho}.

  3. Insert volume into the ideal gas law: P×mρ=nRTP \times \frac{m}{\rho}=nRT.

  4. Solve for density: ρ=P×mnRT\rho=\frac{P \times m}{nRT}.

  5. Simplify by converting moles to molar mass (MM): ρ=P×mMm×R×T\rho=\frac{P \times m}{\frac{M}{m}\times R \times T}.

  6. Simplify by multiplying the top and bottom by Mm\frac{M}{m}: ρ=P×m×MmMm×mM×R×T\rho=\frac{P \times m \times \frac{M}{m}}{\frac{M}{m}\times \frac{m}{M} \times R \times T}.

  7. Finally, finish simplifying: ρ=PMRT\rho=\frac{PM}{RT}.

Why Does Density Depend on Temperature, Pressure, and Molar Mass?

In the final form of our equation, we see that a gas's density depends on the temperature, pressure, and molar mass. Remember, density is defined as a gas's mass divided by volume. So anything that affects its volume impacts the density. To understand why we need to think about the gas laws.

Charles' law tells us that volume and temperature are directly related. Adding heat raises the kinetic energy. So, there will be more space between the molecules. They have a larger volume. The same mass is taking up more space. So, their density decreased.

Boyle's law connected the pressure and volume. They have an indirect relationship. Imagine we have a movable piston. When the gas molecules collide with the piston, they exert a force. If the system's volume increases, there will be fewer collisions. Again, we have the same mass but with more space. So, the density changes.

What about the molar mass? Let's imagine one mole of hydrogen gas and one mole of the noble gas, neon. Neon has a much larger molar mass. From Avogadro's law, we know there is the same number of particles. But, they have different masses. So, their densities are different.

Steps for Solving Gas Density Problems

Your teacher will ask you to use the gas density formula. Most often, you'll want to find a gas's density or its molar mass. In both cases, you can use the same equation. There are three steps for solving gas density problems.

  • List what you know.

  • Convert the units based on the universal gas constant. I recommend using R=0.0821L×atmmol×KR= 0.0821\frac{L \times atm}{mol \times K}.

  • Plug everything into the density equation.

Gas Density Example Problems

What we're learning has practical applications in environmental chemistry. For our example problems, we'll look at some gases in our atmosphere.

  1. The troposphere is the lowest layer of our atmosphere. It varies in height from 4 kilometers to 12 kilometers. At its highest point, the temperature is about -60.0 oC^{o}C. The air pressure at the top is about 100.0 millibar. Let's calculate the density of carbon dioxide gas in the troposphere.

Start by listing what we know.

  • P= 100.0 millibar

  • T= -60.0 oC^{o}C

  • R= 0.0821 L×atmmol×K\frac{L \times atm}{mol \times K}

  • M= 44.0 gmol\frac{g}{mol}

  • ρ=?\rho=?

Next, convert your units to match the ideal gas constant.

  • P=100.0 millibar →\rightarrow .098 atm

  • T= -60.0 oC^{o}C →\rightarrow 213.15 K

  • R= 0.0821 L×atmmol×K\frac{L \times atm}{mol \times K}

  • M= 44.0 gmol\frac{g}{mol}

Plug everything into the density equation.

  • ρ=PMRT\rho=\frac{PM}{RT} →\rightarrow ρ=.098atm×44.0gmol0.0821L×atmmol×K×213.15L\rho=\frac{.098 atm \times 44.0 \frac{g}{mol}}{0.0821 \frac{L \times atm}{mol \times K} \times 213.15 L} →\rightarrow ρ=0.27gL\rho=0.27\frac{g}{L}
  1. What changes would we need to make if we wanted to calculate the density of methane?
  • The only thing we need to change for a new greenhouse gas is molar mass.

  • ρ=PMRT\rho=\frac{PM}{RT} →\rightarrow ρ=.098atm.×14.0gmol0.0821L×atmmol×K×213.15L\rho=\frac{.098 atm. \times 14.0\frac{g}{mol}}{0.0821 \frac{L \times atm}{mol \times K} \times 213.15 L} →\rightarrow ρ=0.078gL\rho=0.078\frac{g}{L}

  1. If we know the density, we can also solve for the molar mass. Let's say we have an unknown gas at standard temperature and pressure. Let's find its molar mass given a density of 1.25gL1.25\frac{g}{L}.

Let's write what we know.

  • ρ=1.25gL\rho= 1.25\frac{g}{L}

  • P= 1.0 atm

  • K= 273.15 K

  • R=0.0821L×atmmol×KR= 0.0821\frac{L \times atm}{mol \times K}

  • M=?

All the units are correct. So, we plug everything into the density formula.

  • ρ=PMRT\rho=\frac{PM}{RT} →\rightarrow 1.25gL=1.0atm×M0.0821L×atmmol×K×273.15K1.25\frac{g}{L}=\frac{1.0 atm \times M}{0.0821 \frac{L \times atm}{mol \times K} \times 273.15 K} →\rightarrow M=28.0gmolM=28.0\frac{g}{mol}

  • The gas is diatomic nitrogen!

There is a second way to solve this problem.

  • At STP, we know that one mole of gas has a volume of 22.4 L. Let's multiply the density by the molar volume.

  • 1.25gL×22.4Lmol1.25 \frac{g}{L} \times 22.4 \frac{L}{mol} →\rightarrow 28.0gmol28.0 \frac{g}{mol} (THIS ONLY WORKS AT STP!!!!)

Video

(Video) Ideal Gas Law Practice Problems with Density

by Tyler DeWitt

In this video, Tyler DeWitt connects density and the ideal gas law. He walks through two example problems. At the end of the video, he shows you how to derive the gas density from the ideal gas law. If you want a better understanding of gas density problems, this video will help.

Type a concept, like “slope” or “photosynthesis”.

↑ ↓ to choose · Enter to openSearch explanations and problems