Convert a number of atoms into their mass by using Avogadro’s constant and the substance’s molar mass. Enter the atom count and molar mass to calculate the mass in grams, along with the equivalent in milligrams. This is a calculation for a specified element or compound, not a way to identify an unknown substance.
Formula
First convert atoms to moles by dividing the atom count by Avogadro’s constant. Then multiply the number of moles by the molar mass:
Mass (g) = atom count (atoms) ÷ Avogadro’s constant (atoms/mol) × molar mass (g/mol)
In symbols, m = (N ÷ NA) × M, where m is mass in grams, N is the number of atoms, NA is Avogadro’s constant, and M is molar mass in grams per mole. The exact Avogadro constant is 6.02214076 × 1023 atoms/mol. The calculator’s second output converts grams to milligrams using 1 g = 1000 mg.
The molar mass depends on the substance. For a pure element, use its atomic weight expressed in g/mol; for a compound, add the atomic weights of all atoms in its chemical formula. The default, 12.011 g/mol, is the IUPAC abridged standard atomic weight for carbon. For an individual isotope or a substance with a specified isotopic composition, use the corresponding molar mass rather than assuming the standard value.
Worked Example
Use the calculator’s default inputs: 6.02214076 × 1023 carbon atoms and a carbon molar mass of 12.011 g/mol.
- Find the amount in moles: (6.02214076 × 1023 atoms) ÷ (6.02214076 × 1023 atoms/mol) = 1.0000 mol.
- Multiply by the molar mass: 1.0000 mol × 12.011 g/mol = 12.011 g.
- Round the calculator’s mass output to four decimal places: 12.0110 g.
- Convert to milligrams: 12.0110 g × 1000 mg/g = 12011 mg.
Thus, the calculator returns 12.0110 g as the headline mass and 12011 mg as the equivalent. The four-decimal display is rounding; it does not mean the input molar mass is known to that many decimal places.
Assumptions
- The atom count refers to atoms of the element or atomic species whose molar mass you entered.
- The supplied molar mass is appropriate for the substance and its isotopic composition.
- The calculation uses Avogadro’s exact constant and does not account for measurement uncertainty, impurities, or rounding in the inputs.
What You’ll Need
- The number of atoms, as a count or a value in scientific notation.
- The correct molar mass in g/mol. Look it up in a reliable periodic table for an element, or calculate it from the formula and standard atomic weights for a compound.
- A calculator, or the calculator above. Keep units visible while working.
Step-by-Step
- Identify what the count describes. Check whether it is a number of atoms of one element, or a number of molecules or formula units. This method takes an atom count. If your given count is molecules, first decide whether you want the mass of those molecules; use the compound’s molar mass with the molecule count, or convert molecules to the relevant atom count if that is what the question asks.
- Find the molar mass. For one element, use its atomic weight in g/mol. For a compound, multiply each element’s atomic weight by its subscript and add the results. For example, one water molecule has two hydrogen atoms and one oxygen atom, so its molar mass is 2 × 1.008 + 15.999 = 18.015 g/mol. Use the molar mass for the actual chemical formula, not just one component of it.
- Enter the atom count. Type the full count into the atom field. For a very large or small count, scientific notation is convenient: 3.0 × 1020 can be entered as 3.0e20. Do not enter a number of moles in this field; moles and atoms are different quantities.
- Enter the molar mass in g/mol. Check the unit before entering it. If a reference gives kg/mol, multiply by 1000 to convert to g/mol. Do not enter a mass in grams here: molar mass is mass per mole.
- Calculate the amount in moles. Divide the atom count by 6.02214076 × 1023 atoms/mol. The atoms cancel, leaving moles. This intermediate step is useful for checking your work even when the calculator gives mass directly.
- Calculate the mass. Multiply the moles by the molar mass in g/mol. The mol unit cancels, leaving grams. Read the headline result as grams, and use the additional milligram result if that unit is more convenient.
- Check whether the precision is sensible. Compare the reported digits with the precision of your atom count and molar mass. Round only at the end of a hand calculation; extra calculator digits do not make uncertain input data more accurate.
Common Mistakes
- Using the wrong molar mass: Atomic mass, molecular mass, and molar mass are related but not interchangeable in every context. For the formula above, the required input is the substance’s molar mass in g/mol.
- Mixing up atoms and molecules: One molecule can contain several atoms. If the question gives molecules but asks for the mass of the compound, use the molecule count with the compound’s molar mass. Do not multiply the count by the number of atoms per molecule as well.
- Forgetting the Avogadro conversion: Multiplying an atom count directly by g/mol gives incorrect units. Convert atoms to moles first, or use the complete formula.
- Using an inconsistent unit: A molar mass entered in kg/mol will make a result entered as if it were g/mol 1000 times too small. Convert units before calculating.
- Rounding too early: Keep the full atom count and molar mass through the calculation. Round the final mass to a precision supported by the inputs.
Tips
- Write the units beside every number. The unit cancellation is a quick way to catch a formula or conversion error.
- For a compound, show the atomic-weight sum before entering the result. This makes it easier to spot a missed subscript or parenthesis in the chemical formula.
- When a problem gives moles instead of atoms, calculate mass directly as moles × molar mass; do not convert to atoms and back unless the atom count is specifically needed.
- For an isotope-specific question, use the isotope’s mass or the stated isotopic mixture. Standard atomic weights describe natural terrestrial materials and may not fit a purified isotope sample.
Troubleshooting
- The result is much too large or too small: Check whether you entered atoms rather than moles, used the right power of ten, and entered molar mass in g/mol. A factor-of-1000 discrepancy often points to confusing grams with milligrams or kilograms.
- The calculator rejects an input: The atom count cannot be negative, and molar mass must be positive. Remove commas or unit text from the number field; use scientific notation such as 1.2e15 if needed.
- Your answer differs from a textbook: Compare the molar-mass convention, isotope composition, and rounding. Some references use atomic weights with different displayed precision.
- You have a count of molecules, ions, or formula units: Confirm what entity the question asks you to weigh. For molecules or formula units, use the entity’s molar mass; for a count of atoms of one element, use that element’s molar mass.
- You do not know the substance: Atom count alone is not enough to determine mass. You need the identity or molar mass of the atoms or substance.
Frequently Asked Questions
What is the formula for converting atoms to mass?
Mass in grams = atom count ÷ 6.02214076 × 1023 atoms/mol × molar mass in g/mol.
Can I convert atoms to mass without knowing the element?
No. The same number of atoms has different masses for different elements. You need the element or substance’s molar mass.
How do I convert atoms to grams by hand?
Divide the atom count by Avogadro’s constant to get moles, then multiply by molar mass in g/mol.
Does the formula work for molecules?
Yes, if you use a count of molecules and the compound’s molar mass. The result is the mass of those molecules; do not treat each molecule as a single atom when interpreting the count.
How do I convert the answer from grams to milligrams?
Multiply grams by 1000. For example, 0.025 g × 1000 = 25 mg.
Why does my result have more decimal places than my inputs?
Calculators often display rounded digits for convenience. The result’s meaningful precision is limited by the precision of the atom count and molar mass you supplied.
Related
Formula used
in n | Number of atoms | atoms | 6.02214076e23 | 0 in mm | Molar mass | g/mol | 12.011 | 0.001 out m | Mass | g | n / 6.02214076e23 * mm | 4 out mg | Mass | mg | m * 1000 | 2
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