How molar mass calculator works
A molar mass is the mass of one mole of a substance — the atomic masses of every atom in a formula unit, added up in grams per mole (g/mol). Water is H2O: two hydrogens at 1.008 g/mol plus one oxygen at 15.999 g/mol gives 18.015 g/mol. The number is the bridge between the microscopic recipe of a compound and the macroscopic grams you weigh on a balance.
Type a formula and the tool parses it the way a chemist reads it: element symbols with counts (H2O, CO2), parentheses with group multipliers (Ca(OH)2, Fe2(SO4)3, nested groups like K4[Fe(CN)6]), leading multipliers, and hydrate dots — CuSO4·5H2O reads as copper sulfate plus five waters. Case matters, exactly as in chemistry: Co is cobalt (58.933 g/mol) while CO is carbon monoxide (28.01 g/mol).
The result shows the total molar mass to six significant figures, the total atom count per formula unit, and a breakdown table: each element, how many atoms it contributes, the mass it adds, and its mass percentage of the whole. In water, hydrogen is 2.016 g of 18.015 — about 11.2% by mass — and oxygen is 88.8%, the kind of number gravimetric analysis and stoichiometry problems are built on.