molecalculator

Moles & Molar Mass

Atoms to Grams: Convert Atom Counts to Mass

Calculator No. 01-3658 · Updated · Formula and assumptions shown below

Mass 12.0110 g
Amount of substance
1.0000 mol
Result, rounded to 4 decimal places
Number of atoms
602214075999999987023872 atoms
Set in the form below
Molar mass
12.011 g/mol
Set in the form below
You enter
Number of atoms (atoms), Molar mass (g/mol)
You get
Mass (g), Amount of substance (mol)
Rounding
4 dp

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

Convert a count of atoms into mass in grams by using Avogadro’s constant and the element’s molar mass. Enter the number of atoms and the molar mass in g/mol; the calculator returns the corresponding mass in grams, plus the amount in moles.

Formula

First convert atoms to moles by dividing by Avogadro’s constant. Then multiply the amount in moles by the molar mass to get grams.

m = (N ÷ NA) × M

  • m is the mass in grams (g).
  • N is the number of atoms (atoms).
  • NA is Avogadro’s constant, exactly 6.02214076 × 1023 atoms/mol.
  • M is the molar mass in grams per mole (g/mol).

The equivalent two-step form is n = N ÷ NA, followed by m = n × M. Here, n is the amount in moles (mol). The conversion works because one mole contains exactly 6.02214076 × 1023 specified particles. When the particles are atoms, use that count directly. The calculator assumes the entered atoms are all of the element represented by the entered molar mass.

Worked Example

The default inputs are 6.02214076 × 1023 atoms and a molar mass of 12.011 g/mol, the standard atomic weight used here for carbon.

  1. Find the amount in moles: n = N ÷ NA = (6.02214076 × 1023 atoms) ÷ (6.02214076 × 1023 atoms/mol) = 1 mol.
  2. Multiply by molar mass: m = n × M = (1 mol) × (12.011 g/mol) = 12.011 g.
  3. Rounded to the calculator’s four decimal places, the result is 12.0110 g. The amount output is 1.0000 mol.

Assumptions

  • The count represents individual atoms, not molecules, formula units, or a mixture of particle types.
  • The molar mass matches the element and isotope composition being counted. The default is carbon’s abridged standard atomic weight, 12.011 g/mol.
  • Avogadro’s constant is exact; the displayed mass is rounded to four decimal places.

What You’ll Need

  • The number of atoms you want to convert. It can be a theoretical count or a count supplied by a calculation or measurement.
  • The correct molar mass in g/mol. For a naturally occurring element, use its abridged standard atomic weight as the molar mass. For a specific isotope, use that isotope’s molar mass instead.
  • A calculator, or the calculator above. If you are doing the calculation by hand, use Avogadro’s constant: 6.02214076 × 1023 atoms/mol.

Step-by-Step

  1. Identify what is being counted. Confirm that the quantity is a number of atoms of one element. If your starting value is molecules, first determine how many atoms of the element are in each molecule, then multiply by the molecule count. For example, each water molecule contains two hydrogen atoms, so a count of water molecules is not itself a count of hydrogen atoms.
  2. Find the appropriate molar mass. For elemental carbon, use 12.011 g/mol for ordinary natural carbon. For an element with a different composition or a specified isotope, use the matching value. Do not substitute a compound’s molar mass if you are converting a count of only one type of atom.
  3. Enter the atom count. Type the number of atoms into the first field. Large counts can be entered in scientific notation, such as 3.0e22 for 3.0 × 1022. Do not enter the unit “mol” here; this field is a particle count.
  4. Enter the molar mass. Type its numerical value in g/mol. The unit is important: a value in kg/mol must be converted to g/mol by multiplying by 1000 before entry.
  5. Read the mass output. The first result is the mass in grams. The second result is the equivalent amount in moles. To check the result by hand, divide the atom count by 6.02214076 × 1023, then multiply by the molar mass.
  6. Keep appropriate precision. The calculator displays four decimal places, but that does not make the inputs exact. Report a result that reflects the meaningful precision of your atom count and molar mass. For an extremely small mass, use scientific notation rather than treating a rounded display of zero as proof that the mass is zero.

Common Mistakes

  • Using Avogadro’s constant in the wrong direction. Atoms divided by atoms per mole gives moles. Multiplying the atom count by Avogadro’s constant does not convert atoms to moles.
  • Mixing up atoms and molecules. A molecule may contain multiple atoms, and a compound’s molar mass describes the whole molecule or formula unit. Match the particle count to the molar mass you use.
  • Entering the wrong molar mass. Check the element symbol and the units. Atomic mass in unified atomic mass units has the same numerical value as molar mass in g/mol, but the entered quantity still needs to represent the correct element or isotope.
  • Ignoring isotope composition. Standard atomic weights describe typical natural isotopic mixtures and may not apply to a sample enriched in one isotope.
  • Rounding too early. Keep the full Avogadro constant and available input precision during the calculation; round the final mass for reporting.

Tips

  • Use scientific notation for very large or small counts: for instance, 4.5 × 1020 can be entered as 4.5e20.
  • Check the scale of the answer. One mole of carbon atoms has a mass of about 12 g, so a count far below one mole should have a proportionally smaller mass.
  • For a compound, find the number of atoms of the specific element in each molecule before converting that element’s atom count. If you instead want the mass of the whole compound, use molecules-to-moles and the compound’s molar mass.
  • Keep units visible in hand calculations. Atoms cancel against atoms, and mol cancels against mol, leaving grams.

Troubleshooting

The result is much too large or too small: Check whether the count was entered in scientific notation correctly, and make sure the molar mass is in g/mol rather than kg/mol. Also check that you did not enter a molecule count as an atom count.

The result is zero or looks like zero: A very small mass may round to 0.0000 g at four decimal places. Use the formula with more precision or express the answer in scientific notation. A displayed rounded value is not necessarily the unrounded result.

The result differs from a textbook value: Compare the isotope assumptions and the molar mass used. A natural standard atomic weight can differ from the value for a pure isotope. Also check whether the other calculation uses a rounded version of Avogadro’s constant.

You have a number of molecules, not atoms: Convert the molecule count to moles using Avogadro’s constant, then multiply by the compound’s molar mass to find the compound’s mass. If the target is a particular element’s atoms, account for the number of those atoms in each molecule.

Frequently Asked Questions

What is the formula for converting atoms to grams?
Multiply the atom count by the molar mass, then divide by Avogadro’s constant: grams = atoms × molar mass ÷ (6.02214076 × 1023 atoms/mol).

Do I divide or multiply by Avogadro’s constant?
Divide atoms by Avogadro’s constant to get moles. Then multiply moles by the molar mass to get grams.

Can I convert atoms to grams without knowing the element?
No. You need the element’s molar mass. Different elements, and different isotopes of the same element, have different molar masses.

Can this method convert molecules to grams?
Yes, if you use the number of molecules and the compound’s molar mass. Do not use an individual element’s atomic mass for a whole molecule.

Why does the answer have fewer decimal places than my inputs?
The calculator rounds the mass to four decimal places for display. The unrounded calculation depends on the precision of the inputs; avoid reporting more precision than those inputs support.

What if my atom count is less than one mole?
The same formula applies. It gives a fractional amount in moles and the corresponding mass, often a very small number of grams.

Related

Formula used
in n | Number of atoms | atoms | 6.02214076e23 | 0
in mm | Molar mass | g/mol | 12.011 | 0
out g | Mass | g | n / 6.02214076e23 * mm | 4
out mol | Amount of substance | mol | n / 6.02214076e23 | 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

The whole Moles & Molar Mass section →