Molar mass links the world of atoms to the world of grams. It tells you how much one mole of a substance weighs, which you need for preparing solutions, balancing reactions and working out yields. Our molecular weight calculator finds the molar mass of a chemical formula and breaks it down by element. This guide explains the method and how to use the result.
How to use the calculator
Type a chemical formula using standard element symbols and numbers. Capital letters matter: Co is cobalt, while CO is carbon monoxide.
With the default, glucose C6H12O6:
- Molar mass: 180.156 g/mol
| Element | Atoms | Mass | Mass % |
|---|---|---|---|
| C | 6 | 72.066 | 40.00% |
| H | 12 | 12.096 | 6.71% |
| O | 6 | 95.994 | 53.28% |
For water, H2O, the molar mass is 18.015 g/mol, with oxygen making up 88.8% of the mass.
How molar mass is calculated
Add up the atomic masses of every atom in the formula.
Glucose, C₆H₁₂O₆:
- Carbon: 6 × 12.011 = 72.066
- Hydrogen: 12 × 1.008 = 12.096
- Oxygen: 6 × 15.999 = 95.994
- Total: 180.156 g/mol
Mass percentage of each element is its mass ÷ the total × 100. Carbon: 72.066 ÷ 180.156 = 40.0%.
Common atomic masses
| Element | Symbol | Atomic mass |
|---|---|---|
| Hydrogen | H | 1.008 |
| Carbon | C | 12.011 |
| Nitrogen | N | 14.007 |
| Oxygen | O | 15.999 |
| Sodium | Na | 22.990 |
| Chlorine | Cl | 35.45 |
| Calcium | Ca | 40.078 |
| Iron | Fe | 55.845 |
Molar mass, molecular weight and moles
- Molecular weight (or relative molecular mass) is the same number without units: glucose is 180.156.
- Molar mass has units of g/mol: one mole of glucose weighs 180.156 g.
- One mole is 6.022 × 10²³ particles (Avogadro's number).
Using molar mass
Grams to moles: moles = mass ÷ molar mass. 90 g of glucose is 90 ÷ 180.156 = 0.5 mol.
Moles to grams: mass = moles × molar mass. 2 mol of water is 2 × 18.015 = 36.03 g.
Making a solution: to make 1 litre of 0.1 M sodium chloride (58.44 g/mol), dissolve 5.844 g. The molarity calculator works through solution and dilution problems.
Reaction stoichiometry: balanced equations give ratios in moles. Converting grams to moles with molar mass lets you predict how much product forms.
Writing formulas correctly
- Use the correct case: NaCl, not nacl.
- A number after a symbol applies only to that element: in CO2 there are 2 oxygens.
- Parentheses group atoms: Ca(OH)2 has 1 calcium, 2 oxygens and 2 hydrogens, giving 74.09 g/mol.
- Hydrates can be entered with a dot: CuSO4·5H2O gives 249.677 g/mol, including the five water molecules.
Empirical formulas
Mass percentages work in reverse too. If an analysis shows a compound is 40% C, 6.7% H and 53.3% O, dividing each by its atomic mass gives a 1 : 2 : 1 ratio, the empirical formula CH₂O. Glucose is six times that.
Precision
Atomic masses are averages weighted by natural isotope abundance. For most work, three decimal places are plenty. Report answers to a sensible number of significant figures; the rounding calculator and scientific notation calculator can help.
Practical lab tips
Before weighing out a chemical, check whether the label gives the anhydrous form or a hydrate, because the water of crystallisation adds a lot of mass. Copper sulfate pentahydrate, for example, has a molar mass of about 249.7 g/mol, compared with about 159.6 g/mol for the anhydrous salt. Also check the purity on the label: a reagent that is 98% pure needs slightly more mass to deliver the same number of moles. Record the molar mass you used in your lab notebook, so anyone repeating the experiment can follow the calculation, and keep the same atomic mass values throughout a report.
Frequently asked questions
What is the difference between molar mass and molecular weight?
They are numerically equal. Molar mass has units of grams per mole, while molecular weight is a unitless relative mass.
Why does capitalisation matter?
Element symbols start with a capital letter. Co is cobalt, but CO means one carbon and one oxygen atom.
How do I handle parentheses?
Multiply everything inside the parentheses by the number after them. Mg(NO3)2 has 2 nitrogens and 6 oxygens.
What is the molar mass of water?
About 18.015 g/mol: two hydrogens at 1.008 and one oxygen at 15.999.
Try it yourself
Run your own numbers with our free tool: Molecular weight calculator. No sign-up, and it works on any device.