Molecular Weight Calculator

Type a chemical formula, using capital letters for each element. Brackets and hydrates such as CuSO4·5H2O are supported. You get the molar mass in g/mol and the share of each element.

How it works

The formula is split into elements and counts, brackets multiply what is inside them, and each count is multiplied by the element's standard atomic weight. The sum is the molar mass.

M = Σ (count of element × atomic weight)
Mass % of element = (count × atomic weight ÷ M) × 100

Worked example

Using the default values: Chemical formula = C6H12O6.

The calculator returns: Molar mass: 180.156 g/mol.

Limits and assumptions

  • Element symbols are case sensitive: Co is cobalt, CO is carbon monoxide.
  • Atomic weights are rounded standard values (about 3 to 5 significant digits), so results can differ in the last decimals from other tables.
  • Charges, isotopes and radioactive elements beyond uranium are not supported. Use · or * for hydrates.

Last reviewed: 2026-12-01. Found a mistake? Please use the Contact page and tell us the inputs you used.

Frequently asked questions about the Molecular Weight Calculator

What is the difference between molecular weight and molar mass?

They have the same number. Molecular weight is dimensionless (relative); molar mass is in g/mol.

How do I enter a hydrate?

Write the formula with a middle dot or asterisk, for example CuSO4*5H2O.

Can I use brackets?

Yes, round and square brackets, for example Al2(SO4)3.

Advertisement