Skip to main content

DigitalCalculators.net

Molar Mass Calculator

Find the molar mass of any chemical formula, with brackets and hydrates, plus the mass percent of each element and a grams-to-moles conversion.

Results

ItemValue

Steps

StepWorking

Composition by element

ElementAtomsAtomic weightMassMass %
Uses standard atomic weights (abridged) as listed by IUPAC. Brackets work, such as Ca(OH)2 or Al2(SO4)3, and hydrates can use a dot or *, such as CuSO4·5H2O or CuSO4*5H2O. Elements with no stable isotopes, such as technetium, have no standard atomic weight, so they cannot be used.

Quick Answer

Molar mass is the sum of the atomic weights of all atoms in a formula, in g/mol. Water, H₂O, is 2 × 1.008 + 15.999 = 18.015 g/mol. Glucose, C₆H₁₂O₆, is 6 × 12.011 + 12 × 1.008 + 6 × 15.999 = 180.156 g/mol.

Last updated: 3 November 2026 ·How we calculate this: standard atomic weights

Table of Contents

How This Molar Mass Calculator Works

Type a chemical formula such as NaCl, Ca(OH)2 or CuSO4·5H2O. The calculator reads each element symbol and its count, multiplies out brackets and hydrate parts, and adds up the atomic weights. It shows the molar mass in grams per mole, each element’s share of the mass, and, if you enter a sample mass, how many moles and molecules it holds.

Quick explanation: one mole of a substance weighs its molar mass in grams.

  • Atomic weight: the average mass of one element’s atoms, in g/mol.
  • Subscripts: numbers after a symbol give how many atoms.
  • Mole: 6.02214076 × 10²³ particles (Avogadro’s number).

How to Use the Molar Mass Calculator

  1. Type the chemical formula, using capital letters correctly.
  2. Use brackets for groups and a dot or * for hydrates.
  3. Optionally enter a sample mass in grams.
  4. Press Calculate.
  5. Read the molar mass, the steps and the element breakdown.

Core Formulas

  • Molar mass: M = Σ (number of atoms × atomic weight)
  • Moles: n = mass ÷ molar mass
  • Mass: mass = moles × molar mass
  • Mass percent: element mass ÷ molar mass × 100
  • Particles: moles × 6.02214076 × 10²³

Key Terms

  • Molar mass: the mass of one mole of a substance, in g/mol.
  • Atomic weight: the average mass of an element’s atoms as found in nature.
  • Mole: an amount equal to 6.02214076 × 10²³ particles.
  • Hydrate: a compound with water molecules built into its crystals.
  • Mass percent: the share of a compound’s mass that comes from one element.

Worked Example

Find the molar mass of copper(II) sulfate pentahydrate, CuSO₄·5H₂O.

  • CuSO₄ = 63.546 + 32.06 + 4 × 15.999 = 159.602 g/mol
  • 5H₂O = 5 × 18.015 = 90.075 g/mol
  • Total = 249.677 g/mol

Real-Life Examples

  • Lab prep: to make 1 mol of NaCl, weigh out 58.44 g.
  • Moles from mass: 50 g of CaCO₃ is 0.4996 mol.
  • Percent composition: water is 11.19% hydrogen and 88.81% oxygen by mass.
  • Solutions: use the molar mass with our Molarity Calculator to make solutions.

Molar Mass vs Molecular Weight

  • Molar mass: mass per mole, in g/mol.
  • Molecular weight: mass of one molecule, in daltons (Da) or u.
  • Same number: water is 18.015 g/mol and 18.015 Da.

Molar Masses of Common Compounds

CompoundFormulaMolar mass (g/mol)
WaterH₂O18.015
Table saltNaCl58.440
Carbon dioxideCO₂44.009
GlucoseC₆H₁₂O₆180.156
Sulfuric acidH₂SO₄98.072
Calcium carbonateCaCO₃100.086
AmmoniaNH₃17.031
EthanolC₂H₅OH46.069
Sodium hydroxideNaOH39.997
MethaneCH₄16.043

Tips for Typing Formulas

  • Capitals matter: Co is cobalt, but CO is carbon and oxygen.
  • Brackets: Mg(OH)2 has 2 oxygen and 2 hydrogen atoms.
  • Hydrates: use a dot or *, such as MgSO4*7H2O.
  • Subscripts: type them as normal numbers. H₂O and H2O both work.

Using Molar Mass in Reactions

Molar mass is the bridge between the grams you weigh on a scale and the moles in a balanced equation. To find how much product a reaction can make, change grams of the starting substance to moles, use the equation’s ratio, then change moles back to grams with the product’s molar mass.

  • Example: 2H₂ + O₂ → 2H₂O. Burning 4.032 g of hydrogen (2 mol) gives 2 mol of water.
  • Grams of water: 2 mol × 18.015 g/mol = 36.030 g.
  • Limiting reactant: work out moles of each starting substance to see which runs out first.

The same steps help with dosing, cooking chemistry and lab recipes. Always keep the units in your working, grams on top and moles below, so they cancel the right way and you can spot mistakes quickly.

Common Mistakes to Avoid

  • Wrong capitals. NaCl, not NACL or nacl.
  • Forgetting bracket counts. In Al2(SO4)3 there are 12 oxygen atoms.
  • Leaving out water in hydrates. CuSO4·5H2O is much heavier than CuSO4.
  • Mixing grams and moles. Divide grams by molar mass to get moles.
  • Using mass number instead of atomic weight. Carbon is 12.011, not 12, for natural carbon.

Frequently Asked Questions

Multiply each element’s atomic weight by its number of atoms, then add them up.

About 18.015 g/mol.

About 58.440 g/mol.

Grams per mole (g/mol).

Divide the mass in grams by the molar mass.

Use a dot or a star: CuSO4·5H2O or CuSO4*5H2O.

Yes. Ca(OH)2, Al2(SO4)3 and nested brackets all work.

Element symbols use one capital letter. Co is cobalt, but CO is carbon monoxide.

IUPAC’s standard atomic weights, in abridged form.

They have no stable isotopes, so there is no standard atomic weight. Use a specific isotope’s mass instead.

They have the same number but different units: g/mol versus daltons.

6.02214076 × 10²³, the number of particles in one mole.

References & Sources

SourceUsed ForLink
Wikipedia, List of chemical elements Standard atomic weights used here, from IUPAC. https://en.wikipedia.org/wiki/List_of_chemical_elements
IUPAC CIAAW, Standard Atomic Weights The official table of standard atomic weights. https://www.ciaaw.org/atomic-weights.htm