Atoms are the basic units of chemical elements; molecules are groups of atoms held together by chemical bonds; elements contain only one kind of atom; and compounds contain atoms of at least two different elements chemically combined. These terms describe related but distinct ways of organizing matter, from individual particles to substances with characteristic compositions.
Formula
This simple classification calculator reports the number of atoms in one molecule and how many different element types it contains. For a molecule written as a chemical formula, count each atom, including repeated atoms indicated by subscripts, then count the distinct element symbols. In symbols, Natoms = the sum of the atom counts in the formula, and Nelements = the number of distinct element symbols. Both outputs are counts, with no physical unit. The calculator does not identify a substance from those two counts; many different formulas can share them.
For example, H2O has two hydrogen atoms and one oxygen atom, so Natoms = 2 + 1 = 3, while Nelements = 2. The inputs are those two totals. They are a basic bookkeeping aid, not a substitute for reading a complete chemical formula.
Worked Example
Using the default inputs, the calculator treats a particle as containing 2 atoms and 2 element types:
- Atoms per molecule: Natoms = 2.
- Element types present: Nelements = 2.
That pattern is consistent with a molecule such as O2 only if the element-type count is 1, so the defaults do not describe O2. They could describe a diatomic compound such as CO, which has one carbon atom and one oxygen atom. The arithmetic reports counts only; the formula itself determines which elements those counts represent.
Assumptions
- The inputs describe one chemical particle and are nonnegative whole-number counts.
- “Molecule” is used for a discrete, bonded group of atoms; some substances, such as ionic crystals, are better described by formula units rather than molecules.
- The calculator does not determine bonding, charge, isotope composition, or chemical identity.
How the Four Terms Differ
An atom is a single unit of an element that retains that element’s chemical identity. It has a nucleus containing protons and usually neutrons, surrounded by electrons. The proton number, called the atomic number, defines the element: every carbon atom has six protons, while every oxygen atom has eight. Atoms can gain or lose electrons to form ions without changing which element they are.
An element is a pure substance made of atoms with the same number of protons. It may occur as individual atoms, as molecules containing only that element, or in extended structures. Helium is made of individual He atoms under ordinary conditions. Oxygen commonly occurs as O2 molecules, while diamond and graphite are extended structures made entirely of carbon atoms.
A molecule is a distinct group of two or more atoms joined by covalent bonds. Its atoms may belong to the same element or to different elements. O2 and N2 are molecules of elements; H2O and CO2 are molecules of compounds. Not every bonded material consists of separate molecules: a crystal of sodium chloride, for instance, is an extended arrangement of ions.
A compound is a substance whose atoms include at least two different elements chemically combined in a definite proportion. Water is a compound with a 2:1 ratio of hydrogen to oxygen atoms. Carbon dioxide has one carbon for every two oxygen atoms. Compounds have properties that can differ greatly from those of their constituent elements: sodium metal and chlorine gas, for example, differ strikingly from the salt formed when their atoms become ions in a crystal.
How Chemical Formulas Show Composition
A chemical formula uses element symbols and subscripts to show which atoms are present and in what proportions. In H2O, the subscript 2 applies to H; the absence of a subscript after O means one oxygen atom. In C6H12O6, the formula represents 6 carbon, 12 hydrogen, and 6 oxygen atoms in each molecule, for 24 atoms altogether and three element types.
- A subscript applies to the symbol immediately before it, or to a parenthesized group. In Ca(OH)2, there is one calcium, two oxygen, and two hydrogen atoms.
- A coefficient in front of a formula multiplies the entire formula. Three H2O molecules contain 6 hydrogen atoms and 3 oxygen atoms; the coefficient does not change the identity of water.
- A charge written as a superscript indicates an ion’s net electrical charge, not an additional atom. For example, Ca2+ has a positive charge of two.
These conventions let chemists compare compositions, balance reaction equations, and calculate molar masses. They also distinguish a molecular formula, which gives the actual atom count in a molecule, from an empirical formula, which gives the simplest whole-number ratio. Hydrogen peroxide’s molecular formula is H2O2, while its empirical formula is HO; the empirical formula alone does not specify the size of the molecule.
Compounds, Mixtures, and Formula Units
A compound is not the same as a mixture. In a compound, elements are chemically combined in a characteristic ratio, and chemical reactions are needed to change that composition. In a mixture, substances are physically combined but retain their chemical identities; the proportions can vary. Air is a mixture of gases, and salt water is a mixture of water and dissolved salts. A sample of pure water, by contrast, is a compound.
Some compounds are made of molecules, while others form ionic lattices. Sodium chloride is built from Na+ and Cl− ions arranged throughout a crystal. Chemists describe its simplest ratio as a formula unit, NaCl, rather than calling each NaCl pair a molecule. The formula indicates the ratio of ions, not a collection of isolated pairs. This distinction matters when describing solids and when interpreting formulas.
Common Misconceptions
- “Every molecule is a compound.” No: O2 is a molecule, but it contains only oxygen and is therefore not a compound.
- “Every compound is a molecule.” No: ionic solids such as sodium chloride are compounds but consist of extended ion lattices, not discrete molecules.
- “An element is always a single atom.” No: elemental oxygen is commonly O2, and elemental carbon can form large bonded structures.
- “Changing an atom’s charge changes its element.” No: charge changes when electrons are gained or lost. Changing the number of protons changes the element.
Isotopes are another useful distinction. Atoms of the same element can have different numbers of neutrons; carbon-12 and carbon-14 are both carbon because each has six protons. Isotopes can differ in mass and nuclear stability, while retaining the same element identity. A formula such as H2O usually gives element counts without specifying which isotopes are present.
Frequently Asked Questions
Is O2 an element, a molecule, or a compound?
O2 is a molecule made of two bonded oxygen atoms and is a molecular form of the element oxygen. It is not a compound because it contains only one element.
Is water an atom, molecule, element, or compound?
A water particle, H2O, is a molecule and a compound: it contains bonded hydrogen and oxygen atoms. Water is not an element because it contains two kinds of atoms.
Can a compound contain only one atom?
No. By definition, a compound contains at least two different elements chemically combined, so it requires atoms of more than one element. A single atom is not a compound.
Is salt a molecule?
Ordinary table salt is primarily sodium chloride, an ionic compound. A crystal is an extended lattice of sodium and chloride ions, so NaCl represents their simplest ratio, called a formula unit, rather than a separate molecule.
What is the difference between a molecule and a formula unit?
A molecule is a discrete group of atoms bonded together. A formula unit gives the simplest ratio of ions in an ionic solid; it does not necessarily describe an isolated particle.
Related
Formula used
in atoms | Number of atoms | atoms | 2 | 0 in types | Number of element types | types | 2 | 0 out molecules | Atoms per molecule | atoms | atoms | 0 out elements | Element types present | types | types | 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
- Cell Culture Doubling Time Equation and Calculator24.00 h
- Cell Culture Seeding Density Calculator and Formula4,000.00 cells/cm^2
- Cell Culture Doubling Time Calculator and Formula24.00 h
- CFU From Dilution: Calculate Colony-Forming Units10,000,000 CFU/mL
- Cell Culture Doubling Time Calculator and Formula24.00 h
- Zero Order Release Kinetics Calculator and Explanation5.000 mg/h