Moles and grams measure different things, so you need the molar mass to convert between them
A mole is a count of particles — specifically, 6.022 × 10²³ of them (this number is called Avogadro's number). A gram is a measure of weight. To convert moles to grams, you multiply the number of moles by the molar mass of the substance — the weight in grams of one mole of that substance.
The formula is straightforward: grams = moles × molar mass. The molar mass is different for every element and compound, so you have to know what substance you are working with before you can do the math.
Key Takeaways
- Multiply the number of moles by the molar mass of the substance to get grams.
- Molar mass is the weight in grams of one mole of a substance and is found on the periodic table or in a chemistry reference.
- For compounds made of multiple elements, add up the molar mass of each element, counting each atom in the formula.
- The same calculation works in reverse: divide grams by molar mass to find moles.
Finding the molar mass of an element
Every element on the periodic table has a molar mass listed, usually shown as a decimal number below or near the element symbol. For single elements like carbon, oxygen, or sodium, this number is your molar mass. Carbon has a molar mass of about 12 grams per mole, oxygen about 16, and sodium about 23.
If you are working with a pure element in its standard form, you can look up the molar mass and use it directly. For example, if you have 2 moles of carbon, you multiply 2 × 12 = 24 grams.
Calculating molar mass for compounds
For compounds — substances made of two or more elements bonded together — you have to add up the molar mass of each element, counting how many atoms of each are in the formula. The subscript numbers in the chemical formula tell you how many atoms of each element are present.
Take water (H₂O) as an example. It contains 2 hydrogen atoms and 1 oxygen atom. Hydrogen has a molar mass of about 1 gram per mole, and oxygen about 16. So the molar mass of water is (2 × 1) + (1 × 16) = 18 grams per mole. If you have 3 moles of water, you multiply 3 × 18 = 54 grams.
For a more complex compound like calcium carbonate (CaCO₃), you count: 1 calcium atom (molar mass 40), 1 carbon atom (molar mass 12), and 3 oxygen atoms (molar mass 16 each). The total is 40 + 12 + (3 × 16) = 40 + 12 + 48 = 100 grams per mole.
Working through the conversion step by step
Start by identifying the substance you are converting. Write down the number of moles you have. Then find or calculate the molar mass of that substance. Multiply the moles by the molar mass, and your answer is in grams.
Example: Convert 5 moles of sodium chloride (table salt, NaCl) to grams. Sodium has a molar mass of 23, chlorine has a molar mass of 35.5. The molar mass of NaCl is 23 + 35.5 = 58.5 grams per mole. Then 5 moles × 58.5 grams per mole = 292.5 grams.
Keep track of your units as you multiply. The "moles" unit cancels out, leaving you with grams. This is how you know your math is set up correctly.
Converting grams back to moles
If you need to go the other direction — from grams to moles — divide the number of grams by the molar mass. The formula is moles = grams ÷ molar mass.
For example, if you have 100 grams of water and want to know how many moles that is, divide 100 ÷ 18 = 5.56 moles. This reverse calculation is just as common in chemistry problems and lab work.
Where to find molar mass values
The periodic table is your primary source. Most versions show the molar mass as the larger number under or near each element symbol. Chemistry textbooks, reference sheets, and online periodic tables all display this information the same way.
If you are working with a compound and do not have the molar masses memorized, write out the formula, look up each element's molar mass on the periodic table, and add them together (multiplying by the subscript for each element). This process takes a minute but is reliable and works for any compound.
Common mistakes to watch for
The most frequent error is forgetting to multiply by the subscript numbers in a compound formula. If calcium carbonate is CaCO₃, you must count three oxygen atoms, not one. Skipping this step will give you a molar mass that is too low.
Another common mistake is using the wrong molar mass value — either misreading the periodic table or confusing the molar mass of one element with another. Double-check the element symbol and the number you write down.
Finally, make sure you are multiplying (moles to grams) or dividing (grams to moles) in the right direction. If your answer seems too large or too small compared to what you started with, check which operation you used.
Frequently Asked Questions
What is Avogadro's number and why does it matter?
Avogadro's number (6.022 × 10²³) is the number of particles in one mole of any substance. It is the bridge between the atomic scale (individual atoms and molecules) and the human scale (grams and kilograms). You do not need to use this number directly for mole-to-gram conversions, but it is why the mole exists as a unit.
Do I need to memorize molar masses?
No. You can look up molar masses on the periodic table or in a reference sheet every time. Memorizing a few common ones (like carbon = 12, oxygen = 16, hydrogen = 1) can speed up homework or lab work, but it is not required.
What if the molar mass has a decimal, like 35.5 for chlorine?
Use the decimal value in your calculation. For sodium chloride, use 23 + 35.5 = 58.5 grams per mole. Decimals in molar mass come from the fact that most elements exist as mixtures of isotopes with slightly different weights, and the periodic table shows the weighted average.
Can I convert moles to grams for gases?
Yes. The molar mass method works for any substance — solids, liquids, or gases. The state of matter does not change the conversion. One mole of oxygen gas (O₂) still has a molar mass of 32 grams per mole, whether it is in a tank or in the air.
What if I have a really large or small number of moles?
The calculation stays the same. Whether you have 0.001 moles or 1,000 moles, you multiply by the molar mass. Scientific notation can make the math easier if the numbers are very large or very small, but the process does not change.