Molar Mass Calculator
Test cases replayed : 4 of 4 match · Methodology · No outside source listed
Enter how many atoms of each element the formula contains; for example glucose, C₆H₁₂O₆, is 6 C, 12 H and 6 O.
Result
Molar massg/mol
Atoms in the formula
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- C atoms (atomic weight 12.011): enter 0 or more.
- H atoms (atomic weight 1.008): enter 0 or more.
- N atoms (atomic weight 14.007): enter 0 or more.
- O atoms (atomic weight 15.999): enter 0 or more.
- S atoms (atomic weight 32.06): enter 0 or more.
- P atoms (atomic weight 30.974): enter 0 or more.
- Cl atoms (atomic weight 35.45): enter 0 or more.
- Na atoms (atomic weight 22.99): enter 0 or more.
- K atoms (atomic weight 39.098): enter 0 or more.
- Ca atoms (atomic weight 40.078): enter 0 or more.
- Mg atoms (atomic weight 24.305): enter 0 or more.
- Fe atoms (atomic weight 55.845): enter 0 or more.
- F atoms (atomic weight 18.998): enter 0 or more.
- Br atoms (atomic weight 79.904): enter 0 or more.
- I atoms (atomic weight 126.9): enter 0 or more.
- Other element: atomic weight: enter 0 or more.
- Other element: atoms: enter 0 or more.
- Read the result: Molar mass; the panel also shows Atoms in the formula.
How this calculator works
Molar mass = Σ (number of atoms × standard atomic weight). Atomic weights are the CIAAW abridged standard atomic weights 2024 (ciaaw.org/abridged-atomic-weights.htm, read 2026-10-27); for an element not listed, enter its atomic weight in the last row.
The molar mass in g/mol equals the molecular weight in u (daltons). Hydrates count their water: CuSO₄·5H₂O has 10 extra H and 5 extra O.
Worked example
| C atoms (atomic weight 12.011) | 6 |
|---|---|
| H atoms (atomic weight 1.008) | 12 |
| N atoms (atomic weight 14.007) | 0 |
| O atoms (atomic weight 15.999) | 6 |
| S atoms (atomic weight 32.06) | 0 |
| P atoms (atomic weight 30.974) | 0 |
| Cl atoms (atomic weight 35.45) | 0 |
| Na atoms (atomic weight 22.99) | 0 |
| K atoms (atomic weight 39.098) | 0 |
| Ca atoms (atomic weight 40.078) | 0 |
| Mg atoms (atomic weight 24.305) | 0 |
| Fe atoms (atomic weight 55.845) | 0 |
| F atoms (atomic weight 18.998) | 0 |
| Br atoms (atomic weight 79.904) | 0 |
| I atoms (atomic weight 126.9) | 0 |
| Other element: atomic weight | 0 |
| Other element: atoms | 0 |
| Molar mass | 180.156 g/mol |
|---|---|
| Atoms in the formula | 24 |
Frequently asked questions
What is the molar mass of water?
2 × 1.0080 + 15.999 = 18.015 g/mol.
What is the molar mass of glucose?
6 × 12.011 + 12 × 1.0080 + 6 × 15.999 = 180.156 g/mol.