Calculate the mass of atoms from an atom count and element, or how many atoms are in a mass in grams, with moles and molar mass conversions.

Filled from the element (standard atomic weight); type your own for an isotope or other substance.

Output unit

Calculator Functions

FunctionWhat it doesWhat it requires
Mass from atomsFinds the total mass of a number of atoms of one elementRequires the number of atoms and the element, or a custom average atomic mass in u
Atoms from massFinds how many atoms are in a mass of one elementRequires the mass (g, kg, oz or lb) and the element, or a custom average atomic mass in u
Average atomic massFinds the average mass of one atom in u from a sampleRequires the mass of the sample and the number of atoms in it
Atoms from molesConverts an amount in moles to a number of atomsRequires the amount in mol
Moles from atomsConverts a number of atoms to an amount in molesRequires the number of atoms
Mass from molesFinds the mass of an amount of an element or compoundRequires the amount in mol and the element, or a custom molar mass in g/mol
Moles from massFinds the amount in moles in a mass of an element or compoundRequires the mass and the element, or a custom molar mass in g/mol
Molar massFinds the molar mass in g/mol from a sampleRequires the mass of the sample and the amount in mol

The Element list fills in the atomic mass or molar mass for 21 common elements, from hydrogen to uranium, using standard atomic weights [3]. Custom atomic mass and Custom molar mass accept any other value, such as a single isotope or a compound. Large and small numbers can be typed in scientific notation, such as 6.022e23. Mass results can be shown in g, kg, oz or lb.

Mass of Atoms Formulas

m = N × A × mᵤ
mTotal mass of the atoms (g)
NNumber of atoms
AAverage atomic mass of the element (u, also written amu)
mᵤAtomic mass constant, 1.66053906892 × 10⁻²⁴ g [1]
NₐAvogadro constant, 6.02214076 × 10²³ atoms per mole [2]

The mass of one atom is its atomic mass in u multiplied by mᵤ. One carbon atom is 12.011 × 1.66053906892 × 10⁻²⁴ = 1.99447 × 10⁻²³ g, and one hydrogen atom is 1.67382 × 10⁻²⁴ g. An atomic mass in u and a molar mass in g/mol are the same number for practical purposes, because Nₐ × mᵤ is 1 g/mol to within about one part in a billion.

Mass from atoms

The main formula applies directly. A count of 6.02214076 × 10²³ carbon atoms, which is one mole, has a mass of 12.011 g.

Atoms from mass

N = m ÷ (A × mᵤ)

A 1 g sample of gold, at 196.97 u, holds 1 ÷ (196.97 × 1.66053906892 × 10⁻²⁴) = 3.05739 × 10²¹ atoms.

Average atomic mass

A = m ÷ (N × mᵤ)

This works back from a sample to the average mass per atom. It needs a mass and an atom count that are both above zero.

Atoms from moles

N = n × Nₐ

n is the amount in moles. Two moles of any element contain 1.204428 × 10²⁴ atoms.

Moles from atoms

n = N ÷ Nₐ

A count of 3.01107 × 10²³ atoms is 0.5 mol.

Mass from moles

m = n × M

M is the molar mass in g/mol. Two moles of carbon at 12.011 g/mol have a mass of 24.022 g.

Moles from mass

n = m ÷ M

A 24.022 g sample of carbon is 2 mol. With a custom molar mass of 18.015 g/mol, 36.03 g of water is 2 mol of molecules.

Molar mass

M = m ÷ n

A 36 g sample that is 2 mol has a molar mass of 18 g/mol.

Limits of This Estimate

  • Element values are standard atomic weights, which average the natural mix of isotopes [3]. A single isotope, or a sample with an unusual isotope mix, needs its own value entered as a custom mass.
  • The atom functions count atoms of one element. For a compound, a molar mass gives moles of molecules or formula units, and the atoms per molecule must be multiplied in separately.
  • Results are shown to 6 significant figures. The atomic mass constant is a measured value with an uncertainty of about 3 parts in 10 billion [1], far smaller than the uncertainty of most atomic weights.

Sources

  1. NIST, CODATA Value: atomic mass constant: atomic mass constant, 1.66053906892 × 10⁻²⁷ kg (2022 CODATA)
  2. NIST, CODATA Value: Avogadro constant: Avogadro constant, exactly 6.02214076 × 10²³ per mole
  3. IUPAC Commission on Isotopic Abundances and Atomic Weights, Abridged Standard Atomic Weights 2024: atomic weights behind the element list