Molar mass calculator
Read a chemical formula to find its molar mass, then convert between mass, moles, and molar mass with the units you actually measured.
Browser compute / no account / no upload
Molar mass from a formula
Enter an element or compound formula. Parentheses, brackets, and hydrate dots are supported, so CuSO4·5H2O and Ca(OH)2 are read as written.
Convert between mass, moles, and molar mass
Leave out the value you want to find. The calculator uses n = m / M and its rearrangements.
Method
- The formula mass is the sum of each element count multiplied by its standard atomic weight. For a hydrate such as CuSO4·5H2O, the five water units are included in the total.
- The converter uses n = m / M. Mass is normalized to grams and molar mass to grams per mole before the division, so kilogram and milligram inputs are handled consistently.
- The result is a stoichiometric molar mass. It does not correct for reagent purity, isotopic labeling, or the activity of a real solution.
Reference: IUPAC CIAAW: Standard Atomic Weights
What molar mass measures
How to read a formula
- An element symbol starts with a capital letter. <strong>Co</strong> is cobalt, while <strong>CO</strong> is one carbon and one oxygen.
- A subscript counts the atoms immediately before it. In H2SO4, hydrogen has a count of 2 and oxygen has a count of 4.
- Parentheses and brackets multiply everything inside them. Ca(OH)2 contains one calcium, two oxygen, and two hydrogen atoms.
- A middle dot separates a hydrate from its water of crystallization. CuSO4·5H2O adds five H2O units, which is ten hydrogen atoms and five oxygen atoms.
Worked example: sulfuric acid
Example 1
Molar mass from a formula
Problem
Find the molar mass of sulfuric acid, H2SO4, using standard atomic weights.
Solution
Count the atoms: 2 H, 1 S, and 4 O.
Multiply each count by the atomic weight: .
Add the contributions: .
Answer
98.07 g/mol
Worked example: a hydrated salt
Example 2
Including water of crystallization
Problem
A procedure calls for 0.100 mol of copper(II) sulfate pentahydrate. What mass should be weighed?
Solution
Find the molar mass of the anhydrous salt: g/mol.
Add five water units: g/mol.
Add the two parts: g/mol.
Multiply by the requested amount: g.
Answer
24.97 g of CuSO4·5H2O
Converting between mass and moles
Example 3
Mass to moles
Problem
How many moles are in 5.00 g of sodium chloride?
Solution
The molar mass of NaCl is g/mol.
Divide the mass by the molar mass: .
Answer
0.0856 mol NaCl
Reference values
| Compound | Formula | Molar mass (g/mol) |
|---|---|---|
| Water | H2O | 18.02 |
| Sodium chloride | NaCl | 58.44 |
| Hydrochloric acid | HCl | 36.46 |
| Sodium hydroxide | NaOH | 40.00 |
| Sulfuric acid | H2SO4 | 98.07 |
| Glucose | C6H12O6 | 180.16 |
| Sucrose | C12H22O11 | 342.30 |
| Calcium carbonate | CaCO3 | 100.09 |
| Sodium carbonate | Na2CO3 | 105.99 |
| Potassium permanganate | KMnO4 | 158.03 |
| Silver nitrate | AgNO3 | 169.87 |
| Aspirin | C9H8O4 | 180.16 |
Common mistakes
- Adding atomic numbers instead of atomic weights. Sodium is element 11 but its molar mass is 22.99 g/mol.
- Dropping the water from a hydrate. The difference for CuSO4·5H2O is 90.08 g/mol, more than a third of the total.
- Reading CO as cobalt. Capitalization changes the element, so write Co for cobalt and CO for carbon monoxide.
- Rounding each element before adding. Keep full precision until the final answer, then round to the significant figures your data supports.
- Treating an ionic formula as a molecule. NaCl is a formula unit in a lattice, but its molar mass is still calculated the same way.
Limits and assumptions
Glossary
- Molar mass
- The mass of one mole of a substance, in grams per mole. It is numerically equal to the formula mass expressed in unified atomic mass units.
- Mole
- The SI unit for amount of substance. One mole contains the Avogadro number of elementary entities.
- Formula unit
- The smallest repeating unit described by an ionic or covalent formula. For NaCl, one formula unit contains one sodium ion and one chloride ion.
- Hydrate
- A solid that includes a fixed number of water molecules per formula unit, written after a middle dot such as CuSO4·5H2O.
- Standard atomic weight
- The recommended average atomic mass of an element in its natural isotopic abundance, published by IUPAC CIAAW.
Key takeaways
- Molar mass is the sum of element counts times standard atomic weights, including any water of crystallization.
- Use n = m / M to move between a weighed mass and an amount in moles, and keep the units attached.
- Hydrates, capitalization, and early rounding are the mistakes that change answers most often.
- The parser reads formulas, not reaction equations or variable-composition materials.