Science & Units

Molecular Weight Calculator

Molar mass of any formula, with mass percent.

Runs entirely in your browser. Nothing you type is sent to our servers.

About the Molecular Weight Calculator

Molecular weight, also called molar mass, is the mass of one mole of a substance in grams. You need it whenever a chemistry problem moves between grams and moles, which covers stoichiometry, solution concentration and percent composition.

Type any formula, including brackets like Ca(OH)2 and hydrates like CuSO4·5H2O, and the calculator adds up the atomic masses for you. The table shows each element's count, subtotal and mass percent, and the grams and moles boxes convert in both directions.

How to use it

  1. Type the formula using element symbols with the right capitals: Co is cobalt, CO is carbon monoxide.
  2. Use brackets for groups, such as Mg(NO3)2, and a dot or * for water of crystallization, such as CuSO4·5H2O.
  3. Read the molar mass in g/mol and the breakdown by element.
  4. Enter a mass in grams to get moles, or moles to get grams.

The formula

Molar mass = Σ (number of atoms × atomic mass)
moles = mass (g) ÷ molar mass (g/mol)
Mass % of an element = (its subtotal ÷ molar mass) × 100

Atomic masses are IUPAC standard values, such as H = 1.008, C = 12.011 and O = 15.999.

Worked examples

Water, H₂O

2 × 1.008 + 15.999 = 18.015 g/mol. Oxygen makes up 88.81% of the mass.

Glucose, C₆H₁₂O₆

6 × 12.011 + 12 × 1.008 + 6 × 15.999 = 72.066 + 12.096 + 95.994 = 180.156 g/mol. So 90 g of glucose is 90 ÷ 180.156 = 0.4996 mol.

A hydrate, CuSO₄·5H₂O

CuSO₄ = 63.546 + 32.06 + 4 × 15.999 = 159.602. Add 5 × 18.015 = 90.075 for the water: 249.677 g/mol.

Frequently asked questions

Is molecular weight the same as molar mass?

They have the same number. Molecular weight is the mass of one molecule in atomic mass units (u), and molar mass is the mass of one mole in grams per mole (g/mol).

Why does the calculator say an element is not recognized?

Symbols are case sensitive. The first letter is a capital and the second is lowercase, so type Cl, not CL. "CO" reads as carbon plus oxygen.

How do I enter a hydrate?

Put a dot, a middle dot (·) or * before the water part, with its number: CuSO4·5H2O, CuSO4.5H2O or CuSO4*5H2O all work.

Can I enter ionic compounds like NaCl?

Yes. For ionic compounds the same sum is called the formula mass, and it is used exactly like molar mass.

Why are some atomic masses whole numbers?

Radioactive elements such as technetium (Tc) and plutonium (Pu) have no stable isotope, so the mass of the longest-lived isotope is used.