Molar Mass Calculator (from a Chemical Formula, IUPAC Atomic Weights)
Type a chemical formula such as H2SO4, Ca(OH)2 or CuSO4·5H2O. See its molar mass in g/mol from the CIAAW standard atomic weights, the atoms it contains and how many moles are in a sample of the mass you enter.
- Molar mass (g/mol)
- –
- Molar mass (kg/kmol)
- –
- Amount in the sample
- –
- Atoms in one formula unit
- –
- Different elements
- –
Assumptions
- Atomic weights are the CIAAW abridged standard atomic weights 2024, for elements of normal terrestrial isotopic composition.
- Where CIAAW gives an interval (H, C, N, O, S, Cl and others), its abridged value is used, so the last digit can vary between samples.
- The formula is read as typed: brackets multiply what is inside, and a hydrate part after · is added on.
Checked 3 November 2026 CIAAW (IUPAC), Abridged Standard Atomic Weights 2024 (five figures; based on Atomic Weights 2021, Gd, Lu and Zr revised 2024) All sources
How it is calculated
- Molar mass (g/mol) = Σ (number of atoms of each element × its standard atomic weight)
- Amount (mol) = sample mass (g) ÷ molar mass (g/mol)
- A molar mass in g/mol is the same number in kg/kmol (and in lb/lb-mol)
Worked example
Copper(II) sulfate pentahydrate, a common blue crystal, and 100 g of it.
| You enter | |
|---|---|
| Chemical formula | CuSO4·5H2O |
| Sample mass | 100 |
| Mass unit | Grams (g) |
| You get | |
| Molar mass (g/mol) | 249.677 g/mol |
| Molar mass (kg/kmol) | 249.677 kg/kmol |
| Amount in the sample | 0.400517 mol |
| Atoms in one formula unit | 21 |
| Different elements | 4 |
CuSO4·5H2O has 1 Cu, 1 S, 9 O and 10 H atoms, which give 249.677 g/mol. 100 g of it is 0.400517 mol.
Questions
Why does my textbook give a slightly different number?
Books round atomic weights differently and some use older tables. This tool uses the CIAAW 2024 abridged values (for example H 1.0080, C 12.011, O 15.999, S 32.06), so the last decimal can differ from older figures.
How do I type a hydrate or a complex?
Use · (or a dot or *) before the water part, with its count first: CuSO4·5H2O. Square and curly brackets work like round ones: K4[Fe(CN)6].
Sources and checks
- CIAAW (IUPAC), Abridged Standard Atomic Weights 2024 (five figures; based on Atomic Weights 2021, Gd, Lu and Zr revised 2024) · updated by the publisher to 1 January 2024
- OpenStax Chemistry 2e, 3.1 Formula Mass and the Mole Concept (formula mass as the sum of atomic masses; its NaCl and Ca3(PO4)2 figures are tests)
Last checked: 3 November 2026. This tool passes 18 automatic tests before every release. How we check our tools
Cite this page
Molar Mass Calculator (from a Chemical Formula, IUPAC Atomic Weights). GlanceDesk Compute. Last checked 3 November 2026. https://glancedeskcompute.com/
Your numbers stay on your device unless you share them.
For learning, lab preparation and quick checks. Isotopically altered or unusual materials can differ from the standard atomic weights. Results are estimates for planning and learning. They are not a design check and do not replace a qualified engineer or your local building/electrical code.