Molecular Weight Calculator
Calculate the molecular (molar) weight of a chemical formula — supports parentheses and hydrates like CuSO₄·5H₂O.
How to use this calculator
- 1Type a chemical formula using standard notation — element symbols are case-sensitive (Co is cobalt, CO is carbon monoxide).
- 2Use parentheses for repeated groups, and a middle dot or period for hydrates.
How the calculation works
Molecular weight = Σ (atomic weight of each element × number of atoms of that element)- Atomic weight
- The standard IUPAC atomic weight for that element, in g/mol
- Σ
- Sum across every distinct element in the formula
Parentheses multiply everything inside them by the number that follows, exactly like algebra — Ca(OH)₂ means one calcium plus two full hydroxide groups (2 oxygen, 2 hydrogen), not two calciums.
A raised dot, period or asterisk before a trailing formula denotes a hydrate — water molecules included in a crystal's structure, added on top of the base compound's weight.
Worked example
Glucose, C₆H₁₂O₆
- 1.Carbon: 6 × 12.011 = 72.066.
- 2.Hydrogen: 12 × 1.008 = 12.096.
- 3.Oxygen: 6 × 15.999 = 95.994.
- 4.Total: 72.066 + 12.096 + 95.994 = 180.156 g/mol.
Result: 180.156 g/mol
What molecular weight represents
Molecular weight — more precisely called molar mass — is the mass of one mole of a substance, expressed in grams per mole. It is found by adding up the atomic weight of every atom in a molecule’s formula, so water, H₂O, has a molecular weight equal to two hydrogen atoms plus one oxygen atom, and glucose, C₆H₁₂O₆, sums six carbons, twelve hydrogens and six oxygens. It is this figure that converts between a mass you can weigh on a scale and a mole count you can reason about chemically, which is exactly the link this calculator’s companion molarity calculator relies on.
The individual atomic weights that go into that sum are not simple whole numbers, and that is deliberate rather than an approximation error: they reflect the natural, weighted-average mix of an element’s stable isotopes as it actually occurs in nature, not the mass of a single idealised atom.
Why atomic weights are not whole numbers
Most elements exist in nature as a mix of isotopes — atoms with the same number of protons but different numbers of neutrons, and therefore slightly different masses. Chlorine, for example, occurs mostly as two stable isotopes with different masses; its standard atomic weight of roughly 35.45 is the abundance-weighted average of those isotopes as found in typical terrestrial samples, not the mass of any single chlorine atom that actually exists.
These standard values are maintained and periodically revised by the Commission on Isotopic Abundances and Atomic Weights, part of the International Union of Pure and Applied Chemistry (IUPAC), which has held responsibility for publishing internationally recognised atomic weights since 1919. For a small number of elements whose natural isotope ratio varies measurably between sources, IUPAC publishes a range rather than a single value, and recommends a single "conventional" value for everyday use — the kind of figure this calculator’s atomic-weight table uses.
Reading and writing chemical formulas
Chemical formula notation packs a lot of information into a short string of letters and numbers. A capital letter starts a new element symbol, an optional lowercase letter continues it — so "Co" is the single element cobalt, while "CO," with a capital O, is two atoms, carbon and oxygen, forming carbon monoxide — and a number immediately after a symbol multiplies just that element. Parentheses or brackets group multiple atoms together so a following number multiplies the whole group: Ca(OH)₂ means one calcium plus two full hydroxide groups, two oxygens and two hydrogens in total, not two calciums.
A raised dot, a plain period, or an asterisk placed between two formula groups conventionally denotes a hydrate — water molecules incorporated into a compound’s crystal structure, counted separately and added on top of the base compound’s weight. Copper sulfate pentahydrate, written CuSO₄·5H₂O, is exactly what it looks like: one copper sulfate formula unit plus five water molecules, both contributing to the total molecular weight.
Where molecular weight matters in practice
Molecular weight is what makes a chemical formula usable outside of pure theory. It converts a target number of moles into a mass that can actually be weighed on a scale — the step at the centre of preparing any solution to a known molarity — and it lets a stoichiometric reaction equation, written in moles, be translated into the grams a lab technician, manufacturer or pharmacist actually measures out.
It also underlies less obvious calculations: a drug’s dose is often set relative to its molecular weight so that the same number of active molecules reaches a patient regardless of what the rest of the molecule weighs, and a material’s molecular weight is one of the first things checked when identifying an unknown compound, since it immediately rules out a large share of possible candidates.
What this assumes, and where it stops
Assumptions
- Element symbols are entered exactly as they appear on the periodic table — correct capitalisation matters (Co ≠ CO).
Limitations
- Isotope-specific masses are not supported — this uses standard atomic weights, which reflect naturally occurring isotope abundance, not a single pure isotope.
Common questions
How do I enter a hydrate like Epsom salt?
Write the base compound, a middle dot, period or asterisk, then the water — for example MgSO4.7H2O for magnesium sulfate heptahydrate. The calculator adds the water's weight on top of the anhydrous compound's weight, exactly as the hydrate notation implies.
Why does capitalization matter?
Chemical symbols are case-sensitive by international convention — "Co" is cobalt, but "CO" (capital O) is carbon monoxide, a completely different substance. Typing a formula with the wrong capitalization can silently produce the wrong element and the wrong answer.
Sources
- Standard atomic weights — IUPAC Commission on Isotopic Abundances and Atomic Weights
Formula and content last reviewed on .
Results are estimates for information only, not professional advice.
Related calculators
Tools people commonly use alongside the molecular weight calculator.