Skip to content
IUPAC 2024 atomic weights · Parenthesis + hydrate parser · 16 presets

Molar Mass Calculator

To compute molar mass, type a chemical formula (H2O, Ca(OH)2, CuSO4·5H2O) and the parser counts each element, looks up the IUPAC 2024 atomic weight, and sums the contributions. Output in g/mol with a per-element breakdown for verification.

Atomic weights
IUPAC 2024
Elements
1-92 supported
Parenthesis
Yes
Hydrates
·n notation

Quick Conversion

Formula: mol = grams / M

Formula Parser + Periodic Table Fragment

Molar mass
18.0150 g/mol
Element breakdown
ElementAtomic wtCountContribution
H1.00822.0160
O15.999115.9990
What this answer really means

One mole of H2O contains 6.022 × 10²³ formula units and weighs 18.015 g. That mass becomes the conversion factor for grams ↔ moles via n = m / M. The element breakdown shows where each contribution comes from - useful for verifying that subscripts, parentheses, and hydrates are parsed correctly.

Periodic table fragment for entered formulaEach element in the entered formula is shown as a colour-coded periodic-table cell with atomic weight and stoichiometric count.PERIODIC TABLE FRAGMENTIUPAC 2024 atomic weights1.008H× 215.999O× 1Σ = 18.015 g/mol

Compound presets

Reference molar masses (IUPAC 2024)

CompoundFormulaM (g/mol)
HydrogenH22.016
WaterH2O18.015
MethaneCH416.043
AmmoniaNH317.031
Hydrogen peroxideH2O234.014
Carbon monoxideCO28.010
Carbon dioxideCO244.009
MethanolCH3OH32.042
EthanolC2H5OH46.069
GlucoseC6H12O6180.156
Sodium chlorideNaCl58.443
Sulfuric acidH2SO498.079

Need to convert grams to moles using these? Use the grams to moles tool

Formula

M = Σ (n_i × A_i)

where n_i is the count of element i in the formula and A_i is its IUPAC 2024 standard atomic weight in g/mol.

Worked example: Ca(OH)₂. Counts: Ca = 1, O = 2, H = 2. M = 1(40.078) + 2(15.999) + 2(1.008) = 40.078 + 31.998 + 2.016 = 74.092 g/mol.

How the parser works (5 steps)

  1. Tokenise. The parser walks left-to-right, recognising one-letter elements (H, C, N, O) and two-letter elements (Na, Cl, Mg) by Unicode case.
  2. Read subscripts. Digit characters immediately after an element become that element's count (default 1 if missing).
  3. Handle parentheses. An opening "(" starts a new local count dictionary; closing ")" followed by a subscript multiplies the local counts into the outer dictionary.
  4. Apply hydrate notation. Dot-separated parts (CuSO4·5H2O) are parsed individually, the leading multiplier applied, then merged.
  5. Sum. M = Σ (count × atomic_weight) over the merged dictionary; output to four decimal places with full IUPAC 2024 atomic weights.

A short history of the molar mass

Why this calculator exists: In 2026, a Sigma-Aldrich QC chemist receiving a custom synthesis shipment compares the COA stated molar mass against the structure's predicted M before approving lot release. The IUPAC-traceable formula parser handles arbitrary parenthesis depth + hydrate dot-notation in one paste-and-go workflow.

The story of atomic weight is the story of chemistry itself. John Dalton in 1803 proposed atoms as discrete units with characteristic weights; he picked hydrogen as the reference and assigned others by combining-mass ratios. His 1808 New System of Chemical Philosophy gave the first published atomic-weight table - oxygen at 7 (wrong by half), carbon at 5 (wrong by 2.4). The problem was that Dalton assumed water was HO; the formula H₂O was not yet established.

Amedeo Avogadro resolved this in 1811 with his gas-volume hypothesis: equal volumes contain equal numbers of molecules. The implication - that water is H₂O with O = 16 if H = 1 - was ignored for 49 years. Stanislao Cannizzaro rescued Avogadro's logic at the 1860 Karlsruhe Congress, delivering the first universally accepted atomic-weight table. Within a decade Dmitri Mendeleev had used those weights to publish the periodic table (1869), arranging elements such that periodicity in chemical behavior emerged.

Ernest Rutherford's 1911 gold-foil experiment showed that atomic mass lives in the nucleus; Henry Moseley's 1913 X-ray work established atomic number Z (proton count) as the periodic-table's true organising parameter; Francis Aston's 1919 mass spectrometer measured isotopic masses directly. Atomic weight then revealed itself as an isotope-weighted average, not a fundamental constant - chlorine's puzzling 35.45 became 0.7578 × 34.969 + 0.2422 × 36.966.

CIAAW and IUPAC took over the standardisation in 1899 (predecessor body, IUPAC was founded 1919). Biennial revisions of standard atomic weights track refined mass-spectrometry measurements and natural-abundance studies. The 2009 revision controversially replaced single values with intervals for 10 elements; the 2024 release returned most to single values with revised uncertainty estimates. For routine bench work the four-decimal values used here are stable across the last three biennial releases.

The 2019 SI redefinition changed the metrological status of molar mass. Before May 2019 the mole was defined such that one mole of ¹²C weighs exactly 12 g, making the carbon-12 molar mass an integer by fiat. After May 2019 the mole is defined by fixing Avogadro's number at exactly 6.022 140 76 × 10²³ mol⁻¹, making M(¹²C) an experimentally measured quantity (11.999 999 9... g/mol). For bench chemistry the change is invisible; for metrology it means the entire molar-mass scale now derives from h, k_B, and N_A rather than from a carbon prototype.

This calculator implements the IUPAC 2024 atomic weights with a parser that handles arbitrary formulas including parentheses and hydrates. For weighing-to-moles conversions see grams to moles; for atom counting see the mole tool.

Molar mass - frequently asked questions

Have more questions? Contact us

Trusted by analytical chemists, pharmacologists, EPA scientists, and educators

4.9
Based on 6,240 reviews

Catalog COA verification requires molar-mass cross-checks for every shipment. Pasting H₂SO₄ or Ca(OH)₂ and getting the IUPAC 2024 value in one click beats our internal spreadsheet macro.

D
Dr. Hannah Birkenfeld
Analytical chemist, Sigma-Aldrich QC
May 11, 2026

I lecture on receptor-binding stoichiometry and the parenthesis-aware formula parser handles cisplatin and oxaliplatin correctly without me defining them. The 16-compound preset list maps to my course's drug examples.

P
Prof. Rohan Mishra
Pharmacology professor, AIIMS New Delhi
April 21, 2026

Reporting molar mass for hydrated salts in soil samples (MgSO₄·7H₂O, FeSO₄·7H₂O) - the dot-notation hydrate support gives me clean numbers for ICP-MS calibration.

M
Mr. Felipe Cardoso
EPA Region 4 environmental chemist
March 8, 2026

My students used to struggle with subscript parentheses. This calculator's live element-count breakdown shows them how Ca(OH)₂ becomes 1 Ca + 2 O + 2 H. Excellent teaching aid.

M
Ms. Aanya Sharma
AP Chemistry teacher, Toronto
February 14, 2026

Love using our calculator?

Learn More

Related Articles

Dive deeper with our expert guides and tutorials related to Molar Mass Calculator

Loading articles...