Article — Grams to Moles Calculator
Grams to Moles Calculator: Convert Mass to Moles Using Molar Mass
Converting grams to moles uses one formula: n = m / M, where m is mass in grams and M is molar mass in grams per mole. For water (M = 18.015 g/mol), 36 g equals 2 moles, or 1.204 × 1024 molecules. The mole is the SI unit for amount of substance and represents exactly 6.02214076 × 1023 particles since the 2019 SI redefinition.
Chemists work in moles because reactions happen between countable numbers of atoms, but balances measure mass. The grams-to-moles conversion bridges the two scales and shows up at the start of nearly every stoichiometry problem.
What grams to moles means
One mole is a fixed count: 6.02214076 × 1023 particles. The mass of one mole depends on what the substance is. One mole of water weighs 18.015 g; one mole of glucose weighs 180.16 g; one mole of mercury weighs 200.59 g. The mass per mole is the molar mass, with units of g/mol.
The conversion direction matters. To go from mass to moles, divide by molar mass. To go from moles to mass, multiply by molar mass. The grams-to-moles direction comes up first because lab work begins on the balance, where mass is the natural reading.
One mole of water occupies about 18 mL, which is roughly one tablespoon. That tablespoon contains roughly as many molecules (6 × 1023) as the number of stars in the observable universe (estimated at about 1022 to 1024). The mole compresses unimaginably large counts into a manageable laboratory number.
The grams to moles formula
The grams to moles formula is short:
n = m / M grams → molesm = n × M moles → gramsN = n × 6.022e23 moles → particlesThe molar mass M comes from the periodic table. Add the standard atomic weight of every atom in the formula. For NaCl, that is 22.990 (Na) + 35.45 (Cl) = 58.44 g/mol. The arithmetic is straightforward; the trap is in identifying the right formula for the substance.
Finding molar mass for any compound
Molar mass uses the International Union of Pure and Applied Chemistry (IUPAC) standard atomic weights, updated periodically by the Commission on Isotopic Abundances and Atomic Weights. The values reflect natural isotope ratios on Earth and carry standard uncertainties that the IUPAC publishes alongside each element.
For polyatomic compounds, multiply each atomic weight by its subscript and sum. For glucose C6H12O6: 6 × 12.011 + 12 × 1.008 + 6 × 15.999 = 72.066 + 12.096 + 95.994 = 180.156 g/mol. For hydrates and complexes with parentheses, expand them: Ca(OH)2 contains one Ca and two each of O and H, giving 40.078 + 2 × (15.999 + 1.008) = 74.092 g/mol.
For routine work, round atomic weights: H = 1, C = 12, N = 14, O = 16, S = 32, Cl = 35.5. These rounded values stay within 0.1% of the IUPAC numbers for most compounds, which is enough for everyday calculations.
Worked grams to moles example
Question: how many moles are in 50 g of sodium hydroxide (NaOH)?
Step 1: find molar mass. NaOH = 22.990 + 15.999 + 1.008 = 39.997 g/mol. Step 2: divide mass by molar mass. n = 50 / 39.997 = 1.250 mol. Step 3 (optional): multiply by Avogadro to get particles. N = 1.250 × 6.022 × 1023 = 7.53 × 1023 formula units. Each formula unit is one Na+ ion plus one OH- ion in solution.
If you weighed out 50 g for a 1 M sodium hydroxide stock, you would dissolve it in enough water to make 1.25 L of solution. The grams-to-moles step is the first calculation; volume scaling comes next.
From moles to particle count
Multiplying moles by Avogadro's number gives the actual particle count. For 0.001 mol of water (about 0.018 g, one large drop), the number of molecules is 6.022 × 1020. That single drop contains roughly the same number of water molecules as there are seconds in 19 trillion years.
- 1 mol H2O = 18.015 g = ~18 mL = 6.022 × 1023 molecules
- 1 mol NaCl = 58.44 g = roughly 2 US tablespoons
- 1 mol glucose = 180.16 g = a small drinking glass of sugar
- 1 mol CO2 = 44.01 g = 22.4 L at STP (gas volume)
- 1 mol electrons = 96,485 coulombs (Faraday constant)
- 1 mol of sand grains would cover the United States ~6 km deep
Avogadro and the 2019 SI redefinition
Amedeo Avogadro proposed in 1811 that equal volumes of gases at the same temperature and pressure contain equal numbers of molecules. He never calculated the constant itself; that came in 1909, when Jean Baptiste Perrin measured it from Brownian motion. Perrin won the 1926 Nobel Prize for the work and named the number after Avogadro.
Until 2019, the mole was defined as the number of atoms in 12 grams of pure carbon-12, and Avogadro's number was measured experimentally with small but real uncertainty. On 20 May 2019 (World Metrology Day), the SI redefined the mole based on a fixed exact value of NA = 6.02214076 × 1023 mol−1. The carbon-12 standard is gone; the number is now a defined constant, like the speed of light.
Common grams to moles mistakes
Many gases exist as diatomic molecules at room temperature: H2, N2, O2, F2, Cl2. The molar mass of O2 is 31.998 g/mol, not 16. If a problem says "oxygen," check whether it means O atoms or O2 molecules; the molar masses differ by a factor of two and the resulting moles by the same factor.
Other common errors: confusing molar mass with atomic mass (numerically equal but with different units, g/mol vs. unified atomic mass unit), using grams when the problem provides kilograms or milligrams, and forgetting to use a balanced equation when continuing to a stoichiometry calculation.
Quick-reference table
For routine conversions, memorize a handful of common molar masses. Water at 18 g/mol, sodium chloride at 58.4 g/mol, glucose at 180 g/mol, and carbon dioxide at 44 g/mol cover most introductory problems. Anything else can be built atom by atom from the periodic table in under a minute.