Molar Mass Calculator

Calculate molar mass from a molecular formula like H2O, NaCl, or C6H12O6

About this calculator

Calculate the molar mass of any chemical compound by entering its molecular formula. Supports simple formulas (H2O, NaCl), subscripts (C6H12O6), and parentheses (Ca(OH)2, Al2(SO4)3). See a visual breakdown of each element's weight contribution.

Common examples

  • H2O = 18.015 g/mol (water)
  • NaCl = 58.443 g/mol (table salt)
  • C6H12O6 = 180.156 g/mol (glucose)
  • Ca(OH)2 = 74.093 g/mol (slaked lime)
  • Al2(SO4)3 = 342.132 g/mol (aluminum sulfate)