Toolstia / Molar mass calculator

Molar mass calculator

Type a chemical formula like C6H12O6 or Ca(OH)2 and get its molar mass in grams per mole, with the mass and percentage contributed by each element. Brackets and hydrates such as CuSO4 5H2O are supported.

Type a formula with capital letters for each element, such as NaCl or C6H12O6. Brackets and hydrates work, as in Ca(OH)2 and CuSO4·5H2O, and you can type the dot in a hydrate as a full stop. Element symbols are case sensitive, so Co is cobalt but CO is carbon monoxide. It uses standard atomic weights and does not handle charges or isotopes.

How it works

  1. Type the formula or tap an example.
  2. Read the molar mass.
  3. Check the breakdown table.

Formula rules

Write each element with a capital letter, optionally followed by a lower case letter and a count. Co is cobalt but CO is carbon and oxygen.

Brackets and hydrates

Ca(OH)2 doubles everything inside the brackets. In CuSO4 5H2O the part after the dot is multiplied by 5. Both the middle dot and a full stop work.

Atomic weights

The tool uses standard atomic weights rounded to common precision, so results can differ slightly from other tables in the last digit.

Percent composition

The table shows what share of the total mass each element makes up.

Questions

Does it handle charges or isotopes?

No. Charges are not part of the formula and isotopes use the average weight. Everything happens in your browser, and nothing you enter is sent anywhere.

Which elements are included?

Most common elements up to uranium. Rare ones are missing and give a clear error.

What is the unit?

Grams per mole, which is numerically the same as atomic mass units for one molecule.