Molecular Weight Calculator

Calculate Molar Mass

Case-sensitive: use standard chemical notation (e.g. NaCl, not nAcl or NACL). Parentheses are supported (e.g., Ca(OH)2).

Result

Molar Mass (Molecular Weight)

Element Breakdown

Element Count Mass Contribution % of Total Mass
Enter a formula to see breakdown

How the Molecular Weight Calculator Works

This calculator determines the molar mass (molecular weight) of a compound by parsing its chemical formula and summing the standard atomic weights of its constituent elements.

  • Input: Enter a valid chemical formula. Remember that element symbols are case-sensitive (e.g., Co is Cobalt, but CO is Carbon Monoxide).
  • Parsing: The calculator correctly handles subscripts (like the 2 in H2O) and parentheses with multipliers (like Ca(OH)2).
  • Output: It provides the total molar mass in g/mol, along with a detailed breakdown of each element's percentage composition by mass.