The Basic Conversion: Grams to Moles

To change grams to moles, you divide the number of grams by the molar mass of the substance. Molar mass is the weight of one mole of a substance, measured in grams per mole (g/mol). The formula is straightforward: moles = grams ÷ molar mass.

For example, if you have 18 grams of water (H₂O) and water has a molar mass of 18 g/mol, you would divide 18 by 18 to get 1 mole. The calculation works the same way for any substance — you just need to know its molar mass first.

Key Takeaways

  • Molar mass is the total weight in grams of all atoms in one molecule of a substance, and you can find it by adding up the atomic masses of each element.
  • The conversion formula is moles = grams ÷ molar mass, and you perform this division to get your answer.
  • Atomic masses for each element appear on the periodic table, usually shown as decimal numbers below the element symbol.
  • The units work out correctly when you divide grams by g/mol, leaving you with moles as your final answer.

Finding the Molar Mass of a Compound

Before you can convert grams to moles, you need to know the molar mass of what you are measuring. The molar mass comes from the periodic table, where each element has an atomic mass listed. For a compound made of multiple elements, you add up the atomic masses of all the atoms in the molecule.

Take sodium chloride (NaCl, or table salt) as an example. Sodium has an atomic mass of about 23, and chlorine has an atomic mass of about 35.5. One molecule of NaCl contains one sodium atom and one chlorine atom, so the molar mass is 23 + 35.5 = 58.5 g/mol. If you have 58.5 grams of salt, that equals 1 mole.

For compounds with multiple atoms of the same element, multiply the atomic mass by how many of that atom appear. Glucose (C₆H₁₂O₆) has 6 carbon atoms, 12 hydrogen atoms, and 6 oxygen atoms. Carbon is about 12, hydrogen is about 1, and oxygen is about 16. So the molar mass is (6 × 12) + (12 × 1) + (6 × 16) = 72 + 12 + 96 = 180 g/mol.

Working Through a Complete Example

Let's say you have 50 grams of carbon dioxide (CO₂) and need to know how many moles that is. First, find the molar mass: carbon is 12 and oxygen is 16, so CO₂ = 12 + (2 × 16) = 12 + 32 = 44 g/mol.

Now use the formula: moles = 50 grams ÷ 44 g/mol = 1.14 moles. That is your answer. The grams cancel out with the grams in the denominator, leaving you with moles.

The same process works whether you are converting a small amount or a large amount. If you had 440 grams of CO₂, you would divide 440 by 44 to get 10 moles. The method never changes — only the numbers do.

Why the Periodic Table Matters

The periodic table is your reference for atomic masses. Each element has a box with the element symbol (like H for hydrogen or O for oxygen) and a number below it. That number is the atomic mass, and it is what you use to calculate molar mass.

The atomic masses on the periodic table are usually shown as decimals because they represent weighted averages of all the naturally occurring forms (isotopes) of that element. For most conversions, you can round to one or two decimal places — using 1 for hydrogen, 12 for carbon, and 16 for oxygen is accurate enough for most problems.

Common Mistakes to Avoid

One frequent error is forgetting to count all the atoms in a molecule. If a formula says H₂O, that is two hydrogen atoms and one oxygen atom — not just three atoms total. You have to multiply the atomic mass of hydrogen by 2 before adding it to oxygen's mass.

Another mistake is mixing up the direction of the conversion. Remember: to go from grams to moles, you divide. (To go the opposite direction — from moles to grams — you would multiply moles by molar mass.)

A third pitfall is using the wrong molar mass. Double-check that you have calculated the molar mass correctly by adding up all the atoms in the formula. If your answer seems too large or too small, recalculate the molar mass first.

Using a Calculator for Accuracy

Most conversions involve decimals, so a calculator is helpful. Enter the number of grams, press the division button, enter the molar mass, and press equals. Write down the full decimal result — do not round until the end of your calculation.

If you are doing multiple steps (for instance, converting grams to moles and then moles to particles), keep the full decimal in your calculator and only round your final answer. Rounding at each step can introduce small errors that add up.

Frequently Asked Questions

What if the molar mass has a decimal, like 18.015 for water?

Use the full decimal if your teacher or assignment asks for precision. For most introductory chemistry, rounding to whole numbers or one decimal place (18 or 18.0) is acceptable. Check your assignment instructions to see what level of precision is expected.

Do I need to memorize the periodic table?

No. You will have access to the periodic table during tests and homework. Memorizing a few common elements (hydrogen, carbon, nitrogen, oxygen) can speed up your work, but looking them up is always an option.

What if I have a compound with parentheses, like Ca(OH)₂?

Count each atom separately. Ca(OH)₂ has one calcium, two oxygen atoms, and two hydrogen atoms. Calcium is about 40, oxygen is 16, and hydrogen is 1, so the molar mass is 40 + (2 × 16) + (2 × 1) = 40 + 32 + 2 = 74 g/mol.

Can I convert moles back to grams using the same molar mass?

Yes. To go from moles to grams, multiply moles by molar mass instead of dividing. If you have 2 moles of water and water's molar mass is 18 g/mol, then 2 × 18 = 36 grams.