What does molar mass mean?
Molar mass is the mass of one mole of a substance, typically shown in grams per mole (g/mol). A mole is a counting unit in chemistry, similar to a dozen, but much larger: one mole equals approximately 6.022 × 1023 particles (Avogadro's number).
When you calculate the molar mass of a compound, you add up the atomic masses of all atoms in its chemical formula. This value lets you convert between mass and moles, which is essential for reaction stoichiometry, solution preparation, and lab yield calculations.
How to use this calculator
- Type a chemical formula such as NaCl, H2SO4, or Ca(OH)2.
- Click Calculate Molar Mass.
- Review the total molar mass and the element-by-element breakdown.
- Use hydrate notation with a dot, for example CuSO4·5H2O.
The calculator supports nested groups with parentheses (), square brackets [], and curly braces {}.
Worked examples
Example 1: Water (H2O)
Water has 2 hydrogen atoms and 1 oxygen atom. Its molar mass is:
- Hydrogen: 2 × 1.008 = 2.016
- Oxygen: 1 × 15.999 = 15.999
- Total: 18.015 g/mol
Example 2: Calcium hydroxide (Ca(OH)2)
The group (OH) appears twice:
- Ca: 1 × 40.078 = 40.078
- O: 2 × 15.999 = 31.998
- H: 2 × 1.008 = 2.016
- Total: 74.092 g/mol
Example 3: Hydrated copper sulfate (CuSO4·5H2O)
Hydrate notation means water molecules are part of the crystal structure. You calculate CuSO4 plus five water molecules:
- CuSO4 = 159.607 g/mol
- 5H2O = 5 × 18.015 = 90.075 g/mol
- Total: 249.682 g/mol
Why molar mass matters
Whether you are in a high school lab, undergraduate chemistry course, or industry lab, molar mass is the bridge between the measured world (grams) and the particle world (moles and molecules).
- Stoichiometry: Convert grams of reactants to moles for balanced equations.
- Solution prep: Determine how many grams to weigh for a target molarity.
- Yield analysis: Compare theoretical and actual yield in synthesis.
- Quality control: Verify material composition and purity workflows.
Common mistakes to avoid
- Using the wrong element symbol (for example, confusing Co and CO).
- Forgetting to multiply atoms inside parentheses by the subscript outside.
- Ignoring waters of hydration in formulas such as ·6H2O.
- Mixing uppercase/lowercase incorrectly (e.g., CL is invalid; Cl is chlorine).
Quick FAQ
Does this calculator use average atomic masses?
Yes. It uses standard average atomic masses (periodic table values), suitable for most classroom and lab calculations.
Can it parse complex formulas with nested brackets?
Yes. The parser handles nested grouping symbols and hydrate dot notation.
What if my formula includes charge notation?
Trailing ionic charge notation (like +, 2-, or ^3-) is ignored for molar-mass calculation because charge does not materially change the mass at this precision.