ChemistryStates of MatterA-Level
WJECEdexcelCambridgeAQAAPIBAbiturBaccalauréat Général

Gas Density

Density of an ideal gas.

Understand the formulaSee the free derivationOpen the full walkthrough

This public page keeps the free explanation visible and leaves premium worked solving, advanced walkthroughs, and saved study tools inside the app.

Core idea

Overview

The gas density equation expresses the mass per unit volume of an ideal gas as a function of its pressure, molar mass, and temperature. It is derived from the Ideal Gas Law by substituting the relationship between moles, mass, and molar mass into the standard PV=nRT formula.

When to use: This formula is applicable when determining the density of a gas under specific environmental conditions or when identifying an unknown gas using its measured density. It assumes the gas behaves ideally, which is most accurate at high temperatures and low pressures.

Why it matters: Calculating gas density is essential for predicting the buoyancy of balloons, understanding atmospheric layering, and assessing the safety of industrial gas leaks. In chemical engineering, it allows for the precise calculation of mass flow rates within piping systems.

Symbols

Variables

\rho = Density, P = Pressure, M = Molar Mass, R = Gas Constant, T = Temperature

Density
Pressure
Molar Mass
Gas Constant
Temperature

Walkthrough

Derivation

Derivation of Gas Density from the Ideal Gas Law

Derives an expression for gas density in terms of pressure, temperature, and molar mass using pV=nRT.

  • Gas behaves ideally.
1

Start with the Ideal Gas Law:

Relates pressure, volume, moles, and temperature for an ideal gas.

2

Substitute n = m/M:

Replace moles with mass m divided by molar mass M.

3

Rearrange to Get Density:

Since , rearrange to isolate m/V.

Result

Source: AQA A-Level Chemistry — Amount of Substance

Free formulas

Rearrangements

Solve for

Make d the subject

d is already the subject of the formula.

Difficulty: 1/5

Solve for

Make M the subject

Start from the Gas Density equation. To make M the subject, multiply both sides by RT, then divide by P.

Difficulty: 2/5

Solve for

Make P the subject

To make P the subject from the Gas Density equation, multiply both sides by RT, then divide by M.

Difficulty: 2/5

Solve for

Make T the subject

Rearrange the Gas Density equation to make Temperature () the subject.

Difficulty: 2/5

Solve for

Make R the subject

To make R (the gas constant) the subject of the Gas Density equation, first clear the denominator by multiplying both sides by RT, then divide by T to isolate R.

Difficulty: 2/5

The static page shows the finished rearrangements. The app keeps the full worked algebra walkthrough.

Visual intuition

Graph

The graph is a straight line passing through the origin with a slope of M/RT, showing that density increases linearly as pressure increases. For a chemistry student, this means that at low pressure values the gas is sparse and less dense, while at high pressure values the gas particles are packed more tightly together. The most important feature is that the linear relationship means doubling the pressure will exactly double the density of the gas.

Graph type: linear

Why it behaves this way

Intuition

Imagine gas molecules as tiny, constantly moving particles. Density is determined by how many of these particles (and how heavy they are) are packed into a specific volume.

ρ
Mass per unit volume of the gas.
Represents how 'packed' the gas is; more mass in the same space means higher density.
P
Force exerted by the gas molecules per unit area on the container walls.
Higher pressure means molecules are pushed closer together, increasing the number of molecules (and thus mass) in a given volume.
M
Mass of one mole of the gas.
For a given number of gas molecules, a higher molar mass means each molecule is heavier, leading to a greater total mass in the same volume.
R
The ideal gas constant, a proportionality constant in the ideal gas law.
A fundamental constant that relates energy, temperature, and amount of substance for ideal gases; it scales the relationship.
T
Absolute temperature, proportional to the average kinetic energy of the gas molecules.
Higher temperature means molecules move faster and tend to spread out more. To maintain the same pressure, they would occupy a larger volume, thus decreasing density.

Signs and relationships

  • P: Pressure is in the numerator because higher pressure compresses the gas, packing more mass into the same volume, thus directly increasing density.
  • M: Molar mass is in the numerator because heavier individual gas molecules (higher molar mass) contribute more mass per unit volume for the same number of molecules, directly increasing density.
  • T: Temperature is in the denominator because higher temperature means molecules move faster and tend to spread out. For a given pressure, this expansion reduces the mass per unit volume, thus inversely decreasing density.

Free study cues

Insight

Canonical usage

The equation is used to calculate gas density by ensuring the units of the gas constant R match the units of pressure and the volume component of density.

Common confusion

Using molar mass in g/mol while using the SI gas constant (8.314 J/mol·K) and pressure in Pascals, which results in a density value that is 1000 times too large.

Dimension note

This equation is not dimensionless; it relates intensive properties to mass density.

Unit systems

kg/m^3 or g/L · In chemistry, g/L is the most common unit for gas density; in SI physics, kg/m^3 is standard.
Pa or atm · Must match the pressure unit used in the gas constant R.
g/mol or kg/mol · Chemists typically use g/mol, but SI calculations require kg/mol to maintain consistency with Joules and Pascals.
K · Temperature must always be in Kelvin (absolute temperature).

One free problem

Practice Problem

Calculate the density of oxygen gas (O₂) at a pressure of 2.00 atm and a temperature of 300 K. Use a molar mass of 32.00 g/mol and R = 0.0821 L·atm/mol·K.

Pressure2 kPa
Molar Mass32 g/mol
Gas Constant0.0821 L kPa/mol K
Temperature300 K

Solve for:

Hint: Plug the values directly into the density formula: d = (P × M) / (R × T).

The full worked solution stays in the interactive walkthrough.

Where it shows up

Real-World Context

Calculating the density of air at different altitudes.

Study smarter

Tips

  • Always convert temperature to Kelvin by adding 273.15 to the Celsius value.
  • Match the units of the gas constant R to the units used for pressure, typically 0.0821 L·atm/(mol·K).
  • Notice that density is directly proportional to pressure but inversely proportional to temperature.

Avoid these traps

Common Mistakes

  • Using Celsius instead of Kelvin.
  • Mismatching R units with P units.

Common questions

Frequently Asked Questions

Derives an expression for gas density in terms of pressure, temperature, and molar mass using pV=nRT.

This formula is applicable when determining the density of a gas under specific environmental conditions or when identifying an unknown gas using its measured density. It assumes the gas behaves ideally, which is most accurate at high temperatures and low pressures.

Calculating gas density is essential for predicting the buoyancy of balloons, understanding atmospheric layering, and assessing the safety of industrial gas leaks. In chemical engineering, it allows for the precise calculation of mass flow rates within piping systems.

Using Celsius instead of Kelvin. Mismatching R units with P units.

Calculating the density of air at different altitudes.

Always convert temperature to Kelvin by adding 273.15 to the Celsius value. Match the units of the gas constant R to the units used for pressure, typically 0.0821 L·atm/(mol·K). Notice that density is directly proportional to pressure but inversely proportional to temperature.

References

Sources

  1. Atkins' Physical Chemistry (11th ed.)
  2. Halliday, Resnick, Walker, Fundamentals of Physics (11th ed.)
  3. Wikipedia: Ideal gas law
  4. NIST CODATA
  5. IUPAC Gold Book
  6. Atkins' Physical Chemistry
  7. NIST Chemistry WebBook
  8. Wikipedia: Ideal gas