Molar Mass Calculator: Molecular Weight

Use this molar mass calculator to get the molecular weight from any chemical formula. Type a formula like H2O, C6H12O6 or Ca(OH)2, and it shows the molar mass in g/mol and how much each element adds. To calculate pH, pOH and ion concentration, open the pH Calculator.

Molar Mass Calculator

Type a chemical formula.

-
Everything runs in your browser. Nothing you enter is sent to a server.

How to use the Molar Mass Calculator

  1. Type the formula with capital letters, like NaCl or H2SO4.
  2. Use brackets for groups, like Ca(OH)2.
  3. Optionally enter grams to get moles.
  4. Read the molar mass and breakdown.

How it works

The tool counts each element’s atoms and multiplies by its standard atomic weight, then adds them up.

Formula

Molar mass = ฮฃ (Atoms of element × Atomic weight)
Moles = Grams ÷ Molar mass

Example

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

Frequently asked questions

What is the molar mass of water?

H2O is about 18.015 g/mol.

How do I convert grams to moles?

Divide grams by the molar mass.

Does it support hydrates?

Yes, use a dot, like CuSO4·5H2O or CuSO4.5H2O.

See also: Scientific Calculator, Fraction Calculator.

Find the molar mass

How to use it

  1. Type a chemical formula.
  2. Use parentheses for groups.
  3. Read the molar mass in g/mol.
  4. See each element's share.

More questions

What is molar mass?

The mass of one mole of a substance in grams.

Can it handle parentheses?

Yes. It handles parentheses in formulas like Ca(OH)2 and multiplies the groups correctly.

Is it case sensitive?

Yes. Co is cobalt, CO is carbon monoxide.

Related tools: Ideal Gas Law Calculator, Percent Yield Calculator, Density Calculator.