Molecular Weight Calculator

Type any chemical formula and get its molar mass instantly — with the element-by-element breakdown.

Use element symbols and numbers, e.g. H2O, Ca(OH)2 or C6H12O6. A number after an element or a closing bracket multiplies everything inside it.
Common compounds
Molecular Weight
— g/mol
ElementAtomsAtomic WeightTotal Mass% by Mass

Values use IUPAC standard atomic weights and may differ from other calculators by about 0.01 g/mol.

Search Tools

Understanding Molecular Weight

Molecular weight is the mass of one mole of a compound in grams. It is a sum: the atomic weight of each element multiplied by how many atoms of it the formula contains. The calculator adds up every atom in the formula and shows the element-by-element breakdown, so you can see exactly where the mass comes from.

Unit Type Unit Name Value in Molecular Weight (g/mol)
Compound Water H2O — 18.02 g/mol
Compound Salt NaCl — 58.44 g/mol
Compound Glucose C6H12O6 — 180.16 g/mol
Compound Sulfuric Acid H2SO4 — 98.07 g/mol
Compound Caffeine C8H10N4O2 — 194.19 g/mol
Compound Aspirin C9H8O4 — 180.16 g/mol
Compound Carbon Dioxide CO2 — 44.01 g/mol
Compound Ammonia NH3 — 17.03 g/mol
Compound Calcium Carbonate CaCO3 — 100.09 g/mol
Element Hydrogen H — 1.008 g/mol per atom

Conversion Tip

Molecular weight is the mass of one mole of a compound in grams. Type any chemical formula, for example H2SO4 or Ca(OH)2, and the calculator adds up the atomic weights of every atom to give the molar mass, with the element-by-element breakdown.


Quick Reference

  • Molecular weight = sum of (atomic weight × atom count) for each element
  • H2SO4 = (2 × 1.008) + 32.06 + (4 × 15.999) = 98.07 g/mol
  • H2O = (2 × 1.008) + 15.999 = 18.02 g/mol
  • Ca(OH)2 = 40.078 + (2 × 15.999) + (2 × 1.008) = 74.09 g/mol
  • Parentheses multiply everything inside them: (NH4)2SO4 = 132.13 g/mol
  • Hydrates include their water: CuSO4·5H2O = 249.68 g/mol
  • One mole of a compound weighs its molar mass in grams
  • Molar mass is the modern term for molecular weight
  • Values use IUPAC standard atomic weights
  • Different atomic-weight tables can differ by about 0.01 g/mol
Copied!

How molecular weight is calculated

Molecular weight is a sum: the atomic weight of each element, multiplied by how many atoms of that element the formula contains. Look up every element in the formula, multiply its atomic weight by its atom count, and add the results together. The total is the mass of one mole of the compound, in grams per mole (g/mol).

Worked example: H2SO4 = (2 × 1.008) + 32.06 + (4 × 15.999) = 98.07 g/mol.

Parentheses: a number after a closing bracket multiplies everything inside it. Ca(OH)2 means one calcium, two oxygens and two hydrogens — (1 × 40.078) + (2 × 15.999) + (2 × 1.008) = 74.09 g/mol.

Common compounds and their molecular weights
CompoundFormulaMolecular Weight (g/mol)
WaterH2O18.02
SaltNaCl58.44
GlucoseC6H12O6180.16
Sulfuric AcidH2SO498.07
CaffeineC8H10N4O2194.19
AspirinC9H8O4180.16
Carbon DioxideCO244.01
AmmoniaNH317.03
Calcium CarbonateCaCO3100.09

Frequently Asked Questions

What is molecular weight?

Molecular weight is the mass of one mole of a compound in grams. It is the same number as the molar mass: add up the atomic weights of every atom in the formula and the total is the molecular weight in grams per mole.

What is the difference between molecular weight and molar mass?

They are the same value. Molecular weight is the older term; molar mass is the modern term for the mass of one mole of a substance, measured in grams per mole (g/mol).

How do I enter a formula?

Type the formula using normal element symbols, for example H2SO4, Ca(OH)2 or C6H12O6. A number after an element tells the calculator how many atoms of it there are, and a number after a closing bracket multiplies everything inside the brackets.

What about hydrates like CuSO4·5H2O?

Hydrated formulas are supported. Enter the formula with the middle dot or a period, for example CuSO4·5H2O, and the water of crystallisation is included in the total — copper sulphate pentahydrate is 249.68 g/mol.

Why does my answer differ slightly from another calculator?

Different calculators use slightly different atomic-weight tables. The differences are tiny — usually about 0.01 g/mol — and do not change the result for practical use.

What is the molecular weight of water?

Water, H2O, has a molecular weight of 18.02 g/mol: two hydrogen atoms (2 × 1.008) plus one oxygen atom (15.999).

Molecular Weight Calculator Guide

Every chemistry calculation starts with one number: how much does a mole of this compound weigh? The calculator above gives you that number for any formula you type — plus the element-by-element breakdown, so you can see exactly where the mass comes from.

How the calculation works

Molecular weight is a sum: the atomic weight of each element multiplied by how many atoms of it the formula contains. Sulphuric acid, H2SO4, is (2 × 1.008) for hydrogen, plus 32.06 for sulphur, plus (4 × 15.999) for oxygen — 98.07 g/mol. Parentheses multiply everything inside them: Ca(OH)2 is one calcium, two oxygens and two hydrogens.

Why it matters

Once you know the molar mass, moles and grams convert directly: 98.07 g of H2SO4 is exactly one mole. That single conversion sits underneath solution preparation, stoichiometry, yield calculations and titration work — which is why this is one of the most-searched chemistry tools on the web.

Parentheses and hydrates

Formulas with brackets, like Ca3(PO4)2 or (NH4)2SO4, are handled by the parser. Hydrated compounds such as copper sulphate pentahydrate, CuSO4·5H2O (249.68 g/mol), include their water of crystallisation in the total.

© 2026 Universal Converter. All rights reserved.

Developed By Bahlool Hanif

Accurate conversion for everyone, everywhere.