Molar Mass Calculator

Calculate the molar mass of a chemical compound online with this free Molar Mass Calculator. Enter a chemical formula to find its molecular or formula mass, view each element’s contribution, and check the total in grams per mole (g/mol).

Enter a chemical formula using correct element capitalization and subscripts. For example, H2O, NaCl, Ca(OH)2, or Al2(SO4)3.
Enter a chemical formula or select an example to get started.
Molar Mass Formula

Molar mass = Sum of (number of atoms of each element × atomic mass of that element)

For water (H2O): (2 × 1.008) + (1 × 15.999) = 18.015 g/mol

Results use standard atomic weights and are rounded for display. Hydrate dot notation, ionic charges, and isotope-specific formulas are not supported.

How to Calculate Molar Mass of a Chemical Compound

Molar mass is one of the basic concepts in chemistry. It helps you determine how much a substance weighs for a given amount of material and is useful for laboratory calculations, chemical reactions, and chemistry assignments.

The NexCalco Molar Mass Calculator makes this process easier. Enter a chemical formula to calculate its molar mass, see the contribution of each element, and check the percentage of the total mass contributed by each element.

What Is Molar Mass?

Molar mass is the mass of one mole of a substance. A mole represents approximately (6.022 \times 10^{23}) specified particles, such as atoms, molecules, or formula units.

Molar mass is usually expressed in grams per mole (g/mol). For example, the molar mass of water is approximately 18.015 g/mol. This means one mole of water has a mass of about 18.015 grams.

For molecular substances, molar mass is calculated by adding the atomic masses of all the atoms in a molecule. For ionic compounds, the calculation uses the formula unit rather than an individual molecule.

How to Use the Molar Mass Calculator

Follow these simple steps:

  1. Enter a chemical formula in the input field, such as H2O, NaCl, or Ca(OH)2.
  2. Use the correct capitalization for each element symbol. For example, Co represents cobalt, while CO represents carbon monoxide.
  3. Click Calculate Molar Mass or select one of the example formulas.
  4. Read the total molar mass in g/mol.
  5. Review the element-by-element table to see atom counts, atomic masses, mass contributions, and mass percentages.

The calculator supports common chemical formulas, including formulas with parentheses and nested groups. It does not currently support isotope-specific notation, ionic charges, or hydrate dot notation.

Molar Mass Formula

The general formula is:

Molar mass = Sum of (number of atoms × atomic mass)

To calculate a compound’s molar mass, identify each element, count how many atoms of that element appear in the formula, multiply that count by its atomic mass, and add the results.

Example 1: Molar Mass of Water (H2O)

Water contains two hydrogen atoms and one oxygen atom.

  • Hydrogen: 2 × 1.008 = 2.016 g/mol
  • Oxygen: 1 × 15.999 = 15.999 g/mol

Total molar mass:

2.016 + 15.999 = 18.015 g/mol

Therefore, the molar mass of water is approximately 18.015 g/mol.

Example 2: Molar Mass of Sodium Chloride (NaCl)

Sodium chloride contains one sodium atom and one chlorine atom.

  • Sodium: 1 × 22.989769 = 22.989769 g/mol
  • Chlorine: 1 × 35.45 = 35.45 g/mol

Total molar mass:

22.989769 + 35.45 = 58.439769 g/mol

The molar mass of NaCl is approximately 58.44 g/mol.

Example 3: Molar Mass of Calcium Hydroxide [Ca(OH)2]

The parentheses mean that the hydroxide group, OH, occurs twice.

  • Calcium: 1 × 40.078 = 40.078 g/mol
  • Oxygen: 2 × 15.999 = 31.998 g/mol
  • Hydrogen: 2 × 1.008 = 2.016 g/mol

Total molar mass:

40.078 + 31.998 + 2.016 = 74.092 g/mol

The molar mass of calcium hydroxide is approximately 74.092 g/mol.

Molar Mass vs. Molecular Mass

Molar mass and molecular mass are closely related, but their units are different.

Molar mass is expressed in grams per mole (g/mol), while molecular mass is commonly expressed in unified atomic mass units (u or Da) for an individual molecule. Their numerical values are approximately the same when calculated using the same atomic masses.

For ionic compounds such as sodium chloride, the term formula mass is more appropriate because the substance is represented by formula units rather than separate molecules.

Why Is Molar Mass Important?

Molar mass is used in many chemistry calculations, including:

  • Converting grams of a substance into moles.
  • Converting moles into grams.
  • Calculating quantities of reactants and products in chemical reactions.
  • Preparing solutions with a specified concentration.
  • Determining the elemental composition of compounds.
  • Solving chemistry homework and laboratory problems.

For example, if you have 36.03 grams of water, dividing by its molar mass of approximately 18.015 g/mol gives about 2 moles of water.

Frequently Asked Questions

How do I calculate molar mass quickly?

Count the atoms of each element in the chemical formula, multiply each count by the corresponding atomic mass, and add the contributions. The NexCalco Molar Mass Calculator performs these steps automatically.

What is the molar mass of H2O?

Water has a molar mass of approximately 18.015 g/mol, calculated from two hydrogen atoms and one oxygen atom.

What is the molar mass of NaCl?

Sodium chloride has a molar mass of approximately 58.44 g/mol.

What happens when a chemical formula contains parentheses?

Multiply every atom inside a group by the subscript outside the closing parenthesis. For example, Ca(OH)2 contains one calcium atom, two oxygen atoms, and two hydrogen atoms.

Does molar mass depend on the amount of a substance?

No. Molar mass is a characteristic value for a specified chemical composition. The total mass changes with the amount of substance, but its molar mass remains the same for a given isotopic composition.

Are the calculator’s results exact?

The calculator uses stored atomic-weight values and displays rounded results. Actual atomic weights may vary slightly depending on isotopic composition, and some elements have atomic weights that are conventionally represented by approximate values.

Final Thoughts

Understanding molar mass makes many chemistry problems easier to solve. Whether you are studying chemical formulas, preparing for an exam, or working through a laboratory calculation, the NexCalco Molar Mass Calculator helps you calculate the total mass and understand how each element contributes to it.

Educational note: This tool is intended for learning and routine calculations. For precision laboratory work, use atomic weights and measurement standards appropriate to the substance and application.

Scroll to Top