molecalculator

Moles & Molar Mass

Convert Grams to Molecules: Step-by-Step Guide

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

The calculator on this page is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

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 molecules using molar mass and Avogadro’s number. You’ll need the chemical formula of the substance to find its molar mass, then apply a simple two-step calculation. No special equipment is required—just a periodic table and a calculator.

Formula

The conversion uses two relationships:

Step 1 – Moles from mass: n = m / M
where n is the amount in moles (mol), m is the mass in grams (g), and M is the molar mass in grams per mole (g/mol).

Step 2 – Molecules from moles: N = n × NA
where N is the number of molecules (unitless count) and NA is Avogadro’s constant, exactly 6.02214076 × 1023 mol−1.

Combined: N = (m / M) × 6.02214076 × 1023

Worked Example

Using the calculator defaults: mass = 2.922 g, molar mass = 58.44 g/mol (this is the molar mass of NaCl).

Step 1 – Moles:

n = 2.922 g / 58.44 g/mol = 0.05000 mol (rounded to 4 significant figures)

Step 2 – Molecules:

N = 0.05000 mol × 6.02214076 × 1023 mol−1 = 3.011 × 1022 molecules

The calculator gives the same result: 0.05 mol and 3.011 × 1022 molecules.

Assumptions

  • The substance is pure (no mixtures or hydrates unless accounted for in the molar mass).
  • The molar mass is the average atomic weight from the periodic table, which may vary slightly by isotope abundance.
  • The conversion works for molecules, atoms, formula units, or ions—just use the appropriate molar mass and Avogadro’s number.
  • For ionic compounds like NaCl, the term “molecules” is often replaced by “formula units,” but the calculation is identical.

When to Use This Conversion

This calculation is essential in stoichiometry, solution prep, and any lab work that requires knowing the number of particles in a weighed sample. For example, you might need to know how many molecules are in 2.922 g of NaCl to prepare a solution of known concentration, or to compare reaction yields at the molecular level.

How to Read the Result

The output is a very large number because molecules are extremely small. Scientific notation is standard: 3.011 × 1022 means 30,110,000,000,000,000,000,000 molecules. If you get a number less than 1, that indicates a fraction of a molecule—which is not physically meaningful, so check your inputs.

Common Mistakes

  • Using the wrong molar mass: For compounds, add the atomic masses of all atoms in the formula. For NaCl: 22.99 + 35.45 = 58.44 g/mol. For water (H₂O): 2×1.008 + 15.999 = 18.015 g/mol.
  • Confusing grams and moles: The molar mass is grams per mole, not grams per molecule. Always divide mass by molar mass first.
  • Forgetting Avogadro’s number: After getting moles, you must multiply by 6.022 × 1023 to get molecules. Some people stop at moles.
  • Unit mix-ups: If your mass is in milligrams or kilograms, convert to grams first (1 g = 1000 mg, 1 kg = 1000 g).
  • Rounding too early: Round only at the final step to avoid accumulating errors. Keep at least 4 significant figures in intermediate values.

Tips

  • Use a periodic table with atomic weights to at least 3 decimal places for better accuracy.
  • Write the chemical formula first and count the atoms carefully. For example, (NH₄)₂SO₄ has 2 N, 8 H, 1 S, and 4 O.
  • When working with hydrates (e.g., CuSO₄·5H₂O), include the water molecules in the molar mass.
  • Double-check your calculator entry: a missing parenthesis or a wrong exponent can change the answer by orders of magnitude.
  • For quick estimates, remember that 1 mole of any substance contains about 6 × 1023 particles.

Troubleshooting

  • Result is zero or negative: Check that the mass is positive and the molar mass is not zero. The calculator rejects non-positive inputs.
  • Result is extremely large or small: Verify the molar mass. For example, if you accidentally enter 5.844 instead of 58.44, you’ll get 10 times more moles.
  • Cannot find the molar mass: Use a reliable periodic table or an online molar mass calculator. For complex compounds, break the formula into elements and sum the contributions.
  • Getting a fraction of a molecule: This is impossible; your mass is too small for the molar mass. Increase the mass or check the units (e.g., 0.001 g is 1 mg).
  • Calculator shows “Cannot compute”: This happens if the expression tries to take a square root of a negative number, which is not the case here. If you see it, refresh and re-enter values.

Frequently Asked Questions

How many molecules are in 1 gram of water?

Molar mass of water = 18.015 g/mol. Moles = 1 g / 18.015 g/mol = 0.05551 mol. Molecules = 0.05551 × 6.022 × 1023 ≈ 3.34 × 1022 molecules.

Can I convert grams to atoms instead of molecules?

Yes. For elements, the number of atoms equals the number of molecules if the substance is monatomic (e.g., He). For diatomic elements like O₂, one molecule contains 2 atoms, so atoms = molecules × 2.

What is the difference between molar mass and molecular weight?

They are numerically the same but have different units. Molar mass is in g/mol, while molecular weight is often expressed in atomic mass units (amu or Da) per molecule. For example, water has a molecular weight of 18.015 amu and a molar mass of 18.015 g/mol.

Why do I need Avogadro’s number?

Avogadro’s number (6.022 × 1023) defines the number of particles in one mole. It bridges the macroscopic world (grams) and the microscopic world (molecules). Without it, you cannot count individual molecules from a mass measurement.

Does this conversion work for ionic compounds like NaCl?

Yes, but the term “molecules” is technically incorrect for ionic compounds. Instead, we say “formula units.” One formula unit of NaCl contains one Na⁺ and one Cl⁻. The calculation is identical.

What if my substance is a gas? Does the conversion change?

No. The mass-to-molecules conversion is independent of state. However, if you have the volume of a gas at STP, you can use the molar volume (22.4 L/mol) to find moles first, then convert to molecules.

Remember to follow your lab method, the safety data sheet (SDS), and your supervisor when performing any actual bench work.

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 moles | mol | m / mm | 4
out N | Number of molecules | molecules | n * 6.02214076e23 | 3

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 →