Type a chemical formula to get its molar mass (molecular mass or formula unit mass) with the full element-wise working, and the percentage of each element by mass. It handles brackets and water of crystallisation, so it works for Class 9 Science (Atoms and Molecules) as well as Class 11 Chemistry (Some Basic Concepts of Chemistry).
How molar mass is calculated
The molecular mass of a substance is the sum of the atomic masses of all the atoms in one molecule. For ionic compounds such as NaCl, which are not made of molecules, the same sum is called the formula unit mass. Both are written in atomic mass units (u). The molar mass is the mass of one mole of the substance. It has the same number, but in grams per mole (g mol−1).
Molar mass = Σ (number of atoms of each element × its atomic mass)
% of an element = (mass of that element in the formula ÷ molar mass) × 100
A number outside a bracket multiplies everything inside it. In a hydrate such as CuSO4·5H2O, the 5 multiplies the whole water molecule, and the masses of both parts are added.
Atomic masses used
With the "Rounded, as in NCERT" setting, the calculator uses the rounded atomic masses found in NCERT textbooks and board questions: whole numbers, except chlorine (35.5) and copper (63.5). The common ones are:
| Element | u | Element | u | Element | u | Element | u |
|---|---|---|---|---|---|---|---|
| H | 1 | O | 16 | P | 31 | Fe | 56 |
| He | 4 | F | 19 | S | 32 | Cu | 63.5 |
| Li | 7 | Na | 23 | Cl | 35.5 | Zn | 65 |
| B | 11 | Mg | 24 | K | 39 | Br | 80 |
| C | 12 | Al | 27 | Ca | 40 | Ag | 108 |
| N | 14 | Si | 28 | Mn | 55 | I | 127 |
Every other element uses its IUPAC standard atomic weight rounded to the nearest whole number. The "Precise IUPAC values" setting uses the IUPAC standard atomic weights instead (for example H 1.008, C 12.011, O 15.999, Cl 35.45), which is what NCERT Class 11 uses in some worked examples. For elements with no stable isotope, the mass number of the longest-lived isotope is used. If a question gives its own atomic masses, always use those.
Worked example: copper sulphate crystals
Question: Find the molar mass of CuSO4·5H2O and the percentage of each element in it. (Cu = 63.5, S = 32, O = 16, H = 1)
Count the atoms. Cu = 1, S = 1, O = 4 + 5 × 1 = 9, H = 5 × 2 = 10.
Add the masses. M = 1 × 63.5 + 1 × 32 + 9 × 16 + 10 × 1 = 63.5 + 32 + 144 + 10 = 249.5 g mol−1
Percentage composition:
- Cu = 63.5 ÷ 249.5 × 100 = 25.45%
- S = 32 ÷ 249.5 × 100 = 12.83%
- O = 144 ÷ 249.5 × 100 = 57.72%
- H = 10 ÷ 249.5 × 100 = 4.01%
The water of crystallisation is 5 × 18 = 90 g out of 249.5 g, or 36.07% of the crystal. These are the numbers the calculator shows when the page opens. With the precise setting the molar mass is 249.68 g mol−1.
Common mistakes
- Multiplying only the last atom inside a bracket. In Ca(OH)2 both O and H are doubled, giving 40 + 2 × 17 = 74.
- Forgetting the water in a hydrate, or adding just one H2O instead of five in CuSO4·5H2O.
- Writing the unit wrongly: molecular mass is in u, molar mass is in g mol−1.
- Mixing values, for example Cl = 35 in one place and 35.5 in another. Use one set throughout.
- Typing symbols in the wrong case: CO (carbon monoxide) is not Co (cobalt).