Skip to content
Tutorials Center
My learning

Topics

Lesson 2 of 38 · Getting Started

Atoms, Elements and Compounds

Learn what atoms are made of, how atomic number and mass number work, what isotopes and ions are, and how elements differ from compounds and molecules.

Every chemical equation is a story about atoms being rearranged. To read those stories you need to know what an atom is, how atoms of different elements differ, and how atoms join to form compounds. This lesson builds that vocabulary, which every later lesson uses.

Inside the atom

An atom is the smallest unit of an element that still has the properties of that element. Atoms are made of three kinds of particle:

Particle Charge Relative mass Where
Proton +1 1 Nucleus
Neutron 0 1 Nucleus
Electron −1 about 1/1836 Around the nucleus

The protons and neutrons sit in a tiny, dense nucleus. The electrons occupy the space around it. Nearly all of an atom's mass is in the nucleus, because an electron is so light.

Two numbers describe an atom:

  • The atomic number (Z) is the number of protons. It defines the element: every atom with 6 protons is carbon, every atom with 8 is oxygen.
  • The mass number (A) is protons plus neutrons.

So the number of neutrons is A − Z. In a neutral atom, the number of electrons equals the number of protons, so the charges cancel.

Isotopes

Atoms of the same element always have the same number of protons, but they can have different numbers of neutrons. Such atoms are isotopes. Chlorine has two common isotopes: chlorine-35 (17 protons, 18 neutrons) and chlorine-37 (17 protons, 20 neutrons). They behave almost identically in reactions, because chemistry is controlled mainly by electrons, but their masses differ. This is why the atomic mass of chlorine on the periodic table, about 35.45, is not a whole number: it is an average that takes into account how common each isotope is. We use this idea in the lesson on molar mass.

Ions

An atom can gain or lose electrons. The result is an ion, a particle with an overall charge.

  • Losing electrons makes a positive ion (a cation). A sodium atom loses one electron to become Na⁺.
  • Gaining electrons makes a negative ion (an anion). An oxygen atom gains two electrons to become O²⁻.

The number of protons never changes when an ion forms; only the electrons do.

Python Count the particles in an atom or ion

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The periodic table in one minute

The periodic table lists the elements in order of atomic number. Columns are groups and rows are periods. Elements in the same group have similar chemistry because they have the same number of outer electrons. For example:

  • Group 1 (the alkali metals: lithium, sodium, potassium) all form +1 ions.
  • Group 17 (the halogens: fluorine, chlorine, bromine, iodine) all form −1 ions.
  • Group 18 (the noble gases) rarely react.

Most elements are metals (shiny, conduct electricity, tend to lose electrons). A smaller number are non-metals (tend to gain or share electrons). A few are metalloids, such as silicon, with in-between properties.

Elements, molecules and compounds

An element is a pure substance made of only one kind of atom. A compound is a pure substance made of two or more different elements chemically bonded in a fixed ratio. Water, H₂O, always has two hydrogen atoms for each oxygen atom. Change that ratio and you no longer have water: H₂O₂ is hydrogen peroxide, a different compound with different properties.

A molecule is a group of atoms held together by covalent bonds and behaving as one unit. Molecules can be elements or compounds:

  • O₂ is a molecule of an element (two oxygen atoms).
  • H₂O and CO₂ are molecules of compounds.

Seven elements exist as diatomic molecules under normal conditions, and you must remember them when you write equations: hydrogen H₂, nitrogen N₂, oxygen O₂, fluorine F₂, chlorine Cl₂, bromine Br₂ and iodine I₂. A handy memory trick is that the formulas make a number-7 shape on the periodic table (H, then N, O, F, then Cl, Br, I).

Ionic compounds, such as sodium chloride, are not made of molecules. They are huge lattices of alternating positive and negative ions. Their formula, NaCl, only gives the simplest ratio of ions (1 Na⁺ to 1 Cl⁻). Chemists call this a formula unit.

flowchart TD
    M["Matter"] --> P["Pure substance"]
    M --> X["Mixture"]
    P --> E["Element<br/>one kind of atom"]
    P --> C["Compound<br/>fixed ratio of elements"]

Where elements and compounds sit in the classification of matter.

Python Classify formulas

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. An atom has 15 protons and 16 neutrons. What is its mass number?

    Mass number = protons + neutrons = 15 + 16 = 31.
  2. 2. How many electrons does a Mg²⁺ ion have, given that magnesium has atomic number 12?

    A neutral magnesium atom has 12 electrons. Mg²⁺ has lost two, leaving 10.
  3. 3. Isotopes of an element differ in their number of

    Isotopes have the same atomic number (same protons) but different numbers of neutrons.
  4. 4. Which of these is a compound?

    CO₂ contains two different elements bonded in a fixed ratio.

Summary

  • Atoms contain protons, neutrons (in the nucleus) and electrons; the atomic number is the proton count and defines the element.
  • Isotopes have the same protons but different neutrons; ions have gained or lost electrons.
  • Elements have one kind of atom; compounds have fixed ratios of different elements.
  • Seven elements are diatomic: H₂, N₂, O₂, F₂, Cl₂, Br₂, I₂.

Next: Chemical Formulas and Naming