molecalculator

Moles & Molar Mass

Grams to Moles to Molecules to Atoms Calculator

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

Amount of substance 1.0000 mol
Molecules or formula units
6.022 × 1023 particles
Result, rounded to a whole number
Total atoms
1.807 × 1024 atoms
= Molecules or formula units × Atoms per molecule or formula unit
Sample mass
18.015 g
Set in the form below
You enter
Sample mass (g), Molar mass (g/mol), Atoms per molecule or formula unit (atoms/particle)
You get
Amount of substance (mol), Molecules or formula units (particles), Total atoms (atoms)
Rounding
4 dp · 0 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 sample’s mass in grams into moles, molecules or formula units, and atoms using its molar mass and chemical formula. Enter the mass, molar mass, and number of atoms per particle; the results show how much substance you have and how many particles and atoms that represents.

Formula

The conversion follows three steps: divide mass by molar mass to find moles, multiply moles by Avogadro’s constant to find particles, then multiply the particle count by the number of atoms in each particle.

  • Amount: n = m / M, where n is amount in moles (mol), m is sample mass in grams (g), and M is molar mass in grams per mole (g/mol).
  • Particles: N = n × NA, where N is the number of molecules or formula units and NA = 6.02214076 × 1023 particles/mol, exactly.
  • Total atoms: A = N × k, where A is the total number of atoms and k is the number of atoms in each molecule or formula unit.

Combining the steps gives N = (m / M) × 6.02214076 × 1023 and A = (m / M) × 6.02214076 × 1023 × k. The calculator treats the sample as a single pure substance and uses the particle’s stated chemical formula.

Worked Example

For water, H2O, use the default sample mass of 18.015 g and molar mass of 18.015 g/mol. Each water molecule contains two hydrogen atoms and one oxygen atom, so k = 3.

  1. Find moles: n = 18.015 g / 18.015 g/mol = 1.0000 mol.
  2. Find molecules: N = 1.0000 mol × 6.02214076 × 1023 molecules/mol ≈ 6.022 × 1023 molecules.
  3. Find atoms: A = 6.02214076 × 1023 molecules × 3 atoms/molecule ≈ 1.807 × 1024 atoms.

The particle count is the number of water molecules, not the number of atoms. The total-atom result is three times as large because every molecule contains three atoms.

Assumptions

  • The sample is pure and its mass and molar mass refer to the same chemical substance.
  • The entered molar mass is appropriate for the compound’s formula and is expressed in g/mol.
  • The atom count per particle is a positive whole number and applies to each molecule or formula unit.
  • Particle counts are mathematical counts; the calculator does not account for impurities, mixtures, isotopic composition, or measurement uncertainty.

How to Choose the Molar Mass and Particle Count

Molar mass is the mass of one mole of a substance. For a molecular compound, calculate it by adding the atomic masses of every atom in its formula. For water, using standard atomic weights H = 1.008 and O = 15.999 gives 2(1.008) + 15.999 = 18.015 g/mol. For carbon dioxide, CO2, the calculation is 12.011 + 2(15.999) = 44.009 g/mol.

Use the full formula, including subscripts and parentheses. In Ca(OH)2, for example, there is one calcium atom, two oxygen atoms, and two hydrogen atoms: five atoms per formula unit. Its molar mass is approximately 74.092 g/mol using Ca = 40.078, O = 15.999, and H = 1.008. The particle-count input should therefore be 5.

For ionic substances such as sodium chloride, the smallest formula unit is not a discrete molecule in the solid. The calculation still works, but the chemically precise result is formula units rather than molecules. NaCl has two atoms per formula unit. For a compound with a polyatomic ion, count every atom shown in the complete formula unit.

When to Use Each Conversion

Use grams to moles when a reaction equation, concentration calculation, or other chemistry problem requires amount of substance rather than mass. Use moles to particles when a question asks how many molecules or formula units are present. Multiply by atoms per particle only when the question asks for individual atoms. If it asks for atoms of one element specifically, multiply by the number of that element’s atoms in each particle instead of by the total atom count.

For example, one mole of H2O contains 6.02214076 × 1023 water molecules. It contains twice that many hydrogen atoms and the same number of oxygen atoms. It has three times the molecule count in total atoms. These are different quantities, so identify the requested entity before choosing a result.

Common Mistakes and Limits

  • Confusing molar mass with sample mass: grams are divided by grams per mole. A value in kg/mol must first be converted to g/mol, or the inputs will not be consistent.
  • Using the wrong formula: hydrates, salts, and compounds with parentheses may have more atoms or a different molar mass than a simplified formula suggests.
  • Calling every particle a molecule: ionic solids are counted in formula units; atoms, ions, and molecules are distinct kinds of particles.
  • Rounding too early: keep several digits through the calculation, then round the final result to a precision justified by the measured mass and molar mass. Avogadro’s constant is exact, but experimental measurements are not.

The calculator gives an ideal count based on the entered values. If a sample is a mixture, its components require separate masses and molar masses; one molar mass cannot describe the whole mixture. A weighed sample may also contain moisture or impurities, so its actual amount of the target substance can be lower than the calculation assumes. For bench work, follow your lab method, the safety data sheet (SDS), and your supervisor.

Frequently Asked Questions

How do I convert grams to moles?
Divide the mass in grams by the substance’s molar mass in g/mol. For example, 10.0 g of a substance with a molar mass of 50.0 g/mol is 0.200 mol.

How many molecules are in one mole?
One mole contains exactly 6.02214076 × 1023 specified particles. Those particles can be molecules, atoms, ions, or formula units, depending on the substance.

How do I convert moles to atoms?
Multiply moles by Avogadro’s constant to get particles, then multiply by the number of atoms in each particle. For an element that exists as single atoms, the second multiplier is 1.

How many atoms are in one molecule?
Read the chemical formula and add the subscripts, counting an element with no subscript as one. H2O has 3 atoms; CO2 also has 3. Parentheses multiply the atoms inside them.

What is the difference between molecules and formula units?
A molecule is a bonded group of atoms with a discrete molecular identity. An ionic solid is usually described by a repeating ratio of ions, so calculations count formula units rather than separate molecules.

Why can the calculator show a huge atom count?
A mole represents about 6.022 × 1023 particles, so even a small mass can correspond to an enormous number of molecules and atoms. Scientific notation makes these counts readable.

Related

Formula used
in m | Sample mass | g | 18.015 | 0
in mm | Molar mass | g/mol | 18.015 | 0
in a | Atoms per molecule or formula unit | atoms/particle | 3 | 1
out n | Amount of substance | mol | m / mm | 4
out p | Molecules or formula units | particles | n * 6.02214076e23 | 0
out t | Total atoms | atoms | p * a | 0

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 →