molecalculator

Moles & Molar Mass

Atoms to Grams Formula: Convert Atom Counts to Mass

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

Mass 12.011000 g
Amount of substance
1.000000 mol
Result, rounded to 6 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
6 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.

To convert atoms to grams, multiply the number of atoms by the substance’s molar mass in grams per mole, then divide by Avogadro’s constant, 6.02214076 × 1023 atoms per mole. This calculator takes an atom count and a molar mass and returns the corresponding mass in grams, along with the amount in moles.

Formula

The atoms-to-grams formula is:

Mass (g) = number of atoms × molar mass (g/mol) ÷ Avogadro’s constant (atoms/mol)

In symbols, m = N × M / NA, where:

  • m is the mass in grams.
  • N is the number of atoms, counted as individual atoms.
  • M is the molar mass in grams per mole (g/mol), which depends on the element or substance.
  • NA is Avogadro’s constant: exactly 6.02214076 × 1023 entities per mole.

The equivalent two-step method is to first find moles, n = N / NA, and then calculate mass using m = n × M. The calculator uses the exact value of Avogadro’s constant and reports mass to six decimal places; a very small or very large result may be easier to interpret in scientific notation.

Worked Example

For the default inputs, convert 6.02214076 × 1023 carbon atoms using a molar mass of 12.011 g/mol.

  1. Find the amount: n = N / NA = (6.02214076 × 1023 atoms) / (6.02214076 × 1023 atoms/mol) = 1 mol.
  2. Calculate the mass: m = n × M = 1 mol × 12.011 g/mol = 12.011 g.

The calculator’s direct expression gives the same result: m = (6.02214076 × 1023 × 12.011) / (6.02214076 × 1023) = 12.011000 g. The amount is 1.000000 mol.

Assumptions

  • The input is a count of atoms, not molecules, ions, or formula units.
  • The molar mass supplied matches the element or substance being counted.
  • The calculation is a conversion of count to mass; it does not account for impurities, isotopic enrichment, or measurement uncertainty.

Why the Formula Works

A mole is a counting unit: one mole contains exactly 6.02214076 × 1023 specified entities. Dividing an atom count by that number changes the count into moles. Molar mass tells you how many grams correspond to one mole, so multiplying the amount in moles by molar mass gives grams. The “atoms” units cancel in the first division, and the “mol” units cancel in the second.

For a pure element, use its atomic molar mass. IUPAC abridged standard atomic weights include carbon at 12.011 g/mol, oxygen at 15.999 g/mol, and sodium at 22.990 g/mol. These are conventional values suitable for many calculations; exact isotopic composition can change the mass of a particular sample. For a compound, use its molecular or formula molar mass, found by adding the atomic contributions in its chemical formula. The calculator’s default, 12.011 g/mol, is for carbon, not a universal molar mass.

For example, 3.01107038 × 1023 carbon atoms are half a mole because that count is half of Avogadro’s constant. Their mass is 0.5 mol × 12.011 g/mol = 6.0055 g. The number of atoms can be fractional in a mathematical calculation because it can represent an average or an estimated count; a physical, exact count of atoms is whole-numbered.

Choosing the Right Molar Mass

The atom count alone is not enough to determine grams: the type of atom matters. Choose a molar mass that corresponds to what the count represents.

  • One element: Use the element’s atomic molar mass. For oxygen atoms, use approximately 15.999 g/mol—not the molar mass of oxygen gas.
  • A molecular substance: If the count is molecules, calculate mass using molecules per mole and the substance’s molecular molar mass. Do not label a molecule count as an atom count. If you know the total number of atoms in a compound sample instead, determine the number of molecules represented by those atoms and account for the compound’s formula.
  • An ionic compound: Use formula units and formula molar mass, rather than treating the solid as individual molecules. Clearly distinguish formula-unit counts from counts of individual ions or atoms.
  • Isotopes: Use the isotope’s molar mass when the sample is isotopically specified. The standard atomic weight is an average that reflects naturally occurring isotope abundances, not the mass of every individual atom.

When calculating a compound’s molar mass, multiply each element’s atomic weight by its subscript and add the results. For water, H2O, the calculation using common abridged weights is 2 × 1.008 + 15.999 = 18.015 g/mol. That value applies when converting water molecules to grams; it would not directly convert a count of all hydrogen and oxygen atoms without first relating those atoms to water molecules.

Common Conversion Mistakes

  • Multiplying without dividing by Avogadro’s constant: Atoms are a count, while molar mass is per mole. The conversion through atoms per mole is essential.
  • Using the wrong particle: “Atoms,” “molecules,” “ions,” and “formula units” are not interchangeable. Identify exactly what was counted and use a matching molar mass.
  • Confusing atomic and molecular mass: An oxygen atom has a molar mass near 15.999 g/mol; an O2 molecule has a molar mass near 31.998 g/mol.
  • Mixing units: Enter molar mass in g/mol. A value in kg/mol must be converted to g/mol by multiplying by 1,000 before using the formula.
  • Rounding too early: Keep the full count and molar mass through the calculation, then round the final result to a precision justified by the inputs. The calculator’s displayed decimal places do not imply that the inputs are experimentally exact.

When to Use This Conversion

This relationship is useful when a problem gives a particle count but asks for mass, or when checking the reverse conversion from a weighed sample to an estimated number of atoms. It is a stoichiometric conversion, not a way to measure a sample directly. In laboratory work, real mass and particle-count estimates may also depend on sample purity, composition, and measurement uncertainty. Follow your lab method, the safety data sheet (SDS) and your supervisor.

For the reverse calculation, rearrange the same equation: N = m × NA / M. For example, if a sample’s mass is known, divide its mass by its molar mass to get moles, then multiply by Avogadro’s constant to estimate the number of specified entities. Confirm that the entity—atoms, molecules, or formula units—matches the molar mass used.

Frequently Asked Questions

What is the formula for converting atoms to grams?
Multiply the atom count by molar mass in g/mol and divide by 6.02214076 × 1023 atoms/mol: grams = atoms × molar mass / Avogadro’s constant.

How many grams is one mole of atoms?
One mole has a mass in grams numerically equal to the element’s molar mass in g/mol. One mole of carbon atoms is 12.011 g using the abridged standard atomic weight.

How do I convert atoms to moles first?
Divide the atom count by 6.02214076 × 1023 atoms per mole. Multiply the resulting moles by the appropriate molar mass to obtain grams.

Can I use this formula for molecules?
Yes, if the input is a molecule count and the molar mass is for that molecular substance. The conversion uses the same Avogadro constant, but the counted entity and the molar mass must agree.

Why do I need molar mass?
Equal numbers of different kinds of atoms have different masses. Molar mass provides the substance-specific link between a number of entities and mass.

Related

Formula used
in n | Number of atoms | atoms | 6.02214076e23 | 0
in mm | Molar mass | g/mol | 12.011 | 0.000001
out g | Mass | g | n * mm / 6.02214076e23 | 6
out mol | Amount of substance | mol | n / 6.02214076e23 | 6

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 →