Moles Calculator (Mass to Moles)

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.

Calculate.co.nz is proud to be partnered with Health Based Building, a leader in sustainable and health-conscious building innovation. With over a century of experience, they develop high-performance systems like Foreverbreathe Specification, Magnum Board, and Foreverbreathe Paints to support energy-efficient, non-toxic living environments. Their commitment to healthier homes aligns with our belief that informed choices lead to better outcomes for Kiwi households.
Calculate.co.nz partner: Health Based Building
Standard chemistry formula  Molar masses sourced from IUPAC atomic weights (2021 table).
n = m / M   |   m = n x M   |   M = m / n

1. Substance

g/mol

2. Calculate

g

Results

Moles
1.0000
mol
Mass
18.015
grams
Molecules / Atoms
6.022
x 1023 particles
Molar Mass Used
18.015
g/mol

Calculation Breakdown

ModeMass to Moles
Formulan = m / M
Mass (m)18.015 g
Molar mass (M)18.015 g/mol
Moles (n)1.0000 mol

Particle Count

Avogadro's number (NA)6.02214 x 1023
Moles calculated1.0000 mol
Particles (n x NA)6.022 x 1023
Mass per particle-
SubstanceWater (H2O)
Result: 18.015 g of water (H2O) contains 1.0000 mol.

How to Calculate Moles from Mass

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).

Worked Example

How many moles are in 18.015 g of water (H2O)?

  1. Find the molar mass of water: H2O = (2 x 1.008) + (1 x 15.999) = 2.016 + 15.999 = 18.015 g/mol
  2. Apply the formula: n = m / M = 18.015 / 18.015 = 1.0000 mol
  3. Number of molecules: 1.0000 x 6.02214 x 1023 = 6.022 x 1023 molecules

This matches the calculator's default output exactly.

Finding Molar Mass from the Periodic Table

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.

SubstanceFormulaMolar Mass (g/mol)Calculation
WaterH2O18.0152(1.008) + 15.999
Sodium chlorideNaCl58.4422.990 + 35.45
Carbon dioxideCO244.0112.011 + 2(15.999)
GlucoseC6H12O6180.1566(12.011) + 12(1.008) + 6(15.999)
Sulfuric acidH2SO498.0792(1.008) + 32.06 + 4(15.999)
Calcium carbonateCaCO3100.08740.078 + 12.011 + 3(15.999)

Avogadro's Number and Particle Count

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.

Common Conversions

SubstanceMassMolesMolecules
Water (H2O)18.015 g1.000 mol6.022 x 1023
Water (H2O)9.008 g0.500 mol3.011 x 1023
NaCl58.44 g1.000 mol6.022 x 1023
CO244.01 g1.000 mol6.022 x 1023
Glucose (C6H12O6)180.156 g1.000 mol6.022 x 1023

Related Calculators

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.