Search the atlas

Molar mass and molecular formulas

Use relative masses, measured molar masses and gas densities to infer the composition of a compound.

Symbols, molecular formulas and formula units

A chemical symbol identifies an element. A chemical formula specifies the elements present and their proportions. A molecular formula counts the atoms in a discrete molecule. For an ionic solid, a formula unit gives the stoichiometric ratio of its ions, retaining the identity of polyatomic ions where appropriate.

Subscripts and coefficients

A subscript is part of the formula of a species. A coefficient multiplies the entire formula. For example,

2 Al2(SO4)32\,Al_2(SO_4)_3

represents four aluminum atoms, six sulfate groups, six sulfur atoms and 24 oxygen atoms.

Reading a formula

Read the symbols first, then the subscripts, parentheses and any leading coefficient. A species’ charge, an oxidation number and a stoichiometric subscript each carry different information and occupy different positions.

Molecules and formula units

CO2CO_2 describes a molecule. NaClNaCl gives the 1:11:1 ratio of ions in a crystal lattice. Depending on scale, 3H2O3H_2O can mean three molecules or three moles of water. Its coefficient does not create a new species with formula H6O3H_6O_3.

Counting water of crystallization

Copper(II) sulfate pentahydrate, CuSO4⋅5H2O\mathrm{CuSO_4\cdot5H_2O}, has five water molecules per copper sulfate formula unit. The centered dot separates the salt and water in the hydrate formula. Two formula units contain two copper atoms, two sulfur atoms, 18 oxygen atoms and 20 hydrogen atoms. For oxygen, add the four in sulfate and five in the waters before multiplying by two.

Dividing the mass of the pentahydrate by the molar mass of anhydrous copper sulfate overestimates the amount of copper. The five waters are part of the composition of the crystal. Any additional moisture on its surface requires a separate determination.

Common reading errors

Keep subscripts fixed when balancing reactions. Distinguish charge from a subscript and molecules from ionic formula units. Apply a subscript outside parentheses to every element inside.

See how charge neutrality determines the formulas of monatomic and polyatomic ions and how chemical nomenclature connects formulas to names.

Relative atomic mass, molecular mass and formula mass

Relative atomic mass ArA_r is the ratio of the average mass of one atom of an element in a sample to 1/121/12 of the mass of a carbon-12 atom, 12C^{12}C. It has no units. Relative molecular mass MrM_r sums the relative atomic masses of the atoms in a molecule. For an ionic solid, the corresponding term is relative formula mass.

Summing relative atomic masses

For a species with formula XaYbX_{a}Y_b,

Mr=aAr(X)+bAr(Y).M_r=aA_r(X)+bA_r(Y).

Molar mass MM gives mass per mole and can be expressed in g mol−1\mathrm{g\,mol^{-1}}. At ordinary chemical precision its value in these units is numerically the same as the dimensionless relative mass MrM_r.

Accounting for all the atoms

Establish whether the entity is a discrete molecule or a formula unit. Apply each subscript to all the atoms it governs, keep extra digits in the sum and specify the entity counted by the mole.

Calcium hydroxide

Using rounded atomic weights for Ca(OH)2Ca(OH)_2 gives Mr=40.08+2(16.00+1.008)=74.096M_r=40.08+2(16.00+1.008)=74.096. The corresponding molar mass is about 74.10 g mol−174.10\ \mathrm{g\,mol^{-1}} per mole of formula units.

Choosing the formula for a weighed sample

Two containers labeled magnesium sulfate may contain different hydrates. One formula unit of MgSO4⋅7H2O\mathrm{MgSO_4\cdot7H_2O} includes seven water molecules. With working molar masses of 120.37 g/mol120.37\ \mathrm{g/mol} for the anhydrous salt and 18.015 g/mol18.015\ \mathrm{g/mol} for water, the hydrate gives 120.37+7(18.015)=246.475 g/mol120.37+7(18.015)=246.475\ \mathrm{g/mol} before rounding. Water accounts for about 51.16%51.16\% by mass.

A 2.4650 g2.4650\ \mathrm{g} portion of heptahydrate therefore contains about 10.00 mmol10.00\ \mathrm{mmol} of formula units. The same mass divided by 120.37 g/mol120.37\ \mathrm{g/mol} would give 20.48 mmol20.48\ \mathrm{mmol}. Even a calibrated balance cannot correct an incorrect formula assignment. If the sample has lost an unknown quantity of water, determine its actual hydration before reporting an amount of dry salt.

Isotopic composition also matters. For an enriched material use the sample’s own weighted atomic masses. Standard atomic weights refer to normal terrestrial materials. CIAAW standard atomic weights

Common mistakes with relative masses

Distinguish dimensionless MrM_r from a molar mass in g/mol\mathrm{g/mol}. Use formula mass for NaClNaCl, include all parentheses and waters of hydration, and distinguish an integer mass number from an average atomic mass.

Connect these quantities to the mole and see how to calculate a sample mean from isotopic masses and abundances.

Finding a molecular formula from a molar mass

A molecular formula is a positive integer multiple of an empirical formula. A measured molar mass can determine that multiplier when the compound consists of discrete molecules and its empirical composition is known.

The integer multiplier

If MempM_{emp} is the molar mass calculated from the empirical formula and MM is the measured molar mass, k=M/Mempk=M/M_{emp} must be compatible with a positive integer. Multiply every subscript by kk to obtain the molecular formula.

Testing a candidate formula

Calculate MempM_{emp} using consistent atomic masses. Keep extra digits and compare the ratio with candidate integers using the measurement uncertainty. Check that the molar mass reconstructed from the candidate formula agrees with the measured value.

From an empirical to a molecular formula

For CH2OCH_2O, Memp≃30.03 g/molM_{emp}\simeq30.03\ \mathrm{g/mol}. A measured molar mass near 180.2 g/mol180.2\ \mathrm{g/mol} gives k≃6k\simeq6 and a molecular formula of C6H12O6C_6H_{12}O_6.

Testing a multiplier against measured limits

An empirical formula gives the simplest whole-number ratios of atoms. Suppose the compound has the empirical formula CH2O\mathrm{CH_2O} with Memp=30.03 g/molM_{emp}=30.03\ \mathrm{g/mol}, and the measured molar mass lies between 179.9179.9 and 180.5 g/mol180.5\ \mathrm{g/mol}. For this comparison, assume the uncertainty in MempM_{emp} is negligible relative to the width of the interval.

A compatible multiplier must satisfy

179.930.03≤k≤180.530.03.\dfrac{179.9}{30.03}\le k\le \dfrac{180.5}{30.03}.

The permitted interval is approximately [5.991,6.011][5.991,6.011], which contains just one positive integer, six. The reconstructed molar mass is 180.18 g/mol180.18\ \mathrm{g/mol}. Multipliers of five and seven give 150.15150.15 and 210.21 g/mol210.21\ \mathrm{g/mol}, both outside the interval. If no integer fits, revisit the measurements and assumptions before rounding.

How the formula affects the amount dispensed

For 90.09 mg90.09\ \mathrm{mg} of a pure sample, the reconstructed molar mass gives

n=0.09009 g180.18 g/mol=0.5000 mmol.n=\dfrac{0.09009\ \mathrm g} {180.18\ \mathrm{g/mol}} =0.5000\ \mathrm{mmol}.

Dividing by 30.03 g/mol30.03\ \mathrm{g/mol} instead gives 3.000 mmol3.000\ \mathrm{mmol} of empirical units, six times the amount of molecules. Treating that value as the amount of molecules in a reaction would overstate the requirement for a reagent by a factor of six. Always specify the entity when using the mole.

Even an unambiguous molecular formula can describe different substances. Glucose and fructose both have formula C6H12O6\mathrm{C_6H_{12}O_6} but different structures. See Oregon State’s discussion of carbohydrates. Isomerism explains why matching a formula and a molar mass is insufficient to identify a reagent.

The calculation tests composition and amount. Choosing a material for a process also requires its structural identity, purity and hydration state. Mixtures and materials with a distribution of molecular masses require a model appropriate to the sample.

Common errors in formula assignment

Compare the ratio with integers using its uncertainty. Multiply every subscript, use molar mass rather than the sample mass, and first establish whether the sample contains discrete molecules or an ionic lattice.

Molar mass alone cannot determine connectivity. Try the exercises on molecular formulas and degrees of unsaturation to combine valence constraints with measured elemental ratios.

Density and molar mass of an ideal gas

Combining molar mass with the ideal gas law relates gas density to pressure and temperature. For a fixed composition, ideal gas density increases with pressure and decreases as absolute temperature rises.

Density from the ideal gas law

Substitute n=m/Mn=m/M and ρ=m/V\rho=m/V into PV=nRTPV=nRT to obtain ρ=PM/(RT)\rho=PM/(RT) or M=ρRT/PM=\rho RT/P. Use compatible units for ρ\rho, RR and MM. For a gas mixture, use its mean molar mass.

At the same pressure and temperature, doubling molar mass doubles the predicted ideal gas density.

Applying the gas equation

Use absolute pressure and temperature in kelvin. If a gas is collected over a liquid, determine the partial pressure of the gas. Check the units, compare the result with plausible molar masses and consider whether ideal behavior fits the conditions.

A numerical check

At 1.00 bar1.00\ \mathrm{bar} and 298 K298\ \mathrm{K}, a gas with M=44.0 g/molM=44.0\ \mathrm{g/mol} has ρ≃1.78 g/L\rho\simeq1.78\ \mathrm{g/L} using R=0.08314 L bar mol−1 K−1R=0.08314\ \mathrm{L\,bar\,mol^{-1}\,K^{-1}}.

Inferring the composition of a binary gas mixture

A dry mixture containing only nitrogen and carbon dioxide has a density of 1.283 g/L1.283\ \mathrm{g/L} at 100.0 kPa100.0\ \mathrm{kPa} and 300.0 K300.0\ \mathrm{K}. The ideal gas law gives a mean molar mass near 32.00 g/mol32.00\ \mathrm{g/mol}. Using component molar masses of 28.028.0 and 44.0 g/mol44.0\ \mathrm{g/mol} gives a carbon dioxide mole fraction of (32−28)/(44−28)=0.250(32-28)/(44-28)=0.250. The mean lies between the component values and closer to nitrogen, as expected. The law of partial pressures then gives approximately 25.0 kPa25.0\ \mathrm{kPa} of carbon dioxide out of 100.0 kPa100.0\ \mathrm{kPa} total.

This inference depends on knowing that only those two species are present. A pure gas near 32 g/mol32\ \mathrm{g/mol} or a mixture of three gases in suitable proportions can give the same density. The measurement supplies one constraint on composition.

Common errors with gas density

Use kelvin and absolute pressure, distinguish MM from ρ\rho, and check conversions between kg/m3\mathrm{kg/m^3} and g/L\mathrm{g/L}. For an unidentified mixture, the result gives a mean molar mass.

Back to contents