Molar mass calculator and moles to grams converter

Calculate molar mass from a chemical formula, then convert mass to moles or moles to mass.

Enter a chemical formula. You may then provide either a mass or an amount of substance to convert automatically in the other direction.

Examples: H2O, NaCl, Ca(OH)2, Al2(SO4)3, CuSO4·5H2O. Unicode subscripts such as H₂O are accepted.

Atomic weights use the CIAAW 2024 abridged standard values for normal materials. Samples with unusual isotopic composition can have a different molar mass.

Results

Molar mass (M)
-
Mass (m)
-
Amount of substance (n)
-

Formula breakdown

ElementAtom countAbridged atomic weightContribution to M (g/mol)

Calculation details