How to Convert Between Grams, Moles, and Molecules

Converting between grams, moles, and molecules is a fundamental skill in chemistry because it connects the mass of a substance to the number of particles it contains. The key is to use molar mass to convert between grams and moles, and Avogadro’s constant to convert between moles and molecules.

These conversions work for substances ranging from a small sample of water to a container of gas or a solid made of countless atoms. Once you understand what each unit represents and which conversion factor to use, you can solve these problems systematically.

Understand grams, moles, and molecules

Grams, moles, and molecules describe different properties of a substance. Grams measure mass, moles measure the amount of substance, and molecules count individual particles.

A gram (g) is a metric unit of mass. When you weigh a sample of sugar, water, or another chemical, the result is commonly expressed in grams. However, mass alone does not tell you how many particles the sample contains because different substances have particles with different masses.

A mole (mol) is a unit used to measure the amount of substance. One mole contains exactly 6.02214076 × 10²³ specified elementary entities, a number known as Avogadro’s constant. These entities can be atoms, molecules, ions, or other specified particles.

A molecule is a group of two or more atoms held together by chemical bonds. For example, a water molecule contains two hydrogen atoms and one oxygen atom, represented by the chemical formula H₂O. A sample of water contains an enormous number of these molecules, even when its mass is only a few grams.

Avogadro’s constant provides a convenient way to count such tiny particles. Instead of trying to count molecules individually, chemists measure a sample’s mass, convert that mass into moles, and use the mole to determine the number of particles.

Use molar mass to convert grams into moles

Molar mass is the mass of one mole of a substance, usually expressed in grams per mole (g/mol). It depends on the chemical identity of the substance and the masses of its constituent atoms.

To find the molar mass of a compound, add the atomic masses of all the atoms represented in its chemical formula. The subscripts indicate how many atoms of each element are present.

For water, H₂O, the approximate atomic masses are:

  • Hydrogen: 1.008 g/mol
  • Oxygen: 16.00 g/mol

Because each water molecule contains two hydrogen atoms and one oxygen atom, its molar mass is:

H₂O molar mass = 2(1.008) + 16.00 = 18.016 g/mol

This means that one mole of water has a mass of approximately 18.016 grams.

To convert grams into moles, divide the sample’s mass by its molar mass:

Moles = Mass in grams ÷ Molar mass

For example, suppose you have 36.0 g of water. Using a molar mass of 18.016 g/mol:

Moles of H₂O = 36.0 g ÷ 18.016 g/mol

Moles of H₂O ≈ 2.00 mol

Therefore, 36.0 g of water contains approximately 2.00 moles of water molecules.

The units confirm that the calculation works: dividing grams by grams per mole leaves moles. This is an example of dimensional analysis, a method that uses units to check whether a mathematical expression is set up correctly.

Convert moles into grams

To reverse the process, multiply the number of moles by the substance’s molar mass.

Mass in grams = Moles × Molar mass

Suppose you need to determine the mass of 0.500 mol of carbon dioxide, CO₂. Carbon has an atomic mass of approximately 12.01 g/mol, and oxygen has an atomic mass of approximately 16.00 g/mol.

The molar mass of carbon dioxide is:

CO₂ molar mass = 12.01 + 2(16.00) = 44.01 g/mol

Multiply the amount in moles by the molar mass:

Mass of CO₂ = 0.500 mol × 44.01 g/mol

Mass of CO₂ = 22.005 g

Rounded to three significant figures, the answer is 22.0 g of CO₂.

The multiplication cancels the mole units, leaving grams. This is the opposite of converting grams into moles, which requires division.

Convert moles into molecules using Avogadro’s constant

Once you know the number of moles, you can calculate the number of molecules by multiplying by Avogadro’s constant.

Number of molecules = Moles × 6.02214076 × 10²³ molecules/mol

For example, suppose a sample contains 2.00 mol of water. The number of water molecules is:

Number of molecules = 2.00 mol × 6.02214076 × 10²³ molecules/mol

Number of molecules ≈ 1.20 × 10²⁴ molecules

Thus, 2.00 mol of water contains approximately 1.20 × 10²⁴ water molecules.

The mole units cancel, leaving a count of molecules. Because the particles are discrete, the calculated result represents a particle count, although the value is usually reported with an appropriate number of significant figures.

To convert molecules into moles, reverse the operation and divide by Avogadro’s constant:

Moles = Number of molecules ÷ 6.02214076 × 10²³ molecules/mol

For example, a sample containing 3.011 × 10²³ water molecules has an amount of:

Moles of H₂O = (3.011 × 10²³) ÷ (6.02214076 × 10²³)

Moles of H₂O = 0.5000 mol

Avogadro’s constant is the same for every substance. What changes from one substance to another is the mass of a mole, because atoms and molecules differ in composition and mass.

Convert grams directly into molecules

To convert grams into molecules, combine the two conversion steps: first convert grams into moles using molar mass, then convert moles into molecules using Avogadro’s constant.

The complete relationship is:

Number of molecules = (Mass in grams ÷ Molar mass) × Avogadro’s constant

Consider 9.00 g of water. Its molar mass is approximately 18.016 g/mol.

First, calculate the number of moles:

Moles of H₂O = 9.00 g ÷ 18.016 g/mol

Moles of H₂O ≈ 0.4996 mol

Next, multiply by Avogadro’s constant:

Number of molecules = 0.4996 mol × 6.02214076 × 10²³ molecules/mol

Number of molecules ≈ 3.01 × 10²³

Therefore, 9.00 g of water contains approximately 3.01 × 10²³ water molecules.

You can also write the calculation as a single expression:

9.00 g × (1 mol ÷ 18.016 g) × (6.02214076 × 10²³ molecules ÷ 1 mol)

Writing the conversion factors this way makes the cancellation of units explicit. Grams cancel first, followed by moles, leaving molecules.

Convert molecules directly into grams

To convert molecules into grams, reverse the previous process. Divide the number of molecules by Avogadro’s constant to obtain moles, then multiply by the molar mass to obtain grams.

The combined equation is:

Mass in grams = (Number of molecules ÷ Avogadro’s constant) × Molar mass

Suppose you have 1.204 × 10²⁴ molecules of carbon dioxide. Using Avogadro’s constant and a molar mass of 44.01 g/mol, first calculate the amount in moles:

Moles of CO₂ = (1.204 × 10²⁴) ÷ (6.02214076 × 10²³)

Moles of CO₂ ≈ 2.00 mol

Then calculate the mass:

Mass of CO₂ = 2.00 mol × 44.01 g/mol

Mass of CO₂ ≈ 88.0 g

The sample therefore has a mass of approximately 88.0 g of carbon dioxide.

This conversion is especially useful when a problem gives a particle count but asks for a measurable mass.

Know when to count molecules, atoms, or formula units

Not every substance consists of molecules, so the type of particle in a conversion matters.

Molecular substances, such as water, carbon dioxide, and oxygen gas, contain molecules. For these substances, converting moles into molecules is appropriate.

Elements such as helium and neon exist as individual atoms under ordinary conditions. For a sample of helium, the relevant particle count is the number of helium atoms rather than molecules.

Ionic compounds, such as sodium chloride, consist of positively and negatively charged ions arranged in a crystal lattice. They are not made of separate sodium chloride molecules. Chemists therefore use formula units to describe the simplest whole-number ratio of ions in an ionic compound.

For sodium chloride, NaCl, each formula unit represents one sodium ion for every chloride ion. Its molar mass is approximately 58.44 g/mol. Multiplying moles of NaCl by Avogadro’s constant gives the number of NaCl formula units, not the number of individual ions.

If a question asks for the number of ions, an additional step is necessary. Each formula unit of NaCl corresponds to one sodium ion and one chloride ion, so one mole of NaCl contains one mole of sodium ions and one mole of chloride ions. Assuming complete dissociation, one mole of NaCl produces two moles of ions in solution.

Chemical formulas determine what is being counted. Always identify the requested particle before selecting the appropriate conversion.

Use dimensional analysis to avoid common mistakes

Many conversion errors occur because the correct numbers are used in the wrong order. A reliable approach is to write the starting quantity, select a conversion factor that cancels its unit, and continue until only the desired unit remains.

For example, converting grams into moles requires division by molar mass. Converting moles into grams requires multiplication by molar mass. Converting moles into molecules requires multiplication by Avogadro’s constant, while converting molecules into moles requires division by that constant.

A useful way to remember the relationships is to think of moles as the connection between mass and particle count:

  • Grams → moles: divide by molar mass.
  • Moles → grams: multiply by molar mass.
  • Moles → molecules: multiply by Avogadro’s constant.
  • Molecules → moles: divide by Avogadro’s constant.

For conversions involving both mass and particle count, pass through moles as the intermediate step.

Another common mistake is using the molar mass of an element when the problem involves a compound. The molar mass of water is not the molar mass of oxygen alone, for example. It must account for all atoms in H₂O. Similarly, the molar mass of carbon dioxide includes one carbon atom and two oxygen atoms.

Pay attention to significant figures as well. Calculators may display many digits, but a final answer should reflect the precision of the given measurements and the molar masses used. Exact conversion constants do not make an imprecise starting measurement more precise.

Scientific notation is also important because particle counts are often extremely large. A value such as 6.022 × 10²³ is easier to write and interpret than a long sequence of digits. When multiplying or dividing numbers in scientific notation, handle the coefficients and powers of ten carefully.

Understand why the mole connects mass and particle count

Atoms and molecules are far too small to count individually in ordinary laboratory work. The mole solves this practical problem by connecting a measurable quantity, mass, with an enormous but fixed number of particles.

Molar mass provides the mass-to-amount relationship, while Avogadro’s constant provides the amount-to-particle relationship. Together, they allow chemists to calculate how much of a substance is present and how many atoms, molecules, or other particles that amount contains.

These conversions also explain why equal masses of different substances generally contain different numbers of molecules. A gram of hydrogen gas and a gram of carbon dioxide do not contain the same number of molecules because their molar masses differ substantially. The substance with the lower molar mass has more moles, and therefore more molecules, in the same mass.

Mastering these relationships makes many other chemistry calculations easier, including reaction stoichiometry, solution preparation, gas calculations, and determining the quantities of reactants needed to produce a desired amount of product. The essential principle remains the same: identify the quantity you know, identify the quantity you need, and use molar mass and Avogadro’s constant to connect them through moles.

Looking For Something Else?