Works on this device
Mole & Mass Calculator
Convert a mass in grams to moles and to a number of atoms or molecules, or go the other way. Type the substance as a formula such as H2O, and the tool works out its molar mass.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose Convert.
Your result
How it was worked out
How to use this calculator
- Choose what you know: a mass, an amount in moles, or a number of particles.
- Type the substance as a formula, such as
H2O,NaCl,Ca(OH)2,CuSO4.5H2OorFe. You can type a molar mass in g/mol instead. - Enter the number and choose its unit. Type a large number as
3.011e23or3.011 × 10^23. - Choose Convert. The result shows the working, and a table of the atoms of each element in the sample.
The formulas
- Moles from mass: n = m ÷ M, where m is the mass in grams and M is the molar mass in g/mol.
- Mass from moles: m = n × M.
- Particles from moles: N = n × NA, where NA = 6.02214076 × 10^23 per mole is the Avogadro constant.
- Moles from particles: n = N ÷ NA.
- Atoms of one element in a sample: the atoms of that element in one formula unit × the number of formula units.
The molar mass comes from the IUPAC abridged standard atomic weights (2021). For a full breakdown of a molar mass, use the Molar Mass Calculator. To find the limiting reagent of a reaction, use the Stoichiometry Calculator.
Worked examples
36 g of water. The molar mass of H2O is 2 × 1.008 + 15.999 = 18.015 g/mol. Moles: 36 ÷ 18.015 = 1.99833 mol. Molecules: 1.99833 × 6.02214076 × 10^23 = 1.203425 × 10^24. The sample holds twice as many hydrogen atoms: 2.40685 × 10^24.
2.5 mol of carbon dioxide. The molar mass of CO2 is 12.011 + 2 × 15.999 = 44.009 g/mol. Mass: 2.5 × 44.009 = 110.0225 g. Molecules: 2.5 × 6.02214076 × 10^23 = 1.505535 × 10^24.
3.011 × 10^23 atoms of carbon. Moles: 3.011 × 10^23 ÷ 6.02214076 × 10^23 = 0.499988 mol. With the formula C (12.011 g/mol), the mass is 6.00536 g.
Words you may meet
- Mole (mol): the amount of substance that holds exactly 6.02214076 × 10^23 particles.
- Molar mass (g/mol): the mass of one mole. Its number is the same as the relative formula mass (molecular weight, MW).
- Particles: atoms for an element such as Fe, molecules for a compound such as H2O, and formula units for an ionic compound such as NaCl.
- Gram atom: an old name for one mole of atoms of an element. So 2.5 gram atoms of oxygen is 2.5 mol of O atoms, which is 2.5 × 15.999 = 39.9975 g.
Limits you should know
- Molar masses use the IUPAC abridged standard atomic weights (2021), with five significant figures. A typed molar mass is used as you enter it.
- Formulas may have brackets and hydrates. Charges, isotopes and elements without a standard atomic weight (such as Tc or Pu) are not read; type the molar mass as a number for those.
- The number of particles counts formula units of the formula as you typed it. Type
Ofor oxygen atoms andO2for oxygen molecules. - Results are shown to six or seven significant figures. Round them to the significant figures of your data.