Molar Mass Calculator

Calculate the molar mass and molecular weight of any chemical formula instantly. Supports complex formulas with parentheses and hydrates. Free, accurate, and 100% client-side.

Quick Examples:

About Molar Mass Calculator

The molar mass (or molecular weight) of a compound is the sum of the atomic masses of all atoms in its chemical formula. This tool parses any valid chemical formula — including those with nested parentheses and hydrates — and calculates the total molar mass along with a detailed element-by-element breakdown. All calculations happen entirely in your browser; no data is sent to any server.

Features

How to Use

  1. Enter a chemical formula in the input field, or click one of the example buttons
  2. The tool automatically parses the formula and calculates the molar mass
  3. View the total molar mass in g/mol and the detailed element breakdown
  4. Check the mass percentage of each element in the compound
  5. Use the Copy button to copy the full result

Common Use Cases

Frequently Asked Questions

What is molar mass?

Molar mass is the mass of one mole of a substance, expressed in grams per mole (g/mol). It is calculated by summing the atomic masses of all atoms in a chemical formula. For example, the molar mass of water (H₂O) is approximately 18.015 g/mol.

How do I enter a chemical formula?

Enter formulas using standard chemical notation. Use element symbols (H, C, O, Na, Fe, etc.) followed by numbers for atom counts. Use parentheses for groups, like Fe₂(SO₄)₃. For hydrates, use a dot like CuSO₄·5H₂O.

Does this tool support hydrates?

Yes! You can enter hydrate formulas using a dot separator, such as CuSO₄·5H₂O (copper(II) sulfate pentahydrate). The tool will correctly calculate the molar mass including the water molecules.

What elements are supported?

The tool supports all 118 elements of the periodic table, from Hydrogen (H) to Oganesson (Og), with standard atomic weights from IUPAC.

Is this calculator accurate?

Yes, the calculator uses standard atomic weights from the IUPAC periodic table. Results are accurate to 3 decimal places, which is sufficient for most chemistry calculations.