Water
- Chemical formula
- H2O
- Molar mass
- 18.015 g/mol
- Mass percent
- H 11.19%, O 88.81%
- Atoms per formula unit
- 3
Checked against: Python 3.8 decimal with IUPAC 2021 abridged weights: 2 × 1.0080 + 15.999 = 18.015 (PubChem 18.015)
Molar mass in g/mol and mass percent composition of any chemical formula, with brackets and hydrates such as CuSO4·5H2O, from IUPAC 2021 atomic weights.
One mole of C₆H₁₂O₆ weighs 180.156 g; oxygen contributes the most mass (53.28%).
| Element | Atoms | Atomic weight | Mass (g/mol) | Mass % |
|---|---|---|---|---|
| C (Carbon) | 6 | 12.011 | 72.066 | 40.00% |
| H (Hydrogen) | 12 | 1.0080 | 12.096 | 6.71% |
| O (Oxygen) | 6 | 15.999 | 95.994 | 53.28% |
Brackets multiply everything inside; a hydrate's leading number multiplies its whole part. Hill formula: C6H12O6.
Shown to 3 decimals: the IUPAC abridged atomic weights carry about 5 significant figures, and some (Li, S, Cl, Pb…) fewer.
Molar mass is the mass of one mole of a substance, in grams per mole. The calculator reads the formula, counts the atoms of each element (multiplying through brackets and hydrate dots) and adds count × standard atomic weight, using the IUPAC 2021 abridged values. Each element's share of the total is its mass percent.
Chemists need molar mass to convert between grams and moles when weighing reagents. Glucose, C6H12O6, comes to 180.156 g/mol, of which oxygen supplies 53.28 %; a single molecule weighs 2.99 × 10⁻²² g.
Results are shown to three decimals because the abridged atomic weights carry about five significant figures. For elements with no standard atomic weight, such as technetium, the mass number of a long-lived isotope stands in, and the page says so.
Checked against: Python 3.8 decimal with IUPAC 2021 abridged weights: 2 × 1.0080 + 15.999 = 18.015 (PubChem 18.015)
Checked against: Python 3.8 decimal: 6 × 12.011 + 12 × 1.0080 + 6 × 15.999 = 180.156 (PubChem 180.16)
Checked against: Python 3.8 decimal: 63.546 + 32.06 + 9 × 15.999 + 10 × 1.0080 = 249.677 (PubChem 249.69 with older S = 32.065)
Checked against: Same compound as above; '.' is read as the hydrate dot
Numerically, yes. Molar mass carries units of g/mol, while molecular weight (relative molecular mass, Mr) is the same number without units, measured against one twelfth of the mass of a carbon-12 atom. Water has a molar mass of 18.015 g/mol and a relative molecular mass of 18.015. For ionic solids such as NaCl, which have no discrete molecules, the usual term is formula mass.
Multiply each element's atom count by its atomic weight and add the products. For water, H2O: 2 × 1.008 + 15.999 = 18.015 g/mol. Brackets multiply everything inside them, so Ca3(PO4)2 holds 2 phosphorus and 8 oxygen atoms. A hydrate's water counts in full: CuSO4·5H2O adds 10 hydrogen and 5 oxygen atoms to copper sulfate, for 249.677 g/mol.
Atomic weights are revised as isotope measurements improve, and books round them differently. IUPAC's 2021 abridged table gives sulfur as 32.06 where older tables used 32.065, so copper sulfate pentahydrate comes to 249.677 g/mol here and 249.69 g/mol on PubChem. A difference in the second decimal place is normal; use whichever table your course or method specifies.
It is the share of a compound's mass that each element contributes: the element's mass in one formula unit divided by the molar mass, times 100. Glucose is 40.00 % carbon, 6.71 % hydrogen and 53.28 % oxygen. Chemists compare these figures with percentages measured by combustion analysis to confirm a sample's identity or work out an empirical formula.
Every element symbol starts with a capital letter and any second letter is lowercase, so case decides which atoms you mean. Co is cobalt, 58.933 g/mol, while CO is carbon monoxide, one carbon and one oxygen atom, 28.010 g/mol. Likewise NO is nitric oxide but No is nobelium. Type formulas with standard capitalisation to get the compound you intend.
Accuracy depends on your inputs and the method's assumptions. Decimal arithmetic uses 50 significant digits, but estimates, numerical methods and source data can be less precise; the displayed rounding does not remove those limits. It is checked against 6 worked examples whose answers come from independent sources; for example, “Water” is checked against Python 3.8 decimal with IUPAC 2021 abridged weights: 2 × 1.0080 + 15.999 = 18.015 (PubChem 18.015).
IUPAC CIAAW — Standard atomic weights of the elements 2021 (Prohaska et al., Pure Appl. Chem. 94, 573, 2022), abridged values; PubChem compound pages (molecular weight cross-check).
6 worked examples with independently sourced answers ship with this calculator. They run in the test suite; you can run them here too.
Convert grams to moles and particles for any chemical formula, and find the limiting reagent, theoretical yield and leftover excess of a balanced reaction.
Solve C₁V₁ = C₂V₂ for any dilution variable, get molarity, % w/v and ppm from a weighed mass, the mass to weigh for a solution, or molality.
Solve the ideal gas law PV = nRT for pressure, volume, moles or temperature in any units, or find a new state with the combined gas law.
Calculate pH, pOH, [H⁺] and [OH⁻] from a concentration, a strong acid or base, a weak acid's Ka or pKa, or a Henderson–Hasselbalch buffer.
Allow optional Google Analytics to measure page visits? Calculators work either way. Privacy and choices
Optional analytics: off.