• Foundation
  • About 13 min
  • 5 practice questions

Valency, the octet rule and ions

Link the number of outer electrons to valency, explain why atoms form ions, and write formulas of simple compounds from the periodic table.

If something looks wrong, please tell us.

Why does sodium chloride have the formula NaCl while magnesium chloride is MgCl₂? The answer lies in the outer electrons. The periodic table lets you predict how many electrons an atom will give, take or share. This lesson turns that idea into a short, reliable method.

Valence electrons and the octet

The electrons in the outermost shell are the valence electrons. Atoms are most stable when this shell is full. For hydrogen and helium a full shell holds 2 electrons (a duplet). For most other atoms it holds 8 (an octet). Noble gases already have a full shell, so they are unreactive and have valency zero.

Valency from the periodic table

Valency is the number of electrons an atom gains, loses or shares to reach a full outer shell. For the first 20 elements:

  • If the atom has 1, 2 or 3 valence electrons, the valency equals that number (it loses them).
  • If the atom has 4 or more, the valency is 8 minus the number of valence electrons (it gains or shares to complete the octet).
Valency of the elements of period 3
ElementNaMgAlSiPSClAr
Valence electrons12345678
Valency12343210

A check using hydrogen

Hydrogen has valency 1, so the valency of another element is the number of hydrogen atoms it combines with. Chlorine combines with one: HCl. Oxygen combines with two: H₂O. Nitrogen combines with three: NH₃. Carbon combines with four: CH₄. These match valencies 1, 2, 3 and 4 as predicted from the periodic table, which is a good way to check your answer.

Ions

An atom that loses electrons becomes a positive ion (cation). An atom that gains electrons becomes a negative ion (anion). Sodium (2, 8, 1) loses one electron to become Na⁺ (2, 8). Chlorine (2, 8, 7) gains one to become Cl⁻ (2, 8, 8). Metals tend to form cations and non-metals tend to form anions.

Writing formulas

Write the symbols with their valencies and cross them over, so that the valency of one element becomes the subscript of the other. Cancel common factors.

Valency = valence electrons (1 to 3) or 8 − valence electrons (4 to 7). Formula: cross the valencies over.

— Rule to remember

Worked examples

Example 1. What is the valency of an element with atomic number 16? The configuration is 2, 8, 6, so there are 6 valence electrons. Valency = 8 − 6 = 2.

Example 2. Which ion does magnesium (Z = 12) form? The configuration is 2, 8, 2. It loses two electrons to reach 2, 8 and becomes Mg²⁺.

Example 3. Write the formula of the compound of aluminium (Z = 13) with chlorine (Z = 17). Aluminium has 3 valence electrons, so its valency is 3. Chlorine has 7, so its valency is 1. Crossing over gives Al₁Cl₃, written AlCl₃.

Example 4. Write the formula of the compound of magnesium (Z = 12) with fluorine (Z = 9). Magnesium has valency 2. Fluorine (2, 7) has valency 1. Crossing over gives MgF₂.

Example 5. How many electrons does Na⁺ have? Sodium has 11 electrons. Losing one leaves 10 electrons, the same as neon.

Key takeaways

  • Valence electrons decide valency.
  • Metals lose electrons to form cations; non-metals gain electrons to form anions.
  • Cross the valencies over to write a formula.

Check your understanding

  1. 1. What is the usual valency of an element with the configuration 2, 8, 6?

    1. 2
    2. 6
    3. 4
    4. 8
    Show answer

    Answer: A. Six valence electrons need two more to complete the octet, so the valency is 8 − 6 = 2.

  2. 2. Which ion does magnesium (2, 8, 2) form?

    1. Mg⁺
    2. Mg²⁻
    3. Mg²⁺
    4. Mg⁶⁺
    Show answer

    Answer: C. Magnesium loses its two outer electrons and becomes Mg²⁺.

  3. 3. What is the formula of the compound of aluminium (valency 3) with chlorine (valency 1)?

    1. AlCl
    2. Al₃Cl
    3. Al₂Cl₃
    4. AlCl₃
    Show answer

    Answer: D. Crossing over the valencies gives Al₁Cl₃, written AlCl₃.

  4. 4. Which element has valency zero?

    1. Sodium
    2. Chlorine
    3. Argon
    4. Oxygen
    Show answer

    Answer: C. Argon has a full outer shell of 8 electrons, so it has no tendency to gain, lose or share electrons.

  5. 5. How many electrons does the Na⁺ ion have (Z = 11)?

    1. 10
    2. 11
    3. 12
    4. 9
    Show answer

    Answer: A. Sodium has 11 electrons. Na⁺ has lost one, leaving 10.

Privacy · Terms · Refunds · Delivery