Grams to Moles Calculator (Mass, Moles and Particles)

The mole links the mass of a substance you can weigh to the number of particles it contains. Pick a compound or enter any molar mass, then convert grams to moles, moles to grams, or a count of molecules to moles, with every step shown.

Inputs

g/mol

Results

Amount of substance
0.5551
Mass
10
Number of particles
3.3428e23

    RefCHM-STO-001
    Methodn = m/M, N = n·N_A
    UnitsSI
    Date2026-11-24

    Working

    Calculated in SI base units; inputs are converted from the units you choose.

    1. Moles from massn = m/Mn = 10 g / 18.02 g/mol = 0.5551 mol
    2. Number of particlesN = n·N_AN = 0.5551 × 6.02214076 × 10²³ = 3.343e23

    Molar mass and Avogadro’s number

    The molar mass M in g/mol is the sum of the standard atomic weights of the atoms in the formula; water is 2 × 1.008 + 15.999 = 18.015 g/mol. Dividing a mass by M gives the amount in moles, and one mole contains exactly 6.02214076 × 10²³ particles, the Avogadro constant fixed in the 2019 SI. Use the formula mass of the whole unit for salts and hydrates, so copper sulfate pentahydrate includes its five waters.

    Assumptions and limits

    • Molar masses from the CIAAW standard atomic weights (abridged values for elements whose weight is an interval).
    • Pure substance; correct the mass for purity or water content first.

    References

    • Prohaska, T. et al. (2022), Standard atomic weights of the elements 2021 (IUPAC Technical Report), Pure and Applied Chemistry 94, 573–600, and CIAAW (ciaaw.org) revisions of 2024.
    • BIPM, The International System of Units (SI Brochure), 9th edition, 2019 (definition of the mole).

    Questions

    How many moles are in 10 g of water?
    0.5551 mol, which is 3.343 × 10²³ molecules.
    What is the mass of 2.5 mol of sodium chloride?
    146.1 g (58.44 g/mol × 2.5 mol).

    This calculator is a design aid. Check results against the governing code or standard and have critical work verified by a qualified engineer. Read the disclaimer.