Convert a mass in grams to an estimated count of atoms by using the substance’s molar mass and Avogadro’s constant. Enter the mass and the element’s molar mass to get the number of atoms; this calculation applies directly to a pure element, not to a compound unless you specify which element’s atoms to count.
Formula
First convert grams to moles, then convert moles to atoms:
Number of atoms = (mass in g ÷ molar mass in g/mol) × 6.02214076 × 1023 atoms/mol.
In symbols, N = (m / M) × NA. Here, N is the number of atoms, m is the sample mass in grams, M is the molar mass in grams per mole, and NA is Avogadro’s constant, exactly 6.02214076 × 1023 per mole. The second calculator output, n = m / M, is the amount of substance in moles.
The default molar mass, 12.011 g/mol, is the IUPAC abridged standard atomic weight for carbon. Change it to the appropriate atomic molar mass for another element. The calculator displays an atom count rounded to a whole atom; the underlying result is an estimate based on the entered mass and molar mass.
Worked Example
Using the calculator’s defaults: mass = 12.011 g and molar mass = 12.011 g/mol.
- Calculate moles: 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 zero decimal places, the result is 602,214,076,000,000,000,000,000 atoms (equivalently, 6.022 × 1023 atoms to four significant figures).
Assumptions
- The sample is a pure element, and the molar mass represents that element’s atoms.
- The stated mass and molar mass are accurate enough for the purpose; real samples may contain impurities or mixtures.
- Avogadro’s constant is exact. The calculated particle count is a mole-based estimate, not a practical count of individually observed atoms.
What You’ll Need
- The mass of the sample in grams. If your measurement is in another unit, convert it to grams first.
- The element’s molar mass in grams per mole. Use a reliable periodic table value and keep the units as g/mol.
- A calculator, or the calculator above. For a compound, you will also need its chemical formula and the number of atoms of the element in each formula unit.
Step-by-Step
- Identify which atoms you want to count. For a pure element such as carbon or copper, use that element’s molar mass. For a compound such as water, decide whether you want the total number of atoms or only atoms of a particular element. A compound’s molar mass alone gives formula units per mole, not the count of every individual atom.
- Write down the sample mass in grams. Convert other units before substituting. For example, 250 mg = 0.250 g because 1 g = 1,000 mg. Do not enter a value in milligrams as though it were grams.
- Find the appropriate molar mass. For an element, use its atomic molar mass in g/mol. For example, oxygen atoms have a molar mass of about 15.999 g/mol. For a compound, add the atomic molar masses in its formula to find the molar mass of one mole of formula units.
- Divide the mass by the molar mass. The units cancel as g ÷ (g/mol) = mol. This gives the amount of substance. For instance, 5.00 g of oxygen atoms corresponds to 5.00 ÷ 15.999 ≈ 0.3125 mol.
- Multiply the moles by Avogadro’s constant. Use 6.02214076 × 1023 particles per mole. For the oxygen example, 0.3125 mol × 6.02214076 × 1023 atoms/mol ≈ 1.882 × 1023 oxygen atoms.
- Report a sensible number of significant figures. Match the precision of the mass and molar mass rather than implying that a measured sample is exact to a single atom. The calculator’s displayed whole-number count is a rounded numerical result; scientific notation is usually easier to read.
Common Mistakes
- Skipping the mole conversion. Grams cannot be multiplied directly by Avogadro’s constant. Divide by molar mass first to convert grams to moles.
- Using the wrong molar mass. Molar mass depends on the element or compound. Check the element symbol and use g/mol, not a mass for a different substance.
- Mixing up atoms and molecules. For an element that naturally exists as molecules, such as O2, dividing by its molecular molar mass gives molecules. Multiply the molecule count by 2 if you need oxygen atoms.
- Counting atoms in a compound as if it were an element. Dividing a compound’s mass by its molar mass gives formula units or molecules. Multiply by the number of the desired atoms in each unit, or by the total atoms per unit if that is what you need.
- Rounding too early. Keep extra digits during the mole calculation and round only the final result. Premature rounding can noticeably change a very large particle count.
Tips
- Check units at every stage: grams divided by grams per mole gives moles, and moles multiplied by atoms per mole gives atoms.
- For a compound, calculate its molar mass from its formula. For example, H2O contains two hydrogen atoms and one oxygen atom per molecule; after finding molecules, multiply by 3 for total atoms, or by 2 or 1 for a specific element.
- Use the periodic-table value appropriate to the element. Standard atomic weights can reflect natural isotope mixtures, so a sample with an unusual isotope composition may have a different molar mass.
- Keep the unrounded result for follow-on calculations and state the rounding used when presenting the answer.
Troubleshooting
- The answer is much too large or small: check whether the mass was entered in grams and whether the molar mass is in g/mol. A milligram-to-gram conversion error changes the answer by a factor of 1,000.
- The answer seems to count molecules, not atoms: check whether your substance is molecular or a compound. Multiply by the number of atoms of interest in each molecule or formula unit.
- The calculator rejects an input: enter a nonnegative mass and a positive molar mass. Do not type units or commas into the numeric fields; use the displayed units and enter the value only.
- Your result differs from a textbook answer: compare the molar mass, isotope convention, unit conversions, and rounding. Small differences can come from using different atomic-weight precision.
Frequently Asked Questions
What is the formula for converting grams to atoms?
Divide grams by molar mass in g/mol, then multiply by 6.02214076 × 1023 atoms/mol.
Can I convert grams to atoms without molar mass?
No. You need the substance’s molar mass to convert its measured mass into moles.
How do I convert grams of a compound to atoms?
Divide by the compound’s molar mass to find formula units or molecules, then multiply by the number of atoms you want per unit.
Are atoms and molecules interchangeable in this calculation?
No. Avogadro’s constant counts whichever entities the molar mass describes. An O2 molar mass gives molecules; multiply by two to get oxygen atoms.
Can the answer be a fraction of an atom?
A calculation can produce a non-whole expected count because its inputs are measured or rounded. Individual atoms are discrete, so report a rounded estimate appropriate to the measurement.
Does this work for mixtures?
Not directly with one molar mass. Determine each component’s mass and molar mass separately, then calculate and combine the relevant atom counts.
Related
Formula used
in m | Mass | g | 12.011 | 0 in mm | Molar mass | g/mol | 12.011 | 0 out a | Number of atoms | atoms | m / mm * 6.02214076e23 | 0 out n | Amount of substance | mol | m / mm | 4
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
- MD Calc I:T Ratio Calculator and Explanation0.0500 ratio
- Oxygen Mass Number: Isotope Values Explained16 nucleons
- Mass-to-Light Ratio: Meaning and Calculation1.000 M☉/L☉
- M/z Ratio in Mass Spectrometry: Meaning and Calculation1,000.00 Th
- Mass Fraction to Molar Fraction Calculator
- K2 Molar Mass Calculator and Calculation78.1966 g/mol