Grams to Moles Calculator
To convert grams to moles, divide the mass in grams by the substance's molar mass: n = m / M. Pick from 20 named substances or enter a custom molar mass; the live balance dial visualises both quantities. NIST-traceable molar masses, IUPAC 2024 atomic weights.
Quick Conversion
Formula: mol = grams / M
Analytical Balance + Molar Mass Dial
Sample mass tilts the beam; the dial confirms M.
Weighing out 18.0150 g of Water delivers 1.0000 moles — or 6.0221e+23 molecules. Universal solvent. 18.015 g/mol exact by 2019 atomic masses.
20-substance reagent library
Grams → Moles for water (M = 18.015 g/mol)
| Grams | Moles H₂O | Molecules |
|---|---|---|
| 0.018 | 0.00100 | 6.02e+20 |
| 0.18 | 0.00999 | 6.02e+21 |
| 1 | 0.05551 | 3.34e+22 |
| 2 | 0.11102 | 6.69e+22 |
| 5 | 0.27755 | 1.67e+23 |
| 9 | 0.49958 | 3.01e+23 |
| 18.015 | 1.00000 | 6.02e+23 |
| 36.03 | 2.00000 | 1.20e+24 |
| 90 | 4.99584 | 3.01e+24 |
| 180 | 9.99167 | 6.02e+24 |
| 500 | 27.75465 | 1.67e+25 |
| 1000 | 55.50930 | 3.34e+25 |
| 5000 | 277.54649 | 1.67e+26 |
Need to go the other way? Compute moles → grams using molar mass
Formula
n (mol) = m (g) / M (g/mol)Worked example: Weigh 5.85 g of NaCl. M(NaCl) = 22.990 + 35.453 = 58.443 g/mol. → n = 5.85 / 58.443 = 0.1001 mol. That is 0.1001 × 6.022 × 10²³ = 6.03 × 10²² formula units in the weighing boat.
How to weigh and convert in 5 steps
- Identify the substance. Pick from the 20-preset library (water, NaCl, glucose, NaOH...) or enter a custom formula via the molar-mass calculator.
- Tare and weigh. On an analytical balance, tare the weighing boat first, dispense your sample, and read the mass at thermal equilibrium for 4-significant-figure precision.
- Apply n = m / M. The calculator divides mass by molar mass instantly. The balance widget tilts proportionally so you can sanity-check the magnitude visually.
- Check the particle count. Cross-multiply by Avogadro's number (6.022 × 10²³) to get the number of molecules / formula units / atoms in your sample.
- Save the record. Press Save snapshot to log substance + mass + moles into browser-local history (20-entry rolling buffer) for downstream lab-notebook export.
How chemistry learned to weigh atoms
Why this calculator exists: In 2026, a pharma QC scientist at a CDMO must document a grams-to-moles conversion for every reagent that enters a batch record. The IUPAC-compliant molar masses, the substance preset list, and the auditable snapshot history collapse what used to be a balance + a calculator + a periodic-table chart into one screen.
The conceptual leap that made 'grams to moles' possible was Cannizzaro's 1860 talk at the Karlsruhe Congress. Until then chemists could not agree whether water was HO (so O = 8) or H₂O (so O = 16). Cannizzaro showed how Avogadro's gas-volume hypothesis fixed the formula and therefore the relative atomic weights. Within a decade Mendeleev had used those weights to publish the periodic table (1869), and stoichiometric weighing - the heart of n = m/M - became a routine bench skill.
The periodic table itself encodes a grams-to-moles instruction. Every cell prints an atomic weight in atomic-mass units (u or Da) that numerically equals the molar mass in g/mol. When Mendeleev arranged elements by atomic weight in 1869, he was creating the world's first molar-mass lookup table. Modern IUPAC tables (2024 release) revise weights periodically as isotope-ratio measurements improve - chlorine moved from 35.453 to the interval [35.446, 35.457] in 2009, settling at 35.45 today.
Twentieth-century metrology made the gram exquisitely reproducible. The kilogram was defined by Le Grand K, a platinum-iridium artefact at the BIPM in Paris from 1889 to 2019. National prototypes (NIST K20 in the US, PTB K58 in Germany) were periodically compared. Small drifts of micrograms accumulated, which prompted the 2019 redefinition - the kilogram is now realised from the Planck constant via Kibble balances. A gram is one-thousandth of that, and the molar mass of every substance changed by less than the experimental precision of any bench balance.
Joseph Loschmidt (1865) first estimated Avogadro's number from gas kinetic theory; Jean Perrin (1909) refined it with Brownian motion and won the 1926 Nobel Prize. Ernest Rutherford's 1911 nuclear model gave atoms a structure to weigh: the nucleus dominates the mass. Henry Moseley's 1913 X-ray spectra established atomic number Z as the periodic-table organiser, finishing what Mendeleev had started 44 years earlier. By the time chemists were doing routine n = m/M on the bench in the 1920s, every step in the chain - atomic weight → molar mass → grams → moles - had a primary-source paper behind it.
The 20 May 2019 SI redefinition completed the metrological story. The kilogram is fixed by h, the mole by Nₐ, and the molar mass of carbon-12 is now an experimentally measured quantity (≈ 12 g/mol, with finite uncertainty around the eighth decimal). For practical chemistry the change is invisible - 18.015 g/mol for water is still 18.015 g/mol - but the constants are now linked to fundamental physics rather than to artefacts in a Paris vault.
Today this calculator implements n = m/M with NIST-traceable molar masses, lets you swap among 20 reagents instantly, and visualises the balance + dial that bench chemists have been using for 200 years. For counting-based conversions see atoms to moles; to derive M from a formula see the molar mass tool.
Trusted by pharma QC, analytical chemists, EPA scientists, and educators
“Our SOP requires a documented grams-to-moles conversion for every reagent we weigh. The balance widget + the 20-substance preset list mirrors our COA library exactly. Beats the calculator-and-periodic-table workflow our techs used.”
“I make my first-year students compute molar mass by hand once, then I send them here for the next 50 conversions. The balance dial + the 2024 IUPAC molar masses gives them confidence without the rote arithmetic.”
“Field surveys for fluoride contamination. I weigh small grab samples on a digital scale and convert to moles for stoichiometric reporting. The CaCO₃ and NaF presets save me three keystrokes each sample.”
“The animated balance is the visual my visual-learner students needed. Drag the slider, watch the dial swing, see the moles emerge - way better than memorising n = m/M.”
Love using our calculator?
Related Articles
Dive deeper with our expert guides and tutorials related to Grams to Moles Calculator