Grams to Moles Calculator
With this grams to moles calculator, you can swiftly find how to calculate moles to grams for any substance. It can also work the other way around as a grams to moles conversion tool! Read on to learn the grams to moles formula, try solving a problem of how to convert grams to moles yourself, and forget having any issues converting g
to mol
in the future!
🙋 Do you want to learn more about moles? Omni's mole calculator will help you gain knowledge.
How to calculate moles from grams?  Grams to moles formula
To correctly estimate the number of moles, n
, of a substance of a specific mass, m
, (in grams), you need to follow the grams to moles formula:
n = m / M
,
where:
M
is the molar mass of this material. The unit is typicallyg/mol
.
But wait, what actually is a mole? The mole is the SI unit of measurement for the amount of a substance. In one mole of matter, there are precisely 6.02214085774 × 10²³
atoms, molecules, or anything else. This tremendous value refers to Avogadro's number (feel free to check our Avogadro's number calculator to find more insights). In other words, it's the unit of quantity, similarly to a dozen or a gross.
Anyway, that's quite a lot, isn't it? This is the reason why it's more convenient to know how to convert grams to moles instead of grams to the number of atoms. This grams to moles calculator helps you evaluate the right result in a fraction of a second.
How to use g to mol calculator?
The tool is really userfriendly and pretty straightforward to use:

Pick one of the possible groups of compounds (you can choose one from Common Gases and Liquids, Salts, Acids, Alkalis, Organic, or Pure Metals).

Find the chemical of your desire from the second list. You can also enter any custom value for molar mass.

Input the mass of your substance.

…And that's all! Our grams to moles calculator knows how to do its stuff!

You can also find the total number of molecules (or atoms) in the
Advanced mode
.
How to convert grams to moles: an example
Take a look at the example of how to calculate moles from grams. Imagine you have 6 liters of pure water:

Find the molar mass of a water molecule (H₂O). It's ca.
18.015 g/mol
. 
Convert the volume of the water to its mass, assuming that the density of pure water is
998 kg/m³
:m = 6 l × 998 kg/m³ = 0.006 m³ × 998 kg/m³= 5.988 kg
. 
It's easier to work with grams, so convert the mass:
5.988 kg = 5988 g
. 
As you already know how the grams to moles conversion work, find the number of moles:
n = 5988 g / 18.015 g/mol = 332.4 mol
.
You can always use our grams to moles calculator to check the result!
Knowing how to convert grams to moles may be helpful in numerous chemical tasks, e.g., finding the mole fraction of a solution. There is also a solution to try the mole fraction calculator instead.