Molecular Weight
Calculator
Enter any chemical formula — H₂O, NaCl, C₆H₁₂O₆, CuSO₄·5H₂O — and instantly get molar mass, element breakdown, percent composition, and moles/mass/molecules converter.
Click to Calculate Instantly
Click any compound to load its formula and see the full breakdown.
Most Common Elements in Chemistry
Standard atomic weights (IUPAC 2021) used in all calculations.
| Symbol | Name | Atomic Mass (g/mol) | Atomic # | Common in |
|---|---|---|---|---|
| H | Hydrogen | 1.008 | 1 | Water, acids, organic compounds |
| C | Carbon | 12.011 | 6 | All organic molecules |
| N | Nitrogen | 14.007 | 7 | Proteins, DNA, fertilizers |
| O | Oxygen | 15.999 | 8 | Water, oxides, organic compounds |
| Na | Sodium | 22.990 | 11 | Salts, NaOH, NaCl |
| Mg | Magnesium | 24.305 | 12 | Chlorophyll, Epsom salt |
| Al | Aluminum | 26.982 | 13 | Alum, Al₂O₃ |
| P | Phosphorus | 30.974 | 15 | DNA, ATP, fertilizers |
| S | Sulfur | 32.06 | 16 | H₂SO₄, amino acids |
| Cl | Chlorine | 35.453 | 17 | HCl, NaCl, bleach |
| K | Potassium | 39.098 | 19 | KCl, KOH, KMnO₄ |
| Ca | Calcium | 40.078 | 20 | CaCO₃, Ca(OH)₂, CaCl₂ |
| Fe | Iron | 55.845 | 26 | Fe₂O₃, FeSO₄ |
| Cu | Copper | 63.546 | 29 | CuSO₄, Cu₂O |
| Zn | Zinc | 65.38 | 30 | ZnO, ZnSO₄ |
| Br | Bromine | 79.904 | 35 | HBr, organic synthesis |
| Ag | Silver | 107.868 | 47 | AgNO₃, AgCl |
| I | Iodine | 126.904 | 53 | KI, iodine solutions |
| Ba | Barium | 137.327 | 56 | BaSO₄, BaCl₂ |
| Pb | Lead | 207.2 | 82 | PbSO₄, PbO |
Case Sensitivity Matters in Chemical Formulas
Chemical element symbols are case-sensitive: Co (cobalt, 58.93 g/mol) ≠ CO (carbon monoxide, 28.01 g/mol). Ca (calcium) ≠ CA (invalid). Always capitalize the first letter and use lowercase for the second letter. Our parser follows standard chemical formula notation — use parentheses for groups like Ca(OH)₂, not Ca(oh)₂.
Subscripts (numbers after elements) indicate the count of that atom. H₂O = 2 hydrogen + 1 oxygen. No subscript means 1.
Parentheses group atoms multiplied by the subscript outside: Ca(OH)₂ = 1 Ca + 2 O + 2 H. Nested parentheses work outward.
Hydrates are written with a dot: MgSO₄·7H₂O (Epsom salt). The water molecules are counted in the total MW.
The molar mass connects the macroscopic and atomic scales: 1 mole of any substance = its MW in grams and contains 6.022 × 10²³ particles (Avogadro's number).
Example: 180.16 g of glucose = 1 mole = 6.022 × 10²³ molecules. 90.08 g = 0.5 mol = 3.011 × 10²³ molecules. This is why MW is indispensable for stoichiometric calculations in lab work.
How to Calculate Molecular Weight from a Chemical Formula
Molecular weight (molar mass) is calculated by summing the atomic masses of all atoms in the chemical formula, accounting for the number of each atom present.