Molecular Weight Calculator
Calculate the molecular weight of any chemical formula from atomic masses.
Related calculators
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. | Symbol | Name | Atomic weight (g/mol) | Density (g/cm³) | Phase at room temp. |
|---|---|---|---|---|---|
| 1 | H | Hydrogen | 1.008 | 8.988e-05 | gas |
| 2 | He | Helium | 4.0026 | 0.0001785 | gas |
| 3 | Li | Lithium | 6.94 | 0.534 | solid |
| 4 | Be | Beryllium | 9.0122 | 1.85 | solid |
| 5 | B | Boron | 10.81 | 2.34 | solid |
| 6 | C | Carbon | 12.011 | 2.267 | solid |
| 7 | N | Nitrogen | 14.007 | 0.0012506 | gas |
| 8 | O | Oxygen | 15.999 | 0.001429 | gas |
| 9 | F | Fluorine | 18.998 | 0.001696 | gas |
| 10 | Ne | Neon | 20.18 | 0.0009002 | gas |
| 11 | Na | Sodium | 22.99 | 0.968 | solid |
| 12 | Mg | Magnesium | 24.305 | 1.738 | solid |
| 13 | Al | Aluminium | 26.982 | 2.7 | solid |
| 14 | Si | Silicon | 28.085 | 2.329 | solid |
| 15 | P | Phosphorus | 30.974 | 1.823 | solid |
| 16 | S | Sulfur | 32.06 | 2.07 | solid |
| 17 | Cl | Chlorine | 35.45 | 0.0032 | gas |
| 18 | Ar | Argon | 39.95 | 0.001784 | gas |
| 19 | K | Potassium | 39.098 | 0.89 | solid |
| 20 | Ca | Calcium | 40.078 | 1.55 | solid |
| 21 | Sc | Scandium | 44.956 | 2.985 | solid |
| 22 | Ti | Titanium | 47.867 | 4.506 | solid |
| 23 | V | Vanadium | 50.942 | 6.11 | solid |
| 24 | Cr | Chromium | 51.996 | 7.15 | solid |
| 25 | Mn | Manganese | 54.938 | 7.21 | solid |
| 26 | Fe | Iron | 55.845 | 7.874 | solid |
| 27 | Co | Cobalt | 58.933 | 8.9 | solid |
| 28 | Ni | Nickel | 58.693 | 8.908 | solid |
| 29 | Cu | Copper | 63.546 | 8.96 | solid |
| 30 | Zn | Zinc | 65.38 | 7.14 | solid |
| 31 | Ga | Gallium | 69.723 | 5.91 | solid |
| 32 | Ge | Germanium | 72.63 | 5.323 | solid |
| 33 | As | Arsenic | 74.922 | 5.727 | solid |
| 34 | Se | Selenium | 78.971 | 4.81 | solid |
| 35 | Br | Bromine | 79.904 | 3.1028 | liquid |
| 36 | Kr | Krypton | 83.798 | 0.003749 | gas |
| 37 | Rb | Rubidium | 85.468 | 1.532 | solid |
| 38 | Sr | Strontium | 87.62 | 2.64 | solid |
| 39 | Y | Yttrium | 88.906 | 4.472 | solid |
| 40 | Zr | Zirconium | 91.224 | 6.52 | solid |
| 41 | Nb | Niobium | 92.906 | 8.57 | solid |
| 42 | Mo | Molybdenum | 95.95 | 10.28 | solid |
| 43 | Tc | Technetium | 97 | 11 | solid |
| 44 | Ru | Ruthenium | 101.07 | 12.45 | solid |
| 45 | Rh | Rhodium | 102.91 | 12.41 | solid |
| 46 | Pd | Palladium | 106.42 | 12.023 | solid |
| 47 | Ag | Silver | 107.87 | 10.49 | solid |
| 48 | Cd | Cadmium | 112.41 | 8.65 | solid |
| 49 | In | Indium | 114.82 | 7.31 | solid |
| 50 | Sn | Tin | 118.71 | 7.265 | solid |
| 51 | Sb | Antimony | 121.76 | 6.697 | solid |
| 52 | Te | Tellurium | 127.6 | 6.24 | solid |
| 53 | I | Iodine | 126.9 | 4.933 | solid |
| 54 | Xe | Xenon | 131.29 | 0.005894 | gas |
| 55 | Cs | Caesium | 132.91 | 1.93 | solid |
| 56 | Ba | Barium | 137.33 | 3.51 | solid |
| 57 | La | Lanthanum | 138.91 | 6.162 | solid |
| 58 | Ce | Cerium | 140.12 | 6.77 | solid |
| 59 | Pr | Praseodymium | 140.91 | 6.77 | solid |
| 60 | Nd | Neodymium | 144.24 | 7.01 | solid |
| 61 | Pm | Promethium | 145 | 7.26 | solid |
| 62 | Sm | Samarium | 150.36 | 7.52 | solid |
| 63 | Eu | Europium | 151.96 | 5.244 | solid |
| 64 | Gd | Gadolinium | 157.25 | 7.9 | solid |
| 65 | Tb | Terbium | 158.93 | 8.23 | solid |
| 66 | Dy | Dysprosium | 162.5 | 8.54 | solid |
| 67 | Ho | Holmium | 164.93 | 8.79 | solid |
| 68 | Er | Erbium | 167.26 | 9.066 | solid |
| 69 | Tm | Thulium | 168.93 | 9.32 | solid |
| 70 | Yb | Ytterbium | 173.05 | 6.9 | solid |
| 71 | Lu | Lutetium | 174.97 | 9.841 | solid |
| 72 | Hf | Hafnium | 178.49 | 13.31 | solid |
| 73 | Ta | Tantalum | 180.95 | 16.69 | solid |
| 74 | W | Tungsten | 183.84 | 19.25 | solid |
| 75 | Re | Rhenium | 186.21 | 21.02 | solid |
| 76 | Os | Osmium | 190.23 | 22.59 | solid |
| 77 | Ir | Iridium | 192.22 | 22.56 | solid |
| 78 | Pt | Platinum | 195.08 | 21.45 | solid |
| 79 | Au | Gold | 196.97 | 19.3 | solid |
| 80 | Hg | Mercury | 200.59 | 13.534 | liquid |
| 81 | Tl | Thallium | 204.38 | 11.85 | solid |
| 82 | Pb | Lead | 207.2 | 11.34 | solid |
| 83 | Bi | Bismuth | 208.98 | 9.78 | solid |
| 84 | Po | Polonium | 209 | 9.196 | solid |
| 85 | At | Astatine | 210 | NA | |
| 86 | Rn | Radon | 222 | 0.00973 | gas |
| 87 | Fr | Francium | 223 | NA | |
| 88 | Ra | Radium | 226 | 5.5 | solid |
| 89 | Ac | Actinium | 227 | 10 | solid |
| 90 | Th | Thorium | 232.04 | 11.7 | solid |
| 91 | Pa | Protactinium | 231.04 | 15.37 | solid |
| 92 | U | Uranium | 238.03 | 19.1 | solid |
| 93 | Np | Neptunium | 237 | 20.45 | solid |
| 94 | Pu | Plutonium | 244 | 19.85 | solid |
| 95 | Am | Americium | 243 | 12 | solid |
| 96 | Cm | Curium | 247 | 13.51 | solid |
| 97 | Bk | Berkelium | 247 | 14.78 | solid |
| 98 | Cf | Californium | 251 | 15.1 | solid |
| 99 | Es | Einsteinium | 252 | 8.84 | solid |
| 100 | Fm | Fermium | 257 | NA | |
| 101 | Md | Mendelevium | 258 | NA | |
| 102 | No | Nobelium | 259 | NA | |
| 103 | Lr | Lawrencium | 266 | NA | |
| 104 | Rf | Rutherfordium | 267 | NA | |
| 105 | Db | Dubnium | 268 | NA | |
| 106 | Sg | Seaborgium | 267 | NA | |
| 107 | Bh | Bohrium | 270 | NA | |
| 108 | Hs | Hassium | 271 | NA | |
| 109 | Mt | Meitnerium | 278 | NA | |
| 110 | Ds | Darmstadtium | 281 | NA | |
| 111 | Rg | Roentgenium | 282 | NA | |
| 112 | Cn | Copernicium | 285 | NA | |
| 113 | Nh | Nihonium | 286 | NA | |
| 114 | Fl | Flerovium | 289 | NA | |
| 115 | Mc | Moscovium | 290 | NA | |
| 116 | Lv | Livermorium | 293 | NA | |
| 117 | Ts | Tennessine | 294 | NA | |
| 118 | Og | Oganesson | 294 | NA |
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.