molecalculator

Moles & Molar Mass

Chemistry Atoms and Molecules: How They Differ

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

Amount of substance 1.000000 mol
Number of particles
6.022 × 1023 particles
Result, rounded to a whole number
Sample mass
18.015 g
Set in the form below
Molar mass of particles
18.015 g/mol
Set in the form below
You enter
Sample mass (g), Molar mass of particles (g/mol)
You get
Amount of substance (mol), Number of particles (particles)
Rounding
6 dp · 0 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.

Atoms are the basic units of chemical elements, while molecules are groups of two or more atoms joined by chemical bonds. This page’s calculator estimates how many atoms or molecules are present in a sample when you enter its mass and the relevant molar mass; it returns the particle count and amount in moles.

Formula

The amount of substance is n = m / M, and the estimated number of particles is N = n × NA. Here, m is sample mass in grams, M is molar mass in grams per mole, n is amount in moles, and N is particle count. The exact Avogadro constant, NA, is 6.02214076 × 1023 particles per mole. “Particle” means whatever entity the molar mass describes: molecules, atoms, ions, or formula units. In this example, water molecules are the particles.

Worked Example

With the calculator’s default values, the sample mass is 18.015 g and the molar mass is 18.015 g/mol, the conventional molar mass of water using standard atomic weights H = 1.008 and O = 15.999.

  • Amount: n = 18.015 g / 18.015 g/mol = 1.000000 mol.
  • Number of water molecules: N = 1.000000 mol × 6.02214076 × 1023 particles/mol = 6.02214076 × 1023 molecules.

The calculator displays the amount to six decimal places and the particle count as a whole number: 6.022 × 1023 particles.

Assumptions

  • The sample is treated as pure, and its stated mass and molar mass refer to the same substance.
  • Particles are counted as whole molecules of water; dissociation or chemical reaction is not included.
  • The calculation uses the exact Avogadro constant and does not account for measurement uncertainty or sample impurities.

What Atoms and Molecules Mean

An atom has a nucleus containing protons and usually neutrons, with electrons occupying regions around the nucleus. The number of protons identifies the element: every carbon atom has six protons, for example. Atoms of one element can differ in neutron count; such forms are isotopes. Isotopes have nearly the same chemical behavior, although their masses differ.

A molecule is a discrete group of atoms held together by chemical bonds. Oxygen gas is made of O2 molecules, each with two oxygen atoms. A water molecule, H2O, contains two hydrogen atoms bonded to one oxygen atom. A molecule can contain atoms of one element or several elements.

Not every substance consists of separate molecules. In solid sodium chloride, NaCl represents a repeating ratio of sodium ions to chloride ions in an extended crystal lattice, not an individual NaCl molecule. For such ionic solids, chemists usually count formula units. Metals and network solids, such as diamond, also form extended structures rather than collections of ordinary molecules.

How Atoms Form Molecules

Chemical bonds arise from interactions involving electrons. In a covalent bond, atoms share electron density; the O–H bonds in water are examples. In an ionic solid, electrons are transferred to form oppositely charged ions, whose electrostatic attraction helps hold the lattice together. The simple description of electron transfer is useful, but real bonding can involve a range of electron-sharing character.

Atoms combine in characteristic ratios because their electron arrangements and the energy of possible structures constrain which arrangements are stable. A formula communicates composition, not necessarily shape. CO2 specifies one carbon and two oxygen atoms per molecule; its structure is linear. H2O has a bent structure. Shape, charge distribution, and the types of bonds affect properties such as polarity and reactivity.

From Chemical Formulas to Particle Counts

A chemical formula gives the composition of a particle or the simplest ratio in a solid. Subscripts count atoms within the written unit: one C6H12O6 molecule contains 6 carbon, 12 hydrogen, and 6 oxygen atoms. A coefficient in a reaction equation counts whole formula units or molecules; it multiplies every atom in that formula.

Molar mass connects a measurable sample mass to a particle count. For water, add the standard atomic weights: 2(1.008) + 15.999 = 18.015 g/mol. One mole contains exactly 6.02214076 × 1023 specified entities. Thus, one mole of water molecules contains that many water molecules, and twice as many hydrogen atoms within those molecules. The particle type matters: a mole of molecules is not the same count as a mole of atoms in a polyatomic molecule.

To use the calculator for another substance, enter its sample mass and molar mass in g/mol. For ionic materials, interpret the output as formula units if that is what the entered molar mass describes. For an element whose sample is treated as separate atoms, enter the atomic molar mass. Real samples may contain mixtures, impurities, or isotopes in proportions that affect the appropriate molar mass.

Common Misconceptions and Limits

  • “All substances are molecules.” No: ionic crystals, metals, and network solids are not made of separate molecular units in the usual sense.
  • “An atom is indivisible.” Atoms have subatomic structure. They are the basic units that retain an element’s identity in ordinary chemical reactions, not the smallest known components of matter.
  • “The calculator measures particles directly.” It does not. It infers a count from mass and molar mass, so accuracy depends on those inputs and on sample purity.
  • “A formula always shows a molecule.” Sometimes it gives an empirical or ionic ratio, or the composition of a repeating solid structure.

The formula is a bookkeeping relation, not a chemical analysis. It cannot identify an unknown sample, determine its purity, or tell whether a reaction has occurred. Molar mass should match the actual chemical form, including relevant counterions or waters of crystallization where applicable. Keep adequate significant figures during the calculation; the final apparent precision cannot exceed that justified by the mass and molar-mass data.

Frequently Asked Questions

What is the difference between an atom and a molecule?
An atom is a unit of an element. A molecule is a bonded group of at least two atoms, which may be from the same element or different elements.

Are all molecules made of different elements?
No. O2 and N2 are molecules made from atoms of a single element. Water and carbon dioxide contain more than one element.

Is NaCl a molecule?
In ordinary solid table salt, NaCl describes the 1:1 ratio of sodium ions to chloride ions in a crystal lattice. It is more accurate to call NaCl a formula unit than a molecule.

How many atoms are in one mole of water?
One mole of water contains 6.02214076 × 1023 water molecules. Each molecule has three atoms, so it contains 3 × 6.02214076 × 1023 atoms in total.

How do I calculate the number of molecules from mass?
Divide the mass by the substance’s molar mass to find moles, then multiply by 6.02214076 × 1023 molecules per mole. Use a molar mass that corresponds to the particle being counted.

Related

Formula used
in m | Sample mass | g | 18.015 | 0
in mm | Molar mass of particles | g/mol | 18.015 | 0
out n | Amount of substance | mol | m / mm | 6
out p | Number of particles | particles | n * 6.02214076e23 | 0

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 →