Molecular Weight Calculator

About this calculator

The Molecular Weight Calculator reads a chemical formula and adds up the standard atomic weights of its atoms to give the molecular weight (molar mass) in g/mol. It handles parentheses and brackets, such as Al2(SO4)3, and hydrates written with a dot, such as CuSO4·5H2O, and shows how many atoms of each element there are and what share of the mass each contributes.

Capitals matter: Co is cobalt, CO is carbon monoxide. Use a dot or period for hydrates.
Embed this calculator

Paste this code into a Custom HTML block on your site. The calculator fits the width of the block. Adjust the height in the code if you want more room for results.

Find this widget in the publisher directory

Term definitions

Atomic weight

The atomic weight of an element is the average mass of its atoms, weighted by how common each naturally occurring isotope is, relative to one twelfth of the mass of a carbon-12 atom. Because it is a ratio it has no unit, though it is numerically equal to the molar mass in g/mol. Carbon's atomic weight is 12.011 rather than exactly 12 because about 1.1% of natural carbon is the heavier carbon-13.

Molecular weight (relative molecular mass)

The molecular weight of a compound is the sum of the atomic weights of all the atoms in its formula. Like atomic weight, it is strictly dimensionless. For ionic compounds such as NaCl, which form lattices rather than discrete molecules, the same sum is often called the formula weight.

Molar mass

Molar mass is the mass of one mole of a substance, expressed in grams per mole. One mole is 6.02214076 × 1023 particles. Numerically, molar mass in g/mol equals molecular weight, which is why the two terms are used almost interchangeably and why this calculator reports g/mol.

Molecular mass

Molecular mass is the mass of a single molecule, usually given in daltons (Da) or unified atomic mass units (u). It refers to a specific isotopic composition, while molecular weight uses averaged atomic weights.

How to calculate molecular weight

  1. Write out the formula and count the atoms of each element. A subscript applies to the element or bracketed group just before it.
  2. Multiply each element's count by its atomic weight.
  3. Add the subtotals. The mass percent of each element is its subtotal divided by the total.

Example: water, H₂O

Two hydrogen atoms at 1.008 and one oxygen at 15.999: 2 × 1.008 + 15.999 = 18.015 g/mol. Hydrogen makes up 2.016 ÷ 18.015 = 11.19% of the mass and oxygen 88.81%, even though two of the three atoms are hydrogen.

Example: aluminum sulfate, Al₂(SO₄)₃

The subscript 3 multiplies everything inside the parentheses, so the formula has 2 Al, 3 S and 12 O: 2 × 26.982 + 3 × 32.06 + 12 × 15.999 = 53.964 + 96.18 + 191.988 = 342.132 g/mol.

Example: copper(II) sulfate pentahydrate, CuSO₄·5H₂O

The dot joins five water molecules of crystallization to each CuSO₄ unit. CuSO₄ is 63.546 + 32.06 + 4 × 15.999 = 159.602, and 5 H₂O is 5 × 18.015 = 90.075, for a total of 249.677 g/mol. Water is about 36% of the crystal's mass, which is why heating blue copper sulfate leaves a much lighter white powder.

Tips for entering formulas

  • Symbols are case-sensitive: Co is cobalt, while CO is carbon monoxide.
  • Use parentheses, square brackets or braces for groups, and nest them as deep as needed, for example K4[Fe(CN)6].
  • Write hydrates with a middle dot, a period or an asterisk followed by the number of water molecules, for example MgSO4.7H2O.
  • For elements without a stable isotope, such as technetium or radon, the mass number of the longest-lived isotope is used.

Table of abridged standard atomic weights

ZSymbolElementAtomic weight
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

Why molecular weight matters

Molecular weight is the bridge between the mass you can weigh and the number of molecules you need. Chemists use it to turn a balanced equation, which is written in moles, into grams of reactants to measure out. Pharmacists and biologists use it to convert between mass concentrations such as mg/mL and molar concentrations, and engineers use it to compute gas densities and fuel-to-air ratios.

Frequently asked questions

What is the molecular weight of water?
H₂O has a molecular weight of 18.015 g/mol: two hydrogen atoms at 1.008 plus one oxygen at 15.999.
What is the molar mass of NaCl?
Sodium chloride is 22.99 + 35.45 = 58.44 g/mol.
Is molecular weight the same as molar mass?
They are numerically equal. Molecular weight is a dimensionless ratio, while molar mass carries the unit g/mol.
How do I enter a hydrate?
Separate the water of crystallization with a dot, period or asterisk and put the number of water molecules in front, for example CuSO4·5H2O or CuSO4.5H2O.

Formulas and sample results on this page were checked against independent references. Page last reviewed or updated . How we verify calculators. Project led by Shaun Connell.