TTKTheTextKit

Molar Mass Calculator

Type a chemical formula and get its molar mass in grams per mole, with a table that shows each element, how many atoms there are, its atomic mass, its total and its share of the mass. Brackets work, as in Ca(OH)2 and Al2(SO4)3, and so do hydrates, as in CuSO4.5H2O. Below the table, convert between grams, moles and the number of particles using the molar mass. Everything runs in your browser.

Capital letters matter: Co is cobalt and CO is carbon monoxide. Brackets, such as Ca(OH)2, and hydrates, such as CuSO4.5H2O, work.

Molar mass
180.156 g/mol
24 atoms, 3 elements
ElementAtomsAtomic massTotalMass %
C Carbon612.01172.06640.00%
H Hydrogen121.00812.0966.71%
O Oxygen615.99995.99453.28%
Grams
36.03
Moles
0.199993
Particles
1.20439 x 10^23

The molar mass is the mass in grams of one mole, 6.02214076 x 10^23 particles, and it is the sum of the atomic masses of all the atoms in the formula. Water, H2O, is 2 x 1.008 + 15.999 = 18.015 g/mol. The atomic masses are the conventional atomic weights, with the same number of digits as Wikipedia's list of chemical elements, which follows IUPAC. They are rounded values, so a result can differ in the last digit from a table that uses more digits, such as 18.0153 for water. An element with no stable isotope has no standard atomic weight, and its mass number is used in square brackets, as in a periodic table. A multiplier after a bracket applies to everything inside it, a number before a hydrate multiplies that part, and a dot, a middle dot or an asterisk joins the parts of a hydrate. Charges are left out, because the mass of the electrons is not counted. The grams, moles and particles converter uses the molar mass above and the exact Avogadro constant. Everything runs in your browser.

Related Tools

[5 suggestions]

About the Molar Mass Calculator

The molar mass is the mass in grams of one mole, 6.02214076 x 10^23 particles, a number that the 2019 redefinition of the SI made exact. It is the sum of the atomic masses of all the atoms in the formula. Water, H2O, is 2 x 1.008 + 15.999 = 18.015 g/mol, and glucose, C6H12O6, is 180.156. A multiplier after a bracket applies to everything inside it, so Ca(OH)2 has 2 oxygen and 2 hydrogen atoms and a mass of 74.092. In a hydrate a number before a part multiplies it, and a dot, a middle dot or an asterisk joins the parts, so CuSO4.5H2O has 9 oxygen and 10 hydrogen atoms and a mass of 249.677. Capital letters matter, because Co is cobalt and CO is carbon monoxide. The atomic masses are the conventional atomic weights as listed in Wikipedia's list of chemical elements, which follows IUPAC, checked against all 118 elements. They are rounded values, so a result can differ in the last digit from a table with more digits, such as 18.0153 for water. An element with no stable isotope has no standard atomic weight, so the mass number of its longest-lived isotope is used in square brackets, and the result says so. Charges are left out, because the mass of the electrons is not counted. The mass percent of an element is its total divided by the molar mass.

How do I calculate molar mass?▾

Add up the atomic masses of every atom in the formula. For H2O that is 2 x 1.008 + 15.999 = 18.015 g/mol. Type the formula and the tool does the sum and shows each element's part.

How do I enter brackets and hydrates?▾

Use round, square or curly brackets with a number after them, as in Ca(OH)2 or K4[Fe(CN)6]. For a hydrate use a dot or an asterisk and a number, as in CuSO4.5H2O. A number before a part multiplies it.

How do I convert grams to moles?▾

Divide the grams by the molar mass. 36.03 g of water is 36.03 divided by 18.015, which is 2 moles. Choose I have grams, type the amount, and the moles and the number of particles are shown.

Why is my answer a little different from my textbook?▾

Books use atomic masses with different numbers of digits. This tool uses the conventional values listed by Wikipedia from IUPAC, such as 1.008 for hydrogen, so a result can differ in the last digit.

Is my data uploaded?▾

No. The molar mass is calculated in your browser and nothing you enter is sent anywhere.