molecalculator

Moles & Molar Mass

Grams to Moles Practice Problems with Answers

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

Amount in moles 0.0500 mol
Number of particles
3.011 × 1022
Result, rounded to 4 decimal places
Mass of solute
2.922 g
Set in the form below
Molar mass
58.44 g/mol
Set in the form below
You enter
Mass of solute (g), Molar mass (g/mol)
You get
Amount in moles (mol), Number of particles
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 calculator converts a mass in grams to an amount in moles using the formula moles = mass ÷ molar mass, and it also gives the number of particles (atoms, molecules, or formula units) via Avogadro’s number. You enter the mass of your substance and its molar mass, and you get the mole amount and the particle count. It is a direct tool for checking your own practice problems or for quickly converting laboratory quantities.

Formula

The core conversion is:

n = m / M

  • n = amount of substance in moles (mol)
  • m = mass of the sample in grams (g)
  • M = molar mass of the substance in grams per mole (g/mol)

To get the number of particles, multiply the moles by Avogadro’s constant:

Number of particles = n × 6.02214076 × 1023 mol−1

The molar mass is the mass of one mole of a substance. For an element, it is the atomic weight from the periodic table (e.g., carbon = 12.011 g/mol). For a compound, add the atomic weights of all atoms in the formula (e.g., NaCl = 22.990 + 35.45 = 58.44 g/mol).

Worked Example

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

Step 1: Write the formula.
n = m / M = 2.922 g / 58.44 g/mol

Step 2: Divide.
n = 0.05000 mol (rounded to 4 decimal places)

Step 3: Convert to particles.
Number of particles = 0.05000 mol × 6.02214076 × 1023 mol−1 = 3.011 × 1022 formula units (rounded to 4 significant figures).

So 2.922 g of NaCl is exactly 0.0500 mol, which contains about 3.011 × 1022 sodium chloride formula units.

Assumptions

  • The molar mass you enter is correct for the substance and its isotopic composition (average atomic weights are used).
  • The substance is pure; impurities add mass without adding moles of the target material.
  • For ionic compounds like NaCl, the “particle” is the formula unit, not a molecule.
  • Avogadro’s constant is exactly 6.02214076 × 1023 mol−1 (SI definition).

How to Solve Grams-to-Moles Problems

Follow these steps for any practice problem:

  1. Identify the substance and write its chemical formula. If it’s a compound, count each element.
  2. Find the molar mass using the periodic table. Add the atomic weights of all atoms. For example, H2O: (2 × 1.008) + 15.999 = 18.015 g/mol.
  3. Write the given mass with its unit (grams).
  4. Divide mass by molar mass: moles = grams ÷ (g/mol). The grams cancel, leaving moles.
  5. Check significant figures: your answer should have no more significant figures than the least precise number in the problem.

Example: How many moles are in 50.0 g of water? Molar mass of H2O = 18.015 g/mol. Moles = 50.0 / 18.015 = 2.775 mol (3 significant figures).

Common Mistakes and How to Avoid Them

  • Using the wrong molar mass: For hydrated salts (e.g., CuSO4·5H2O), you must include the water molecules in the molar mass. Always check the formula.
  • Mixing up grams and kilograms: The formula works only if mass is in grams. If you have kilograms, multiply by 1000 first.
  • Forgetting to add all atoms: In Ca(NO3)2, there are 2 nitrogen atoms and 6 oxygen atoms, not 1 and 3. Parentheses matter.
  • Rounding too early: Keep at least one extra digit until the final answer, then round to the correct number of significant figures.
  • Confusing moles with molecules: Moles are a count of particles; 1 mol always contains 6.022 × 1023 particles, regardless of the substance.

Practice Problem Set (with Answers)

Try these on your own, then check the answers below.

  1. How many moles are in 100.0 g of sodium chloride (NaCl, M = 58.44 g/mol)?
  2. What mass of carbon dioxide (CO2, M = 44.01 g/mol) contains 0.750 mol?
  3. How many moles of glucose (C6H12O6, M = 180.16 g/mol) are in 25.0 g?
  4. How many atoms are in 2.00 g of helium (He, M = 4.003 g/mol)?
  5. What is the molar mass of calcium hydroxide, Ca(OH)2?

Answers:

  • 1. 100.0 / 58.44 = 1.711 mol (4 significant figures)
  • 2. mass = moles × molar mass = 0.750 × 44.01 = 33.0 g
  • 3. 25.0 / 180.16 = 0.1388 mol
  • 4. moles = 2.00 / 4.003 = 0.4996 mol; atoms = 0.4996 × 6.022 × 1023 = 3.01 × 1023 atoms
  • 5. Ca: 40.078, O: 2 × 15.999 = 31.998, H: 2 × 1.008 = 2.016; total = 74.092 g/mol

Why This Conversion Matters

Grams-to-moles is the bridge between the macroscopic world (weighing on a balance) and the microscopic world (counting atoms and molecules). In the lab, you rarely count particles directly; you weigh a sample. But chemical reactions happen in fixed mole ratios (from balanced equations). For example, to make 0.500 mol of a product, you need 0.500 mol of a reactant. The only practical way to measure that is to convert moles to grams using the molar mass. This conversion is also the first step in calculating molarity (moles per liter), percent composition, and empirical formulas.

Moles vs. Mass vs. Particles

It helps to see the relationships side by side:

  • Mass (g) – what you measure on a balance.
  • Moles (mol) – the chemist’s counting unit, like “dozen” but for 6.022 × 1023 items.
  • Particles – atoms, molecules, ions, or formula units. 1 mol = 6.022 × 1023 particles.

To go from mass to particles, you must go through moles. To go from particles to mass, you also go through moles. The molar mass is the conversion factor between grams and moles.

Frequently Asked Questions

How do I find the molar mass of a compound?

Add the atomic weights of all atoms in the formula. Use the periodic table. For example, H2SO4: 2×1.008 (H) + 32.06 (S) + 4×15.999 (O) = 98.08 g/mol. If the compound has a subscript outside parentheses, multiply each atom inside by that subscript.

Can I convert grams to moles without knowing the molar mass?

No. The molar mass is essential because it tells you how many grams one mole of that substance weighs. Without it, you cannot relate mass to moles. You can look up molar masses in a periodic table or calculate them from atomic weights.

What is the difference between molar mass and molecular weight?

They are numerically the same but have different units. Molecular weight is a dimensionless ratio (e.g., 18.015), while molar mass has units of g/mol (e.g., 18.015 g/mol). In practice, people use them interchangeably.

How many grams are in one mole of any substance?

It depends on the substance. One mole of carbon-12 atoms weighs exactly 12 grams. One mole of water weighs 18.015 grams. One mole of iron weighs 55.845 grams. The molar mass is unique to each substance.

Why is Avogadro’s number so large?

Avogadro’s number (6.022 × 1023) is defined so that one mole of a substance has a mass in grams equal to its atomic or molecular mass in daltons. It was chosen to make the gram a convenient laboratory unit. The number is huge because atoms are extremely small.

What if my mass is in milligrams or kilograms?

Convert to grams first. 1 kg = 1000 g, and 1 mg = 0.001 g. For example, 250 mg = 0.250 g. Then divide by the molar mass. Using the wrong mass unit is a common source of error.

Related

Formula used
in m | Mass of solute | g | 2.922 | 0
in mm | Molar mass | g/mol | 58.44 | 0.001
out n | Amount in moles | mol | m / mm | 4
out np | Number of particles | - | n * 6.02214076e23 | 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 →