How it’s calculated
The molar mass of a substance is the mass of one mole (6.02214076 × 10²³ particles) of it. It equals the sum of the standard atomic weights of all atoms in the formula, in grams per mole. This calculator reads the formula, counts each element (expanding brackets and hydrate water), and adds up the weights.
Atomic weights are the IUPAC abridged standard atomic weights (2024 table), quoted to about five significant figures (for example H = 1.0080, C = 12.011, O = 15.999). Elements with no stable isotopes and no standard atomic weight (such as technetium or plutonium) are not supported.
Example: glucose, C₆H₁₂O₆ = 6 × 12.011 + 12 × 1.0080 + 6 × 15.999 = 180.156 g/mol. A 100 g sample is 100 ÷ 180.156 = 0.555 mol, or about 3.34 × 10²³ molecules. For a hydrate, CuSO₄·5H₂O = 63.546 + 32.06 + 4 × 15.999 + 5 × 18.015 = 249.68 g/mol.
| You type | Meaning |
|---|---|
| Ca(OH)2 | 1 Ca, 2 O, 2 H |
| K4[Fe(CN)6] | Brackets can be nested |
| CuSO4·5H2O | Hydrate: CuSO4 plus 5 H2O (· or * both work) |
Frequently asked questions
Why does it say "Unknown element"?
Symbols are case-sensitive: Co is cobalt but CO is carbon monoxide, and NaCl is sodium chloride but Nacl is not valid. Check the capital letters.
What is the difference between molar mass and molecular weight?
They have the same number. Molar mass is in g/mol; molecular weight (or formula mass) is the same value in atomic mass units. For ionic compounds the term formula mass is more correct.
How do I enter a hydrate?
Separate the parts with a middle dot or an asterisk, for example CuSO4·5H2O or CuSO4*5H2O. A full stop is not accepted because it could be mistaken for a decimal. A number in front of the second part multiplies that whole part.
Why might my textbook answer differ slightly?
Textbooks round atomic weights differently (for example H = 1.008 or 1.00794, Cl = 35.45 or 35.453). The result here uses IUPAC abridged values, so expect small differences in the last digit.
Embed this calculator
Add this free calculator to your own website. Copy the code below into your page’s HTML:
Need this calculator branded, changed or built around your own prices?See custom business solutions →
Sources
- Abridged Standard Atomic Weights (2024) — IUPAC CIAAW
- Chemistry 2e, §3.1 Formula Mass and the Mole Concept — OpenStax
- CODATA value: Avogadro constant — NIST
Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.
Added · Last updated · How we check our calculators
Spotted a mistake or missing option? Report a problem· Suggest a calculator