molecalculator

Moles & Molar Mass

Atoms and Molecules: What They Are and How They Differ

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

Amount of substance 1.0000 mol
Molecules in sample
6.022 × 1023 molecules
Result, rounded to 3 decimal places
Sample mass
18.015 g
Set in the form below
Molar mass
18.015 g/mol
Set in the form below
You enter
Sample mass (g), Molar mass (g/mol)
You get
Amount of substance (mol), Molecules in sample (molecules)
Rounding
4 dp · 3 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 held together by chemical bonds. The distinction matters because atoms identify which elements are present, and molecules describe specific combinations of atoms, such as water (H₂O) or oxygen gas (O₂).

Formula

This calculator estimates the number of molecules in a pure sample from its mass and molar mass. First, divide the sample mass by the molar mass to get the amount in moles. Then multiply the amount by the Avogadro constant to get the number of molecules:

n = m / M
N = n × 6.02214076 × 1023

  • m is sample mass in grams (g).
  • M is molar mass in grams per mole (g/mol).
  • n is amount of substance in moles (mol).
  • N is the estimated number of molecules.

The Avogadro constant, 6.02214076 × 1023 mol−1, is exact in the SI. One mole contains that many specified entities. For a molecular substance, those entities are molecules; for an ionic solid, the appropriate entities are formula units, not molecules.

Worked Example

For the default sample, the mass is 18.015 g and the molar mass is 18.015 g/mol. The sample is water, whose molar mass is approximately 18.015 g/mol using standard atomic weights.

Amount: n = 18.015 g / 18.015 g/mol = 1.0000 mol.

Number of molecules: N = 1.0000 mol × 6.02214076 × 1023 mol−1 = 6.022 × 1023 molecules (rounded to three decimal places in the calculator’s displayed coefficient).

Assumptions

  • The sample is pure and its stated mass is the mass of the substance, not a mixture or solution.
  • The molar mass applies to the chemical formula and isotopic composition being counted.
  • The result counts molecules only when the substance consists of molecules; for ionic substances, interpret the count as formula units instead.
  • This is a counting conversion, not a measurement of how many particles are present in a particular portion of a sample.

What Atoms Are

An atom has a small, dense nucleus surrounded by electrons. The nucleus contains protons, which have positive electric charge, and usually neutrons, which have no electric charge. Electrons carry negative charge and occupy regions around the nucleus described by quantum mechanics. Most of an atom’s mass is concentrated in its nucleus, while its size is largely set by its electron cloud.

The number of protons, called the atomic number, determines the element. Every carbon atom has six protons; every oxygen atom has eight. A neutral atom has equal numbers of protons and electrons. If it gains or loses electrons, it becomes an ion, such as Na+ or Cl−. Ions are atoms or groups of atoms with a net charge.

Atoms of the same element can differ in neutron number. These variants are isotopes: carbon-12 and carbon-14 both have six protons, but contain six and eight neutrons respectively. Isotopes generally share the element’s chemical identity, though their differing masses can matter in nuclear processes and some measurements.

What Molecules Are

A molecule is a discrete group of atoms connected by chemical bonds. Many familiar molecules are formed by covalent bonds, in which atoms share electrons. Water has two hydrogen atoms bonded to one oxygen atom, so its formula is H₂O. A molecule of carbon dioxide, CO₂, has one carbon and two oxygen atoms.

Molecules may contain atoms of one element or several. O₂ is a molecule made of two oxygen atoms, whereas N₂ is a molecule made of two nitrogen atoms. Compounds are substances containing more than one element chemically combined; water and carbon dioxide are compounds, but O₂ is not. Not every substance is made of molecules: a metal consists of atoms in a bonded solid structure, and table salt forms an extended ionic crystal.

A molecular formula gives the kinds and numbers of atoms in one molecule, but it does not always show the arrangement. For example, ethanol and dimethyl ether both have formula C₂H₆O, yet their atoms are connected differently, giving them different chemical properties. A structural formula or model conveys more about those connections.

How Atoms Form Molecules

Atoms form bonds when interactions among their nuclei and electrons create a more stable arrangement than the separated atoms under the relevant conditions. Chemical bonding is not simply atoms “wanting” a full outer shell; that phrase is a shorthand, and it does not explain every bond or molecule. Electron structure, energy, and the surrounding environment all matter.

  • Covalent bonds: atoms share electron density, as in H₂O and O₂.
  • Ionic bonding: oppositely charged ions attract in a larger structure, as in solid sodium chloride. A formula unit NaCl represents the simplest ratio, not a separate NaCl molecule in the crystal.
  • Metallic bonding: metal atoms form a collective solid in which electrons are distributed through the structure; metals are not usually described as collections of individual molecules.

Bonding also explains why molecules have particular shapes. In water, the two O–H bonds and the arrangement of electron pairs give the molecule a bent shape. Shape and charge distribution affect how molecules interact, helping determine properties such as boiling point, solubility, and chemical reactivity.

From Microscopic Particles to Measurable Amounts

Atoms and molecules are far too small to count one at a time in an ordinary sample. Chemists use the mole to connect particle counts with measurable mass. A substance’s molar mass is the mass of one mole, expressed in g/mol. For water, it is about 18.015 g/mol; therefore, 18.015 g of pure water corresponds to about one mole, or 6.022 × 1023 water molecules.

For a molecule, calculate its approximate molar mass by adding the atomic masses for every atom in its formula. Using common standard atomic weights, H is 1.008 g/mol and O is 15.999 g/mol, so water’s molar mass is (2 × 1.008) + 15.999 = 18.015 g/mol. The calculator uses the molar mass you enter, so it can also be used for other molecular substances. Use a value appropriate to the formula and isotopic composition; natural isotopic mixtures can make tabulated atomic weights non-integer values.

To estimate the number of atoms of a particular element in a molecular sample, first find the number of molecules, then multiply by the number of that element’s atoms in each molecule. One mole of water contains one mole of oxygen atoms and two moles of hydrogen atoms. This count assumes the sample is pure water; mixtures require knowing how much of each substance is present.

Common Confusions and Limits

“Atom” and “molecule” are not interchangeable. An oxygen atom, O, is different from an oxygen molecule, O₂. Likewise, the subscript in H₂O means two hydrogen atoms per water molecule; it does not mean two water molecules. A coefficient, as in 2H₂O, indicates two molecules or two formula amounts, depending on context.

Another common confusion is calling every chemical formula a molecule. NaCl describes the ratio of sodium ions to chloride ions in a crystal, not a collection of independent NaCl molecules in ordinary solid salt. By contrast, a dissolved sample contains mobile hydrated ions, not intact NaCl molecules in the usual description.

The calculator gives a theoretical count based on entered mass and molar mass. It does not account for impurities, measurement uncertainty, chemical reactions, or whether molecules have decomposed or associated. A very large particle count is normal: a tiny visible amount of matter contains an immense number of atoms or molecules. Report the result with sensible significant figures rather than implying that a measured mass supports unlimited precision.

Frequently Asked Questions

What is the main difference between an atom and a molecule?
An atom is one unit of an element. A molecule is a bonded group of at least two atoms; the atoms may be the same element, as in O₂, or different elements, as in H₂O.

Is water an atom or a molecule?
Water is a molecular compound. Each water molecule contains two hydrogen atoms bonded to one oxygen atom, represented by H₂O.

Are all molecules compounds?
No. O₂ and N₂ are molecules but contain only one element each, so they are not compounds. A compound contains atoms of at least two different elements chemically combined.

Is salt made of molecules?
Ordinary solid sodium chloride is an ionic crystal made of Na+ and Cl− ions. NaCl gives the simplest ratio of ions and is called a formula unit, rather than a discrete molecule.

How many molecules are in one mole?
One mole contains exactly 6.02214076 × 1023 specified entities. For a molecular substance, the entities are molecules; for an ionic solid, they may be formula units.

Related

Formula used
in mass | Sample mass | g | 18.015 | 0
in mm | Molar mass | g/mol | 18.015 | 0
out mol | Amount of substance | mol | mass / mm | 4
out atoms | Molecules in sample | molecules | mol * 6.02214076e23 | 3

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 →