molecalculator

Moles & Molar Mass

Molecules to Grams: Convert with Molar Mass

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

Mass 18.0146 g
Number of molecules
602200000000000027262976
Set in the form below
Molar mass
18.015 g/mol
Set in the form below
You enter
Number of molecules, Molar mass (g/mol)
You get
Mass (g)
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.

Convert the number of molecules to grams using molar mass and Avogadro’s number. Enter the number of molecules and the molar mass of the substance to find the mass in grams.

Formula

The mass in grams is calculated using the formula:

mass (g) = (number of molecules / Avogadro’s number) × molar mass (g/mol)

Where:

  • n_mol is the number of molecules (unitless)
  • Avogadro’s number = 6.02214076 × 1023 molecules per mole
  • mm is the molar mass in grams per mole (g/mol)
  • m is the resulting mass in grams (g)

An Example

Using the default values from the calculator:

  • Number of molecules = 6.022 × 1023
  • Molar mass = 18.015 g/mol (water, H₂O)

Step 1: Divide the number of molecules by Avogadro’s number:

6.022e23 / 6.02214076e23 = 0.9999766 mol

Step 2: Multiply moles by molar mass:

0.9999766 mol × 18.015 g/mol = 18.0146 g

Rounded to 4 significant figures, the result is 18.01 g.

This matches the output of the calculator, which gives 18.01 g.

Assumptions

  • The substance is pure and consists of identical molecules.
  • Avogadro’s number is exact as defined by SI (6.02214076 × 1023 mol⁻¹).
  • Molar mass is based on standard atomic weights (H = 1.008, O = 15.999).
  • No isotopic enrichment or impurities are present.

What You’ll Need

  • Number of molecules (from experiment, calculation, or given value)
  • Molar mass of the compound (g/mol), either looked up or calculated from atomic weights
  • Basic calculator or digital tool capable of scientific notation

Step-by-Step

  1. Identify the number of molecules: Obtain the exact number of molecules you are converting. This may come from a stoichiometric calculation, particle count, or Avogadro-level scaling.
  2. Determine the molar mass: Add the atomic masses of all atoms in the molecule. For example, water (H₂O) has (2 × 1.008) + 15.999 = 18.015 g/mol.
  3. Divide molecules by Avogadro’s number: Use 6.02214076 × 1023 mol⁻¹ to convert molecules to moles. This gives the amount in moles.
  4. Multiply moles by molar mass: The result is the mass in grams. Ensure units cancel correctly: (molecules) / (molecules/mol) × (g/mol) = g.
  5. Round appropriately: Match significant figures to the least precise input. If molecule count has 4 significant figures, round the final mass to 4.

Common Mistakes

  • Using an outdated or rounded value for Avogadro’s number (e.g., 6.02 × 1023 instead of 6.02214076 × 1023).
  • Confusing molar mass with molecular mass in atomic mass units (they are numerically equal but differ in units).
  • Forgetting to convert molecules to moles first, leading to off-by-1023 errors.
  • Mixing up number of atoms with number of molecules in compounds like O₂ or H₂O.
  • Using atomic weight in grams directly without scaling by Avogadro’s number.

Tips

  • Always write units at each step to track dimensional consistency.
  • For large molecule counts, use scientific notation to avoid errors.
  • Double-check molar mass by summing atomic weights from a reliable source.
  • Use the calculator above to verify manual calculations.
  • When working with ions or hydrates, include all components in molar mass (e.g., CuSO₄·5H₂O).

Troubleshooting

If your result seems too large or too small by orders of magnitude, recheck the exponent in Avogadro’s number. A common error is omitting the 1023 factor or misplacing the decimal. If the number of molecules is from a concentration and volume, ensure you multiplied correctly: moles = concentration × volume, then molecules = moles × Avogadro’s number. If molar mass seems off, verify the chemical formula and atom count. For example, glucose is C₆H₁₂O₆, not CH₂O. If the calculator returns zero or an error, ensure no input is negative and that molecule count is above zero. Follow your lab method, the safety data sheet (SDS), and your supervisor.

Frequently Asked Questions

  • Can I convert atoms to grams the same way? Yes, but only if you know how many atoms and their element. Use the atomic molar mass and the same Avogadro-based method.
  • What if I have moles instead of molecules? Multiply moles directly by molar mass to get grams—no need to use Avogadro’s number.
  • Does this work for ions or just neutral molecules? Yes, it works for any discrete particle: ions, atoms, molecules, or formula units, as long as the molar mass is correct.
  • Why is my answer slightly different from a textbook? Slight differences come from using different atomic weight values or rounding Avogadro’s number. Use IUPAC values for consistency.
  • Can this be used for polymers or large biomolecules? Yes, but you must know the exact molecular formula or average molar mass (e.g., for DNA, use bp × 617.96 + 36.04 g/mol).
  • Is molar mass the same as molecular weight? Numerically yes, but molecular weight is unitless (relative mass), while molar mass has units (g/mol).

Related

Formula used
in n_mol | Number of molecules | - | 6.022e23 | 0
in mm | Molar mass | g/mol | 18.015 | 0.001
out m | Mass | g | n_mol / 6.02214076e23 * 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 →