How do I use this calculator?
Choose Ideal gas density or Liquid or solid density. Enter the required quantities to calculate density.
Calculator Operations:
- For a liquid or solid, enter its molar mass and actual molar volume to calculate density.
- For a gas, enter the molar mass and choose the gas conditions.
- For custom gas conditions, enter a temperature above absolute zero and an absolute pressure greater than zero.
Ideal gas density uses ฯ = MยทP / (RยทT). This is an ideal-gas estimate; deviations can be significant at high pressure or near condensation.
Use the calculate button when all known values have been entered and use the reset button when you want to clear the values from the calculator.
Convert g/mol to density: calculate gas density from molar mass at STP or custom conditions, find molar mass from density, or use molar volume.
Related Calculators
- Density to Molar Mass Calculator
- Density Calculator
- Relative Density Calculator
- Slurry Density Calculator
- M To mg/L Calculator
- All Chemistry Calculators
Calculator Functions
| Function | What it does | What it requires |
|---|---|---|
| Ideal gas density | Finds the density of a gas from its molar mass at a set temperature and pressure | Requires the molar mass (g/mol or kg/mol) and the gas conditions: one of four presets, or a custom temperature and absolute pressure |
| Molar mass from gas density | Finds the molar mass of a gas from its density at a set temperature and pressure | Requires the gas density (g/L, kg/mยณ or g/mL) and the gas conditions |
| Liquid or solid density | Finds density from molar mass and molar volume | Requires the molar mass and the molar volume of the substance (cmยณ/mol, mL/mol or L/mol) at its actual conditions |
The gas presets are 0 ยฐC and 1 atm, 20 ยฐC and 1 atm, 25 ยฐC and 1 bar, and 25 ยฐC and 1 atm. A custom temperature can be in ยฐC, K or ยฐF, and a custom pressure in atm, bar, kPa, Pa, mmHg or psi [3]. The molar mass field offers approximate values for helium, hydrogen, methane, nitrogen, oxygen, carbon dioxide, ammonia and dry air. Density can be shown in g/L, kg/mยณ or g/mL, and every result also lists the molar density in mol/L.
g/mol to Density Formulas
| ฯ | Gas density (g/L, which is the same number as kg/mยณ) |
| M | Molar mass (g/mol) |
| P | Absolute pressure (kPa) |
| R | Molar gas constant, 8.314462618 LยทkPa/(molยทK) [2] |
| T | Absolute temperature (K) |
This is the ideal gas law written for density [1]. A molar mass alone has no density: the same gas is denser when it is colder or under more pressure, so the conditions are part of the question.
Ideal gas density
The main formula applies directly. Carbon dioxide at 44.0095 g/mol, 0 ยฐC and 1 atm (273.15 K and 101.325 kPa) comes to 44.0095 ร 101.325 รท (8.314462618 ร 273.15) = 1.9635 g/L. The table gives the same calculation for the gases offered in the molar mass field.
| Gas | Molar mass (g/mol) | Density at 0 ยฐC, 1 atm (g/L) | Density at 25 ยฐC, 1 atm (g/L) |
|---|---|---|---|
| Hydrogen | 2.01588 | 0.0899 | 0.0824 |
| Helium | 4.0026 | 0.1786 | 0.1636 |
| Methane | 16.0425 | 0.7157 | 0.6557 |
| Ammonia | 17.0305 | 0.7598 | 0.6961 |
| Nitrogen | 28.0134 | 1.2498 | 1.1450 |
| Dry air | 28.97 | 1.2925 | 1.1841 |
| Oxygen | 31.9988 | 1.4276 | 1.3079 |
| Carbon dioxide | 44.0095 | 1.9635 | 1.7988 |
Molar density
Molar density is the amount of substance per unit volume, in mol/L. For an ideal gas it depends only on temperature and pressure, not on which gas it is: 0.044615 mol/L at 0 ยฐC and 1 atm, which is 1 รท 22.414 L/mol. The calculator shows it under every result. For a liquid or solid it is 1 รท Vm. Multiplying a molar density by the molar mass gives the density in g/L.
Molar mass from gas density
A gas measured at 1.2506 g/L at 0 ยฐC and 1 atm has a molar mass of 1.2506 ร 8.314462618 ร 273.15 รท 101.325 = 28.0309 g/mol. The result is also shown as a molecular mass in Da, which is the same number.
Liquid or solid density
Vm is the molar volume, the space one mole of the substance takes up at its actual temperature and pressure. A substance of 58.44 g/mol with a molar volume of 27 cmยณ/mol has a density of 58.44 รท 27 = 2.16444 g/mL. Liquids and solids do not follow the gas law, so the molar volume has to come from a measurement or a reference table.
Limits of This Estimate
- The gas functions treat the gas as ideal. Real gases drift from this at high pressure and near the point where they condense [1].
- Temperature is absolute and pressure is absolute, not gauge. A gauge reading needs the local atmospheric pressure added before it goes in.
- The 0 ยฐC and 1 atm preset is one convention for standard conditions. For a standard set at 1 bar or at another temperature, enter custom conditions.
- The molar masses offered in the list are approximate. Dry air is a mixture, and its value is an average.
Sources
- NASA Glenn Research Center, Equation of State: ideal gas law in its density form, and that it holds only for an ideal gas
- NIST, CODATA Value: molar gas constant: R = 8.314462618 J/(molยทK), exact
- NIST, Guide for the Use of the International System of Units (SP 811), Appendix B.8: pascals in a standard atmosphere, mmHg and psi
