CALCULATORCASTLE

Molecular Weight Calculator

Calculate the molecular weight of any chemical formula from atomic masses.

About

Molecular Weight Calculator

The calculator above turns a chemical formula into a molecular weight, breaks it down atom by atom, and draws two charts: how the molecule divides by count of atoms, and how it divides by mass. Those two answers are rarely the same, and the difference between them is worth understanding.

Terms worth pinning down first

Atom is the basic particle of a chemical element, built from a nucleus of protons and neutrons with electrons around it. What makes an element that element is its proton count, which is its atomic number.

Isotope is an atom of the same element with a different number of neutrons. Every atom with 12 protons is magnesium, but magnesium has three stable isotopes, 24Mg, 25Mg and 26Mg, carrying 12, 13 and 14 neutrons.

Mole is the SI unit for amount of substance. One mole is exactly 6.02214076 × 1023 particles, the Avogadro number, and those particles can be atoms, molecules, ions or anything else you care to count.

Molecule is two or more atoms held together by chemical bonds. Sample is a small amount of material taken from a larger quantity for testing.

Atomic weight

Atomic weight, more properly relative atomic mass, is the ratio of the average mass of a sample of atoms of an element to the atomic mass constant. Because it is a ratio of two masses it is dimensionless, which is the part people miss. It is a weighted average across all the isotopes present in a normal sample, weighted by how abundant each one is.

Atomic mass is a different quantity: the mass of one single atom, measured in daltons.

Hydrogen makes the averaging concrete. Hydrogen-1 accounts for 99.9855% of natural hydrogen and deuterium, hydrogen-2, for 0.0145%, with tritium in negligible traces. Their masses are 1.007825031898 Da and 2.01410177811 Da, so:

1.007825031898 × 99.9855% + 2.01410177811 × 0.0145% ≈ 1.008

That is where the 1.008 in the table comes from. It is not the mass of a hydrogen atom; it is the average of a bucket of them.

Molecular weight

Molecular weight, more properly relative molecular mass, is the same ratio applied to a molecule instead of an atom, and it is dimensionless for the same reason. Since a molecule is a collection of atoms, its molecular weight is the sum of the atomic weights of everything in it. For water, using 1.008 for hydrogen and 15.999 for oxygen:

2 × 1.008 + 15.999 = 18.015

Molar mass, and why this page treats it as the same thing

Molar mass is the mass of one mole of a substance, normally in grams per mole. It is a mass per amount, so unlike molecular weight it genuinely has units.

Numerically the two used to be identical by definition. Since the 2019 redefinition of the SI base units they differ very slightly, by far less than the rounding in any abridged table. So for every practical purpose, including this calculator and any chemistry class, the same number serves both, which is why the answer above is labelled g/mol.

Molecular mass is a third thing again: the mass of one specific molecule, in daltons, counting the actual nuclides in it rather than element averages. The relative molecular mass of water is 18.015, but an individual water molecule can have a molecular mass anywhere from about 18.0106 to 22.0277 Da depending on which isotopes it happens to contain.

In casual use these three run together, and mostly that causes no harm. It matters when precision does, such as in mass spectrometry, where you are weighing individual molecules and the isotope you caught is exactly the point.

Working one out by hand

Three steps: count the atoms of each element, look up each atomic weight, then multiply and add.

Example: water, H2O

  • 2 hydrogen atoms and 1 oxygen atom
  • H is 1.008 g/mol, O is 15.999 g/mol
  • 1.008 × 2 + 15.999 × 1 = 18.015 g/mol

Example: aluminium sulfate, Al2(SO4)3

  • Aluminium: 2 atoms
  • Sulfur: 1 × 3 = 3 atoms
  • Oxygen: 4 × 3 = 12 atoms
  • 26.982 × 2 + 32.06 × 3 + 15.999 × 12 = 342.132 g/mol

The subscript outside the bracket multiplies everything inside it, which is the step most often skipped.

Example: copper(II) sulfate pentahydrate, CuSO4·5H2O

  • Anhydrous part, CuSO4: 63.546 + 32.06 + 15.999 × 4 = 159.602 g/mol
  • Water of crystallisation, 5H2O: 18.015 × 5 = 90.075 g/mol
  • Total: 159.602 + 90.075 = 249.677 g/mol

The water counts. Using 159.602 when the bottle holds the pentahydrate is a 36% error in every mass you weigh out from it.

Writing the formula so it parses

Chemical formulas are case sensitive and this is not a formatting preference. Co is cobalt; CO is carbon monoxide. One is 58.933 g/mol, the other 28.01, and nothing in the string tells you which was meant except the capital letter.

The calculator accepts the notation you would actually write. Brackets nest, so Al2(SO4)3 and [Co(NH3)6]Cl3 both work. Hydrates take a dot, so CuSO4.5H2O is read as the anhydrous salt plus five waters. Where an element symbol is not recognised, it says so rather than quietly treating it as something else.

Reading the two composition charts

The atomic composition chart counts atoms. The mass composition chart weighs them. For water, hydrogen is 66.67% of the atoms and only 11.19% of the mass, because oxygen is nearly sixteen times heavier per atom.

That gap is the practically useful part. If you want to know how much of a fertiliser bag is nitrogen, or how much of an ore is iron, the mass chart is your answer, since that is what you weigh and what you pay for. The atomic chart tells you about the structure of the molecule instead, which is what matters when balancing an equation.

What the number is for

Molecular weight is the bridge between the two things a lab can actually do: count moles and weigh grams. A reaction equation is written in moles, but a balance reads in grams, and molar mass is what converts one into the other.

That single conversion underpins working out how much reactant to weigh for a given yield, making up a solution to a target molarity, calculating percentage composition, and turning a measured product mass back into a percentage yield. Get the molar mass wrong and every downstream number inherits the error at full size.

Abridged standard atomic weights

The values below are the IUPAC abridged standard atomic weights, and they are what the calculator uses. Abridged means rounded to a fixed number of places with the published uncertainty dropped, which is what makes them usable for ordinary work.

Some elements have no single natural composition, so their entry is the mass number of the most stable or best-known isotope rather than an average. That is why the heavy synthetic elements show round numbers, and why several have no density: not enough has ever been made to weigh.

No.SymbolNameAtomic weight (g/mol)Density (g/cm³)Phase at room temp.
1HHydrogen1.0088.988e-05gas
2HeHelium4.00260.0001785gas
3LiLithium6.940.534solid
4BeBeryllium9.01221.85solid
5BBoron10.812.34solid
6CCarbon12.0112.267solid
7NNitrogen14.0070.0012506gas
8OOxygen15.9990.001429gas
9FFluorine18.9980.001696gas
10NeNeon20.180.0009002gas
11NaSodium22.990.968solid
12MgMagnesium24.3051.738solid
13AlAluminium26.9822.7solid
14SiSilicon28.0852.329solid
15PPhosphorus30.9741.823solid
16SSulfur32.062.07solid
17ClChlorine35.450.0032gas
18ArArgon39.950.001784gas
19KPotassium39.0980.89solid
20CaCalcium40.0781.55solid
21ScScandium44.9562.985solid
22TiTitanium47.8674.506solid
23VVanadium50.9426.11solid
24CrChromium51.9967.15solid
25MnManganese54.9387.21solid
26FeIron55.8457.874solid
27CoCobalt58.9338.9solid
28NiNickel58.6938.908solid
29CuCopper63.5468.96solid
30ZnZinc65.387.14solid
31GaGallium69.7235.91solid
32GeGermanium72.635.323solid
33AsArsenic74.9225.727solid
34SeSelenium78.9714.81solid
35BrBromine79.9043.1028liquid
36KrKrypton83.7980.003749gas
37RbRubidium85.4681.532solid
38SrStrontium87.622.64solid
39YYttrium88.9064.472solid
40ZrZirconium91.2246.52solid
41NbNiobium92.9068.57solid
42MoMolybdenum95.9510.28solid
43TcTechnetium9711solid
44RuRuthenium101.0712.45solid
45RhRhodium102.9112.41solid
46PdPalladium106.4212.023solid
47AgSilver107.8710.49solid
48CdCadmium112.418.65solid
49InIndium114.827.31solid
50SnTin118.717.265solid
51SbAntimony121.766.697solid
52TeTellurium127.66.24solid
53IIodine126.94.933solid
54XeXenon131.290.005894gas
55CsCaesium132.911.93solid
56BaBarium137.333.51solid
57LaLanthanum138.916.162solid
58CeCerium140.126.77solid
59PrPraseodymium140.916.77solid
60NdNeodymium144.247.01solid
61PmPromethium1457.26solid
62SmSamarium150.367.52solid
63EuEuropium151.965.244solid
64GdGadolinium157.257.9solid
65TbTerbium158.938.23solid
66DyDysprosium162.58.54solid
67HoHolmium164.938.79solid
68ErErbium167.269.066solid
69TmThulium168.939.32solid
70YbYtterbium173.056.9solid
71LuLutetium174.979.841solid
72HfHafnium178.4913.31solid
73TaTantalum180.9516.69solid
74WTungsten183.8419.25solid
75ReRhenium186.2121.02solid
76OsOsmium190.2322.59solid
77IrIridium192.2222.56solid
78PtPlatinum195.0821.45solid
79AuGold196.9719.3solid
80HgMercury200.5913.534liquid
81TlThallium204.3811.85solid
82PbLead207.211.34solid
83BiBismuth208.989.78solid
84PoPolonium2099.196solid
85AtAstatine210NA
86RnRadon2220.00973gas
87FrFrancium223NA
88RaRadium2265.5solid
89AcActinium22710solid
90ThThorium232.0411.7solid
91PaProtactinium231.0415.37solid
92UUranium238.0319.1solid
93NpNeptunium23720.45solid
94PuPlutonium24419.85solid
95AmAmericium24312solid
96CmCurium24713.51solid
97BkBerkelium24714.78solid
98CfCalifornium25115.1solid
99EsEinsteinium2528.84solid
100FmFermium257NA
101MdMendelevium258NA
102NoNobelium259NA
103LrLawrencium266NA
104RfRutherfordium267NA
105DbDubnium268NA
106SgSeaborgium267NA
107BhBohrium270NA
108HsHassium271NA
109MtMeitnerium278NA
110DsDarmstadtium281NA
111RgRoentgenium282NA
112CnCopernicium285NA
113NhNihonium286NA
114FlFlerovium289NA
115McMoscovium290NA
116LvLivermorium293NA
117TsTennessine294NA
118OgOganesson294NA

Reading your result

Check the atom counts in the table before the total. A molecular weight that looks wrong is almost always a miscounted formula rather than a bad atomic weight, and the count column makes that visible at a glance.

Round sensibly. Three decimal places is more than any teaching lab needs, and the abridged weights themselves carry uncertainty in the last digit, so a molar mass quoted to five decimals is claiming precision the input never had.

To turn this into a solution concentration, the Molarity Calculator takes the molecular weight straight from here, and for mass and volume unit changes the Conversion Calculator handles the arithmetic.

Common questions

Frequently asked questions

Count the atoms of each element in the formula, multiply each count by that element's atomic weight, and add the results. Water has 2 hydrogen at 1.008 and 1 oxygen at 15.999, giving 2 x 1.008 + 15.999 = 18.015 g/mol.

Not strictly. Molar mass is a mass per mole with units of g/mol, while molecular weight is properly a dimensionless ratio. They were numerically identical before the 2019 SI redefinition and now differ by far less than the rounding in any practical table, so the same number serves both.

Molecular weight averages over the isotopes found in a normal sample. Molecular mass is the mass of one particular molecule, counting the nuclides it actually contains. Water's relative molecular mass is 18.015, but a single molecule can range from about 18.0106 to 22.0277 Da.

Because the capital letter starts an element symbol and any lowercase letters belong to it. Co is cobalt at 58.933 g/mol, while CO is carbon monoxide at 28.01. Typing the wrong case silently gives you a different compound.

Work out the anhydrous part, then add the water. CuSO4 is 159.602 g/mol and 5H2O adds 5 x 18.015 = 90.075, so CuSO4.5H2O is 249.677 g/mol. Forgetting the water understates the mass by about 36%.

The number after the closing bracket multiplies every atom inside it. In Al2(SO4)3 there are 3 sulfur and 12 oxygen atoms, not 1 and 4, which makes the total 342.132 g/mol.

A standard atomic weight rounded to a fixed number of decimal places with the published uncertainty dropped. IUPAC provides them because full values come with an uncertainty range reflecting natural isotope variation, which is unnecessary detail for ordinary calculation.

Because it is a weighted average across isotopes. Hydrogen-1 is 99.9855% of natural hydrogen at 1.007825 Da and deuterium is 0.0145% at 2.014102 Da, and averaging by abundance gives 1.008.