How to use this calculator
- 1 Type the chemical formula, using capital letters for elements, such as NaCl or Ca(OH)2.
- 2 Write hydrate water after a · or * separator, such as CuSO4·5H2O.
- 3 Read the molar mass in grams per mole, then check the element table below it.
- 4 Use the mass share of each element to see which one dominates the compound.
What is molecular weight?
Molecular weight, or molar mass, is the mass of one mole of a compound. It is measured in grams per mole (g/mol). The name molecular weight is still common, even though the value is a mass, not a weight.
A molecule of water, H2O, contains two hydrogen atoms and one oxygen atom. Its molar mass is about 18.015 g/mol, because the two hydrogens add 2.016 and the oxygen adds 15.999.
Where the atomic weights come from
Each element has a standard atomic weight, which is the average mass of its atoms in nature. The values in this calculator come from the IUPAC Commission on Isotopic Abundances and Atomic Weights (CIAAW), which publishes them for chemists worldwide.
Elements with no stable isotope use the mass of their longest-lived isotope, so their values are less certain. For most school and lab work, the figures are accurate enough.
Reading the formula
A number after an element counts its atoms. A number after a bracket applies to the whole group, so Ca(OH)2 has one calcium, two oxygens and two hydrogens. Hydrate water in a formula, such as CuSO4·5H2O, adds five water molecules to each unit.
Element symbols use one capital letter, with an optional lower-case letter. So Co is cobalt, while CO is carbon with oxygen. Check the case of each letter, because it changes the meaning.
Using molar mass in practice
Molar mass links grams to moles. To find moles from a mass, divide the mass by the molar mass. The molarity calculator uses this step when you prepare a solution. The mass calculator and density calculator cover the physical side of the same idea.
Molar mass also helps when you compare the mass of an element in two compounds. The mass share table shows the percentage of each element by weight, which is useful for checking a formula or a purity figure.
- Use the formula printed on the label, including any water of hydration.
- Check the molar mass against a reference such as the NIST Chemistry WebBook.
- Keep track of isotopes, which only matter for very precise work.
- Use enough decimal places for your work, and round at the end.
Chemical safety
Many compounds are hazardous, and a formula does not show that. Read the safety data sheet before you handle any substance, and store chemicals in labelled containers away from food.
Never mix chemicals to see what happens, and do not use household products for lab work without checking their hazards first.
The formula
Molar mass
Molar mass = Σ (count of each element × atomic weight)
- Σ
- the sum over every element in the formula
- count
- the number of atoms of that element, including those inside brackets
- atomic weight
- the standard atomic weight of the element, in g/mol
Mass share of an element
Mass % = (count × atomic weight) ÷ molar mass × 100
- Mass %
- the share of the compound’s mass that comes from that element
Worked example
Glucose, C6H12O6
- 1.Carbon: 6 × 12.011 = 72.066 g/mol
- 2.Hydrogen: 12 × 1.008 = 12.096 g/mol
- 3.Oxygen: 6 × 15.999 = 95.994 g/mol
- 4.Total: 72.066 + 12.096 + 95.994 = 180.156 g/mol
The molar mass of glucose is 180.156 g/mol. Carbon makes up about 40% of the mass.
Frequently asked questions
How do I calculate molecular weight?
Count the atoms of each element in the formula, multiply each count by its atomic weight, then add the results. The calculator does this for any formula you type.
What is the molecular weight of water?
About 18.015 g/mol. Two hydrogen atoms give about 2.016, and one oxygen atom gives 15.999.
What does the dot in CuSO4·5H2O mean?
It separates the water of hydration from the main compound. The five water molecules are part of the crystal, so their mass counts in the molar mass.
Why are some atomic weights not whole numbers?
Atomic weights are averages of the isotopes an element has in nature. So they are rarely whole numbers, even though the mass of one atom is close to its mass number.
Sources
Last reviewed by the GridCalculators team.