Molecular Weight formula explained simply
The formula for molecular weight fits on one line, and once you see what each part means, every calculation becomes the same small job repeated. The Molecular Weight Calculator applies this formula for you, but knowing it means you can work out a molecular weight with nothing but a periodic table and a pocket calculator — and you can spot a wrong answer the moment it appears. It also makes the calculator’s breakdown table readable: every line in that table is one term of this formula, so the page stops being a black box and becomes a check on your own working.
The formula in one line
Molecular weight = sum of (atomic weight × number of atoms) H₂O = 2 × 1.008 + 1 × 15.999 = 18.015 g/mol
That is all there is to it. The summing is just a tidy way of saying “do this for every element, then add the results”. There are no powers, no logarithms and no unit conversions hiding in it — just multiplication and addition, repeated once per element in the formula.
What an atomic weight is
An atomic weight is the average weight of one atom of an element, measured in atomic mass units. Hydrogen’s is 1.008, carbon’s 12.011, oxygen’s 15.999. The numbers are not whole because most elements are a natural mix of isotopes — atoms with the same protons but different numbers of neutrons — so the table value is a weighted average of the mix. The calculator uses the same standard values, which is why its answers match textbook tables to two decimal places.
What the subscript does
The small number after an element symbol says how many atoms of that element are in the molecule. In C₆H₁₂O₆, glucose, the 6 after C means six carbons, the 12 after H means twelve hydrogens and the 6 after O means six oxygens. No number means one: in NaCl, both sodium and chlorine appear once. The subscript is a count, not a power — H₂ means two hydrogens, not hydrogen squared.
Brackets: a group that repeats
Some formulas group atoms in brackets, and the number after the bracket multiplies everything inside it. Calcium hydroxide, Ca(OH)₂, has one calcium, and the (OH) group appears twice, so two oxygens and two hydrogens. The maths: 40.078 + 2 × (15.999 + 1.008) = 40.078 + 34.014 = 74.092, or 74.09 g/mol. Forgetting the bracket is the classic error here — counting the group once gives 57.09, which is short by a whole OH group.
The formula works backwards too
The formula also runs in reverse, which is handy when you know the weight but not the whole formula. A gas weighs 44.01 g/mol and contains one carbon, which accounts for 12.011 of it. Subtract: 44.009 − 12.011 = 31.998 left over. One oxygen weighs 15.999, so 31.998 is exactly two oxygens, and the gas is CO₂. The same trick identifies an unknown element in a compound: work out everything you know, subtract it from the total, and see what weight is left. It only works when the leftover weight matches a whole number of atoms — 15.999 is one oxygen, 31.998 is two — but when it does, the answer is certain.
Three quick examples
Water adds two light hydrogens to one oxygen: 2 × 1.008 + 15.999 = 18.015 g/mol. Carbon dioxide adds two heavier oxygens to one carbon: 12.011 + 2 × 15.999 = 44.009 g/mol. Table salt is two middling atoms, one each: 22.99 + 35.45 = 58.44 g/mol. The pattern is the same every time: multiply, then add — and the answer is always a single number in grams per mole. Run each one through the calculator and watch the same three lines appear in its breakdown table — the formula, the table and your hand working should all agree.
Frequently asked questions
Is there only one formula for molecular weight?
Yes. Every molecular weight is the sum of each element’s atomic weight times how many atoms of it there are. Brackets and subscripts change the counts, never the formula.
What does “sum of” mean in the formula?
It means add up. Work out atomic weight × count for each element, then add all the results together.
Why is hydrogen 1.008 and not 1?
Because natural hydrogen is mostly the light isotope, with a small amount of heavier deuterium mixed in. The table value is the average of that mix.
Does the formula work for ionic compounds like NaCl?
Yes. Chemists still call 58.44 g/mol the molecular weight of sodium chloride, even though it forms a crystal rather than separate molecules. The maths is identical.
More guides on the Molecular Weight Calculator
- How to calculate molecular weight
- Molecular Weight: worked example step by step
- Molecular Weight for beginners
- Common mistakes when calculating molecular weight
- Molecular Weight vs molar mass: what's the difference
- How to use a molecular weight calculator
- Molecular Weight quick reference table
- Molecular Weight in real life: everyday examples
- Molecular Weight practice questions with answers
Try the Molecular Weight Calculator — free, in your browser.