Toolvito

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

For example 36 g of water. Grams to moles, and grams to molecules or atoms.

Your values

A formula such as H2O, NaCl, C6H12O6 or Fe, or a molar mass in g/mol such as 18.015.

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.

How to use this calculator

  1. Choose what you know: a mass, an amount in moles, or a number of particles.
  2. Type the substance as a formula, such as H2O, NaCl, Ca(OH)2, CuSO4.5H2O or Fe. You can type a molar mass in g/mol instead.
  3. Enter the number and choose its unit. Type a large number as 3.011e23 or 3.011 × 10^23.
  4. 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 O for oxygen atoms and O2 for oxygen molecules.
  • Results are shown to six or seven significant figures. Round them to the significant figures of your data.

Related tools