Molecular Weight Calculator

Molecular weight is the sum of the atomic masses of all atoms in the formula. Water, H₂O, is 2 × 1.008 + 15.999 = 18.015 g/mol. Glucose, C₆H₁₂O₆, is 180.156 g/mol, and calcium hydroxide, Ca(OH)₂, is 74.092 g/mol.

Results are calculated in your browser for convenience. Double-check important figures before relying on them.

How molar mass is calculated

Multiply the atomic mass of each element by the number of atoms of that element, then add up. For glucose, C₆H₁₂O₆: carbon 6 × 12.011 = 72.066, hydrogen 12 × 1.008 = 12.096, oxygen 6 × 15.999 = 95.994. The total is 180.156 g/mol. One mole of glucose, 6.022 × 10²³ molecules, weighs about 180.2 g.

CompoundFormulaMolar mass (g/mol)
WaterH₂O18.015
Carbon dioxideCO₂44.009
Table saltNaCl58.44
Calcium hydroxideCa(OH)₂74.092
Sulfuric acidH₂SO₄98.07

Writing formulas for the calculator

  • Element symbols are case-sensitive: Co is cobalt but CO is carbon monoxide.
  • Put the number of atoms after the symbol: H2O, C6H12O6.
  • Use brackets for groups: Ca(OH)2, Al2(SO4)3.
  • Use a dot for hydrates: CuSO4.5H2O has five water molecules per unit.

Percent composition and uses

The table of results shows the share of the mass from each element. In water, oxygen makes up 15.999 ÷ 18.015 = 88.8% of the mass. Molar mass is needed to convert between grams and moles, to prepare solutions (see the molarity calculator) and to balance chemical calculations. Atomic masses are standard values rounded for general use; for precise research use the latest IUPAC values.

Complete guide to the Molecular Weight Calculator

How to use the Molecular Weight Calculator, step by step

  1. Type the formula.
  2. Use brackets and dots for hydrates.
  3. Read the molar mass.
  4. Check the percent composition.

Common mistakes to avoid

  • Wrong capitals in symbols.
  • Forgetting to multiply bracketed groups.
  • Ignoring water of crystallisation.

Key terms explained

Molar mass
The mass of one mole in grams.
Formula mass
The sum of the atomic masses in a formula.
Hydrate
A compound with water in its crystal.
Percent composition
The share of mass from each element.

Frequently asked questions

What is molecular weight?

It is the mass of one mole of a substance in grams (g/mol), found by adding the atomic masses of all atoms in its formula.

What is the difference between molecular weight and molar mass?

They have the same number. Molecular weight is dimensionless (relative to carbon-12) and molar mass is in g/mol.

How do I find the molar mass of a compound with brackets?

Multiply everything inside the brackets by the number after them. Ca(OH)₂ has 1 Ca, 2 O and 2 H.

What does percent composition mean?

It is the percentage of the total mass that each element contributes. The percentages add up to 100%.

Why does the calculator say an element is unknown?

Check the capital and small letters. Symbols start with a capital letter followed by at most one small letter, such as Na or Cl.

How many atoms are in one mole?

One mole contains 6.022 × 10²³ particles, called Avogadro’s number.

How do I convert grams to moles?

Divide the mass in grams by the molar mass. 36 g of water is 36 ÷ 18.015 = 2 moles.

What is the molar mass of water?

Water, H₂O, has a molar mass of 18.015 g/mol: two hydrogen atoms at 1.008 each plus one oxygen atom at 15.999. One litre of water weighs about 1 kg, which is roughly 55.5 moles.

How do I handle brackets like Ca(OH)₂?

Multiply every atom inside the bracket by the number after it. Ca(OH)₂ has 1 calcium, 2 oxygen and 2 hydrogen atoms.

Related calculators

Guides worth reading