Molecular Weight Calculator

Calculate the molecular weight (molar mass) of any chemical formula, with brackets and hydrates, plus mass percent of each element.

Calculator

Was this tool useful?

About this tool

About Molecular Weight Calculator

Type a formula such as H2O, Ca(OH)2, K4[Fe(CN)6] or CuSO4·5H2O to get its molar mass in g/mol and a table of each element’s share. Add a sample mass to convert grams to moles.

How it works

Molar mass = Σ (number of atoms × standard atomic weight). Moles = mass ÷ molar mass. Molecules = moles × 6.02214076 × 10²³.

Example

C6H12O6 (glucose) = 6 × 12.011 + 12 × 1.008 + 6 × 15.999 = 180.156 g/mol.

How to use this tool

  1. Type the chemical formula with correct capital letters.
  2. Read the molar mass and element table.
  3. Optionally enter grams to get moles and number of molecules.

Frequently asked questions

Molecular weight or molar mass?

They are the same number. Molecular weight has no unit (or u/Da); molar mass is in g/mol.

Which atomic weights are used?

IUPAC standard atomic weights (abridged). Radioactive elements use the mass number of their longest-lived isotope.

Do I need to sign up?

No. The calculator is free, works in your browser and nothing you type is stored.

Can I use the Molecular Weight Calculator for school or lab work?

Yes. The Molecular Weight Calculator shows the formula and uses standard constants, so you can check your own working. Always follow your teacher’s or lab’s rules on significant figures and units.