Molar Mass Calculator

Calculate the molar mass of any chemical formula (H2SO4, Ca(OH)2, CuSO4·5H2O), its percentage composition, and the moles and molecules in a given mass.

Built by Sabki SolutionsRules: IUPAC standard atomic weights (rounded)Last updated
g
0.000g1,00,000.000g

Molar Mass

18.015 g/mol

Moles in Sample

0.999167 mol

Molecules in Sample

6.017e+23

ElementAtomsMass (g/mol)% by mass
H22.01611.19%
O115.99988.81%

Molar Mass from a Chemical Formula

Type a formula to get its molar mass in g/mol, the mass contribution and percentage of each element, and how many moles and molecules are in the sample mass you enter. Brackets such as Ca(OH)2 and hydrates such as CuSO4·5H2O are supported.

Formula

  • Molar mass = Σ (number of atoms × atomic mass)
  • Moles = mass ÷ molar mass
  • Molecules = moles × 6.022 × 10²³
  • % of element = (atoms × atomic mass) ÷ molar mass × 100

Molar masses of common compounds

CompoundFormulaMolar mass (g/mol)
WaterH2O18.015
Sulphuric acidH2SO498.07
Sodium chlorideNaCl58.44
Carbon dioxideCO244.01
GlucoseC6H12O6180.16
Sodium hydroxideNaOH40.00
Calcium carbonateCaCO3100.09
EthanolC2H5OH46.07
Potassium permanganateKMnO4158.03
Copper sulphate pentahydrateCuSO4·5H2O249.68

Worked examples

1. Water, 18 g (the defaults). 2 × 1.008 + 15.999 = 18.015 g/mol; 18 g = 0.999 mol = 6.02 × 10²³ molecules.

2. Sulphuric acid. H 2.06%, S 32.69%, O 65.25%; 98.07 g/mol. 100 g = 1.02 mol.

3. Calcium hydroxide, Ca(OH)2. 40.078 + 2 × (15.999 + 1.008) = 74.09 g/mol.

4. Copper sulphate pentahydrate. 159.6 + 5 × 18.015 = 249.68 g/mol; water makes up 36% of its mass.

Element symbols start with a capital letter: Co (cobalt) and CO (carbon monoxide) are different.

Related tools

Frequently Asked Questions

How do I calculate molar mass?

Add the atomic masses of all atoms in the formula. H₂O = 2 × 1.008 + 15.999 = 18.015 g/mol.

What is the molar mass of H₂SO₄?

2 × 1.008 + 32.06 + 4 × 15.999 = 98.07 g/mol.

What is the molar mass of NaCl?

22.99 + 35.45 = 58.44 g/mol.

How do I enter brackets and hydrates?

Type Ca(OH)2 or Al2(SO4)3 for groups, and CuSO4·5H2O (or CuSO4*5H2O) for hydrates. Element symbols are case-sensitive: Co is cobalt, CO is carbon monoxide.

How do I convert grams to moles?

Moles = mass ÷ molar mass. 18 g of water is 18 ÷ 18.015 = 0.999 mol.

How many molecules are in a sample?

Molecules = moles × 6.022 × 10²³ (Avogadro's number). 1 mol of any substance contains 6.022 × 10²³ particles.

What is percentage composition?

The share of the molar mass contributed by each element. Water is 11.19% hydrogen and 88.81% oxygen by mass.

Is molar mass the same as molecular weight?

Numerically yes: molar mass is in g/mol, molecular (or formula) weight is in atomic mass units (u). Both use the same atomic weights.

Why are atomic weights not whole numbers?

They are averages over the natural mix of isotopes. Chlorine is 35.45 because it is about 76% ³⁵Cl and 24% ³⁷Cl.

How precise are these values?

Atomic weights are rounded IUPAC standard values, accurate to about 0.01 g/mol for most compounds, enough for laboratory work.

Related Calculators

More in Chemical · Engineering calculators · All calculators A–Z