Molecular Weight Calculator
Enter a chemical formula (e.g. H2O, NaCl, H2SO4) to calculate molecular weight (g/mol).
How to Use
- Element symbols start with a capital letter. e.g. H, He, Na, Cl
- Subscript numbers follow immediately after the symbol. e.g. H2O, CO2
- Supported elements include H, C, N, O, Na, Cl, S, Fe, Ca, Cu, Zn and ~30 more
H₂O → H×2 + O×1 = 2×1.008 + 15.999 = 18.015 g/mol
NaCl → Na×1 + Cl×1 = 22.990 + 35.453 = 58.443 g/mol
H₂SO₄ → H×2 + S×1 + O×4 = 98.079 g/mol
Worked examples
H2O is 2 × 1.008 + 16.00 = 18.016 g/mol.
C6H12O6 is 6 × 12.011 + 12 × 1.008 + 6 × 15.999 = 180.156 g/mol, the molar mass of glucose.
What the value assumes
The result is the average molar mass from standard atomic weights, so it reflects the natural isotope mix rather than one specific molecule. Hydrates and salts need the water or counter-ions written into the formula, as in CuSO4·5H2O. Materials with variable composition, such as polymers, have no single value.
Frequently asked questions
- What is the difference between molecular weight and molar mass?
- For practical work they are numerically the same: molecular weight is the mass of one molecule in daltons, molar mass the mass of one mole in grams, and both equal the sum of atomic weights.
- Why do the decimal places matter?
- Chlorine is 35.45 rather than 35 because of its isotope mix. Rounding to whole numbers drifts the total by about 0.4% for NaCl and much more for heavy elements.
- How do I enter a hydrate?
- Write the water after a dot: CuSO4·5H2O adds five H2O units, giving 159.61 + 5 × 18.02 = 249.69 g/mol.