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
| Formula | Compound | Molar mass (g/mol) |
|---|---|---|
| H₂O | Water | 18.02 |
| CO₂ | Carbon dioxide | 44.01 |
| NaCl | Sodium chloride | 58.44 |
| C₆H₁₂O₆ | Glucose | 180.16 |
| H₂SO₄ | Sulfuric acid | 98.07 |
| NH₃ | Ammonia | 17.03 |
| CH₄ | Methane | 16.04 |
| O₂ | Oxygen | 32.00 |
| CaCO₃ | Calcium carbonate | 100.09 |
| C₂H₅OH | Ethanol | 46.07 |
Calculated by this page’s formula parser from IUPAC (CIAAW) abridged standard atomic weights, rounded half-up to two decimals.
Examples
Hydrate (CuSO4·5H2O)
Brackets (K4[Fe(CN)6])
Water (H2O)
Glucose (C6H12O6)
Frequently Asked Questions
Is molar mass the same as molecular weight?
How do I enter parentheses, brackets and hydrates?
Which atomic weights does this calculator use?
Sources
- Abridged standard atomic weights — IUPAC Commission on Isotopic Abundances and Atomic Weights (CIAAW), 2024
Result
Your result appears here and follows you as you scroll.
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.