Molar Mass Calculator

Molar mass is the mass of one mole of a substance, found by adding the atomic masses of every atom in its formula. For glucose, C₆H₁₂O₆, the molar mass is 180.156 g/mol, from 24 atoms in all: 6 carbon, 12 hydrogen and 6 oxygen.

Last updated · By · Runs in your browser, nothing is uploaded

Result

Step-by-Step Solution

Enter your values above to see the full working.

What Is Molar Mass?

The molar mass of a substance is the mass, in grams, of one mole of it, that is, of 6.022 × 10²³ particles. It is the bridge between the microscopic world of atoms and the macroscopic world of grams on a balance. Once you know a substance’s molar mass, you can convert between the mass you weigh out and the number of moles that mass represents.

The calculation is simple: look up the atomic mass of every element in the formula from the periodic table, multiply by the number of atoms of that element, and add everything together. This calculator does it for you, including formulas with brackets and subscripts, such as Ca(OH)₂ or Al₂(SO₄)₃.

Molar Masses of Common Substances

SubstanceFormulaMolar mass (g/mol)
WaterH₂O18.015
Carbon dioxideCO₂44.009
Table saltNaCl58.44
EthanolC₂H₅OH46.069
GlucoseC₆H₁₂O₆180.156
Calcium hydroxideCa(OH)₂74.092
Calcium carbonateCaCO₃100.086
Sulfuric acidH₂SO₄98.072
Iron(III) oxide (rust)Fe₂O₃159.687

How Molar Mass Is Calculated

Molar mass = Σ (number of atoms of each element × its atomic mass) Moles = mass ÷ molar mass Mass = moles × molar mass
  • Atomic masses (relative atomic masses) are on the periodic table: H 1.008, C 12.011, N 14.007, O 15.999, Na 22.990, S 32.06, Cl 35.45, Ca 40.078, Fe 55.845.
  • Subscripts after an element give the number of its atoms. A subscript after a bracket multiplies everything inside.
  • The unit of molar mass is grams per mole (g/mol), numerically equal to the relative formula mass.

To turn the result into a concentration, use the molarity calculator. To find what share of the mass each element contributes, use the percent composition calculator.

How Is It Calculated? Worked Examples

Glucose, C₆H₁₂O₆

  1. Carbon: 6 × 12.011 = 72.066.
  2. Hydrogen: 12 × 1.008 = 12.096.
  3. Oxygen: 6 × 15.999 = 95.994.
  4. Total: 72.066 + 12.096 + 95.994 = 180.156 g/mol.
  5. The formula contains 6 + 12 + 6 = 24 atoms.

A Formula with Brackets: Ca(OH)₂

Calcium 40.078 + 2 × (O 15.999 + H 1.008) = 40.078 + 2 × 17.007 = 74.092 g/mol, containing 5 atoms.

Converting Grams to Moles

How many moles are in 36 g of water? n = 36 ÷ 18.015 = 1.998 mol, almost exactly 2 moles, or about 1.2 × 10²⁴ molecules.

Converting Moles to Grams

A reaction needs 0.25 mol of NaCl. The mass to weigh out is 0.25 × 58.44 = 14.61 g.

Counting Particles

One mole of any substance contains 6.022 × 10²³ particles (Avogadro’s number). So 18.015 g of water contains that many water molecules, and 180.156 g of glucose contains the same number of glucose molecules.

Hydrates

Copper(II) sulfate pentahydrate, CuSO₄·5H₂O, contains five waters of crystallisation. Its molar mass is 159.60 + 5 × 18.015 = 249.68 g/mol, noticeably more than the anhydrous 159.60. Using the wrong form gives a solution that is about 36% weaker than intended.

How to Use This Molar Mass Calculator

  1. Type the chemical formula using element symbols and numbers, such as C6H12O6 or Ca(OH)2.
  2. Respect capitalisation: the first letter of each element is uppercase and the second is lowercase (Co is cobalt, CO is carbon monoxide).
  3. Read the molar mass, the elements found and the number of atoms.

Hydrates can be written with a dot or as part of the formula; for CuSO₄·5H₂O, enter it as CuSO4(H2O)5.

Where Molar Mass Is Used

  • Stoichiometry: converting between grams and moles in reaction calculations.
  • Solution preparation: weighing the correct mass of solute for a target molarity.
  • Gas calculations: finding moles for the ideal gas law. See the ideal gas law calculator.
  • Pharmacy and biochemistry: dose and concentration calculations.
  • Industry: yields, batch sizes and quality control.

A Compound with Nested Brackets

Aluminium sulfate, Al₂(SO₄)₃, has 2 Al, 3 S and 12 O atoms, 17 in all. Its molar mass is 2 × 26.982 + 3 × (32.06 + 4 × 15.999) = 53.964 + 3 × 96.056 = 342.13 g/mol. The calculator expands brackets automatically, so you only need to type the formula as written.

What Are the Most Common Mistakes With the Molar Mass Calculator?

  • Wrong capitalisation. Co and CO are completely different compounds.
  • Forgetting the multiplier outside brackets. In Ca(OH)₂, O and H are counted twice.
  • Using atomic numbers instead of atomic masses. The relevant value is the mass number on the periodic table.
  • Mixing grams and moles. Molar mass converts between the two.
  • Rounding inconsistently. Different tables use slightly different atomic masses, so answers may vary in the third decimal.
  • Ignoring water of crystallisation in hydrated salts.

Where Can You Verify These Formulas?

The definitions and formulas on this page follow standard references. Check them against these sources:

Built and maintained by S. Dilshan. Found a mistake? Email [email protected] with the page address.

Frequently Asked Questions

What is molar mass?

The mass of one mole of a substance in grams. For water it is 18.015 g/mol.

How do I calculate the molar mass of a compound?

Multiply the atomic mass of each element by its number of atoms and add them up. For CO₂: 12.011 + 2 × 15.999 = 44.009 g/mol.

How do I convert grams to moles?

Divide the mass by the molar mass. 36 g of water is 36 ÷ 18.015 ≈ 2 mol.

How do I handle brackets in a formula?

Multiply everything inside the brackets by the subscript after them. In Ca(OH)₂, there are two O and two H atoms.

What is Avogadro’s number?

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

Why do different sources give slightly different molar masses?

Atomic masses are periodically refined and depend on rounding conventions, so differences appear in the third or fourth significant figure.