molecalculator

Moles & Molar Mass

Atoms to Grams Conversion: Formula and Calculator

Calculator No. 01-2557 · 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
Element molar mass
12.011 g/mol
Set in the form below
You enter
Number of atoms (atoms), Element 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.

The atoms-to-grams calculator converts a number of atoms of an element into mass in grams. Enter the atom count and the element’s molar mass; the calculator uses Avogadro’s constant to return the corresponding mass.

Formula

First convert atoms to moles by dividing the atom count by Avogadro’s constant, then convert moles to grams by multiplying by molar mass:

mass (g) = number of atoms × molar mass (g/mol) ÷ 6.02214076 × 1023 (atoms/mol)

Equivalently, m = N × M / NA, where m is mass in grams, N is the number of atoms, M is the element’s molar mass in grams per mole, and NA is Avogadro’s constant, exactly 6.02214076 × 1023 atoms per mole. The second calculator output, n, is the amount in moles: n = N / NA. The mass formula is n × M. The units cancel as expected: atoms × (mol/atoms) × (g/mol) = g.

For an element, use its atomic molar mass from a periodic table, expressed in g/mol. The defaults use carbon’s abridged standard atomic weight, 12.011 g/mol. For a compound, use its molar mass and count molecules rather than atoms; see the distinction below.

Worked Example

Using the calculator’s default values, convert 6.02214076 × 1023 carbon atoms to grams. This is one mole of carbon atoms.

  1. Convert atoms to moles: n = (6.02214076 × 1023 atoms) ÷ (6.02214076 × 1023 atoms/mol) = 1 mol.
  2. Multiply by carbon’s molar mass: m = 1 mol × 12.011 g/mol = 12.011 g.

At the calculator’s four-decimal display precision, the result is 12.0110 g. The amount output is 1.0000 mol.

Assumptions

  • The input is a count of atoms of one element, not a count of molecules or an already measured mass.
  • The molar mass is appropriate for the element and expressed in g/mol. Standard atomic weights represent conventional values; isotopically unusual samples may need an isotope-specific molar mass.
  • The conversion is a counting-and-mass calculation. It does not assume a particular temperature, pressure, phase, or chemical reaction.

How to Use the Conversion

Enter the total number of atoms, select or enter the element’s molar mass, and read the mass result. The calculator also reports moles, which is useful when continuing to a stoichiometry or concentration calculation. If you start with a measured mass instead, use the reverse relationship: atoms = mass (g) ÷ molar mass (g/mol) × Avogadro’s constant.

For example, carbon’s molar mass is 12.011 g/mol. If a sample contains 3.01107038 × 1023 carbon atoms, it contains 0.5 mol and has a mass of 6.0055 g. This follows from half of Avogadro’s number being half a mole, and half of 12.011 g being 6.0055 g.

To look up the molar mass, use the element’s atomic weight in g/mol. Common abridged standard atomic weights include hydrogen 1.008, carbon 12.011, nitrogen 14.007, oxygen 15.999, sodium 22.990, chlorine 35.45, and sulfur 32.06. Periodic-table values can vary slightly in presentation because some elements have naturally occurring isotope variation; follow the value specified by your course, calculation, or lab method when consistency matters.

Atoms, Molecules, and Molar Mass

An atom count and a molecule count are not interchangeable. One molecule of water contains two hydrogen atoms and one oxygen atom, so a count of water molecules is not a count of oxygen atoms. For a compound, calculate the compound’s molar mass from its chemical formula and multiply by the number of molecules per mole; do not simply use one element’s atomic mass.

If you know the number of atoms of a particular element within a compound, first account for how many of those atoms occur in each molecule. For example, each carbon dioxide molecule contains one carbon atom and two oxygen atoms. Converting a count of oxygen atoms into a count of carbon dioxide molecules requires additional information: the atoms must belong to those molecules, and the formula fixes the ratio at two oxygen atoms per molecule.

For a pure element with multiple naturally occurring isotopes, the standard atomic weight is an average based on typical natural isotopic composition. A sample enriched in a particular isotope can have a different molar mass. For such samples, use the isotope’s mass or a composition-specific value rather than assuming the conventional average.

Common Mistakes and Limits

  • Using the wrong molar mass: Check that the value is for the element or compound you are counting and that its unit is g/mol.
  • Mixing atoms and molecules: Match the counted particle to the molar mass. A molecule count requires the molecule’s molar mass.
  • Dropping powers of ten: Avogadro’s constant is about 6.022 × 1023, not 6.022 or 1023 alone. Scientific notation helps keep large counts clear.
  • Rounding too early: Keep the full input precision through the calculation and round the final result to a precision justified by the input data.

Although the arithmetic is exact when the inputs are exact, an experimentally estimated atom count or an approximate molar mass limits the meaningful precision of the answer. A calculated mass also does not establish that a sample is pure or that all of its atoms are chemically available. For bench work, follow your lab method, the safety data sheet (SDS), and your supervisor.

Frequently Asked Questions

What is the formula for converting atoms to grams?
Multiply the number of atoms by the element’s molar mass in g/mol, then divide by 6.02214076 × 1023 atoms/mol.

How many grams is one atom?
For an element, divide its molar mass in g/mol by Avogadro’s constant. One carbon atom, for example, has a mass of about 12.011 ÷ (6.02214076 × 1023) g, or approximately 1.994 × 10−23 g.

How many atoms are in one gram?
Divide Avogadro’s constant by the element’s molar mass. For carbon, 1 g contains about (6.02214076 × 1023) ÷ 12.011, or 5.014 × 1022 atoms.

Can I use this formula for molecules?
Yes, if you replace “atoms” with the number of molecules and use the compound’s molar mass. The particle count and molar mass must refer to the same substance.

Why does my answer differ slightly from another calculator?
Calculators may use different atomic-weight precision, isotope assumptions, or rounding. Check the molar mass and keep full precision until the final displayed result.

Related

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