Molecular weight vs molar mass vs molecular mass
MW means molecular weight: the sum of the atomic weights of all atoms in a molecule. Molecular mass and molar mass give the same number with different units.
A mass of 18.015 u for one water molecule equals 18.015 g for one mole of water molecules.
| Term | Unit | What it describes | Water |
|---|---|---|---|
| Molecular weight (MW) | g/mol or Da | Sum of atomic weights in one molecule | 18.015 |
| Molecular mass | u or Da | Mass of one molecule | 18.015 u |
| Molar mass (M) | g/mol | Mass of one mole of the substance | 18.015 g/mol |
| Formula mass | u | Same sum for ionic compounds such as NaCl | 58.44 u for NaCl |
Calculate molecular weight by hand
Molecular weight = Σ (number of atoms × atomic weight)
- Write the chemical formula, for example C6H12O6.
- Count the atoms of each element. Multiply out brackets and hydrate water.
- Multiply each atom count by the atomic weight of the element in g/mol.
- Add the results. The sum is the molecular weight in g/mol.
Molecular weight examples
| Compound | Formula | Calculation | Molecular weight (g/mol) |
|---|---|---|---|
| Water | H2O | 2 × 1.008 + 15.999 | 18.015 |
| Carbon dioxide | CO2 | 12.011 + 2 × 15.999 | 44.009 |
| Glucose | C6H12O6 | 6 × 12.011 + 12 × 1.008 + 6 × 15.999 | 180.156 |
| Sodium chloride | NaCl | 22.990 + 35.45 | 58.44 |
| Sulfuric acid | H2SO4 | 2 × 1.008 + 32.06 + 4 × 15.999 | 98.072 |
| Calcium hydroxide | Ca(OH)2 | 40.078 + 2 × (15.999 + 1.008) | 74.092 |
Molecular weight of hydrates and complex salts
Treat each part after a dot as a separate unit with its own coefficient. Treat each bracket as a group, then add everything.
Example 1
Copper(II) sulfate pentahydrate, CuSO4·5H2O
- CuSO4 = 63.546 + 32.06 + 4 × 15.999 = 159.602 g/mol.
- 5 H2O = 5 × 18.015 = 90.075 g/mol.
- 159.602 + 90.075 = 249.677 g/mol.
Answer: 249.677 g/mol
Example 2
Potassium alum, K2SO4·Al2(SO4)3·24H2O
- K2SO4 = 2 × 39.098 + 32.06 + 4 × 15.999 = 174.252 g/mol.
- Al2(SO4)3 = 2 × 26.982 + 3 × (32.06 + 4 × 15.999) = 342.132 g/mol.
- 24 H2O = 24 × 18.015 = 432.360 g/mol.
- 174.252 + 342.132 + 432.360 = 948.744 g/mol.
Answer: 948.744 g/mol
Example 3
Hexaamminecobalt(III) chloride, [Co(NH3)6]Cl3
- Co = 58.933 g/mol.
- 6 NH3 = 6 × (14.007 + 3 × 1.008) = 102.186 g/mol.
- 3 Cl = 3 × 35.45 = 106.350 g/mol.
- 58.933 + 102.186 + 106.350 = 267.469 g/mol.
Answer: 267.469 g/mol
Grams, moles, and molecules
moles = mass (g) ÷ molecular weight (g/mol)
mass (g) = moles × molecular weight (g/mol)
molecules = moles × 6.02214076 × 10^23 (the Avogadro constant)
Example: 36.0 g of water is 36.0 ÷ 18.015 = 2.00 mol, or 1.20 × 10^24 molecules. Use the converter below each result for these steps.
Molecular weight of DNA, RNA, and proteins
Biomolecules are long chains with thousands of atoms. Enter their sequence instead of a formula in a sequence calculator.
Atomic weight data
Average atomic weights come from the PubChem periodic table (snapshot 2026-08-28). Exact isotope masses come from NIST Atomic Weights and Isotopic Compositions, version 2.4.1.
IUPAC gives the atomic weight of some elements as a range, because their isotope ratios vary in nature. The table shows the single value this calculator uses for each.
| Element | IUPAC range | Value used here |
|---|---|---|
| H | 1.00784 to 1.00811 | 1.008 |
| Li | 6.938 to 6.997 | 6.94 |
| B | 10.806 to 10.821 | 10.81 |
| C | 12.0096 to 12.0116 | 12.011 |
| N | 14.00643 to 14.00728 | 14.007 |
| O | 15.99903 to 15.99977 | 15.999 |
| Mg | 24.304 to 24.307 | 24.305 |
| Si | 28.084 to 28.086 | 28.085 |
| S | 32.059 to 32.076 | 32.06 |
| Cl | 35.446 to 35.457 | 35.45 |
| Ar | 39.792 to 39.963 | 39.9 |
| Br | 79.901 to 79.907 | 79.904 |
| Tl | 204.382 to 204.385 | 204.383 |
| Pb | 206.14 to 207.94 | 207 |
Embed this calculator
Teachers and course sites can embed the calculator for free. Copy this code into any web page.
Add ?formula=CuSO4.5H2O to the address to open the calculator with a formula.
<iframe src="https://chemcalculator.com/molecular-weight-calculator?embed=1" title="Molecular Weight Calculator" width="100%" height="640" loading="lazy" style="border:0"></iframe>How to calculate molecular weight
- Enter the chemical formula.
- Use the correct uppercase and lowercase letters for each element symbol.
- If the formula has a group, use parentheses or brackets.
- If the formula has water of hydration, put a dot before the water.
- If the formula has an isotope label or an ionic charge, include it.
- Select Calculate.
Molecular weight formula
M = Σ(nᵢ × Aᵢ)
| Symbol | Meaning | Unit |
|---|---|---|
| nᵢ | number of atoms for element i | atoms |
| Aᵢ | atomic mass for element i | u |
| M | molecular weight | u |
Worked example
For water, the formula is H2O. The H2O formula has two hydrogen atoms and one oxygen atom. The calculation is (2 x 1.0080) + (1 x 15.999). The molar mass is 18.015 g/mol.
Chemical formula formats
Enter the chemical formula. The calculator reads groups, hydrates, isotope labels, and ionic charges.
| Format | Enter | Example compound |
|---|---|---|
| Simple formula | C6H12O6 | Glucose |
| Parentheses | Ca(OH)2 | Calcium hydroxide |
| Nested groups | K4[Fe(CN)6] | Potassium ferrocyanide |
| Hydrate | CuSO4.5H2O | Copper sulfate pentahydrate |
| Charged ion | [Fe(CN)6]3- | Ferricyanide |
Molecular weight and molar mass
For one chemical formula, molecular weight and molar mass have the same numerical value. Molecular weight uses the unit u or Da. Molar mass uses the unit g/mol. Monoisotopic mass uses one specified isotope of each element. The monoisotopic mass can be different from the average molecular weight.
Common mistakes
- Do not enter a compound name in the Chemical formula field.
- Use the correct uppercase and lowercase letters. CO is carbon monoxide. Co is cobalt.
- Use a dot before the water in a hydrate.
Frequently asked questions
Do molecular weight and molar mass have the same value?
Yes. The numbers are equal for the same chemical formula. Molecular weight uses u or Da. Molar mass uses g/mol.
Can the calculator read hydrates and isotope labels?
Yes. Use a dot before the water in a hydrate. Put the isotope number before the element symbol.
Does capitalization matter in a chemical formula?
Yes. Element symbols are case-sensitive. CO is carbon monoxide. Co is cobalt.
Can I use parentheses and brackets?
Yes. Use parentheses or brackets for a group. Examples are Ca(OH)2 and [Fe(CN)6]3-.
What is monoisotopic mass?
Monoisotopic mass uses the exact mass of one isotope for each element. The calculator uses the most abundant isotope unless the formula specifies an isotope.
Which atomic masses does the calculator use?
The calculator uses average atomic masses for all 118 elements. The PubChem data set gives these masses. NIST data gives exact isotope masses.
What is MW in chemistry?
MW means molecular weight. It is the sum of the atomic weights of all atoms in a molecule, given in g/mol or Da.
How do you calculate the molecular weight of a hydrate?
Add the mass of the salt and the mass of the water. For CuSO4·5H2O, 159.602 + 5 × 18.015 = 249.677 g/mol.
Can I type a lowercase formula such as co2?
Yes. The calculator suggests a corrected formula, such as CO2 or Co2. It does not change your input without asking.
Can I enter a compound name or CAS number?
Yes. Enter a common name such as water or a CAS number such as 7732-18-5. The calculator shows the formula it used.
How do I get the m/z of an ion?
Write the charge with a caret, such as SO4^2-. Open the advanced details for the ion m/z, adduct ions, and the isotope pattern.
Atomic mass data
The table contains data for all 118 elements. The calculator uses average atomic masses for natural elements. It uses listed isotope masses for radioactive elements.
Complete table for 118 elements
| Atomic number | Element | Symbol | Atomic mass (u) |
|---|---|---|---|
| 1 | Hydrogen | H | 1.0080 |
| 2 | Helium | He | 4.00260 |
| 3 | Lithium | Li | 6.94 |
| 4 | Beryllium | Be | 9.012183 |
| 5 | Boron | B | 10.81 |
| 6 | Carbon | C | 12.011 |
| 7 | Nitrogen | N | 14.007 |
| 8 | Oxygen | O | 15.999 |
| 9 | Fluorine | F | 18.998 |
| 10 | Neon | Ne | 20.180 |
| 11 | Sodium | Na | 22.990 |
| 12 | Magnesium | Mg | 24.305 |
| 13 | Aluminum | Al | 26.982 |
| 14 | Silicon | Si | 28.085 |
| 15 | Phosphorus | P | 30.974 |
| 16 | Sulfur | S | 32.06 |
| 17 | Chlorine | Cl | 35.45 |
| 18 | Argon | Ar | 39.9 |
| 19 | Potassium | K | 39.098 |
| 20 | Calcium | Ca | 40.078 |
| 21 | Scandium | Sc | 44.95591 |
| 22 | Titanium | Ti | 47.867 |
| 23 | Vanadium | V | 50.9415 |
| 24 | Chromium | Cr | 51.996 |
| 25 | Manganese | Mn | 54.93804 |
| 26 | Iron | Fe | 55.845 |
| 27 | Cobalt | Co | 58.93319 |
| 28 | Nickel | Ni | 58.693 |
| 29 | Copper | Cu | 63.546 |
| 30 | Zinc | Zn | 65.38 |
| 31 | Gallium | Ga | 69.723 |
| 32 | Germanium | Ge | 72.63 |
| 33 | Arsenic | As | 74.92159 |
| 34 | Selenium | Se | 78.97 |
| 35 | Bromine | Br | 79.904 |
| 36 | Krypton | Kr | 83.80 |
| 37 | Rubidium | Rb | 85.468 |
| 38 | Strontium | Sr | 87.62 |
| 39 | Yttrium | Y | 88.90584 |
| 40 | Zirconium | Zr | 91.22 |
| 41 | Niobium | Nb | 92.90637 |
| 42 | Molybdenum | Mo | 95.95 |
| 43 | Technetium | Tc | 96.90636 |
| 44 | Ruthenium | Ru | 101.1 |
| 45 | Rhodium | Rh | 102.9055 |
| 46 | Palladium | Pd | 106.42 |
| 47 | Silver | Ag | 107.868 |
| 48 | Cadmium | Cd | 112.41 |
| 49 | Indium | In | 114.818 |
| 50 | Tin | Sn | 118.71 |
| 51 | Antimony | Sb | 121.760 |
| 52 | Tellurium | Te | 127.6 |
| 53 | Iodine | I | 126.90 |
| 54 | Xenon | Xe | 131.29 |
| 55 | Cesium | Cs | 132.9054520 |
| 56 | Barium | Ba | 137.33 |
| 57 | Lanthanum | La | 138.9055 |
| 58 | Cerium | Ce | 140.116 |
| 59 | Praseodymium | Pr | 140.90766 |
| 60 | Neodymium | Nd | 144.24 |
| 61 | Promethium | Pm | 144.91276 |
| 62 | Samarium | Sm | 150.4 |
| 63 | Europium | Eu | 151.964 |
| 64 | Gadolinium | Gd | 157.25 |
| 65 | Terbium | Tb | 158.92535 |
| 66 | Dysprosium | Dy | 162.500 |
| 67 | Holmium | Ho | 164.93033 |
| 68 | Erbium | Er | 167.26 |
| 69 | Thulium | Tm | 168.93422 |
| 70 | Ytterbium | Yb | 173.05 |
| 71 | Lutetium | Lu | 174.9667 |
| 72 | Hafnium | Hf | 178.49 |
| 73 | Tantalum | Ta | 180.9479 |
| 74 | Tungsten | W | 183.84 |
| 75 | Rhenium | Re | 186.207 |
| 76 | Osmium | Os | 190.2 |
| 77 | Iridium | Ir | 192.22 |
| 78 | Platinum | Pt | 195.08 |
| 79 | Gold | Au | 196.96657 |
| 80 | Mercury | Hg | 200.59 |
| 81 | Thallium | Tl | 204.383 |
| 82 | Lead | Pb | 207 |
| 83 | Bismuth | Bi | 208.98040 |
| 84 | Polonium | Po | 208.98243 |
| 85 | Astatine | At | 209.98715 |
| 86 | Radon | Rn | 222.01758 |
| 87 | Francium | Fr | 223.01973 |
| 88 | Radium | Ra | 226.02541 |
| 89 | Actinium | Ac | 227.02775 |
| 90 | Thorium | Th | 232.038 |
| 91 | Protactinium | Pa | 231.03588 |
| 92 | Uranium | U | 238.0289 |
| 93 | Neptunium | Np | 237.048172 |
| 94 | Plutonium | Pu | 244.06420 |
| 95 | Americium | Am | 243.061380 |
| 96 | Curium | Cm | 247.07035 |
| 97 | Berkelium | Bk | 247.07031 |
| 98 | Californium | Cf | 251.07959 |
| 99 | Einsteinium | Es | 252.0830 |
| 100 | Fermium | Fm | 257.09511 |
| 101 | Mendelevium | Md | 258.09843 |
| 102 | Nobelium | No | 259.10100 |
| 103 | Lawrencium | Lr | 266.120 |
| 104 | Rutherfordium | Rf | 267.122 |
| 105 | Dubnium | Db | 268.126 |
| 106 | Seaborgium | Sg | 269.128 |
| 107 | Bohrium | Bh | 270.133 |
| 108 | Hassium | Hs | 269.1336 |
| 109 | Meitnerium | Mt | 277.154 |
| 110 | Darmstadtium | Ds | 282.166 |
| 111 | Roentgenium | Rg | 282.169 |
| 112 | Copernicium | Cn | 286.179 |
| 113 | Nihonium | Nh | 286.182 |
| 114 | Flerovium | Fl | 290.192 |
| 115 | Moscovium | Mc | 290.196 |
| 116 | Livermorium | Lv | 293.205 |
| 117 | Tennessine | Ts | 294.211 |
| 118 | Oganesson | Og | 295.216 |