UtilityBase logoUtilityBase

Calculators

Molar Mass Calculator

Enter a chemical formula and get its molar mass with a per-element mass breakdown.

Updated July 10, 2026

How to use the molar mass calculator

  1. 1Type a chemical formula like H2SO4 or Ca(OH)2.
  2. 2Read the molar mass in grams per mole.
  3. 3Check the per-element mass breakdown.
  4. 4Use it to convert between grams and moles.

Common uses

  • Converting grams to moles for a reaction
  • Chemistry homework and lab prep
  • Finding the mass percent of an element
  • Checking the formula weight of a compound

Frequently asked questions

How do you calculate molar mass?

Add up the atomic mass of every atom in the formula. For water, H₂O, that's two hydrogens (about 1.008 each) plus one oxygen (about 15.999), giving roughly 18.015 g/mol. The calculator does this for any formula you enter.

Does it handle parentheses and hydrates?

Yes. It parses groups in parentheses, like Ca(OH)₂, applying the multiplier to everything inside, and it handles hydrates written with a dot, such as CuSO₄·5H₂O, adding the water molecules to the total.

What is molar mass used for?

It converts between grams and moles, which is essential for balancing reactions, preparing solutions, and stoichiometry. Dividing a mass in grams by the molar mass gives the number of moles.

About this tool

The molar mass calculator parses a chemical formula and returns its molar mass in grams per mole, along with the mass each element contributes and its percent of the total. It handles parentheses like Ca(OH)₂ and hydrates written with a dot, such as CuSO₄·5H₂O, which trip up simpler tools. Atomic weights are the standard IUPAC conventional values. It's built for chemistry students and anyone converting between grams and moles. Everything is computed in your browser.

Like most tools on UtilityBase, the molar mass calculator runs entirely in your browser — nothing you enter is uploaded or stored on a server. It's free to use with no account required. Browse more calculators here.

Was this tool helpful?

Related tools