Skip to content
MasterMath

Molar Mass Calculator

The molar mass of a compound from its formula, with a breakdown of how much each element contributes and the percentage composition. It handles nested brackets and hydrates: Ca(OH)2, K4[Fe(CN)6], CuSO4·5H2O.

Molar mass

—

Molar mass—
Atoms in the formula—
Distinct elements—
Heaviest element—
ElementAtomsAtomic massContributes%

How this was worked out

    The formula

    M = Σ (atomic mass × number of atoms)

    What it means

    Molar mass is what one mole weighs, and a mole is 6.022 × 10²³ particles. It comes from adding up the atomic mass of each element as many times as it appears in the formula, so the only table you need is the periodic one. The result is in grams per mole and matches the molecular mass in atomic mass units: water weighs 18.015 u per molecule and 18.015 g per mole.

    How to work it out by hand

    1. Count how many atoms of each element the formula contains
    2. Look up the atomic mass of each element in the periodic table
    3. Multiply each atomic mass by its number of atoms
    4. Add all the products together: that is the molar mass in g/mol

    What is worth knowing

    Watch the capitals, because they change the compound: "Co" is cobalt and "CO" is carbon monoxide, "Cs" is caesium and "CS" would be carbon with sulfur. Hydrates have their water counted separately, which is why they are written with a middle dot; a plain full stop or an asterisk work here too, since those are the ones on the keyboard. The atomic masses are the IUPAC standard values: they are revised every few years and change from the fourth digit down, so for precision work check the current source.

    Frequently asked questions

    Are molar mass and molecular weight the same?

    The number is the same, the units are not. Molar mass is in grams per mole and molecular mass in atomic mass units per molecule. In class they are used almost interchangeably.

    Can I use brackets?

    Yes, and nested ones: Ca(OH)2 and K4[Fe(CN)6] both read correctly. The subscript afterwards multiplies everything inside.

    What about hydrates?

    Those too. CuSO4·5H2O adds the salt and its five waters. If you do not have the middle dot handy, a full stop or an asterisk works.

    Why does it care about capitals?

    Because chemical symbols do. "Co" is cobalt and "CO" is carbon monoxide: two different things that cannot be mixed up.

    What is percentage composition?

    The share of the mass each element contributes. It is in the table below, and it adds up to a hundred.