# Convert grams to liters and liters to grams

This online calculator converts grams to liters and liters to grams given a gas formula. It uses molar volume of a gas at STP (standard temperature and pressure)

This calculator finishes the topic started in Convert moles to liters and liters to moles calculator. Because the molar volume is the same for all ideal gases and is known, we can convert from grams to liters and vice versa if we know formula of a gas.

These are steps to convert from grams of a gas to liters of a gas:

- find the molar mass from formula
- find moles by dividing given mass to molar mass
- find volume by multiplying number of moles to molar volume.

And these are steps to convert from liters of a gas to grams of a gas:

- find moles by diving given volume to molar volume
- find the molar mass from formula
- find mass by multiplying number of moles to molar mass

Note that this calculator uses molar volume at STP (standard temperature and pressure). To convert to it (or from it), you can use Molar volume calculator.

## Comments