Calculator

Case matters (Co is cobalt, CO is carbon monoxide). Use brackets for groups and a dot for hydrates.

H2O18.015 g/mol

3 atoms of 2 elements

Mass contribution of each element
ElementAtomsAtomic mass (u)Subtotal (g/mol)Mass percent
Hydrogen (H)21.0082.01611.19%
Oxygen (O)115.99915.99988.81%

How to calculate molar mass

  1. Write the formula and count the atoms of each element (expand brackets and hydrates).
  2. Look up each element's standard atomic weight on the periodic table.
  3. Multiply each atomic weight by its number of atoms.
  4. Add the results to get the molar mass in g/mol.

Worked example — sulfuric acid, H₂SO₄: 2 × 1.008 (H) + 32.06 (S) + 4 × 15.999 (O) = 98.072 g/mol.

Molar masses of common compounds

Select a formula to load it into the calculator and see its breakdown.

Molar masses of common compounds
CompoundFormulaMolar mass (g/mol)
WaterH2O18.015
Carbon dioxideCO244.009
Sodium chloride (table salt)NaCl58.440
GlucoseC6H12O6180.156
Sucrose (table sugar)C12H22O11342.297
Sulfuric acidH2SO498.072
Hydrochloric acidHCl36.458
Nitric acidHNO363.012
Acetic acidCH3COOH60.052
AmmoniaNH317.031
MethaneCH416.043
EthanolC2H5OH46.069
Oxygen gasO231.998
Nitrogen gasN228.014
Sodium hydroxideNaOH39.997
Calcium hydroxideCa(OH)274.092
Calcium carbonateCaCO3100.086
Sodium bicarbonate (baking soda)NaHCO384.006
Potassium permanganateKMnO4158.032
Ammonium nitrateNH4NO380.043
Aluminium oxideAl2O3101.961
Iron(III) oxide (rust)Fe2O3159.687
Magnesium sulfateMgSO4120.361
Copper(II) sulfate pentahydrateCuSO4·5H2O249.677
CaffeineC8H10N4O2194.194
AspirinC9H8O4180.159

Frequently asked questions

What is molar mass?

Molar mass is the mass of one mole (6.022 × 10²³ particles) of a substance, expressed in grams per mole (g/mol). Numerically it equals the substance's relative molecular or formula mass in atomic mass units.

How do you calculate molar mass?

Multiply the atomic weight of each element by the number of atoms of that element in the formula, then add the results. For water, H2O: 2 × 1.008 + 15.999 = 18.015 g/mol.

What is the difference between molar mass and molecular weight?

They have the same numerical value. Molecular weight (relative molecular mass) is dimensionless or given in atomic mass units (u), while molar mass carries the unit g/mol.

How do I enter hydrates and brackets?

Use a dot, bullet or asterisk for hydrates, e.g. CuSO4·5H2O or CuSO4*5H2O. Parentheses, square brackets and curly braces can be nested with a count after them, e.g. Ca(OH)2 or K4[Fe(CN)6].

What is mass percent composition?

Mass percent is the share of a compound's molar mass contributed by each element: (atoms × atomic weight ÷ molar mass) × 100%. In water, hydrogen is about 11.19% and oxygen about 88.81% by mass.

← → keys or swipe