Boneyard Tools

Molar Mass Calculator

Type any chemical formula and get its molar mass in grams per mole, along with a table showing exactly how many atoms of each element there are and what each contributes. The parser understands multi letter symbols, nested parentheses and brackets, and hydrate dots. Quick example chips like H2O and CuSO4.5H2O are one tap away.

How to calculate molar mass

  1. Type a formula into the Chemical formula box, for example Ca(OH)2.
  2. Or tap a preset chip: H2O, NaCl, H2SO4, Ca(OH)2, C6H12O6 or CuSO4.5H2O.
  3. Use parentheses or brackets for groups and a dot for water of crystallisation.
  4. Read the total molar mass in g/mol in the highlighted panel.
  5. Scan the breakdown table for each element's count, atomic mass and subtotal.
  6. Press Copy to save the total and the full breakdown as text.

Examples

Sulfuric acid

H2SO4
98.072 g/mol (H 2.016, S 32.06, O 63.996)

Calcium hydroxide, a bracketed group

Ca(OH)2
74.092 g/mol

Copper sulfate pentahydrate

CuSO4.5H2O
249.677 g/mol

Frequently asked questions

What is molar mass?

Molar mass is the mass of one mole of a substance, expressed in grams per mole. It is the sum of the standard atomic weight of every atom named in the formula, so water at H2O comes to 18.015 g/mol.

Is molar mass the same as molecular weight?

Numerically they match for a molecule. Molecular weight is a relative, dimensionless figure, whereas molar mass attaches the unit grams per mole. This tool reports the value with the g/mol unit.

Which atomic masses are used?

It uses IUPAC standard atomic weights, such as H 1.008, C 12.011, O 15.999, Na 22.99 and Cl 35.45, covering all 118 elements. For elements with no stable isotope, the mass number of the most common isotope is used.

How do I enter groups and hydrates?

Wrap repeated groups in parentheses or brackets, for example Ca(OH)2, and separate a hydrate with a dot, for example CuSO4.5H2O. A period, an asterisk or a middle dot all work as the hydrate separator, and spaces are ignored.

Does it support nested brackets?

Yes. A formula like K4[Fe(CN)6] parses correctly through both bracket levels and returns 368.345 g/mol, so coordination compounds and complex ions are handled.

Is the formula case sensitive?

Yes, and it has to be. CO is carbon monoxide at 28.01 g/mol, while Co is the element cobalt at 58.933 g/mol. Always capitalise the first letter of a symbol and lowercase the rest.

What happens if I mistype an element?

The parser rejects any symbol it does not recognise and shows an 'Unknown element symbol' message instead of a mass. It will also flag mismatched brackets or stray characters so you can fix the formula.

Why does my result differ slightly from another source?

Standard atomic weights are revised over time and some are quoted as ranges, so tools built on different tables can disagree in the last decimal. Differences around the third decimal place are normal.

Does it account for isotopes or charge?

No. It computes the average molar mass from standard atomic weights, so it does not handle a specific isotope such as deuterium, and ionic charges written like SO4^2- are not part of the mass.

Learn more

Related tools