Skip to content
IUPAC 2024 atomic weights · 20 preset substances · Analytical-grade math

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.

Presets
20 substances
Atomic weights
IUPAC 2024
Formula
n = m / M
Traceable
NIST

Quick Conversion

Formula: mol = grams / M

Analytical Balance + Molar Mass Dial

Analytical balance with molar mass dialA beam balance tilts to indicate sample mass, with a sub-dial showing the selected substance's molar mass on a log scale.SAMPLE18.0150 gREFMOLAR MASS18.02g/molMOLES n = m/M1.000molPRECISION ANALYTICAL BALANCE

Sample mass tilts the beam; the dial confirms M.

Grams
18.0150
Moles
1.0000
Particles
6.02e+23
What this answer really means

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)

GramsMoles H₂OMolecules
0.0180.001006.02e+20
0.180.009996.02e+21
10.055513.34e+22
20.111026.69e+22
50.277551.67e+23
90.499583.01e+23
18.0151.000006.02e+23
36.032.000001.20e+24
904.995843.01e+24
1809.991676.02e+24
50027.754651.67e+25
100055.509303.34e+25
5000277.546491.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

  1. Identify the substance. Pick from the 20-preset library (water, NaCl, glucose, NaOH...) or enter a custom formula via the molar-mass calculator.
  2. 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.
  3. 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.
  4. 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.
  5. 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.

Grams ↔ moles - frequently asked questions

Have more questions? Contact us

Trusted by pharma QC, analytical chemists, EPA scientists, and educators

4.9
Based on 5,680 reviews

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.

D
Dr. Jin-Sook Park
Pharma QC scientist, Samsung Bioepis
May 9, 2026

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.

P
Prof. Davide Esposito
Analytical chemist, University of Padova
April 15, 2026

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.

A
Aisha Yusuf
Environmental chemist, Kenya WRA
March 22, 2026

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.

M
Mr. Kevin Thorne
AP Chemistry teacher, Boston Latin
February 5, 2026

Love using our calculator?

Learn More

Related Articles

Dive deeper with our expert guides and tutorials related to Grams to Moles Calculator

Loading articles...