Gas Density Calculator
Density from molar mass, pressure and temperature.
Density from molar mass, pressure and temperature.
Optional. Type a name like sucrose or a formula like CuSO4·5H2O and the molar mass is filled in for you. Leave blank to use the number below.
CO₂ is 44.01, air averages 28.96, methane 16.04.
Gas density
1.9635 g/L
1.52× the density of air — sinks
Density comes straight out of the ideal gas law rearranged: ρ = PM/RT. At the same pressure and temperature every gas occupies the same molar volume, so density depends only on molar mass, which is why the answer scales exactly with M. The comparison against air is the practically useful part. Carbon dioxide is about 1.5× air and pools in low spaces, which is why CO₂ is a hazard in cellars and grain silos. Methane is 0.55× and rises. Real gases deviate from this near their boiling point or above roughly 10 atm.
How the Gas Density Calculator works
Enter a molar mass, pressure and temperature to get the gas density in g/L and kg/m³, the molar volume at those conditions, and how the gas compares to air. That last figure is the practical one — it tells you whether a gas pools at floor level or rises.
Also known as: density of a gas at stp · ideal gas density calculator · molar volume calculator · is this gas heavier than air
Where to go next
The Gas Density question rarely arrives on its own. These are the ones that usually come with it:
- Combined Gas Law Calculator — P₁V₁/T₁ = P₂V₂/T₂, with kelvin handled for you.
- Graham's Law Calculator — Effusion rates, as the inverse square root of molar mass.
- Molar Mass Calculator — Any formula, with brackets, hydrates and percent composition.
- Molar Volume Calculator — STP is ambiguous — 22.414 and 22.711 are both correct.
Frequently asked questions
How do I calculate the density of a gas?
ρ = PM/RT — pressure times molar mass, divided by the gas constant times absolute temperature. At STP that reduces to molar mass divided by 22.414 L.
Why does carbon dioxide collect at floor level?
Because at 44 g/mol it is about 1.5 times as dense as air at 29 g/mol. In cellars, wells and grain silos CO₂ can build up as an invisible layer at the bottom, which is why those spaces are gas-tested before entry.
Do all gases have the same molar volume?
Very nearly, at the same temperature and pressure — 22.414 L/mol at 0 °C and 1 atm. That is Avogadro's law, and it is why gas density depends only on molar mass.
When does this stop being accurate?
Near the boiling point, above roughly 10 atm, or for strongly associating gases. Under those conditions molecules interact enough that the ideal gas law needs a correction such as van der Waals.
Put this calculator on your own site
Free to use, on any site, commercial or not. Paste this where you want it to appear. It is a plain iframe, so it works in WordPress, Squarespace, Wix, Webflow, Ghost and anything else that accepts HTML.
<iframe src="https://www.thecalclibrary.com/embed/gas-density-calculator" width="100%" height="640" style="border:1px solid #e2e8f0;border-radius:12px" loading="lazy" title="Gas Density Calculator"></iframe>
<p style="font:13px/1.5 system-ui,sans-serif;margin:6px 0 0;color:#64748b">Powered by <a href="https://www.thecalclibrary.com/gas-density-calculator" style="color:#64748b">Gas Density Calculator</a> from The Calc Library</p>The only condition is that the credit line below the frame stays in place. That one line is what pays for the tool being free — it is how anyone else finds it.
Related calculators
Combined Gas Law Calculator
P₁V₁/T₁ = P₂V₂/T₂, with kelvin handled for you.
OpenGraham's Law Calculator
Effusion rates, as the inverse square root of molar mass.
OpenMolar Mass Calculator
Any formula, with brackets, hydrates and percent composition.
OpenMolar Volume Calculator
STP is ambiguous — 22.414 and 22.711 are both correct.
Open