MW = Σ(A × N) · FORMULA PARSER · % COMPOSITION

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.

SymbolNameAtomic Mass (g/mol)Atomic #Common In
HHydrogen1.0081Water, acids, organic compounds
CCarbon12.0116All organic molecules
NNitrogen14.0077Proteins, DNA, fertilizers
OOxygen15.9998Water, oxides, organic compounds
NaSodium22.9911Table salt, sodium hydroxide
MgMagnesium24.30512Chlorophyll, Epsom salt
AlAluminum26.98213Alum, aluminum oxide
PPhosphorus30.97415DNA, ATP, fertilizers
SSulfur32.0616Sulfuric acid, amino acids
ClChlorine35.45317Table salt, bleach, PVC
KPotassium39.09819Potassium chloride, fertilizers
CaCalcium40.07820Limestone, gypsum, bone mineral
FeIron55.84526Rust, hemoglobin, steel
CuCopper63.54629Copper sulfate, wiring
ZnZinc65.3830Zinc oxide, galvanizing
BrBromine79.90435Hydrobromic acid, flame retardants
AgSilver107.86847Silver nitrate, photography
IIodine126.90453Potassium iodide, tincture
BaBarium137.32756Barium sulfate, fireworks
PbLead207.282Lead-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

❗ Frequently Asked Questions