molecalculator

Moles & Molar Mass

Grams to Molecules: Step-by-Step Conversion

Calculator No. 01-11548 · Updated · Formula and assumptions shown below

Number of molecules 3.011 × 1022 molecules
Amount in moles
0.0500 mol
= Mass of substance ÷ Molar mass
Mass of substance
2.922 g
Set in the form below
Molar mass
58.44 g/mol
Set in the form below
You enter
Mass of substance (g), Molar mass (g/mol)
You get
Number of molecules (molecules), Amount in moles (mol)
Rounding
4 dp

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

This guide explains how to convert a mass of a substance in grams to the number of molecules (or formula units) it contains. You need the substance’s molar mass (g/mol) and Avogadro’s number (6.022 × 1023 particles per mole). The process involves two conversions: grams → moles, then moles → molecules.

Formula

The number of molecules N is calculated as:

N = (m / M) × NA

Where:

  • m = mass of the substance in grams (g)
  • M = molar mass of the substance in grams per mole (g/mol)
  • NA = Avogadro’s number = 6.02214076 × 1023 molecules/mol

The quantity (m / M) gives the number of moles, which is then multiplied by Avogadro’s number to get the count of molecules.

Worked Example

Using the default values: mass = 2.922 g of sodium chloride (NaCl), molar mass = 58.44 g/mol.

  1. Convert grams to moles: moles = 2.922 g / 58.44 g/mol = 0.05000 mol (exactly 0.05 mol).
  2. Convert moles to molecules: molecules = 0.05000 mol × 6.02214076 × 1023 molecules/mol = 3.011 × 1022 molecules.

So 2.922 g of NaCl contains approximately 3.011 × 1022 formula units (for ionic compounds, we say formula units, but the math is identical).

Assumptions

  • The substance is pure and its molar mass is known exactly.
  • Avogadro’s number is taken as 6.02214076 × 1023 (exact SI value).
  • The conversion works for molecules, atoms, ions, or formula units—just use the appropriate particle.

What You’ll Need

  • The mass of the substance in grams (from a scale or problem statement).
  • The molar mass of the substance in g/mol (from the periodic table or a given value).
  • A calculator or this tool.

Step-by-Step

  1. Identify the substance and its molar mass. Look up the atomic weights of each element in the formula and sum them. For example, water (H2O) has molar mass 2×1.008 + 15.999 = 18.015 g/mol.
  2. Write down the given mass in grams. Make sure it is in grams, not milligrams or kilograms. Convert if needed (1 kg = 1000 g, 1 mg = 0.001 g).
  3. Divide the mass by the molar mass to get moles. Use the formula: moles = mass (g) / molar mass (g/mol). The result is in moles (mol).
  4. Multiply the moles by Avogadro’s number. Avogadro’s number is 6.02214076 × 1023 molecules per mole. The product is the number of molecules.
  5. Check your units. Grams cancel with grams per mole, leaving moles; then moles cancel with per mole, leaving a pure number (molecules).
  6. Round appropriately. Report your answer with the same number of significant figures as the least precise measurement (usually the mass or molar mass).

Common Mistakes

  • Using the wrong molar mass. For example, using 16 g/mol for oxygen instead of 32 g/mol for O2. Always use the molar mass of the specific particle you are counting.
  • Forgetting to convert units. If mass is given in kilograms, you must convert to grams first (1 kg = 1000 g).
  • Confusing molecules with atoms. For a diatomic element like O2, one molecule contains two atoms. If the question asks for atoms, multiply the molecule count by 2.
  • Misplacing the decimal in Avogadro’s number. Write it as 6.022 × 1023, not 6.022 × 1022.
  • Rounding too early. Round only at the final step to avoid accumulating errors.

Tips

  • Use the periodic table’s standard atomic weights (e.g., H = 1.008, C = 12.011, O = 15.999) for accurate molar masses.
  • For ionic compounds like NaCl, the term “formula units” is used instead of molecules, but the calculation is identical.
  • When doing multi-step problems, write down each conversion factor and cancel units—this prevents many errors.
  • If you have a calculator, use scientific notation for large numbers to avoid overflow.
  • Remember: 1 mole of any substance always contains exactly 6.02214076 × 1023 particles.

Troubleshooting

If your result seems off, check these:

  • Is your molar mass correct? Recalculate the sum of atomic weights, paying attention to subscripts (e.g., H2O has 2 hydrogens).
  • Did you enter the mass in grams? If you used milligrams, divide by 1000 first.
  • Did you multiply or divide correctly? A common error is multiplying mass by molar mass instead of dividing. Check: if you have 2 g of something with molar mass 58 g/mol, you should get a small number of moles (0.034), not a huge number.
  • Is your Avogadro’s number correct? It should be 6.022 × 1023, not 6.022 × 1024.
  • Does the answer make sense? A few grams of a typical substance contains around 1022 to 1023 molecules. If you get 1020 or 1026, something is wrong.

Frequently Asked Questions

Can I convert grams to molecules for any substance?

Yes, as long as you know the molar mass. The method works for elements, compounds, and even mixtures if you treat them as a pure substance with an average molar mass.

What is the difference between molecules and formula units?

Molecules refer to covalent compounds (e.g., H2O, CO2). Formula units refer to ionic compounds (e.g., NaCl) where the ratio of ions is the unit. The conversion calculation is the same.

How do I convert molecules back to grams?

Reverse the process: divide the number of molecules by Avogadro’s number to get moles, then multiply by the molar mass to get grams.

Why is Avogadro’s number so large?

It is defined as the number of atoms in exactly 12 grams of carbon-12. Because atoms are extremely small, even a tiny mass contains a huge number of particles.

Do I need to use the exact Avogadro’s number or can I round it?

For most calculations, using 6.022 × 1023 is sufficient. The exact value is 6.02214076 × 1023, but the difference is negligible in practical work.

What if the substance is a gas? Does the method change?

No, the mass-to-molecule conversion is the same. However, if you have a gas volume, you would use the ideal gas law to find moles first, then multiply by Avogadro’s number.

Related

Formula used
in m | Mass of substance | g | 2.922 | 0
in mm | Molar mass | g/mol | 58.44 | 0.001
out n | Number of molecules | molecules | (m / mm) * 6.02214076e23 | 4
out mol | Amount in moles | mol | m / mm | 4

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.

More in this section

The whole Moles & Molar Mass section →