Non-metals Gain or Share Electrons

Negative ions and covalent bonds between non-metal atoms

Lesson 828 of 4,500 · Metals and Non-metals

Learning objectives

Introduction

Non-metals commonly appear as negative ions in salts with reactive metals or share electrons in covalent substances. The two outcomes should not be merged into one story. Chloride in sodium chloride is modelled as Cl⁻, while chlorine atoms in a Cl₂ molecule share a pair of electrons. The partner and bonding context matter.

Core explanation

A neutral chlorine atom has 17 protons and 17 electrons, with shell arrangement 2,8,7 in the simple model. If it gains one electron from a reacting metal, it has 18 electrons but still 17 protons, so its net charge is −1: Cl + e⁻ → Cl⁻. The chloride ion's 2,8,8 electron count resembles argon. In NaCl, Na⁺ and Cl⁻ attract and the overall formula unit is charge-neutral.

Oxygen can gain two electrons in a simple metal-oxide model: O + 2e⁻ → O²⁻. Magnesium commonly gives Mg²⁺ and oxygen O²⁻, producing the neutral 1:1 formula MgO. The electron-transfer half-equations account for oxidation and reduction, while the solid's ions arrange in an extended lattice. This is a useful ionic description, not a claim that every oxygen-containing compound has free O²⁻ ions.

When two non-metal atoms bond to each other, neither generally transfers an electron completely to form opposite isolated ions. Instead they share electrons. In H₂, two hydrogen atoms share one pair. In Cl₂, two chlorine atoms share one pair, giving each an introductory filled-outer-shell count. In H₂O, oxygen shares electron pairs with two hydrogens; the bonds are polar covalent rather than simply O²⁻ joined to two free H⁺ ions inside a water molecule.

The octet rule is a teaching guide for many main-group atoms, not a universal law. Hydrogen is stable with two electrons in its first shell, not eight. Some molecules have incomplete or expanded valence-shell descriptions, and bonding cannot always be reduced to an integer shell target. It is safer to explain a particular Lewis structure or ion with its electron count than to assert that every non-metal “needs eight” in every context.

The chemical formula determines which model is relevant. NaCl and MgO are often represented as ionic lattices in school chemistry. O₂, Cl₂, CO₂ and H₂O are molecular substances with covalent bonds, even though they contain non-metal atoms that can form anions in other compounds. For example, chlorine in Cl₂ has oxidation state zero; chloride in NaCl is −1. The same element participates in different bonding arrangements.

Non-metals can also make extended covalent networks. Diamond consists of carbon atoms linked in a three-dimensional network rather than separate small molecules. Graphite has covalently bonded carbon layers with mobile electrons along the sheets. Thus “share electrons” does not always mean “small molecule,” just as “gain electrons” does not describe every non-metal compound.

Ion formation must conserve charge and electrons in a complete reaction. In 2Na + Cl₂ → 2NaCl, two sodium atoms lose two electrons in total; the two chlorine atoms in Cl₂ gain them in total. The balanced equation shows atoms conserved, and the electron-transfer explanation accounts for charges. Do not leave an electron as if it vanished from the system.

Step-by-step reasoning

1. Identify the actual partner: reactive metal or another non-metal. 2. For an ionic model, count electron gain and calculate anion charge from protons and electrons. 3. For a covalent model, draw shared pairs and identify molecules or networks. 4. Check the formula, overall charge and limits of the octet shortcut.

Visual explanation

Make two panels with chlorine. In the first, show Na transferring one electron to Cl, giving Na⁺ and Cl⁻ in an ionic lattice. In the second, show two Cl atoms sharing one electron pair in Cl₂. The same element appears in different bonding contexts.

Real-world analogy

Two people can transfer ownership of an object or share access to it. The analogy helps distinguish electron transfer and sharing, but electrons in bonds are not little possessions with fixed personal ownership; the actual distribution depends on the atoms and structure.

Real-world example

Table salt is described with Na⁺ and Cl⁻ ions. Chlorine gas is Cl₂, made of covalently bonded molecules. The two substances have radically different properties, showing why the word “chlorine” alone cannot tell you whether its atoms gained electrons or share them.

Why?

Why make the gain-versus-share distinction? It predicts different structures and properties. Ionic solids contain charged units held in lattices, while covalent molecular substances have shared-bond molecules and may have different melting or conducting behaviour. The identity of the bonding partner helps select the first model.

Common misconception

“Every oxygen atom always becomes O²⁻.” Oxygen in MgO is represented as oxide ion O²⁻, but oxygen in an O₂ molecule or in water participates in covalent bonds. Electron count and formula context decide the appropriate description.

Worked example

Compare formation of NaCl and Cl₂. In NaCl, Na loses one electron and Cl gains one, giving Na⁺ and Cl⁻ in a neutral ionic formula unit. In Cl₂, two chlorine atoms share a bonding electron pair, so the product is a neutral molecule with no separate chloride ions. Both cases involve valence electrons, but the electron arrangements and structures differ.

Quick check

1. Does a chlorine atom in Cl₂ become a separate Cl⁻ ion by sharing an electron pair? Answer: No. Cl₂ is a covalent molecule; separate chloride ions are not formed by that shared bond.

Exam focus

Use “gains electrons” for anion formation and “shares pairs” for covalent bonds. Draw or count electrons and show charge conservation. Do not apply an ionic lattice picture to ordinary O₂, Cl₂ or water molecules.

Advanced insight

Bonding lies on a continuum rather than a perfect ionic-versus-covalent split. Polar covalent bonds share electron density unequally, and ionic solids can have some covalent character. The simple models are valuable because they highlight dominant patterns, but real electron density is not assigned by perfectly sharp boundaries.

Summary

Non-metals can gain electrons to form anions with suitable partners or share electrons in covalent molecules and networks. Chloride in NaCl, chlorine in Cl₂ and oxygen in water illustrate different contexts. Use formulas, charges and electron accounting rather than one rule for every non-metal atom.

Practice questions

1. How many electrons does Cl⁻ have when chlorine's atomic number is 17? Answer: 18 electrons; the atom gained one while retaining 17 protons. 2. What simple ion does oxygen form in MgO, and why is MgO neutral? Answer: O²⁻; its 2− charge balances one Mg²⁺ ion. 3. What is the bonding difference between NaCl and Cl₂? Answer: NaCl is described by cations and anions in an ionic lattice; Cl₂ is a covalent molecule with a shared electron pair. 4. Why does hydrogen not follow a literal eight-electron outer-shell rule? Answer: Its first shell is filled with two electrons, not eight.

Further reading: OpenStax on ionic compounds and OpenStax on covalent bonding.