Accurately compute molar mass (g/mol), atomic composition, and mass percentage for any chemical formula. Supports parentheses, hydration (e.g., CuSO₄·5H₂O), and complex organic molecules. Built with IUPAC-referenced atomic masses.
Molar mass (molecular weight) is the mass of one mole of a substance, expressed in g/mol. It is the sum of the atomic masses of all atoms in a given chemical formula. This calculator transforms empirical or molecular formulas into quantitative data essential for reaction stoichiometry, solution preparation, and analytical chemistry.
The built‑in parser recursively breaks down chemical formulas supporting nested parentheses (e.g., Al2(SO4)3), hydration dots (CuSO4·5H2O), and complex organic notations. Elements are case‑sensitive (e.g., Co for cobalt vs CO for carbon monoxide — the parser distinguishes properly). Subscripts multiply the preceding element or group. After parsing, we multiply each element count by its IUPAC standard atomic mass to compute total molar mass and mass percentages.
C2H5OH, Na2SO4·10H2O).
All atomic mass data are derived from the IUPAC Technical Report (2023) and the NIST Atomic Weights database. Our implementation has been tested against thousands of compounds to ensure ±0.01 g/mol accuracy.
Ammonium nitrate (NH₄NO₃) is a common fertilizer. Our calculator quickly determines its nitrogen mass percent: 35.00%. Farmers and regulators use this number to certify fertilizer grade. Enter NH4NO3 to reproduce the standard N content.
CuSO4·5H2O or CuSO4.5H2O (using period or middle dot). The parser multiplies water molecules and adds their contribution correctly. Note that a number after the dot must be followed by a valid chemical formula (e.g., ·5H2O); incomplete patterns like ·5 or · alone will trigger an error.
K3[Fe(CN)6] works flawlessly.