molecalculator

Moles & Molar Mass

Atom to Mass Conversion: Formula and Calculator

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

Mass 12.0110 g
Mass
12,011.00 mg
= Mass × 1000
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), Mass (mg)
Rounding
4 dp · 2 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 number of atoms to mass by dividing the atom count by Avogadro’s constant to get moles, then multiplying by the element’s molar mass. Enter the atom count and atomic molar mass below to calculate the mass in grams and milligrams.

Formula

The mass is the number of atoms divided by Avogadro’s constant, multiplied by the molar mass:

m = (N / NA) × M

  • m is mass in grams (g).
  • N is the number of atoms, entered as a count.
  • NA is Avogadro’s constant, exactly 6.02214076 × 1023 atoms per mole.
  • M is the element’s molar mass in grams per mole (g/mol). For an element, its molar mass has the same numerical value as its atomic mass in unified atomic mass units (u).

The calculator also reports milligrams: mass in mg = mass in g × 1000, because 1 g = 1000 mg. The input default uses carbon’s abridged standard atomic weight, 12.011 g/mol. Change the molar mass for a different element or isotope convention.

Worked Example

Using the default values, N = 6.02214076 × 1023 atoms and M = 12.011 g/mol:

  1. Convert atoms to 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, or 12.01 g to four decimal places as displayed.
  3. Convert grams to milligrams: 12.011 g × 1000 = 12011 mg, or 12011.00 mg to two decimal places.

The calculator’s displayed mass is 12.0110 g; its milligram output is 12011.00 mg. The calculation uses the unrounded values internally before formatting the outputs.

Assumptions

  • The atom count refers to individual atoms of one element, not molecules, ions, or formula units.
  • The entered molar mass describes the atoms being counted and is expressed in g/mol.
  • For naturally occurring elements, the standard atomic weight is an average reflecting the element’s isotope mixture; a sample with an unusual isotope composition can have a different mass.

How to Use Atom-to-Mass Conversion

Enter the total number of atoms and the molar mass in g/mol. The first result is the mass in grams; the second expresses the same mass in milligrams. The atom count must be a nonnegative whole number in reality, although the arithmetic also works for a fractional expected count in statistical or theoretical calculations.

For a count smaller than Avogadro’s constant, the corresponding amount is less than one mole. For example, 1.204428152 × 1023 carbon atoms represent 0.2 mol because this is 0.2 times Avogadro’s constant. At 12.011 g/mol, their mass is 0.2 × 12.011 = 2.4022 g.

You can rearrange the same relationship if the unknown is different:

  • To find atoms from mass: N = (m / M) × NA.
  • To find the number of moles from mass: n = m / M.
  • To find mass from moles: m = n × M.

These rearrangements are useful when a problem gives a sample’s mass, a quantity in moles, or a particle count. Keep the units attached while calculating: grams divided by g/mol gives mol, and mol multiplied by atoms/mol gives atoms.

Choosing the Right Molar Mass

For a pure element with its usual natural isotope distribution, use its standard atomic weight. Representative abridged standard atomic weights include hydrogen 1.008, carbon 12.011, nitrogen 14.007, oxygen 15.999, sodium 22.990, and chlorine 35.45 g/mol. These are conventional average values, not a claim that every atom has exactly that mass.

When the problem specifies a particular isotope, use that isotope’s molar mass rather than the element’s natural-abundance average. For example, a calculation involving carbon-12 atoms should use approximately 12 g/mol, while natural carbon is commonly represented by 12.011 g/mol. The answer can differ slightly because isotope masses and isotope distributions differ.

If the particles are molecules rather than atoms, use the molecule’s molar mass and count molecules. For a compound, calculate its molar mass from the formula and the atomic weights of its constituent elements. Do not multiply an atom count by a compound’s molar mass unless the count is actually a count of compound molecules or formula units.

Common Errors and Limits

  • Mixing up atoms and moles: Avogadro’s constant is the number of specified entities per mole. A count of atoms must be divided by it before multiplying by g/mol.
  • Using the wrong particle: One molecule can contain several atoms. For example, a count of water molecules is not the same as a count of oxygen atoms; each water molecule contains one oxygen atom and two hydrogen atoms.
  • Entering an atomic mass in the wrong units: The numerical value in u and the molar-mass value in g/mol match, but the units are not interchangeable within a single equation. The formula here requires g/mol.
  • Rounding too early: Keep the full atom count and molar mass through the calculation, then round the final mass to a sensible number of significant figures.
  • Ignoring sample composition: Natural standard atomic weights are averages. Isotopically enriched or specially specified material may require a different molar mass.

The result is a calculated mass based on the count and molar mass supplied. It does not account for impurities, measurement uncertainty, or isotope composition beyond the value represented by the molar mass. At ordinary laboratory scales, individual atoms are not counted one by one; a measured bulk mass is typically related to an amount of substance through molar mass.

Frequently Asked Questions

What is the formula for converting atoms to grams?
Use m = (N / 6.02214076 × 1023) × M, where N is the atom count and M is the element’s molar mass in g/mol.

How many atoms are in one mole?
One mole contains exactly 6.02214076 × 1023 specified entities. When the entities are atoms, that is 6.02214076 × 1023 atoms.

How do I convert atoms to grams without a calculator?
Divide the atom count by 6.02214076 × 1023 to get moles, then multiply by the molar mass in g/mol. Use a calculator or scientific notation for very large counts.

Does the conversion depend on the element?
Yes. The atom-to-mole conversion uses the same Avogadro constant for every element, but the mass depends on that element’s molar mass.

Can I use this formula for molecules?
Yes, if N is a count of molecules and M is the molar mass of that molecule. The formula applies to a specified kind of particle, but the particle count and molar mass must refer to the same entity.

Related

Formula used
in n | Number of atoms | atoms | 6.02214076e23 | 0
in mm | Molar mass | g/mol | 12.011 | 0
out m | Mass | g | (n / 6.02214076e23) * mm | 4
out mg | Mass | mg | m * 1000 | 2

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 →