This calculator converts mass to moles, and moles to mass, using the standard chemistry formula n = m / M, where n is the amount of substance in moles, m is mass in grams, and M is molar mass in grams per mole. Choose one of the preset substances, such as water, sodium chloride, glucose, sulfuric acid or several common metals, and its molar mass fills in automatically, or type in your own molar mass for any element or compound you are working with. Switch between Mass to Moles and Moles to Mass mode depending on which value you already know, then enter your mass in grams or your amount in moles. The calculator instantly returns the moles, the corresponding mass, the number of molecules or atoms in scientific notation using Avogadro's number, and the molar mass used in the calculation, alongside a full breakdown showing the formula applied and the mass per particle. It is built for NCEA Level 2 and 3 Chemistry, university coursework and lab preparation, wherever you need to move quickly between grams and moles without reaching for a periodic table by hand. Because it uses IUPAC standard atomic weights, results are accurate for everyday chemistry problems, though very precise laboratory work should account for the specific isotopic composition of your sample.
The mole is the SI unit for amount of substance. The relationship between mass, moles, and molar mass is given by:
n = m / M
Where n is the number of moles (mol), m is the mass in grams (g), and M is the molar mass in grams per mole (g/mol). Rearranging gives you mass (m = n x M) or molar mass (M = m / n).
How many moles are in 18.015 g of water (H2O)?
This matches the calculator's default output exactly.
The molar mass of an element equals its relative atomic mass in g/mol. For a compound, add the molar masses of all atoms in the formula.
| Substance | Formula | Molar Mass (g/mol) | Calculation |
|---|---|---|---|
| Water | H2O | 18.015 | 2(1.008) + 15.999 |
| Sodium chloride | NaCl | 58.44 | 22.990 + 35.45 |
| Carbon dioxide | CO2 | 44.01 | 12.011 + 2(15.999) |
| Glucose | C6H12O6 | 180.156 | 6(12.011) + 12(1.008) + 6(15.999) |
| Sulfuric acid | H2SO4 | 98.079 | 2(1.008) + 32.06 + 4(15.999) |
| Calcium carbonate | CaCO3 | 100.087 | 40.078 + 12.011 + 3(15.999) |
One mole of any substance contains exactly 6.02214076 x 1023 particles (atoms, molecules, or formula units). This is Avogadro's number (NA). To find the number of particles, multiply moles by NA: particles = n x 6.02214076 x 1023.
| Substance | Mass | Moles | Molecules |
|---|---|---|---|
| Water (H2O) | 18.015 g | 1.000 mol | 6.022 x 1023 |
| Water (H2O) | 9.008 g | 0.500 mol | 3.011 x 1023 |
| NaCl | 58.44 g | 1.000 mol | 6.022 x 1023 |
| CO2 | 44.01 g | 1.000 mol | 6.022 x 1023 |
| Glucose (C6H12O6) | 180.156 g | 1.000 mol | 6.022 x 1023 |
Sources and method: International Union of Pure and Applied Chemistry (IUPAC), 2021 atomic weights table (doi.org/10.1515/pac-2019-0603). IUPAC SI unit definitions, 2019 revision (mole defined as exactly 6.02214076 x 1023 elementary entities). Formula n = m / M is standard stoichiometry as taught in NCEA Level 2 and 3 Chemistry.
This calculator is for educational use. Molar masses are rounded to three decimal places for most compounds. For precise laboratory work, use IUPAC standard atomic weights for your specific isotopic composition.