Gas Density
Density of an ideal gas.
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
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.
Start with the Ideal Gas Law:
Relates pressure, volume, moles, and temperature for an ideal gas.
Substitute n = m/M:
Replace moles with mass m divided by molar mass M.
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.
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
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.
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
- Atkins' Physical Chemistry (11th ed.)
- Halliday, Resnick, Walker, Fundamentals of Physics (11th ed.)
- Wikipedia: Ideal gas law
- NIST CODATA
- IUPAC Gold Book
- Atkins' Physical Chemistry
- NIST Chemistry WebBook
- Wikipedia: Ideal gas