Convert mass to moles using the formula n = m / M, where n is moles, m is mass in grams, and M is molar mass in g/mol. You can also reverse-calculate mass from moles. Select a preset substance or enter any molar mass directly.
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.
If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.
Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.
Calculate.co.nz is the sister site of CalculatorHub.com, the world's largest calculator website by tool count.
All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.
Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.
Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.
Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.
All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.
About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About · Privacy policy · Terms of use
Reviewed and maintained. Last reviewed 2026-07-02 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.
© 2026 Calculate.co.nz. All rights reserved. Building free NZ calculators since 2011.