Molar Mass Calculator

Part of Chemistry Calculators

Calculate the molecular weight of any chemical compound from its formula. Supports all elements and complex molecular structures.

Chemical Formula

Result

Molar Mass
--

What is Molar Mass?

Molar mass, also called molecular weight, is the mass of one mole of a substance, typically expressed in grams per mole (g/mol). One mole contains Avogadro's number (6.022 × 10²³) of particles, whether atoms, molecules, or ions. The molar mass of a compound equals the sum of the atomic masses of all atoms in its molecular formula. Once you know the molar mass, you can use our Molarity Calculator to determine solution concentrations.

Understanding molar mass is fundamental in chemistry because it bridges the microscopic world of atoms and molecules with the macroscopic world of grams and kilograms that we can measure in the laboratory. It allows chemists to convert between the number of moles and the mass of a substance, which is essential for preparing solutions, conducting stoichiometric calculations, and analyzing chemical reactions.

How to Use This Calculator

  1. Enter the chemical formula: Type the molecular formula using element symbols and numbers. Use capital letters for element symbols (H for hydrogen, Ca for calcium). Numbers after elements indicate subscripts (H2O means 2 hydrogens and 1 oxygen).
  2. Use parentheses for groups: For compounds with polyatomic groups, use parentheses followed by a subscript. For example, Ca(OH)2 means one calcium, two oxygens, and two hydrogens (the OH group appears twice).
  3. Click Calculate: The calculator instantly computes the molar mass by summing the atomic masses of all elements in the formula.
  4. View the breakdown: See the detailed composition showing each element, how many atoms are present, and their contribution to the total molar mass.

Understanding Chemical Formulas

Element Symbols: Each element has a one or two-letter symbol from the periodic table. The first letter is always capitalized, and the second (if present) is lowercase. Examples: H (hydrogen), He (helium), Ca (calcium), Cl (chlorine).

Subscripts: Numbers written after element symbols or parentheses indicate how many atoms of that element or group are present. H2O contains 2 hydrogen atoms and 1 oxygen atom (the 1 is implied when no number is shown).

Parentheses: Used to group multiple atoms together, especially for polyatomic ions. The subscript after the closing parenthesis multiplies everything inside. Ca(OH)2 expands to CaO2H2 (1 calcium, 2 oxygens, 2 hydrogens).

Complex Formulas: Some formulas combine multiple groups and elements. Al2(SO4)3 contains 2 aluminum atoms, 3 sulfur atoms, and 12 oxygen atoms (the 3 multiplies both the S and the O4 in the sulfate group).

Common Examples and Applications

Water (H2O): Molar mass = 18.015 g/mol. Composed of 2 hydrogen atoms (2 × 1.008) and 1 oxygen atom (15.999). Essential for calculating solution concentrations and hydration reactions.

Table Salt (NaCl): Molar mass = 58.44 g/mol. One sodium atom (22.990) and one chlorine atom (35.45). Used in preparing saline solutions and studying ionic compounds.

Sulfuric Acid (H2SO4): Molar mass = 98.079 g/mol. Contains 2 hydrogens, 1 sulfur, and 4 oxygens. A common laboratory reagent requiring accurate mass calculations for dilutions.

Glucose (C6H12O6): Molar mass = 180.156 g/mol. The primary sugar in cellular respiration, containing 6 carbons, 12 hydrogens, and 6 oxygens. Important in biochemistry and metabolism studies.

Calcium Hydroxide (Ca(OH)2): Molar mass = 74.093 g/mol. A base used in many applications, with 1 calcium, 2 oxygens, and 2 hydrogens. The parentheses ensure the OH group is counted twice.

Why Molar Mass Matters

Stoichiometry: Molar mass is essential for balanced chemical equation calculations. It allows you to convert between moles and grams, determining how much of each reactant is needed and how much product will form. Our Stoichiometry Calculator can help with these reaction calculations.

Solution Preparation: To prepare a solution with a specific molarity, you need to know the molar mass to calculate how many grams of solute to dissolve. For example, to make 1 L of 1 M NaCl solution, you need 58.44 grams of NaCl. Use our Dilution Calculator when preparing diluted solutions from stock.

Percent Composition: Molar mass helps calculate the mass percentage of each element in a compound. This is useful in analytical chemistry and determining empirical formulas from experimental data.

Gas Laws: In ideal gas calculations, molar mass relates the mass of a gas to the number of moles, which is necessary for using PV = nRT and other gas law equations.

Chemical Analysis: Mass spectrometry and other analytical techniques use molar mass to identify unknown compounds and verify the purity of synthesized materials.

The Periodic Table and Atomic Masses

Each element on the periodic table has a specific atomic mass, which represents the weighted average mass of all naturally occurring isotopes of that element. These atomic masses are measured in atomic mass units (amu), where 1 amu is defined as 1/12 the mass of a carbon-12 atom.

When calculating molar mass, we use these atomic masses directly because one mole of atoms has a mass in grams numerically equal to the atomic mass in amu. This convenient relationship exists because of how Avogadro's number and atomic mass units are defined. For example, carbon-12 has an atomic mass of exactly 12 amu, and one mole of carbon-12 atoms has a mass of exactly 12 grams.

Advanced Formula Parsing

This calculator handles complex chemical formulas including nested parentheses, multiple element types, and various subscript combinations. It follows standard chemical notation rules and can process formulas ranging from simple diatomic molecules like O2 to complex organic compounds and coordination complexes.

The calculator automatically validates your input, checking for proper element symbols, balanced parentheses, and correct number placement. If an error is detected, you'll receive a helpful message indicating what needs to be corrected in your formula.