Molar mass is the mass of one mole of a substance, usually expressed in grams per mole (g/mol). To calculate it from a chemical formula, identify each element in the formula, find its atomic mass on the periodic table, multiply that mass by the number of atoms of the element, and add the results together.
For example, water has the chemical formula H₂O. Each molecule contains two hydrogen atoms and one oxygen atom. Using approximate atomic masses of 1.008 g/mol for hydrogen and 16.00 g/mol for oxygen, the molar mass of water is:
Molar mass of H₂O = (2 × 1.008) + (1 × 16.00) = 18.016 g/mol
Rounded to two decimal places, water has a molar mass of 18.02 g/mol. The same method works for simple molecules, ionic compounds, and more complex chemical formulas containing parentheses or multiple groups of atoms.
Understand what molar mass means
Molar mass connects the microscopic world of atoms and molecules to measurable quantities of matter. Atoms are too small to count individually in ordinary laboratory work, so chemists use the mole as a counting unit.
One mole contains exactly 6.02214076 × 10²³ specified elementary entities. These entities can be atoms, molecules, ions, or formula units, depending on the substance being measured.
The molar mass tells you how many grams of a substance correspond to one mole of those entities. For instance, one mole of water molecules has a mass of approximately 18.02 grams, while one mole of carbon dioxide molecules has a mass of approximately 44.01 grams.
Molar mass is related to atomic mass and molecular mass, but these terms describe different quantities. Atomic mass refers to the mass of an individual atom, commonly expressed in unified atomic mass units (u). Molecular mass is the sum of the atomic masses of the atoms in a molecule, also expressed in u. Molar mass describes the mass of one mole of those particles in g/mol.
These numerical values are generally the same or nearly the same when expressed in their respective units. This relationship makes it possible to use atomic masses from the periodic table to calculate molar masses directly.
Find the atomic masses on the periodic table
The periodic table provides the atomic mass values needed for the calculation. Depending on the table, these values may appear under each element’s symbol or name.
For most elements, the listed atomic mass is a weighted average that accounts for the naturally occurring isotopes of that element. Isotopes are forms of the same element that contain different numbers of neutrons. Because their masses differ, the average atomic mass reflects their relative natural abundances.
For routine chemistry calculations, use the atomic masses provided by your periodic table. Common approximate values include:
- Hydrogen (H): 1.008
- Carbon (C): 12.01
- Nitrogen (N): 14.01
- Oxygen (O): 16.00
- Sodium (Na): 22.99
- Magnesium (Mg): 24.31
- Sulfur (S): 32.06
- Chlorine (Cl): 35.45
- Calcium (Ca): 40.08
- Iron (Fe): 55.85
These values are sufficient for most introductory chemistry problems. Different periodic tables may show slightly different values because of rounding or differences in the reported atomic weights.
Keep your precision consistent throughout the calculation. Using several decimal places in one step and rounding heavily in another can introduce avoidable errors. It is usually best to retain the available digits during intermediate calculations and round the final result to an appropriate number of significant figures.
Count the atoms in the chemical formula
A chemical formula identifies which elements are present and how many atoms of each element occur in a molecule or formula unit.
The subscripts, or small numbers written to the lower right of element symbols, indicate the number of atoms of that element. If an element has no subscript, its implied subscript is 1.
For example, carbon dioxide has the formula CO₂. It contains one carbon atom and two oxygen atoms. The formula NH₃ contains one nitrogen atom and three hydrogen atoms.
When a formula includes more than one element, count each element separately. Then multiply the number of atoms of each element by its atomic mass.
Consider methane, CH₄. The formula contains one carbon atom and four hydrogen atoms. Its molar mass is:
Molar mass of CH₄ = (1 × 12.01) + (4 × 1.008)
= 12.01 + 4.032
= 16.042 g/mol
Rounded to two decimal places, the molar mass of methane is 16.04 g/mol.
A common mistake is to overlook a subscript or apply it to the wrong element. In H₂O, the subscript 2 applies only to hydrogen, not oxygen. Reading the formula carefully before calculating prevents this type of error.
Apply the formula for molar mass
The general equation for calculating molar mass is:
M = Σ(nᵢ × Aᵢ)
Here, M represents molar mass, nᵢ is the number of atoms of each element in the chemical formula, Aᵢ is the atomic mass of that element, and Σ means to add the contributions from all elements.
In practical terms, the process has three parts: count the atoms, multiply each count by the corresponding atomic mass, and add the products.
For a compound containing carbon, hydrogen, and oxygen, for example, calculate the total contribution from carbon atoms, add the contribution from hydrogen atoms, and then add the contribution from oxygen atoms. The result is the molar mass of the compound in grams per mole.
The formula also works when a compound contains only one element. Oxygen gas, O₂, contains two oxygen atoms per molecule, so its molar mass is approximately:
Molar mass of O₂ = 2 × 16.00 = 32.00 g/mol
This illustrates why the chemical formula matters. The atomic mass of an oxygen atom is about 16.00 u, but an oxygen molecule contains two atoms, giving it a molar mass of approximately 32.00 g/mol.
Calculate the molar mass of compounds with multiple elements
Some compounds contain several different elements, each with its own subscript. The calculation remains the same, but organizing the contributions makes the process easier to check.
Consider carbon dioxide, CO₂. The formula contains one carbon atom and two oxygen atoms. Using atomic masses of 12.01 for carbon and 16.00 for oxygen:
Molar mass of CO₂ = (1 × 12.01) + (2 × 16.00)
= 12.01 + 32.00
= 44.01 g/mol
The molar mass of carbon dioxide is 44.01 g/mol.
Now consider sulfuric acid, H₂SO₄. Its formula contains two hydrogen atoms, one sulfur atom, and four oxygen atoms. Using approximate atomic masses of 1.008 for hydrogen, 32.06 for sulfur, and 16.00 for oxygen:
Molar mass of H₂SO₄ = (2 × 1.008) + (1 × 32.06) + (4 × 16.00)
= 2.016 + 32.06 + 64.00
= 98.076 g/mol
Rounded to two decimal places, the molar mass of sulfuric acid is 98.08 g/mol.
Writing out each element’s contribution helps prevent errors, especially when formulas contain several elements or large subscripts.
Handle parentheses and groups of atoms
Parentheses in a chemical formula indicate that a group of atoms should be counted together. A subscript outside the parentheses multiplies every atom inside that group.
For example, calcium hydroxide has the formula Ca(OH)₂. The group OH appears twice, so the compound contains one calcium atom, two oxygen atoms, and two hydrogen atoms.
Using approximate atomic masses of 40.08 for calcium, 16.00 for oxygen, and 1.008 for hydrogen:
Molar mass of Ca(OH)₂ = 40.08 + (2 × 16.00) + (2 × 1.008)
= 40.08 + 32.00 + 2.016
= 74.096 g/mol
The molar mass of calcium hydroxide is approximately 74.10 g/mol.
The same principle applies when a formula contains several parenthetical groups. For aluminum sulfate, Al₂(SO₄)₃, the subscript 3 outside the parentheses multiplies every atom in the sulfate group. The formula therefore contains two aluminum atoms, three sulfur atoms, and twelve oxygen atoms.
Using atomic masses of 26.98 for aluminum, 32.06 for sulfur, and 16.00 for oxygen:
Molar mass of Al₂(SO₄)₃ = (2 × 26.98) + (3 × 32.06) + (12 × 16.00)
= 53.96 + 96.18 + 192.00
= 342.14 g/mol
The molar mass of aluminum sulfate is approximately 342.14 g/mol.
When parentheses are present, first determine the total number of atoms of each element. Only then multiply those counts by their atomic masses. This approach reduces the risk of forgetting that an outside subscript applies to the entire group.
Account for coefficients and hydrate formulas
A coefficient is a number written in front of a chemical formula. It indicates how many units of the entire formula are involved in a chemical equation or expression.
For example, in 2H₂O, the coefficient 2 indicates two water molecules or two corresponding formula units in the represented quantity. It does not change the molar mass of water itself. The molar mass of H₂O remains approximately 18.02 g/mol.
If you want the mass represented by two moles of water, multiply the molar mass by the amount in moles:
Mass = 2 mol × 18.02 g/mol = 36.04 g
This distinction is important: subscripts determine the composition of a chemical entity, while coefficients indicate how many entities are represented.
Hydrates require an additional step. A hydrate is a compound that includes water as part of its crystalline structure. Its formula often uses a centered dot to separate the main compound from the water molecules.
For example, copper(II) sulfate pentahydrate has the formula CuSO₄·5H₂O. The dot indicates that five water molecules are associated with each formula unit of copper(II) sulfate pentahydrate.
To calculate its molar mass, count the atoms in both parts of the formula. The CuSO₄ portion contains one copper atom, one sulfur atom, and four oxygen atoms. The 5H₂O portion contributes ten hydrogen atoms and five additional oxygen atoms.
Using approximate atomic masses of 63.55 for copper, 32.06 for sulfur, 16.00 for oxygen, and 1.008 for hydrogen:
Molar mass of CuSO₄·5H₂O = 63.55 + 32.06 + (9 × 16.00) + (10 × 1.008)
= 63.55 + 32.06 + 144.00 + 10.08
= 249.69 g/mol
The molar mass is approximately 249.69 g/mol. The nine oxygen atoms come from four in CuSO₄ and five in the water molecules. Counting both portions is essential because the water contributes to the compound’s total mass.
Distinguish molecular compounds from ionic compounds
The same arithmetic applies to molecular and ionic compounds, but the meaning of the chemical formula differs.
Molecular compounds, such as water and carbon dioxide, consist of discrete molecules. Their formulas indicate the number and types of atoms in each molecule. Adding the atomic masses gives the molecular mass, and the corresponding molar mass expresses the mass of one mole of those molecules.
Ionic compounds, such as sodium chloride (NaCl), generally form extended arrangements of positively and negatively charged ions rather than separate molecules. Their chemical formulas represent the simplest whole-number ratio of ions in the compound. This ratio is called a formula unit.
For sodium chloride, the formula indicates one sodium ion for every chloride ion. Using atomic masses of approximately 22.99 for sodium and 35.45 for chlorine:
Molar mass of NaCl = 22.99 + 35.45 = 58.44 g/mol
The molar mass of sodium chloride is 58.44 g/mol. Although the calculation resembles a molecular-mass calculation, the particles being counted are formula units rather than discrete NaCl molecules.
This distinction matters when describing a substance accurately, but it does not change the basic procedure for calculating its molar mass.
Use molar mass to convert between mass and moles
Once you know a substance’s molar mass, you can calculate how many moles are present in a measured mass. This is one of the main reasons molar mass is useful in chemistry.
The relationship is:
n = m ÷ M
Here, n is the amount of substance in moles, m is the sample’s mass in grams, and M is its molar mass in grams per mole.
For example, suppose you have 36.04 grams of water and want to determine the number of moles. Using a molar mass of 18.02 g/mol:
n = 36.04 g ÷ 18.02 g/mol = 2.00 mol
The sample contains 2.00 moles of water, assuming the stated mass and molar mass are sufficiently precise.
You can also calculate the mass needed for a desired amount of substance by rearranging the relationship:
m = n × M
For example, one-half mole of carbon dioxide has a mass of:
m = 0.500 mol × 44.01 g/mol = 22.005 g
Rounded appropriately, this is 22.0 grams.
These conversions are central to stoichiometry, the branch of chemistry concerned with the quantitative relationships between reactants and products in chemical reactions. A balanced chemical equation gives the relative amounts of substances in moles, while molar mass converts those amounts into measurable masses.
Avoid common molar mass calculation errors
Most mistakes come from reading the formula incorrectly, using inconsistent atomic masses, or handling units and rounding carelessly.
Forgetting subscripts leads to incorrect atom counts. In C₂H₆, for instance, there are two carbon atoms and six hydrogen atoms, not one of each.
Misapplying parentheses can cause several atoms to be missed. In Mg(NO₃)₂, the subscript 2 applies to the entire nitrate group. The formula contains one magnesium atom, two nitrogen atoms, and six oxygen atoms.
Confusing coefficients with subscripts changes the meaning of the calculation. The coefficient in 3CO₂ represents three molecules or three formula units in the stated context; it does not change the molar mass of CO₂.
Ignoring water in a hydrate produces a molar mass that is too low. If the formula includes a dot followed by water, count those water molecules as part of the stated compound.
Rounding too early can introduce small numerical differences. Keep sufficient digits during intermediate steps and round only the final answer, using precision appropriate to the atomic masses and the problem.
Leaving off the units makes the result incomplete. A molar mass should ordinarily be reported in g/mol, not simply in grams. Grams measure mass, whereas grams per mole express the mass associated with a specified amount of substance.
A useful final check is to confirm that every element in the formula has been counted, every subscript has been applied correctly, and the resulting mass is plausible for the number and types of atoms present.
Understand the limits of a calculated molar mass
A molar mass calculated from a chemical formula is based on the composition represented by that formula and the atomic masses used in the calculation. For many pure substances, this provides a reliable value for routine chemistry.
However, the exact molar mass of a real sample can depend on isotopic composition. Because an element’s naturally occurring isotopes may vary in abundance, its average atomic mass can vary slightly between samples from different sources. Standard periodic-table values are suitable for ordinary calculations, but highly precise measurements may require more specific isotopic information.
Some substances, particularly certain polymers and complex biological materials, do not consist of molecules with one exact, uniform size. Their samples may contain a distribution of molecular masses. In those cases, a single formula may not fully describe the material, and an average molar mass may be more appropriate.
For ordinary compounds with well-defined chemical formulas, though, the procedure remains straightforward: identify each element, count its atoms, multiply each count by the appropriate atomic mass, and add the contributions. The result gives the molar mass in grams per mole and provides a direct link between a chemical formula and the amount of material measured in the laboratory.