A counting-atoms calculator turns a chemical formula and a sample amount into the number of atoms present. Enter the formula’s atom counts and the amount in moles; the calculator returns total atoms, using Avogadro’s constant and the formula’s subscripts.
Formula
For a pure substance with a known chemical formula, the number of atoms is Natoms = n × a × NA. Here, n is the amount of substance in moles, a is the number of atoms in one molecule or formula unit, and NA is Avogadro’s constant, exactly 6.02214076 × 1023 mol−1. The helper output, formula units, is Nunits = n × NA. The calculator’s atom-count input must include every atom represented by the formula, not just atoms of one element.
This version is useful when the total atom count per molecule or formula unit is already known. For an element-specific count, multiply by the number of that element’s atoms in each unit instead. For example, each water molecule, H2O, contains three atoms in total but two hydrogen atoms and one oxygen atom.
Worked Example
The defaults represent 1 mol of a substance with 3 atoms per formula unit.
- Formula units = 1 mol × 6.02214076 × 1023 mol−1 = 6.02214076 × 1023 units.
- Total atoms = 1 mol × 3 atoms/unit × 6.02214076 × 1023 mol−1 = 1.806642228 × 1024 atoms.
- Rounded to the calculator’s zero decimal places, the total is 1.806642228 × 1024 atoms.
Assumptions
- The entered amount is in moles, and the atom count per unit is an exact count from the formula.
- The sample is treated as the specified pure substance; impurities, mixtures, and formula units of varying composition are not represented.
- Avogadro’s constant is exact in the SI definition, but measured sample amounts can have uncertainty.
How to Read a Chemical Formula
Subscripts show how many atoms of an element occur in one molecule or formula unit. No written subscript means one. Thus CO2 contains one carbon and two oxygen atoms, or three total; C6H12O6 contains 6 + 12 + 6 = 24 atoms per molecule. A coefficient in front multiplies the entire formula: 2 H2O represents two molecules and four hydrogen atoms plus two oxygen atoms, six atoms altogether.
Parentheses also multiply what is inside them. In Ca(OH)2, there is one calcium, two oxygen atoms, and two hydrogen atoms, for five atoms total. In Al2(SO4)3, the count is 2 aluminum + 3 sulfur + 12 oxygen = 17 atoms per formula unit. To use the calculator, sum those counts and enter 17 for the atom count input.
For a hydrated compound such as CuSO4·5H2O, count atoms in both parts: the formula unit has 1 Cu, 1 S, 9 O, and 10 H, or 21 atoms. Do not mistake the dot and following number for a decimal; it indicates water of crystallization in the formula.
Using the Calculator and Choosing the Count
First identify the substance and the quantity you want to count. Convert a mass to moles using the molar mass if necessary: n = mass / molar mass, with mass in grams and molar mass in g/mol. This calculator starts after that conversion, so do not enter grams in the mole field.
- For a molecular substance, count every atom in one molecule.
- For an ionic solid, count atoms in the formula unit; an ionic solid is not made of discrete molecules in the same way as a molecular substance.
- For one element within the substance, use that element’s subscript as the atoms-per-unit value instead of the total atom count.
- For a mixture, calculate each component separately and add the resulting counts if the mixture’s composition is known.
For example, 0.250 mol of water contains 0.250 × 6.02214076 × 1023 = 1.50553519 × 1023 water molecules. Since each molecule has three atoms, it contains 4.51660557 × 1023 atoms total. The hydrogen-atom count is twice the molecule count, while the oxygen-atom count is equal to the molecule count.
Common Counting Errors and Limits
A frequent mistake is confusing molecules or formula units with atoms. One mole of water is one mole of molecules, not one mole of atoms: it contains three moles of atoms in total. Another error is overlooking parentheses, coefficients, or a hydrate portion. Write out the element-by-element count before entering the total.
Significant figures matter. Avogadro’s constant is exact, but the measured amount may not be. A sample reported as 0.25 mol supports fewer meaningful digits than the constant itself, so a long calculator result should not be mistaken for experimental precision. Rounding the final display does not change the underlying calculation.
The formula assumes that each counted unit has the stated composition. It does not determine sample purity, chemical identity, or the fraction of a component in a mixture. Isotopes do not change the number of atoms in a formula, though they affect mass. For gases, the calculation also does not require an ideal-gas assumption: use a known amount in moles rather than estimating moles from volume unless the relevant conditions and gas model are established.
Frequently Asked Questions
How do you count atoms from a chemical formula?
Multiply each element’s subscript by any subscript outside its parentheses, then add the element counts. Treat an omitted subscript as one, and apply any leading coefficient to the whole formula.
How many atoms are in one mole?
One mole contains exactly 6.02214076 × 1023 specified entities. Those entities may be atoms, molecules, or formula units; for a compound, multiply the number of entities by the atoms in each one to get total atoms.
How many atoms are in one molecule of water?
H2O has two hydrogen atoms and one oxygen atom, so one molecule contains three atoms. A mole of water molecules therefore contains three moles of atoms in total.
Do ionic compounds have molecules?
Many ionic solids are described by formula units, the simplest whole-number ratio of ions, rather than individual molecules. Counting atoms from a formula unit still uses the same multiplication by Avogadro’s constant.
Can I calculate atoms from grams?
Yes. First divide the sample mass in grams by its molar mass in g/mol to obtain moles. Then use the formula’s atom count and Avogadro’s constant to calculate atoms.
Related
Formula used
in n | Amount of substance | mol | 1 | 0 in a | Atoms per formula unit | atoms | 3 | 1 out atoms | Number of atoms | atoms | n * a * 6.02214076e23 | 0 out units | Number of formula units | units | 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
- Liters to Cubic Meters: Conversion and Examples0.001000 m³
- Normal Cubic Meter to Liters Calculator1,000.00 L
- Qt to Liters Conversion: US and Imperial Quarts0.946353 L
- Meters to Liters Formula: Convert Length to Volume?1,000.000 L
- Meters to Litres: Why Length Alone Is Not Enough1,000.00 L
- Cubic Meters per Hour to Liters per Second0.2778 L/s