molecalculator

Moles & Molar Mass

Atoms to Grams Calculator and Conversion Formula

Calculator No. 01-4985 · 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 to grams by dividing the atom count by Avogadro’s constant and multiplying by the element’s molar mass. Enter the number of atoms and the element’s molar mass to calculate the corresponding mass in grams, along with the amount in moles.

Formula

The formula is:

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

In symbols, m = (N ÷ NA) × M, where:

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

The intermediate quantity, amount of substance, is n = N ÷ NA in moles. One mole contains exactly 6.02214076 × 1023 specified elementary entities. Since a mole of an element’s atoms has a mass of M grams, multiplying moles by molar mass gives grams. The atom count can be fractional mathematically, although a physical sample contains a whole number of atoms.

Worked Example

Using the defaults—6.02214076 × 1023 carbon atoms and a molar mass of 12.011 g/mol—first calculate the amount:

n = (6.02214076 × 1023 atoms) ÷ (6.02214076 × 1023 atoms/mol) = 1 mol

Then calculate the mass:

m = 1 mol × 12.011 g/mol = 12.011 g

The calculator displays 12.0110 g and 1.0000 mol, rounded to four decimal places. The extra displayed zero is formatting; it does not imply that the input molar mass is known to greater precision than 12.011 g/mol.

Assumptions

  • The specified entities are atoms of one element, not molecules, ions, or a mixture.
  • The molar mass is appropriate for the element and isotope composition being considered.
  • The calculation treats the input atom count and molar mass as exact inputs; real measurements may have uncertainty.

How to Choose the Molar Mass

Use the molar mass in g/mol for the element whose atoms you are counting. For ordinary calculations, standard atomic weights are commonly used. IUPAC abridged standard atomic weights include carbon, 12.011 g/mol; oxygen, 15.999 g/mol; sodium, 22.990 g/mol; and chlorine, 35.45 g/mol. The value for carbon in the worked example is therefore 12.011 g/mol.

These standard values reflect the natural isotopic composition used for ordinary reference calculations. A specific isotope has a different mass. For example, a calculation involving only carbon-12 atoms should use the molar mass for carbon-12 rather than the standard atomic weight for natural carbon. For high-precision work, check which atomic-weight convention and isotope composition the problem specifies.

Make sure the input is an atomic molar mass, not a molecular molar mass. If a count refers to molecules, first use the molecule’s molar mass and count molecules; alternatively, convert molecules to atoms using the number of each type of atom in every molecule. The number of atoms and the identity of the counted entity must agree.

When This Conversion Is Useful

Atoms-to-grams conversion connects microscopic particle counts to a laboratory-scale mass. It is useful in stoichiometry exercises, atomic-scale models, and calculations that begin with a stated number of atoms and ask for an equivalent mass. The reverse calculation is also common: convert grams to moles by dividing by molar mass, then multiply by Avogadro’s constant to estimate the number of atoms.

For a compound, distinguish atoms of a particular element from formula units or molecules. For instance, each water molecule contains two hydrogen atoms and one oxygen atom. A count of water molecules is not the same as a count of hydrogen atoms: the hydrogen-atom count is twice the molecule count. If starting with a mass of a compound, use its formula and molar mass to find the number of molecules or formula units, then apply the appropriate atoms-per-unit ratio.

Common Mistakes and Limits

  • Using the wrong entity: Avogadro’s constant applies to the entities being counted. An atom count, molecule count, and ion count are not interchangeable.
  • Reversing the conversion: To obtain moles from atoms, divide by Avogadro’s constant. To obtain atoms from moles, multiply by it.
  • Mixing units: This calculator expects molar mass in g/mol. A value in kg/mol must be converted to g/mol by multiplying by 1000.
  • Overstating precision: A calculator can display many digits, but the result’s meaningful precision depends on the input values and their uncertainty.
  • Assuming every sample has the same isotope composition: Standard atomic weights are suitable for general use, but isotope-specific samples can require a different molar mass.

The arithmetic itself does not account for experimental uncertainty, impurities, isotope enrichment, or whether a stated atom count was measured accurately. It also does not determine how a sample should be handled or measured. For bench work, follow your lab method, the safety data sheet (SDS) and your supervisor.

Frequently Asked Questions

How many grams is one atom?
It depends on the element. The mass of one atom is its molar mass divided by Avogadro’s constant. For carbon using 12.011 g/mol, one atom has a mass of about 1.994 × 10−23 g.

How do I convert atoms to grams without a calculator?
Divide the number of atoms by 6.02214076 × 1023 to get moles, then multiply the moles by the element’s molar mass in g/mol.

Can I convert atoms directly to grams?
Yes. Use mass = atoms ÷ 6.02214076 × 1023 × molar mass. The moles step is still present in the calculation, even if you combine it into one expression.

Do I use atomic mass or molar mass?
For this formula, enter molar mass in g/mol. The numerical value is often similar to the relative atomic mass, but the units are different; atomic mass for an individual atom is commonly expressed in unified atomic mass units.

How do I convert grams back to atoms?
Divide the mass in grams by the molar mass in g/mol to get moles, then multiply by 6.02214076 × 1023 atoms/mol. This gives an atom count for a sample consisting of that element.

Related

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