The number of atoms equation is N = n × NA: multiply the amount of substance, n in moles, by Avogadro’s constant, NA = 6.02214076 × 1023 particles per mole. Enter a sample’s mass and molar mass to calculate its atom count; the result is an estimate of the number of atoms represented by that sample.
Formula
The calculator applies these equations:
- n = m / M, where m is sample mass in grams (g), M is molar mass in grams per mole (g/mol), and n is amount of substance in moles (mol).
- N = n × NA, where N is the number of atoms and NA is Avogadro’s constant, exactly 6.02214076 × 1023 mol−1.
Combining them gives N = (m / M) × 6.02214076 × 1023. The calculator’s first result is the atom count. It also shows n as a helpful intermediate value. A number of atoms is a count, so it has no physical unit, although “atoms” is displayed for clarity.
Worked Example
The defaults use 12.011 g of carbon and a molar mass of 12.011 g/mol.
- Calculate the amount: n = 12.011 g / 12.011 g/mol = 1 mol.
- Multiply by Avogadro’s constant: N = 1 mol × 6.02214076 × 1023 atoms/mol = 6.02214076 × 1023 atoms.
- Rounded to the calculator’s displayed zero decimal places, the result is approximately 602,214,076,000,000,000,000,000 atoms.
The exact defined constant is used in the calculation; the sample’s measured mass and the molar mass entered determine the practical precision of the answer.
Assumptions
- The entered mass is the mass of the substance being counted, and its molar mass matches its chemical formula and composition.
- The calculation treats the sample as pure. Impurities, moisture, or a mixture can change the number of atoms belonging to the substance of interest.
- For compounds, the output is the total number of atoms of all elements in the compound’s formula units, not the number of molecules or formula units. This calculator does not multiply by the number of atoms in each formula unit.
Counting Atoms in Elements and Compounds
The phrase “number of atoms” can refer to different counts. For a sample of a pure element, the mole calculation directly gives the number of atoms. For a molecular substance, it first gives the number of molecules; for an ionic solid, it gives the number of formula units. To get the total number of atoms in either case, multiply the number of molecules or formula units by the number of atoms in one of them.
For example, one mole of water contains 6.02214076 × 1023 water molecules. Each H2O molecule contains three atoms, so one mole of water contains 3 × 6.02214076 × 1023 total atoms. It contains twice that many hydrogen atoms and one mole’s worth of oxygen atoms. A formula-unit calculation for a compound follows the same logic: count the atoms specified by the formula.
To make the calculator report total atoms in a compound, multiply its atom-count result by the total number of atoms in one molecule or formula unit. To find atoms of a particular element, multiply the number of molecules or formula units by that element’s subscript. For example, each CO2 molecule has two oxygen atoms. The element-specific calculation should use the number of molecules, not an already expanded total-atom count.
How to Choose the Molar Mass
Molar mass depends on the chemical formula. For a compound, add the standard atomic weights of all atoms in its formula, including repeated atoms indicated by subscripts. For water, using H = 1.008 g/mol and O = 15.999 g/mol gives M = 2(1.008) + 15.999 = 18.015 g/mol. Enter the molar mass in g/mol; do not enter a molecular mass in atomic mass units as if it were a sample’s molar mass in grams.
For elements with naturally occurring isotopes, tabulated standard atomic weights reflect the element’s isotopic composition and can be reported as intervals or conventional values. A sample enriched in a particular isotope may have a different molar mass. If the substance is a hydrate, salt, or other specified form, use the formula for the actual form present. A wrong formula or molar mass produces a proportionally wrong atom count.
Reading the Result and Avoiding Errors
Atom counts in ordinary samples are enormous, so scientific notation is often the clearest way to write them. For instance, 6.022 × 1023 is the same quantity as 602,200,000,000,000,000,000,000. A displayed count may be rounded for readability; the digits shown should not be mistaken for greater experimental certainty than the input measurements support.
- Match units: if mass is entered in grams, molar mass must be in g/mol. Convert milligrams to grams by dividing by 1,000, or kilograms to grams by multiplying by 1,000, before using the formula.
- Distinguish atoms from molecules: one mole is a count of 6.02214076 × 1023 specified entities. Those entities may be atoms, molecules, ions, or formula units; they are not automatically individual atoms.
- Use the full chemical formula: subscripts affect molar mass and the number of each kind of atom per molecule or formula unit.
- Consider sample composition: a mixture’s total mass cannot be treated as the mass of one pure substance unless the relevant fraction is known.
A mole is a counting unit, much like a dozen, but vastly larger. Its definition fixes the number of specified entities in exactly one mole; the mass of a mole varies with the identity and isotopic composition of those entities. This is why mass alone is not enough to calculate an atom count: the molar mass is also needed.
Frequently Asked Questions
What is the equation for number of atoms?
For an element, use N = n × 6.02214076 × 1023, with n in moles. If you know mass instead, calculate moles first: n = mass in grams / molar mass in g/mol.
How do I calculate atoms from grams?
Divide the mass in grams by the substance’s molar mass in g/mol, then multiply the result by Avogadro’s constant. For a compound, multiply by its atoms per molecule or formula unit if you need the total number of individual atoms.
How many atoms are in one mole?
One mole contains exactly 6.02214076 × 1023 specified entities. It contains that many atoms only when the entities counted are atoms; one mole of a molecular compound contains that many molecules.
How do I find the number of atoms in a molecule?
Add the subscripts in the chemical formula, treating an element with no subscript as one atom. For H2O, the total is 2 + 1 = 3 atoms per molecule.
Can I calculate atoms without molar mass?
Not from mass alone. You need the substance’s identity or another way to determine the number of moles, such as a direct particle count. Different substances have different molar masses, so equal masses do not generally contain equal numbers of atoms.
Related
Formula used
in m | Sample mass | g | 12.011 | 0 in mm | Molar mass | g/mol | 12.011 | 0.001 out n | Amount of substance | mol | m / mm | 6 out N | Number of atoms | atoms | n * 6.02214076e23 | 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
- Skip Calculator for Soil: What It Can and Can’t Do7.500 m³
- USD to KPW Calculator: Convert Dollars to North Korean Won90,000.00 KPW
- OK Calculator on TV on the Radio? Meaning Explained
- Pension Calculator KP: Estimate Your Pension Benefits
- Neonatal Kp Calculator: What It Means80.0000 mmol/mmol
- Newton to kp Converter Calculator and Formula1.0000 kp