Molar Mass Calculator
Work out the molar mass of any chemical formula, with brackets, nested groups and hydrates. See the per element breakdown, mass percent composition, and grams to moles.
Breakdown by element
| Element | Atoms | Atomic weight | Subtotal | Mass % |
|---|---|---|---|---|
| Ca | 1 | 40.078 | 40.078 | 54.09% |
| O | 2 | 15.999 | 31.998 | 43.19% |
| H | 2 | 1.008 | 2.016 | 2.72% |
| Total | 5 | 74.092 | 100% |
What molar mass is
Molar mass is the mass in grams of one mole of a substance, and one mole is 6.022 x 1023 particles. The useful part is that it comes straight from the formula: add up the atomic weight of every atom and you have it. Water is two hydrogens at 1.008 and one oxygen at 15.999, so 18.015 g/mol. That number is what turns a balanced equation, which counts particles, into something you can actually weigh out on a balance.
How to write the formula
Element symbols start with a capital letter and may have one lowercase letter after it, which is why Co is cobalt but CO is carbon and oxygen. A number after a symbol multiplies that symbol; a number after a bracket multiplies everything inside, so Fe2(SO4)3 is two irons, three sulfurs and twelve oxygens. Brackets can nest, and square brackets work too, as in K4[Fe(CN)6]. For a hydrate, write the dot as a middle dot, a full stop or an asterisk: CuSO4·5H2O, CuSO4.5H2O and CuSO4*5H2O all give 249.677 g/mol.
Grams to moles and back
Once you have the molar mass, the two conversions are one division apart. Moles = grams / molar mass, and grams = moles x molar mass. Put a number in the amount box and pick the unit, and the answer appears next to the molar mass: 18.015 g of water is exactly 1 mol, and 2 mol of sodium chloride weighs 116.88 g. This is the step most of stoichiometry rests on, because reactions are written in moles but chemicals are measured in grams.
Percent composition
The last column of the table is each element as a share of the total mass, which is what a question means by percent composition. It is the subtotal for that element divided by the molar mass. In water, oxygen is 15.999 of 18.015, so 88.8 percent by mass even though only one atom in three is oxygen. That gap between counting atoms and weighing them is the point of the calculation, and it is why the percentages always add to 100 while the atom counts do not.
Worth knowing
- Case matters: Co is cobalt, CO is carbon monoxide, and the tool will read them differently.
- A leading number multiplies the whole formula, so 2H2O is twice the mass of H2O.
- Atomic weights are the IUPAC standard values, which are averages across natural isotopes.
- Percentages always total 100, which makes them a quick check that you typed the formula you meant.
- Nothing is stored. The calculation runs on our server and the result is discarded once sent.