Molar mass of gas calculator explained
Collecting a gas sample and measuring its pressure, volume, temperature, and mass lets you determine its molar mass through the ideal gas law. This calculator applies to find moles {moles}, then divides the measured mass {mass} by to report molar mass {molar_mass}.
Use it to confirm the identity of laboratory gases, check whether a sample is dry, or demonstrate how density and molar mass are connected.
How the conversion works
Starting from :
where is absolute pressure, is volume, is absolute temperature, is the universal gas constant, is mass, and is molar mass. The calculator keeps configurable so you can use L atm mol K, J mol K, or another unit system.
Units and conversions
| Quantity | Units | Notes |
|---|---|---|
| Pressure | atm, bar, kPa | Convert gauge readings to absolute pressure. |
| Volume | L, m | Must match the pressure unit and chosen . |
| Temperature | K | Convert deg C to K by adding 273.15. |
| Gas constant | depends on units | e.g., 0.082057 L atm mol K. |
| Mass | g | Same unit appears in molar mass output. |
| Molar mass | g/mol | . |
Worked examples
- Identify an unknown cylinder gas
, , , , .
The value suggests the gas could be SO (64 g/mol) with moisture or another heavier species present; check for leaks or impurities.
- Confirm density during gas evolution
collected at , , .
This matches benzene vapor (78.1 g/mol), confirming the sample is dry.
Tips and pitfalls
- Correct for water vapor pressure if the gas was collected over water; subtract from total pressure before applying the formula.
- Always use absolute temperature; forgetting to convert deg C to K is the most common error.
- For high-pressure or low-temperature data, apply a compressibility factor () or a real-gas equation of state to improve accuracy.
- Maintain unit consistency—if is in kPa and in m, use J mol K.