Molecular Weight Calculator

A formula's molar mass is the sum of atomic masses for every atom in the formula. Check subscripts carefully; a small formula error changes the total.

Molecular Weight (Molar Mass)

Enter a formula, or pick a common chemical. Element symbols start with a capital letter. Brackets and hydrates such as CuSO4.5H2O work too.

Standard Atomic Weights

The abridged IUPAC values this calculator uses, in grams per mole.

No.SymbolNameAtomic weight (g/mol)
1HHydrogen1.008
2HeHelium4.0026
3LiLithium6.94
4BeBeryllium9.0122
5BBoron10.81
6CCarbon12.011
7NNitrogen14.007
8OOxygen15.999
9FFluorine18.998
10NeNeon20.18
11NaSodium22.99
12MgMagnesium24.305
13AlAluminium26.982
14SiSilicon28.085
15PPhosphorus30.974
16SSulfur32.06
17ClChlorine35.45
18ArArgon39.95
19KPotassium39.098
20CaCalcium40.078
21ScScandium44.956
22TiTitanium47.867
23VVanadium50.942
24CrChromium51.996
25MnManganese54.938
26FeIron55.845
27CoCobalt58.933
28NiNickel58.693
29CuCopper63.546
30ZnZinc65.38
31GaGallium69.723
32GeGermanium72.63
33AsArsenic74.922
34SeSelenium78.971
35BrBromine79.904
36KrKrypton83.798
37RbRubidium85.468
38SrStrontium87.62
39YYttrium88.906
40ZrZirconium91.224
41NbNiobium92.906
42MoMolybdenum95.95
43TcTechnetium97
44RuRuthenium101.07
45RhRhodium102.91
46PdPalladium106.42
47AgSilver107.87
48CdCadmium112.41
49InIndium114.82
50SnTin118.71
51SbAntimony121.76
52TeTellurium127.6
53IIodine126.9
54XeXenon131.29
55CsCaesium132.91
56BaBarium137.33
57LaLanthanum138.91
58CeCerium140.12
59PrPraseodymium140.91
60NdNeodymium144.24
61PmPromethium145
62SmSamarium150.36
63EuEuropium151.96
64GdGadolinium157.25
65TbTerbium158.93
66DyDysprosium162.5
67HoHolmium164.93
68ErErbium167.26
69TmThulium168.93
70YbYtterbium173.05
71LuLutetium174.97
72HfHafnium178.49
73TaTantalum180.95
74WTungsten183.84
75ReRhenium186.21
76OsOsmium190.23
77IrIridium192.22
78PtPlatinum195.08
79AuGold196.97
80HgMercury200.59
81TlThallium204.38
82PbLead207.2
83BiBismuth208.98
84PoPolonium209
85AtAstatine210
86RnRadon222
87FrFrancium223
88RaRadium226
89AcActinium227
90ThThorium232.04
91PaProtactinium231.04
92UUranium238.03
93NpNeptunium237
94PuPlutonium244
95AmAmericium243
96CmCurium247
97BkBerkelium247
98CfCalifornium251
99EsEinsteinium252
100FmFermium257
101MdMendelevium258
102NoNobelium259
103LrLawrencium266
104RfRutherfordium267
105DbDubnium268
106SgSeaborgium267
107BhBohrium270
108HsHassium271
109MtMeitnerium278
110DsDarmstadtium281
111RgRoentgenium282
112CnCopernicium285
113NhNihonium286
114FlFlerovium289
115McMoscovium290
116LvLivermorium293
117TsTennessine294
118OgOganesson294
Quick answer. Molecular weight is the sum of the atomic weights in a formula. Water, H2O, is 2 x 1.008 + 15.999 = 18.015 g/mol, which is 88.8% oxygen by mass. Glucose, C6H12O6, is 180.156 g/mol.

What molecular weight is

The molecular weight of a compound is the sum of the atomic weights of all the atoms in its formula. Water, H2O, has two hydrogen atoms at 1.008 and one oxygen atom at 15.999, so its molecular weight is 18.015. In grams per mole it is the molar mass: 18.015 grams of water contain one mole, or 6.02214076 × 1023 molecules. The two terms are used interchangeably here, although molar mass is strictly the more correct name for the value in g/mol.

Worked example with the default formula

The page opens with H2O. 2 × 1.008 + 15.999 = 18.015 g/mol. The table the calculator shows lists each element, how many atoms there are, its atomic weight and the mass it adds:

ElementAtomsAtomic weightMass addedMass percent
H21.0082.01611.19%
O115.99915.99988.81%
Total318.015100%
Mass percent of each element in waterOxygen makes up about 89% of the mass of water even though there is only one oxygen atom for every two hydrogen atoms.Mass percent of each element in waterOxygen88.81%Hydrogen11.19%
Mass percent is the share of the compound's mass that each element supplies.

How to write a formula

  • Write each element symbol with a capital first letter, followed by a lowercase letter if it has one, and then the number of atoms: NaCl, H2SO4, C6H12O6.
  • Use round, square or curly brackets for groups, with the number after the closing bracket: Ca(OH)2 or Fe2(SO4)3.
  • For a hydrate, put a dot between the parts and the number of water molecules before the water: CuSO4.5H2O.
  • A number at the very start multiplies the whole part, so 2H2O has four hydrogen atoms and two oxygen atoms.
  • Symbols are case-sensitive: Co is cobalt, but CO is carbon and oxygen.

Worked examples

FormulaCompoundMolecular weight (g/mol)
H2OWater18.015
CO2Carbon dioxide44.009
NaClTable salt58.440
H2SO4Sulfuric acid98.072
C6H12O6Glucose180.156
Ca(OH)2Calcium hydroxide74.092
Fe2(SO4)3Iron(III) sulfate399.858
CuSO4.5H2OCopper(II) sulfate pentahydrate249.677
C2H5OHEthanol46.069
NaHCO3Baking soda84.006
Molecular weight of common compounds (g/mol)Water (18.015) is among the lightest compounds listed here; glucose (180.156) is about ten times heavier.Molecular weight of common compounds (g/mol)H2O18.015CO244.009NaCl58.440C2H5OH46.069H2SO498.072C6H12O6180.156Fe2(SO4)3399.858
Bigger molecules weigh more, as the formula suggests.

Brackets. Ca(OH)2 has one calcium, two oxygens and two hydrogens: 40.078 + 2 × 15.999 + 2 × 1.008 = 74.092. In Fe2(SO4)3 the 3 multiplies S and O4, giving 2 iron, 3 sulfur and 12 oxygen atoms and a weight of 399.858.

Hydrates. CuSO4·5H2O is the salt plus five water molecules: 159.602 + 5 × 18.015 = 249.677.

Copper(II) sulfate pentahydrate: how much of the mass is waterOf the 249.677 g/mol, 90.075 (36.1%) is water of crystallization.Copper(II) sulfate pentahydrate: how much of the mass is waterCuSO4 (anhydrous)159.6025 H2O90.075
Water of crystallization is a large share of a hydrate.

Using the result: moles, mass and composition

  • Grams to moles: divide the mass by the molar mass. 100 g of NaCl (58.440 g/mol) is 1.711 mol.
  • Moles to grams: multiply. 2 mol of glucose is 2 × 180.156 = 360.312 g.
  • Molecules: one gram of water contains about 3.34e+22 molecules (Avogadro’s number divided by 18.015).
  • Purity and composition: the mass percent column gives the share of each element, which you can compare with an assay.
Element in glucoseAtomsAtomic weightMass addedMass percent
C612.01172.06640.00%
H121.00812.0966.71%
O615.99995.99453.28%

About the atomic weights

Atomic weights are weighted averages over the natural isotopes of an element, which is why they are not whole numbers. The calculator uses abridged standard atomic weights of the kind published by IUPAC’s Commission on Isotopic Abundances and Atomic Weights. For elements with no stable isotope, such as technetium, the value is the mass number of the longest-lived isotope. If you need more precision for a specific sample, use exact isotopic masses.

What it does not support

  • Charges and ions.
  • Isotopes such as D2O (heavy water).
  • Fractional subscripts.
  • Polymers and mixtures. Enter the formula of a single compound.

Common mistakes

  • Writing CO when you mean Co, or the reverse.
  • Forgetting that a number after a bracket multiplies everything inside.
  • Leaving out the water in a hydrate.
  • Using lowercase for the first letter of a symbol.

How to read your result

The large number is the molecular weight in g/mol. The table shows each element in the order it appears, with atoms, atomic weight, mass and mass percent, and a total row. Pick a common chemical from the list to see its formula filled in. For concentrations, use the Molarity Calculator.

Atomic weights are rounded as in the standard tables. For laboratory work, use the values your protocol requires.

What to do next

Common questions

How do you calculate molecular weight?

Add up the atomic weights of every atom in the formula. For H2O, that is 2 x 1.008 + 15.999 = 18.015 g/mol.

What is the difference between molecular weight and molar mass?

They have the same number. Molar mass is the mass of one mole in g/mol, and molecular weight is the relative mass of one molecule. Chemists often use the terms for the same value.

How do I enter a hydrate such as CuSO4.5H2O?

Put a dot between the salt and the water, with the number of water molecules before the water formula. The calculator then adds the five waters to the salt.

Why does the calculator say a symbol is not an element?

Symbols are case-sensitive. Co is cobalt, but CO is carbon and oxygen, and a lowercase first letter is not accepted.

Where do the atomic weights come from?

They are abridged standard atomic weights of the kind published by IUPAC. Elements with no stable isotope use the mass number of the longest-lived isotope.

Can I use brackets?

Yes. Round, square or curly brackets can group atoms, with the number of groups after the closing bracket, as in Ca(OH)2 or Fe2(SO4)3.

Sources: IUPAC CIAAW: Standard atomic weights; NIST: Atomic weights and isotopic compositions; NIST CODATA: Avogadro constant

More Everyday Calculators

Pick another tool to jump straight to it.