Count atoms and molecules by converting a measurable amount—usually mass, gas volume, or solution concentration—into moles, then multiplying by Avogadro’s constant, 6.02214076 × 1023 particles per mole. This calculator uses a sample’s mass and the substance’s molar mass; enter both in grams and grams per mole to get the number of molecules or formula units, plus the number of atoms if you specify how many of that atom each particle contains.
Formula
First find the amount of substance: n = m / M. Then find the number of particles: N = n × NA. For a specified element in the particle, find its atom count with Natoms = N × a.
- m is the sample mass in grams (g).
- M is the molar mass in grams per mole (g/mol).
- n is the amount of substance in moles (mol).
- N is the number of molecules, atoms, or formula units, depending on what one particle means for the sample.
- NA is Avogadro’s constant, exactly 6.02214076 × 1023 mol−1.
- a is the number of atoms of the selected element in one particle.
The calculator’s particle output means molecules for a molecular substance such as water. For an ionic solid such as sodium chloride, it means formula units, not discrete NaCl molecules. The last output is a count of atoms of the selected element; to count a different element, use that element’s subscript in the chemical formula.
Worked Example
For 18.015 g of water, use the default molar mass of 18.015 g/mol and 3 oxygen atoms per water molecule (one oxygen atom plus two hydrogen atoms makes three atoms total; for oxygen specifically, the coefficient should be 1). The calculator’s “selected-element atoms” input must therefore represent the count for the element you are counting. To demonstrate the default as entered, a=3 gives the total number of atoms per molecule, not oxygen atoms.
- Amount: n = 18.015 g / (18.015 g/mol) = 1.0000 mol.
- Particles: N = 1.0000 mol × 6.02214076 × 1023 mol−1 = 6.022 × 1023 particles, rounded to zero decimal places in the calculator display.
- Atoms counted by the final output: 6.02214076 × 1023 × 3 = 1.807 × 1024 atoms (three total atoms per molecule).
For oxygen atoms alone, set a to 1: the answer is 6.022 × 1023 oxygen atoms. For hydrogen atoms, set a to 2: the answer is 1.204 × 1024 hydrogen atoms. This illustrates why the atom count depends on which element—or whether all atoms—you mean.
Assumptions
- The sample is pure, and its stated mass and molar mass refer to the same chemical substance.
- The molar mass is appropriate for the substance’s formula and isotopic composition; ordinary calculations generally use standard atomic weights.
- The material is counted as intact particles with the stated formula. The calculator does not account for mixtures, chemical reactions, impurities, or dissociation.
- “Atoms of selected element” is a user-supplied count per particle. Use a subscript from the chemical formula, or use the total number of atoms per particle if counting all atoms.
From a Chemical Formula to an Atom Count
A chemical formula tells you how many atoms of each element are in one molecule or formula unit. In H2O, each molecule contains two hydrogen atoms and one oxygen atom, for three atoms total. In CO2, each molecule contains one carbon atom and two oxygen atoms. A coefficient in a balanced equation multiplies the entire formula: 3CO2 represents three molecules, containing three carbon atoms and six oxygen atoms.
To calculate a molar mass, add the atomic masses for every atom shown in the formula. Using standard abridged atomic weights, water is about 2(1.008) + 15.999 = 18.015 g/mol. Carbon dioxide is about 12.011 + 2(15.999) = 44.009 g/mol. Use the molar mass of the complete compound—not the atomic mass of just one element—when converting a compound’s mass to moles.
Other Ways to Find the Amount
Mass is not the only route to particle counts. The essential step is to determine moles first, using data appropriate to the sample:
- Solutions: if concentration is in mol/L and volume is in liters, n = cV. For example, 0.20 mol/L × 0.050 L = 0.010 mol. Multiply by Avogadro’s constant to obtain particles of solute. Use the volume of the solution, not the volume of solvent added.
- Gases: measured pressure, volume, and temperature can be used with the ideal gas law, PV = nRT. Real gases may deviate from this model, especially at high pressure or low temperature. Pressure and temperature must be absolute, and units must match the selected gas constant.
- Elemental samples: divide the mass by the element’s molar mass to find moles of atoms. For a substance that exists as diatomic molecules, such as O2, decide whether the requested count is molecules or individual atoms; one molecule contains two atoms.
In a laboratory, a balance measures mass rather than individual particles. For a bench calculation, follow your lab method, the safety data sheet (SDS), and your supervisor.
What the Count Means—and Its Limits
Avogadro’s constant is the conversion between a mole and a specified number of entities. A “particle” must be defined: it could mean atoms, molecules, ions, or formula units. It does not mean that every substance consists of separate molecules. Ionic crystals, for instance, are described by repeating formula units; a bulk solid has no isolated NaCl molecule for each unit in the same sense that a water sample contains individual H2O molecules.
Calculated counts are usually enormous and are estimates based on measured inputs, even though Avogadro’s constant is exact. A rounded mass, an impure sample, uncertainty in a balance reading, or an incorrect formula affects the result. Avoid reporting more meaningful precision than the measurements support. Rounding the displayed particle count to a whole number does not make the underlying measurement exact.
Another common misconception is that counting atoms in a compound only requires multiplying the sample’s mass by a subscript. It does not: first convert mass to moles of compound using the full molar mass, then multiply by Avogadro’s constant and the relevant subscript. Skipping the mole conversion mixes incompatible quantities.
Frequently Asked Questions
How many atoms are in one mole?
One mole contains exactly 6.02214076 × 1023 specified entities. If those entities are atoms, that is the number of atoms; if they are molecules, each molecule may contain multiple atoms.
How do I count molecules from grams?
Divide the mass in grams by the substance’s molar mass in g/mol to get moles, then multiply by 6.02214076 × 1023 molecules per mole. Make sure the molar mass is for the complete molecule.
How do I count atoms in a molecule?
Read the subscripts in the chemical formula and add them for a total atom count. To count just one element, use that element’s subscript; an omitted subscript means one.
Are atoms and molecules the same kind of particle?
No. An atom is a single atom of an element; a molecule is a group of atoms bonded together. Some substances are better counted as ions or formula units rather than molecules.
Can I count atoms directly without using moles?
Not for a typical macroscopic sample. Individual particles are too small and numerous to count one by one, so measurements such as mass are converted to moles and then to particles.
Related
Formula used
in m | Sample mass | g | 18.015 | 0 in mm | Molar mass | g/mol | 18.015 | 0 in a | Atoms of selected element per particle | atoms/particle | 3 | 0 out n | Amount of substance | mol | m / mm | 4 out p | Number of particles | particles | n * 6.02214076e23 | 0 out at | Number of selected-element 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
- Cell Culture Doubling Time Equation and Calculator24.00 h
- Cell Culture Seeding Density Calculator and Formula4,000.00 cells/cm^2
- Cell Culture Doubling Time Calculator and Formula24.00 h
- CFU From Dilution: Calculate Colony-Forming Units10,000,000 CFU/mL
- Cell Culture Doubling Time Calculator and Formula24.00 h
- Zero Order Release Kinetics Calculator and Explanation5.000 mg/h