Online Molar Mass Calculator

Online Molar Mass Calculator

Calculate the molar mass of chemical compounds online by entering formulas such as H2O, CO2, or NaCl, with fast results for chemistry study.

How to calculate molar mass: formula and examples

How do you calculate molar mass?

Identify the elements in a chemical formula, multiply each element's atomic molar mass by its number of atoms, then add the results. Molar mass is expressed in grams per mole (g/mol).

M = Σ(aᵢ × Mᵢ)

M is the substance's molar mass in g/mol; aᵢ is the number of atoms of an element in the formula; and Mᵢ is its atomic molar mass in g/mol. You can also use M = m/n, where m is mass in grams and n is amount of substance in moles.

What is the molar mass of water (H₂O)?

Water has a molar mass of about 18.015 g/mol, or 18.02 g/mol rounded to two decimal places. H₂O represents two hydrogen atoms and one oxygen atom.

2 × 1.008 + 15.999 = 18.015 g/mol

What is molar mass?

Molar mass is the mass corresponding to one mole of a substance. Its usual unit is grams per mole (g/mol). It relates sample mass and amount of substance in chemical and stoichiometric calculations.

What are the molar masses of CO₂ and NaCl?

  • CO₂: 12.011 + 2 × 15.999 = 44.009 g/mol
  • NaCl: 22.990 + 35.45 = 58.44 g/mol

Frequently asked questions

Are molar mass and molecular mass the same?
No. Molar mass is expressed in g/mol; molecular mass is the mass of one molecule, in u. For molecular substances, their numerical values are approximately equal.
How do I calculate formulas with parentheses?
Multiply atoms inside parentheses by the outside subscript. Ca(OH)₂ has one calcium, two oxygen, and two hydrogen atoms.
Can I use rounded atomic masses?
Yes, especially in school exercises using approximate values. For greater precision, use periodic-table values and round at the end.