Connect via MCP →

Enter Calculation

Formula

Advertisement

Results

Number of Atoms
501,385,459,995,004,600,000,000
atoms (or molecules)
Moles 0.83257 mol
Avogadro's Number 6.02214076 × 1023 /mol

What Is the Grams to Atoms Calculator?

This calculator converts a mass of a substance (in grams) into the number of atoms or molecules it contains. It bridges the everyday world of measurable mass with the microscopic world of individual particles, a fundamental skill in chemistry known as the mole concept.

How to Use It

Enter two values: the mass of your sample in grams, and the molar mass of the substance in grams per mole (g/mol). For an element, the molar mass is its atomic weight from the periodic table (e.g. carbon = 12.011 g/mol). For a compound, sum the atomic weights of all atoms in the formula. Click calculate to get the number of atoms (or molecules for compounds) and the equivalent moles.

The Formula Explained

The conversion uses the equation $$N = \frac{m}{M} \times N_A$$ where m is the mass in grams, M is the molar mass in g/mol, and \(N_A\) is Avogadro's number, \(6.02214076 \times 10^{23}\) particles per mole. First divide mass by molar mass to get the number of moles, then multiply by Avogadro's number to get the particle count.

Flat diagram showing grams converting to moles then to atoms
Mass is divided by molar mass to get moles, then multiplied by Avogadro's number to get atoms.

Worked Example

How many atoms are in 24.022 g of carbon? Carbon's molar mass is 12.011 g/mol. Moles = \(24.022 / 12.011 = 2\) mol. Atoms = $$2 \times 6.02214076 \times 10^{23} = 1.2044 \times 10^{24} \text{ atoms}$$

Worked example diagram of converting a sample mass into number of atoms
A worked example: a known mass and molar mass yield the atom count via Avogadro's number.

FAQ

Does this give atoms or molecules? For pure elements it gives atoms; for compounds it gives molecules (or formula units), since the molar mass corresponds to one mole of those particles.

What is molar mass? It is the mass of one mole of a substance, numerically equal to the atomic or molecular weight expressed in g/mol.

Why is Avogadro's number used? One mole always contains exactly \(6.02214076 \times 10^{23}\) particles, the defined link between moles and individual particles.

Last updated: