Molar Mass Calculator

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

M(H2O) = H2 + O = 18.015 g/mol
Molar mass
18.015g/mol
Element breakdown
ElementCountAtomic weightSubtotal
H21.0082.016
O115.99915.999
Pie chart showing element weight contributions for H2O18.015g/molH 11.2%O 88.8%H2O

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)