About molar mass
Molar mass is the mass of one mole of a substance, expressed in grams
per mole (g/mol). For a chemical compound, it equals the
sum of the standard atomic weights of every atom in the formula, each
multiplied by how many times that atom appears. The molar mass of water
(H₂O), for example, is 2 × 1.008 + 1 × 15.999 = 18.015 g/mol.
The atomic weights this calculator uses come from the NIST Atomic Weights and Isotopic Compositions database — the same source IUPAC publishes and that every chemistry textbook ultimately traces back to. For most elements, the value used is the standard atomic weight averaged over naturally-occurring isotopes; for synthetic elements without a stable natural-isotope distribution, the mass of the longest-lived isotope is used instead.
Working with this calculator
The input accepts three kinds of entries:
-
Chemical formulas — type the formula directly:
H2O,H2SO4,C6H12O6,Al2(SO4)3. Parentheses are nested correctly, soCa(OH)2resolves to Ca₁H₂O₂ rather than the common mis-parse Ca₁O₁H₂. -
Hydrate notation — use a middle dot or period to
separate the water of crystallization:
CuSO4·5H2O,MgSO4·7H2O,AlK(SO4)2·12H2O. The coefficient before the water (5, 7, 12) is honored, and the result shows the anhydrous mass separately so you can weigh-out hydrated vs. anhydrous reagents without re-deriving. -
Compound names — type the everyday name and the
calculator looks it up:
baking soda,epsom salt,aspirin,magnesium chloride hexahydrate. The built-in dictionary covers about 130 of the compounds students encounter in K-12 and intro-college chemistry, including common household names, lab reagents, and IUPAC-style "copper(II) sulfate pentahydrate" constructions.
The breakdown panel shows each element's contribution to the total mass and its percentage of the compound by weight — useful for elemental analysis, gravimetric calculations, and double-checking that your formula matches the compound you intended.
Avoiding common errors
Case matters. Chemical symbols are case-sensitive:
Co is cobalt, but CO is carbon monoxide, and
cO isn't anything. The calculator follows the standard
convention (every element symbol starts with an uppercase letter,
optionally followed by a single lowercase letter), so typos like
NACL won't resolve.
Water of crystallization isn't optional. If you have
a hydrated salt and you ignore the ·NH₂O portion, the
molar mass you compute will be wrong — sometimes by 30% or more. Always
use the formula that matches your actual reagent bottle.
The calculator is not a primary reference. For graduate research, regulatory documents, or any work where a fourth decimal place matters, look up the standard atomic weight at NIST directly. The values used here are accurate to within published IUPAC uncertainty, but precision-critical work should cite the primary source.