Atoms and the periodic table · Part 2 of 30

Electrons, shells and orbitals

Basic 14 min

How electrons fill shells and subshells, how to write an electron configuration and why valence electrons matter.

What you will learn

  • You can describe shells and the s, p, d and f subshells.
  • You can write the electron configuration of elements 1–36 using the Aufbau order.
  • You can count valence electrons and connect them to chemical behaviour.

Before this: Inside the atom

Electrons live at fixed energy levels

Electrons are not tiny planets orbiting the nucleus. Quantum mechanics (you meet it properly in the expert tier) says an electron in an atom can only have certain energies, and it is spread out as a probability cloud called an orbital. For everyday chemistry you only need a tidy bookkeeping system: shells, subshells and orbitals.

Key points

  • Electrons occupy shells (n = 1, 2, 3 …); each shell splits into subshells s, p, d, f.
  • An s subshell holds 2 electrons, p holds 6, d holds 10, f holds 14; each orbital holds at most 2 electrons.
  • Subshells fill in the Aufbau order 1s 2s 2p 3s 3p 4s 3d 4p …
  • Valence electrons (the outermost shell) decide how an element bonds and reacts.
An atom model with electrons on nested glowing rings

Shells, subshells, orbitals

  • A shell is labelled by a whole number n = 1, 2, 3 … Higher n means further from the nucleus on average and higher energy.
  • Each shell contains subshells: shell 1 has only s; shell 2 has s and p; shell 3 has s, p and d; shell 4 adds f.
  • Each subshell is made of orbitals: s has 1, p has 3, d has 5, f has 7. Each orbital takes at most two electrons, and those two must have opposite spin (the Pauli exclusion principle).

So the capacities are s = 2, p = 6, d = 10, f = 14, and a full shell n holds 2n² electrons (2, 8, 18, 32).

Energy ladder showing 1s, 2s, 2p, 3s, 3p, 4s, 3d and 4p levels, with 4s drawn slightly below 3d
The Aufbau order: lower boxes fill first

Filling order (Aufbau)

Electrons go into the lowest available energy first. For the first 36 elements the order is:

1s → 2s → 2p → 3s → 3p → 4s → 3d → 4p

The surprise is 4s before 3d: in a neutral atom of potassium or calcium, the 4s subshell ends up lower in energy than 3d. When you write configurations you therefore fill 4s first, but when transition metals form ions they lose their 4s electrons first. Within a p or d subshell, electrons spread out into separate orbitals with parallel spins before they pair up (Hund's rule) — that is why nitrogen has three unpaired 2p electrons.

Examples:

ElementZConfigurationShort form
Carbon61s² 2s² 2p²[He] 2s² 2p²
Sodium111s² 2s² 2p⁶ 3s¹[Ne] 3s¹
Chlorine171s² 2s² 2p⁶ 3s² 3p⁵[Ne] 3s² 3p⁵
Iron26… 3p⁶ 4s² 3d⁶[Ar] 3d⁶ 4s²

The short form puts the previous noble gas in brackets and writes only what comes after. Two famous exceptions in the first row of transition metals: chromium is [Ar] 3d⁵ 4s¹ and copper is [Ar] 3d¹⁰ 4s¹ — half-filled and filled d subshells are especially stable, so one 4s electron moves into 3d.

Flame tests: three bunsen flames coloured red, yellow and green above wire loops, goggles nearby

Valence electrons: the ones that matter

The electrons in the outermost shell are the valence electrons. For main-group elements you can read them straight off the configuration: sodium has 1 (3s¹), chlorine has 7 (3s² 3p⁵). Elements with the same number of valence electrons behave alike, which is exactly why they sit in the same column of the periodic table.

Many atoms react in a way that leaves them with a full outer s and p set — eight electrons, the octet. Sodium easily gives away its single 3s electron and becomes Na⁺ with the neon configuration; chlorine easily accepts one and becomes Cl⁻ with the argon configuration. Put them together and you get table salt, NaCl. The octet rule is a rule of thumb, not a law: it works well for carbon, nitrogen, oxygen and the halogens and often fails for transition metals and for elements of period 3 and beyond.

Light from electrons

When an electron drops from a higher to a lower energy level, the atom emits light of exactly the energy difference. Each element therefore has its own set of spectral lines — the red of neon signs, the yellow of sodium street lamps. Chemists and astronomers identify elements by these fingerprints; NIST keeps the reference database.

Flashcards

Question: How many electrons fit in s, p, d and f subshells?
Answer: 2, 6, 10 and 14.
Question: Which subshell fills first, 4s or 3d?
Answer: 4s fills first in neutral atoms (but transition metals lose 4s electrons first when they form ions).
Question: What is the electron configuration of chlorine?
Answer: 1s² 2s² 2p⁶ 3s² 3p⁵, or [Ne] 3s² 3p⁵ — seven valence electrons.
Question: What does Hund's rule say?
Answer: Electrons occupy separate orbitals of a subshell with parallel spins before pairing up.

Check yourself

Think about your answer, then open it. In the app the quiz is interactive, earns points and brings back what you missed.

  1. Put these subshells in the order they fill (first to last).

    Show the answer

    3s → 3p → 4s → 3d → 4p

    Aufbau order: … 3s → 3p → 4s → 3d → 4p. 4s drops below 3d in neutral atoms of K and Ca.

    Source: OpenStax Chemistry 2e, 6.4

  2. How many electrons can a complete d subshell hold?

    Show the answer

    10

    A d subshell has 5 orbitals with 2 electrons each.

    Source: OpenStax Chemistry 2e, 6.4

  3. Which is the ground-state configuration of copper (Z = 29)?

    • [Ar] 3d⁹ 4s²
    • [Ar] 3d¹⁰ 4s¹
    • [Ar] 4s² 4p⁹
    • [Kr] 3d¹⁰
    Show the answer

    [Ar] 3d¹⁰ 4s¹

    Copper is an exception: a filled 3d¹⁰ subshell with one 4s electron is lower in energy.

    Source: NIST Atomic Spectra Database

  4. How many valence electrons does phosphorus ([Ne] 3s² 3p³) have?

    Show the answer

    5

    Outer shell n = 3 holds 2 + 3 = 5 electrons.

    Source: OpenStax Chemistry 2e, 6.4

Sources

Facts checked on 2026-11-30. Skillgrove lessons are free learning material — no certificate and no accreditation.