molecalculator

Moles & Molar Mass

Grams to Moles of Atoms: Step-by-Step

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

Moles of atoms 1.0000 mol
Mass of sample
12.011 g
Set in the form below
Atomic mass
12.011 g/mol
Set in the form below
You enter
Mass of sample (g), Atomic mass (g/mol)
You get
Moles of atoms (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 shows you how to convert a mass in grams to the number of moles of atoms in a sample. You’ll need the atomic mass of the element (in grams per mole) from the periodic table. The result tells you how many moles of atoms you have, which is the bridge between the weighable world and the counting world of chemistry.

Formula

n = m / M

Where:

  • n = number of moles (mol)
  • m = mass of the sample in grams (g)
  • M = atomic mass of the element in grams per mole (g/mol)

Worked Example

Convert 12.011 g of carbon to moles of carbon atoms. Carbon’s atomic mass is 12.011 g/mol (the same number as its atomic weight, but expressed in grams per mole).

n = 12.011 g / 12.011 g/mol = 1.000 mol

The calculator gives 1.0000 mol, matching the result.

Assumptions

  • The sample is a pure element (not a compound).
  • The atomic mass used is the standard atomic weight from the periodic table (IUPAC abridged values).
  • The sample is at typical laboratory conditions; the conversion does not depend on temperature or pressure.

Step-by-Step

  1. Identify the element. Write down the chemical symbol (e.g., Fe for iron, Na for sodium).
  2. Find the atomic mass. Look up the element on a periodic table. The atomic weight is the number under the symbol, usually in atomic mass units (u). For example, carbon shows 12.011.
  3. Convert atomic mass to molar mass. The atomic mass in u is numerically equal to the molar mass in grams per mole (g/mol). So carbon’s molar mass is 12.011 g/mol.
  4. Weigh your sample. Measure the mass of the element in grams using a balance. Record the value, e.g., 24.022 g.
  5. Write the conversion factor. Use the molar mass as a fraction: 1 mol / (molar mass in g) or (molar mass in g) / 1 mol, depending on which way you need to cancel units.
  6. Set up the calculation. Multiply the mass by the conversion factor so that grams cancel: moles = mass (g) × (1 mol / molar mass (g/mol)).
  7. Do the arithmetic. Divide the mass by the molar mass. For 24.022 g of carbon: 24.022 / 12.011 = 2.000 mol.
  8. Check units and significant figures. The answer is in moles. Report it with the correct number of significant figures, matching the least precise measurement (usually the mass).

Common Mistakes

  • Using atomic number instead of atomic mass. The atomic number (number of protons) is not the mass. Always use the atomic weight.
  • Confusing grams and moles. Grams is a mass unit; moles is a count unit. The conversion factor is the molar mass.
  • Forgetting to use the molar mass for the specific element. Each element has its own atomic mass. Don’t use a generic value.
  • Rounding too early. Keep at least 4 significant figures in intermediate steps; round only at the end.
  • Mixing up the formula. The correct formula is moles = mass / molar mass. Some students invert it.

Tips

  • Memorize the relationship: 1 mole = 6.022 × 1023 particles (Avogadro’s number). This conversion is the basis for many stoichiometry problems.
  • Use a periodic table with at least 4 decimal places for accuracy, especially for elements like chlorine (35.45) or copper (63.546).
  • Write the units in every step. If the units don’t cancel to give moles, you’ve made a mistake.
  • For compounds, calculate the molar mass by summing the atomic masses of all atoms in the formula. For example, water (H₂O) has molar mass 2×1.008 + 15.999 = 18.015 g/mol.
  • Practice with everyday substances: a 12-gram carbon sample is exactly 1 mole; a 58.44 g sample of NaCl is 1 mole of formula units.

Troubleshooting

My answer seems too small or too large. Check the molar mass. For a light element like hydrogen (1.008 g/mol), 1 g is almost 1 mole. For a heavy element like lead (207.2 g/mol), 1 g is only about 0.0048 mol. Recalculate with correct values.

I can’t find the atomic mass on the periodic table. Some tables list atomic mass to 2 decimals, some to 4. Use the most precise available. If you have a compound, sum the masses of each element.

The calculator gives an error. Make sure the mass is not negative (mass cannot be negative) and the molar mass is not zero. If you entered a molar mass of 0, the division is undefined.

My result doesn’t match the worked example. Verify you used the same atomic mass (12.011 for carbon). If you used 12.01, you’ll get a slightly different answer (1.000 mol still, but with rounding).

I’m converting a compound, not an element. The same formula applies, but you need the molar mass of the compound. For example, for 18.015 g of water, moles = 18.015 / 18.015 = 1.000 mol of water molecules.

Frequently Asked Questions

Q: What is a mole exactly? A mole is a counting unit equal to 6.022 × 1023 particles (atoms, molecules, ions, etc.). It’s like a dozen (12) but much larger.

Q: Why do we use grams per mole for atomic mass? Because the atomic mass unit (u) is defined so that one mole of atoms has a mass in grams equal to the atomic mass in u. This makes conversions direct.

Q: Can I convert grams to moles for any element? Yes, as long as you know the atomic mass. The same formula works for all elements.

Q: What if I have a molecule like CO₂? You need the molar mass of the whole molecule: add the atomic masses of all atoms (C: 12.011, O: 15.999 × 2 = 31.998, total 44.009 g/mol). Then use the same formula.

Q: How do I convert moles back to grams? Multiply the number of moles by the molar mass: grams = moles × molar mass. This is the reverse operation.

Q: Does temperature or pressure affect the conversion? No, the mass-to-mole conversion for a solid or liquid sample is independent of temperature and pressure. For gases, you’d use the ideal gas law to relate volume to moles, but the mass-to-mole conversion is still the same.

Related

Formula used
in m | Mass of sample | g | 12.011 | 0
in mm | Atomic mass | g/mol | 12.011 | 0
out n | Moles of atoms | 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 →