Key ideas
Read as: shell number 2, subshell type p, 6 electrons in it.
| Subshell | Orbitals | Max electrons | First appears in shell |
|---|---|---|---|
| s | 1 | 2 | 1 |
| p | 3 | 6 | 2 |
| d | 5 | 10 | 3 |
| f | 7 | 14 | 4 |
- Aufbau principle. Fill subshells from lowest to highest energy: 1s, 2s, 2p, 3s, 3p, 4s, 3d, 4p, 5s, 4d, 5p, 6s, 4f, 5d, 6p. Note that 4s fills before 3d.
- Pauli exclusion principle. Each orbital holds at most 2 electrons, and they must have opposite spins.
- Hund's rule. In a set of equal-energy orbitals (like the three 2p orbitals), electrons go in one per orbital first, all with the same spin, before any pair up.
The periodic table is a map of this order. Groups 1 and 2 are the s block, groups 13 to 18 are the p block, the transition metals are the d block and the two rows at the bottom are the f block. Reading across the rows in order gives the filling order.
Noble gas shorthand. Replace the inner electrons with the noble gas before the element, in brackets. Sodium, , becomes .
Worked examples
Example 1: oxygen
Problem Write the electron configuration of oxygen (atomic number 8).
- A neutral oxygen atom has 8 electrons.
- Fill in order: 1s takes 2 (6 left), 2s takes 2 (4 left), 2p takes the last 4.
- Check: .
Answer
Example 2: iron, with shorthand
Problem Write the full and the noble gas configuration of iron (atomic number 26).
- Fill 26 electrons in order: 1s 2, 2s 2, 2p 6, 3s 2, 3p 6 (18 so far), 4s 2 (20 so far), 3d takes the last 6.
- Full configuration:
- The first 18 electrons match argon, so replace them with [Ar].
Answer
Example 3: an ion
Problem Write the configuration of the ion.
- Start from neutral iron: . A 3+ ion has lost 3 electrons.
- Remove electrons from the highest shell number first. For transition metals that means 4s goes before 3d, even though 4s filled first.
- Take 2 from 4s and 1 from 3d.
Answer
Example 4: unpaired electrons with Hund's rule
Problem How many unpaired electrons does a nitrogen atom have?
- Nitrogen (7 electrons): . The 1s and 2s orbitals are full, so their electrons are paired.
- The three 2p electrons spread out one per 2p orbital, all with the same spin, by Hund's rule.
Answer 3 unpaired electrons
Common mistakes and how to fix them
- Filling 3d before 4s. Fix: follow the periodic table row by row. Potassium and calcium (row 4, s block) come before the transition metals.
- Removing 3d electrons first when making a transition metal ion. Fix: remove from the highest shell number (4s) first.
- Superscripts that do not add up. Fix: add them every time. They must equal the atomic number, adjusted for any charge.
- Pairing electrons too early in an orbital diagram. Fix: Hund's rule, one per orbital first.
- Missing the two famous exceptions. Chromium is and copper is . A half-filled or filled d subshell is extra stable.
Practice questions
What is the electron configuration of magnesium (atomic number 12)?
Show answer
Answer:
12 electrons: 2 + 2 + 6 fill the first two shells, and the last 2 go into 3s. A p subshell can never hold 8.
Which element has the configuration ?
- F
- S
- Cl
- Ar
Show answer
Answer: Cl
Neon has 10 electrons, plus , gives 17 electrons. Atomic number 17 is chlorine.
How many valence electrons does phosphorus (atomic number 15) have?
Show answer
Answer: 5 valence electrons
Phosphorus is . The outermost shell is shell 3, which has electrons.
How many unpaired electrons does an oxygen atom have?
- 0
- 1
- 2
- 4
Show answer
Answer: 2
Oxygen's 4 electrons in 2p fill the three orbitals one each, then the fourth pairs up in one of them. That leaves 2 unpaired.
What is the electron configuration of copper (atomic number 29)?
Show answer
Answer:
Copper is an exception. One 4s electron moves to 3d, giving a completely filled 3d subshell, which is lower in energy.
Frequently asked questions
Why does 4s fill before 3d?
In a neutral atom being built up, the 4s subshell is slightly lower in energy than 3d, so it fills first. Once the 3d orbitals have electrons in them, the energies shift, and 4s electrons are the first to leave when the atom forms an ion.
Should I write 4s before 3d or 3d before 4s?
Both are seen. Filling order gives for iron, and shell order gives . They describe the same atom. Use the order your teacher uses.
What are valence electrons?
Valence electrons are the electrons in the outermost shell, the highest shell number. For main group elements, they are the s and p electrons of that shell. They take part in bonding, which is why they decide how many bonds an atom forms in a Lewis structure.
Sources
- OpenStax Chemistry 2e, 6.4 Electronic Structure of Atoms (Electron Configurations), accessed October 1, 2026