Molar mass is the sum of atomic masses of all atoms in a formula unit. It has units of g/mol and serves as a conversion factor between moles and grams. Using molar mass, chemists can convert between number of atoms/molecules, moles, and mass—fundamental conversions in all stoichiometric calculations.
You already know two foundational ideas: the mole is a counting number (6.022 × 10²³ particles), and each element has a characteristic atomic mass measured in atomic mass units (amu) that accounts for the natural abundance of its isotopes. Molar mass connects these concepts to the laboratory bench by establishing that the atomic mass of an element, expressed in grams, is the mass of exactly one mole of that element's atoms. Carbon has an atomic mass of 12.01 amu, so one mole of carbon atoms has a mass of 12.01 grams. This numerical equivalence between amu per atom and grams per mole is not a coincidence — it is built into how the mole is defined.
For compounds, you calculate the molar mass by summing the atomic masses of every atom in the chemical formula. Water (H₂O) has a molar mass of 2(1.008) + 16.00 = 18.02 g/mol. Glucose (C₆H₁₂O₆) has a molar mass of 6(12.01) + 12(1.008) + 6(16.00) = 180.16 g/mol. The molar mass is your conversion factor between the macroscopic world (grams you can weigh on a balance) and the molecular world (moles and numbers of particles that appear in balanced equations and stoichiometric ratios).
The three quantities — mass, moles, and number of particles — form a conversion triangle that you will use constantly. To go from grams to moles, divide by molar mass: n = m / M. To go from moles to number of particles, multiply by Avogadro's number: N = n × 6.022 × 10²³. To go the other direction, reverse the operations. For example, if you have 9.01 g of water, that is 9.01 / 18.02 = 0.500 mol, which contains 0.500 × 6.022 × 10²³ = 3.01 × 10²³ molecules of water. Every stoichiometry problem you will encounter begins with this kind of conversion, because balanced equations give you mole ratios, not gram ratios.
A practical tip: always check your units using dimensional analysis to make sure your conversion factors are oriented correctly. If you are converting grams to moles, you need g × (mol/g) = mol — the grams must cancel. If you accidentally flip the conversion factor, you will get g × (g/mol) = g²/mol, which is nonsensical, and the units immediately flag the error. This habit of tracking units through every calculation will prevent the most common mistakes in molar mass problems and will serve you well throughout quantitative chemistry.