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 a moles/molecules converter.
118
Elements
( )
Parentheses
%
Composition
Nₐ
Molecules
Molecular Weight Calculator
Enter a chemical formula below
Quick Formulas
Common Compounds
Click to Calculate Instantly
Click any compound to load its formula and see the full breakdown.
Atomic Mass Reference
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.99 | 11 | Table salt, sodium hydroxide |
| Mg | Magnesium | 24.305 | 12 | Chlorophyll, Epsom salt |
| Al | Aluminum | 26.982 | 13 | Alum, aluminum oxide |
| P | Phosphorus | 30.974 | 15 | DNA, ATP, fertilizers |
| S | Sulfur | 32.06 | 16 | Sulfuric acid, amino acids |
| Cl | Chlorine | 35.453 | 17 | Table salt, bleach, PVC |
| K | Potassium | 39.098 | 19 | Potassium chloride, fertilizers |
| Ca | Calcium | 40.078 | 20 | Limestone, gypsum, bone mineral |
| Fe | Iron | 55.845 | 26 | Rust, hemoglobin, steel |
| Cu | Copper | 63.546 | 29 | Copper sulfate, wiring |
| Zn | Zinc | 65.38 | 30 | Zinc oxide, galvanizing |
| Br | Bromine | 79.904 | 35 | Hydrobromic acid, flame retardants |
| Ag | Silver | 107.868 | 47 | Silver nitrate, photography |
| I | Iodine | 126.904 | 53 | Potassium iodide, tincture |
| Ba | Barium | 137.327 | 56 | Barium sulfate, fireworks |
| Pb | Lead | 207.2 | 82 | Lead-acid batteries, old paint |
💡 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)2, not CaOH2.
📖 How to Read a Chemical Formula
- Subscripts (numbers after elements) indicate the count of that atom. H2O = 2 hydrogen + 1 oxygen. No subscript means 1.
- Parentheses group atoms multiplied by the subscript that follows. Ca(OH)2 = 1 Ca + 2 O + 2 H. Nested parentheses work outward.
- Hydrates are written with a dot: MgSO4·7H2O. The water molecules are counted in the total molecular weight.
⚛️ Moles, Mass & Molecules
Molar mass connects the macroscopic and atomic scales: 1 mole of any substance weighs its molecular weight 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 molecular weight 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.
Basic Formula
MW = Σ (atomic mass of element × number of atoms) Water (H2O): H: 2 × 1.008 = 2.016 O: 1 × 15.999 = 15.999 Total MW = 18.015 g/mol Sulfuric Acid (H2SO4): H: 2 × 1.008 = 2.016 S: 1 × 32.060 = 32.060 O: 4 × 15.999 = 63.996 Total MW = 98.072 g/mol
Handling Parentheses
Ca(OH)2 expands to: Ca + 2×O + 2×H Ca: 1 × 40.078 = 40.078 O: 2 × 15.999 = 31.998 H: 2 × 1.008 = 2.016 Total MW = 74.092 g/mol Al2(SO4)3 expands to: 2 Al + 3 S + 12 O Al: 2 × 26.982 = 53.964 S: 3 × 32.060 = 96.180 O: 12 × 15.999 = 191.988 Total MW = 342.132 g/mol
Percent Composition
% element = (atoms × atomic mass / MW) × 100 Water (H2O, MW = 18.015): % H = (2 × 1.008 / 18.015) × 100 = 11.19% % O = (15.999 / 18.015) × 100 = 88.81% Table Salt (NaCl, MW = 58.443): % Na = (22.990 / 58.443) × 100 = 39.34% % Cl = (35.453 / 58.443) × 100 = 60.66%
Moles & Molecules
Moles = Mass (g) / MW (g/mol) Mass = Moles × MW Molecules = Moles × 6.02214076 × 10^23 (Avogadro's constant, Na) Example — 50 g of NaCl (MW = 58.443): Moles = 50 / 58.443 = 0.8556 mol Molecules = 0.8556 × 6.022×10^23 = 5.153×10^23