Skip to content
√Solver AI
Study guidesFree toolsAbout
Get the app
√Solver AI

Step-by-step homework help for math and science, in your pocket.

Contact: support@solverai.app

Download on the App Store

Solvers

  • Algebra solver
  • Calculus solver
  • Geometry solver
  • Trigonometry solver
  • Statistics solver
  • Equation solver
  • Chemistry solver
  • Physics solver

Help with

  • Fractions
  • Derivatives
  • Integrals
  • Quadratics
  • Percentages
  • Matrices

Free tools

  • Quadratic formula calculator
  • Fraction calculator
  • Percentage calculator
  • Standard deviation calculator
  • Kinematics calculator (SUVAT)
  • Slope calculator
  • Molar mass calculator
  • System of equations solver
  • All tools

Solver AI

  • Study guides
  • About
  • Support
  • Best math solver apps
  • Privacy policy
  • Terms of use

© 2026 Solver AI. All rights reserved.

  1. Home
  2. Free tools
  3. Molar mass calculator

Molar Mass Calculator

Type a chemical formula to get its molar mass in g/mol. The calculator counts the atoms of each element, multiplies by the atomic weight and shows every subtotal and the mass percent, so you can check your own working line by line.

Brackets ( ) and [ ] are allowed. Type the hydrate dot as "." or "*". Symbols are case-sensitive: Co is cobalt, CO is carbon monoxide.
Try an example
Molar mass of CuSO₄·5H₂OM = 249.68 g/mol

Exact sum 249.677 g/mol, rounded to 2 decimal places, the precision of the least precise atomic weight used.

Step by step

  1. Count the atoms of each element in CuSO₄·5H₂O, multiplying out brackets and hydrate parts: Cu 1, S 1, O 9, H 10.
  2. Multiply each count by the element's standard atomic weight:
    ElementAtomsAtomic weightAtoms × atomic weight (g/mol)Mass %
    Cu (Copper)163.54663.54625.45%
    S (Sulfur)132.0632.0612.84%
    O (Oxygen)915.999143.99157.67%
    H (Hydrogen)101.00810.0804.04%
    Total249.677100%
  3. Add the subtotals: 63.546 + 32.06 + 143.991 + 10.080 = 249.677 g/mol, which rounds to 249.68 g/mol.

Atomic weights: IUPAC CIAAW abridged standard atomic weights (2021 IUPAC technical report). Elements with no stable isotopes and no characteristic natural isotope mix, such as technetium and plutonium, have no standard atomic weight, so the calculator rejects them.

How it works

The molar mass of a compound is the sum, over every element in its formula, of the number of atoms times that element's standard atomic weight. The answer is in grams per mole (g/mol): the mass of one mole of formula units.

The calculator reads the formula from left to right. A subscript multiplies the element or bracket just before it, so in (NH₄)₂SO₄ the 2 doubles both the N and the four H atoms. A dot in a hydrate starts a new part that is added on, and a number at the start of that part multiplies the whole part. The sum is done exactly, then rounded to the decimal places of the least precise atomic weight in the formula.

Worked example

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

  1. The dot means "plus five whole water molecules", not multiply. The 5 applies to H₂O only.
  2. Count the atoms: Cu 1, S 1, O 4 + 5 = 9, H 10.
  3. Multiply and add: 63.546 + 32.06 + 9 × 15.999 + 10 × 1.008 = 63.546 + 32.06 + 143.991 + 10.080 = 249.677 g/mol.
  4. Round: sulfur's 32.06 has two decimal places, the fewest of the four weights, so the molar mass is 249.68 g/mol.

That is the default formula above, so you can compare each line with the calculator's table. Once you have M, converting a mass to an amount is one division, n = m / M: 50.0 g of the hydrate is about 0.200 mol. For more practice, including how to spot the count in nested brackets, read the step-by-step guide to calculating molar mass. More calculators are on the free tools page. They are free, need no sign-up and show their working, and they are meant for checking homework and learning the method, not for use in tests.

Frequently asked questions

What does the dot in a hydrate formula like CuSO4·5H2O mean?

The dot means "plus", not "multiply". CuSO4·5H2O is one unit of copper(II) sulfate with five whole water molecules attached, so you add the mass of 5 H2O to the mass of CuSO4. The 5 multiplies only the water. You can type the dot as "." or "*" in the calculator and it reads it the same way.

Why do different websites and textbooks give different molar masses?

Mostly because they round the atomic weights differently. With Cu = 63.5, S = 32, O = 16 and H = 1, CuSO4·5H2O comes out as 249.5 g/mol. With the IUPAC values used here (63.546, 32.06, 15.999 and 1.008) it is 249.68 g/mol. Older periodic tables also used slightly different values for a few elements. Use the atomic weights your course or exam board gives you, and the method stays the same.

How does this calculator round the answer?

It first adds up every atoms × atomic weight product exactly, with no floating-point error. It then rounds that sum half up to the number of decimal places of the least precise atomic weight in the formula. For CuSO4·5H2O the exact sum is 249.677, and sulfur is listed as 32.06 (two decimal places), so the answer is given as 249.68 g/mol.

What is the difference between molar mass, Mr and molecular weight?

They share the same number but differ in units. Molar mass M is the mass of one mole of a substance, in g/mol. Relative formula mass Mr (also called relative molecular mass) is the same number with no unit, because it compares the formula mass with one twelfth of a carbon-12 atom. Molecular weight is an older name, often given in atomic mass units (u, also written Da) for the mass of one molecule.

Why does the calculator reject elements like technetium or plutonium?

Technetium, promethium, polonium to actinium, and every element from neptunium onward have no stable isotopes and no characteristic natural isotope mix, so IUPAC gives them no standard atomic weight. A sample of them can be almost any mix of isotopes, so there is no single number to use. Thorium, protactinium and uranium are also radioactive, but their natural isotope mix is consistent enough that they do have standard atomic weights, and the calculator accepts them. For those elements you need the mass of the specific isotope your problem is about, which this tool does not guess.

How do I convert grams to moles with the molar mass?

Divide the mass by the molar mass: n = m / M. For example, 50.0 g of CuSO4·5H2O is 50.0 / 249.68 = 0.200 mol. To go the other way, multiply: m = n × M. Keep the units visible while you work, since g divided by g/mol leaves mol.

Check your chemistry homework

Work the problem yourself first, then take a photo of it. Solver AI on iPhone and iPad shows a step-by-step solution, and its AI tutor answers follow-up questions about any step.

Download on the App StoreTry a free tool →