To find the number of atoms, multiply the amount in moles by Avogadro’s constant: atoms = moles × 6.02214076 × 1023. If you know a sample’s mass instead, first divide its mass in grams by its molar mass in grams per mole, then multiply by Avogadro’s constant.
Formula
The calculator uses the mass-to-moles relation followed by the mole-to-particles relation:
N = (m / M) × NA
- N is the number of atoms, reported as a count of atoms.
- m is the sample mass in grams (g).
- M is the substance’s molar mass in grams per mole (g/mol).
- NA is Avogadro’s constant, exactly 6.02214076 × 1023 mol−1.
Dividing grams by grams per mole gives moles: (g)/(g/mol) = mol. Multiplying moles by atoms per mole then gives the atom count. If the amount in moles is already known, use the shorter formula N = n × NA, where n is the amount in mol.
Worked Example
For the calculator’s defaults, the sample mass is 12 g and the molar mass is 12.011 g/mol, the standard atomic weight used here for carbon.
- Find the amount in moles: n = m / M = 12 g / (12.011 g/mol) ≈ 0.999083 mol.
- Multiply by Avogadro’s constant: N = 0.999083 mol × 6.02214076 × 1023 atoms/mol ≈ 6.016616 × 1023 atoms.
- Rounded to the calculator’s zero decimal places, the result is 601661600000000000000000 atoms (about 6.016616 × 1023 atoms).
The matching amount output is 0.999083 mol. The atom count is not a practical tally of individually observed atoms; it is a calculated count based on the measured mass and the chosen molar mass.
Assumptions
- The sample is treated as pure carbon, with molar mass 12.011 g/mol.
- The entered mass is the mass of the sample, not the mass of a solution containing it.
- The calculation uses the standard definition of the mole and Avogadro’s exact constant.
- The result is an ideal calculated count; measurement uncertainty in the mass or composition is not included.
How to Use the Atom-Count Formula
Use the mass-based calculator when you know how many grams of an element or compound you have. Enter that mass and its molar mass. The calculator reports the estimated number of atoms represented by the sample, along with the amount in moles.
Molar mass is substance-specific. For a pure element, use its atomic molar mass. For a compound, add the atomic molar masses of all atoms in its chemical formula, accounting for subscripts. For example, water, H2O, has a molar mass of approximately 18.015 g/mol: two hydrogen atoms contribute 2 × 1.008 and one oxygen atom contributes 15.999.
If you already know moles, skip the mass conversion. For 0.25 mol of an element, N = 0.25 × 6.02214076 × 1023 = 1.50553519 × 1023 atoms. Keep units visible while calculating: mol cancels mol−1, leaving a count.
Atoms, Molecules, and Formula Units
A frequent source of error is confusing the number of particles with the number of atoms. Avogadro’s constant converts moles of a specified entity into the number of those entities. The entity might be an atom, molecule, ion, or formula unit; it is not automatically an atom.
- One mole of helium atoms contains 6.02214076 × 1023 helium atoms.
- One mole of oxygen molecules, O2, contains 6.02214076 × 1023 molecules, or twice that many oxygen atoms.
- One mole of water molecules contains 6.02214076 × 1023 molecules and three times as many atoms in total, because each molecule has two hydrogen atoms and one oxygen atom.
For ionic substances such as sodium chloride, chemists commonly count formula units rather than separate molecules. To find the total number of atoms in a compound, multiply the number of molecules or formula units by the number of atoms in each entity. To find one element’s atoms, multiply by that element’s subscript; in water, the hydrogen count is twice the molecule count.
Choosing Molar Mass and Checking the Result
Use a molar mass that matches the actual chemical formula and the requested entity. For a compound, calculate its formula mass from standard atomic weights and express the result in g/mol. If the sample is a mixture, impure material, or solution, its total mass alone is not enough: you also need the amount or mass fraction of the particular substance being counted.
Check these common pitfalls before trusting the result:
- Mass units: convert milligrams to grams by dividing by 1,000, and kilograms to grams by multiplying by 1,000. The calculator’s mass input is in grams.
- Molar-mass units: use g/mol with a mass in grams. A value in kg/mol must be converted to g/mol, or the units will not cancel as intended.
- Chemical formula: include every subscript. Using the atomic molar mass for a diatomic molecule or a compound gives the wrong mole amount.
- Rounding: keep extra digits during intermediate steps and round at the end. The calculator shows a whole-number atom count, but the displayed precision does not mean the original mass was measured that precisely.
For the carbon example, the molar mass 12.011 g/mol is the abridged standard atomic weight convention used for this calculation. Real samples and reference values may involve isotope composition and measurement uncertainty; the formula itself does not remove those uncertainties.
What the Result Can—and Cannot—Tell You
The result is a stoichiometric estimate: it tells you how many atoms correspond to the entered amount under the stated composition and molar-mass assumptions. It does not identify the sample, establish its purity, or measure atoms one by one. A mass reading with limited precision, an incorrect formula, or an unsuitable molar mass can dominate the uncertainty.
For a compound, be explicit about whether you want molecules, total atoms, or atoms of a particular element. For an element that exists as molecules, such as O2, a mole of the substance means a mole of molecules unless the question specifically asks for atoms. Convert from molecules to atoms using the number of atoms per molecule.
Frequently Asked Questions
What is the formula to find atoms from moles?
Multiply moles by Avogadro’s constant: atoms = moles × 6.02214076 × 1023. Confirm that the moles refer to atoms themselves, not molecules or formula units, if you need an atom count.
How do I find atoms from grams?
Divide the mass in grams by the substance’s molar mass in g/mol to get moles, then multiply by Avogadro’s constant. In one expression: atoms = (grams / molar mass) × 6.02214076 × 1023.
How many atoms are in one mole?
One mole of a specified kind of atom contains exactly 6.02214076 × 1023 atoms. One mole of molecules contains that many molecules, and the total atom count depends on each molecule’s formula.
How do I find the number of atoms in a molecule?
Add the subscripts in the chemical formula, treating a missing subscript as one. For H2O, each molecule contains three atoms in total; for a count of one element, use only that element’s subscript.
Can I calculate atoms from a solution’s total mass?
Not from total solution mass alone. You need the amount or concentration of the target substance and enough information about the solution volume or composition to determine how much of that substance is present.
Related
Formula used
in m | Sample mass | g | 12 | 0 in mm | Molar mass | g/mol | 12.011 | 0.001 out n | Number of atoms | atoms | (m / mm) * 6.02214076e23 | 0 out mol | Amount of substance | mol | m / mm | 6
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
- Isotope Percent Abundance Calculator and How to Use It75.91 %
- Percentage Abundance Calculator and How to Find It
- Isotope Fractional Abundance Calculator and Formula0.2409 fraction
- Percent Abundance Formula: Calculate Isotope Percentages25.00 %
- Isotope Percent Abundance Calculator and How to Use It50.00 %
- Isotope Percent Abundance Calculator and How-To Guide75.91 %