Molecular Weight Calculator (Molar Mass)

Find the molar mass (molecular weight) of a chemical formula in g/mol, with percent composition by element. Water, H2O, is 18.02 g/mol.

Result

Fill in the fields above, then press Calculate.

The molar mass of a compound, also called its molecular weight or formula weight, is the mass of one mole of it in grams per mole (g/mol). Enter a chemical formula such as H2O, NaCl, C6H12O6 or Ca(OH)2 to get its molar mass and the percent composition by element.

Molar mass of water

H₂O = 2 × 1.008 + 15.999 = 18.015 g/mol

Rounded to two decimals, the molar mass of water is 18.02 g/mol.

Molecular weight and molar mass give the same number: molecular weight is written in atomic mass units (u), and molar mass in grams per mole (g/mol).

In UK GCSE chemistry the same quantity is called relative formula mass (Mr). It is numerically equal to the molar mass in g/mol: Mr of H₂O = 18.02.

Common compounds

Molar mass of common compounds
FormulaCompoundMolar mass (g/mol)
H₂OWater18.02
CO₂Carbon dioxide44.01
NaClSodium chloride58.44
C₆H₁₂O₆Glucose180.16
H₂SO₄Sulfuric acid98.07
NH₃Ammonia17.03
CH₄Methane16.04
O₂Oxygen32.00
CaCO₃Calcium carbonate100.09
C₂H₅OHEthanol46.07

Calculated by this page’s formula parser from IUPAC (CIAAW) abridged standard atomic weights, rounded half-up to two decimals.

Enter a chemical formula using standard notation (e.g. H2O, NaCl, C6H12O6, Ca(OH)2). The calculator parses the formula and sums atomic weights from the periodic table to find the molar mass (molecular weight).

Examples

Hydrate (CuSO4·5H2O)

CuSO₄·5H₂O = 249.68 g/mol: the formula before the dot plus five waters of crystallisation.

Brackets (K4[Fe(CN)6])

K₄[Fe(CN)₆] = 368.35 g/mol. Square brackets work like parentheses.

Water (H2O)

H: 2 x 1.008 = 2.016. O: 1 x 15.999 = 15.999. Total: 18.015 g/mol.

Glucose (C6H12O6)

C: 6 x 12.011 = 72.066. H: 12 x 1.008 = 12.096. O: 6 x 15.999 = 95.994. Total: 180.156 g/mol.

Frequently Asked Questions

Is molar mass the same as molecular weight?
They are the same number with different units. Molecular weight (or molecular mass) is in atomic mass units (u or Da), while molar mass is in grams per mole (g/mol). Water is 18.02 u per molecule and 18.02 g/mol.
How do I enter parentheses, brackets and hydrates?
Use standard chemical notation. Groups go in parentheses or square brackets, e.g. Ca(OH)2 or K4[Fe(CN)6], and the number after the closing bracket multiplies everything inside. A hydrate is written with a dot, e.g. CuSO4·5H2O (a full stop or asterisk also works), and a leading number multiplies a whole formula, e.g. 2H2O.
Which atomic weights does this calculator use?
The IUPAC (CIAAW) abridged standard atomic weights, 2024 edition, for the elements hydrogen to uranium that have one. Where IUPAC gives an interval, such as sulfur at 32.059 to 32.076, the conventional value (32.06) is used, so results can differ in the last digit from a table that uses older or longer values.

Sources

  1. Abridged standard atomic weights — IUPAC Commission on Isotopic Abundances and Atomic Weights (CIAAW), 2024

Quick Tips

  • •Capitalize element symbols correctly — Co is cobalt, CO is carbon monoxide.
  • •Type a hydrate with a dot, CuSO4·5H2O (a full stop or asterisk also works). Counts must be whole numbers from 1 upward.