Gas density calculator
Calculate gas density from molar mass, pressure and temperature.
anındahesapla Editör Ekibi · Updated:
Type in the weight of one mole of the substance, the pressure and the temperature, and this tool returns the density of the gas in two units. With 44 g/mol, 1 atm and 273 K, the answer is 1.9641 g/L, which equals 1.9641 kg/m³.
Behind the scenes sits rho = PM/RT, a rearranged form of the ideal gas law. Knowing how dense a gas is lets you estimate how much material a cylinder holds, predict whether a leak will rise toward the ceiling or settle near the floor, and check laboratory measurements against theory. Try changing one input at a time. Watching the output shift after each edit builds an intuition for how each variable pushes the result up or down, and that intuition helps when a figure on a lab sheet looks suspicious.
Result
1.9641 g/L
Gas density: 1.9641 g/L
Result in all units
Step-by-step solution
ρ = PM/RT
What gas density means
Density describes how much mass occupies a unit of volume. Solids and liquids keep a nearly fixed value, while gases behave differently. Their molecules sit far apart, and those gaps shrink or widen whenever pressure or temperature changes. Squeeze a sample and it grows denser. Heat it at constant pressure and it thins out. Any density figure for a gas therefore only makes sense when quoted alongside the conditions under which it was measured or calculated.
Three inputs drive the result. Molar mass (M) is the weight of one mole of the substance, given in g/mol. Pressure (P) goes in as atm, and temperature (T) in kelvin. R stands for the ideal gas constant, taken as 0.08206 so that its units line up with atm, litres and kelvin. Kelvin is required because only an absolute scale keeps the ratio physically sensible. Output appears in g/L, a unit numerically identical to kg/m³.
Uses turn up in many settings. Chemistry courses run the equation in reverse, identifying an unknown gas by deriving its molar mass from a measured density. Ventilation planners rely on it to judge whether a heavier-than-air vapour might pool in a basement or trench. Balloon lift depends on the density gap between the filling and the surrounding air. Engineers sizing pipelines and storage tanks also want the figure under the conditions a gas will face in service, since a value taken at room conditions can mislead badly when the line runs hot or under high pressure.
How to calculate gas density
Multiply pressure by molar mass, then divide by the product of the gas constant and temperature. Higher pressure or a heavier molecule raises the density, while a warmer sample lowers it. For the default inputs, the full chain reads (1 × 44) ÷ (0.08206 × 273) = 1.9641 g/L. Each litre of that gas therefore carries 1.9641 grams. Follow the steps below to reproduce the result by hand and compare it with the table.
- Type the molar mass in g/mol into the Molar mass (M) field.
- Enter the pressure in atm in the Pressure (P) field.
- Put the temperature in kelvin into the Temperature (T) field.
- Multiply pressure by molar mass and divide by 0.08206 times the temperature.
- Read the answer in g/L, or use the same number in kg/m³.
| Output | Value |
|---|---|
| Density | 1.9641 g/L |
| kg/m³ | 1.9641 kg/m³ |
A frequent slip happens before any arithmetic starts. Readings from a tyre gauge or weather report often come in kPa, bar or mmHg, and typing such a figure into a field that expects atm inflates or shrinks the output by a large factor. Converting the reading first avoids that trap. Units on the top line need equal care (grams per mole, never kilograms per mole).