About this tool
Molar Mass Calculator adds up the standard atomic weights in a chemical formula and reports the molar mass in grams per mole. Type a formula such as H2O, Ca(OH)2 or C6H12O6. Two tiles show the molar mass (rounded to three decimals) and the total number of atoms, and a breakdown lists each element's count, its atomic weight, its contribution in g/mol and its percentage of the total mass.
The parser handles nested groups in round, square or curly brackets with their own multipliers, such as Al2(SO4)3 or K4[Fe(CN)6]. Hydrates and adducts can be written with a middle dot, bullet or asterisk, for example CuSO4·5H2O, where the number in front of a part multiplies it. Element symbols are case-sensitive: Co is cobalt, while CO is carbon and oxygen. All 118 elements are included, using conventional IUPAC atomic weights with a few decimals, which suits coursework and lab prep. For very high precision, use isotope-specific data.
If a symbol is unknown the error names it, and unbalanced brackets or stray characters show a generic parse error. Charges, isotopes such as 13C, and fractional subscripts are not supported. Everything runs in your browser and nothing is uploaded.