Electron Configuration

How do you write electron configurations?

IntermediateAtomic Structure & PeriodicityLast reviewed 3 October 2026

What is it?

An electron configuration shows how an atom’s electrons are arranged in shells and subshells. For example, oxygen (8 electrons) is:

1s2 2s2 2p41s^2\, 2s^2\, 2p^4

Read it as: 2 electrons in the 1s subshell, 2 in 2s, and 4 in 2p.

  • The number is the shell (energy level), nn = 1, 2, 3…
  • The letter is the subshell type: s, p, d or f.
  • The superscript is the number of electrons in that subshell.

Key idea

Electrons fill the lowest-energy subshells first. Each subshell holds a fixed maximum: s = 2, p = 6, d = 10, f = 14 electrons.

Why does it matter?

  • It explains the periodic table. Elements in the same group have similar outer (valence) configurations, which is why they behave alike.
  • It predicts chemistry. The number of valence electrons determines how an atom bonds and what ions it forms.
  • It explains colour, magnetism and more. Unpaired electrons and partly filled d subshells give many transition-metal compounds their colours and magnetic properties.

How does it work?

1. Shells, subshells and orbitals

SubshellOrbitalsMaximum electrons
s12
p36
d510
f714

Each orbital holds at most 2 electrons with opposite spins (the Pauli exclusion principle).

2. The filling order (Aufbau principle)

Subshells fill in order of increasing energy:

1s → 2s → 2p → 3s → 3p → 4s → 3d → 4p → 5s → 4d → 5p → 6s → 4f → 5d → 6p → 7s → 5f → 6d → 7p

Notice that 4s fills before 3d. The diagonal diagram below is an easy way to remember the order.

3. Hund’s rule

Within a subshell, electrons occupy separate orbitals with parallel spins before any orbital gets a second electron. For nitrogen’s three 2p electrons: [↑] [↑] [↑], not [↑↓] [↑] [ ].

4. Noble-gas shorthand

Replace the inner (core) electrons with the previous noble gas in square brackets:

  • Sodium: 1s2 2s2 2p6 3s11s^2\, 2s^2\, 2p^6\, 3s^1 = [Ne] 3s¹
  • Iron: [Ar] 3d⁶ 4s² (also written [Ar] 4s² 3d⁶)

5. Ions

  • Anions: add electrons. ClX−\ce{Cl-}: [Ne] 3s² 3p⁶ = [Ar].
  • Main-group cations: remove electrons from the outermost subshell. NaX+\ce{Na+}: [Ne].
  • Transition-metal cations: remove 4s electrons first, then 3d. FeX2+\ce{Fe^2+}: [Ar] 3d⁶; FeX3+\ce{Fe^3+}: [Ar] 3d⁵.

Think of it like this

Think of a hotel filling rooms from the ground floor up. Guests (electrons) take the cheapest rooms (lowest energy) first. Hund’s rule is like passengers on a bus: people take empty double seats on their own before anyone sits next to a stranger.

More precisely

A few elements break the simple filling order because half-filled and completely filled d subshells are especially stable: chromium is [Ar] 3d⁵ 4s¹ (not 3d⁴ 4s²) and copper is [Ar] 3d¹⁰ 4s¹ (not 3d⁹ 4s²). Also, once the 3d subshell contains electrons, its energy drops below 4s. That’s why transition metals lose their 4s electrons first when they form ions.

Visualise it

Diagonal rule diagram for the order of filling subshells. Subshells are arranged in rows by shell: 1s; 2s 2p; 3s 3p 3d; 4s 4p 4d 4f; 5s 5p 5d 5f; 6s 6p 6d; 7s 7p. Diagonal arrows running from upper right to lower left give the filling order: 1s, 2s, 2p, 3s, 3p, 4s, 3d, 4p, 5s, 4d, 5p, 6s, 4f, 5d, 6p, 7s, 5f, 6d, 7p.
Follow the diagonal arrows to get the filling order.

Worked example

Worked example: Writing a configuration

Question: Write the full and noble-gas configurations of sulfur (Z = 16).

  1. 16 electrons, filled in order: 1s² (2), 2s² (4), 2p⁶ (10), 3s² (12), 3p⁴ (16)
  2. Full: 1s2 2s2 2p6 3s2 3p41s^2\, 2s^2\, 2p^6\, 3s^2\, 3p^4
  3. Noble-gas form: [Ne] 3s² 3p⁴: 6 valence electrons, two of them unpaired (Hund’s rule).

Worked example: A transition-metal ion

Question: Write the configuration of FeX3+\ce{Fe^3+} (Fe: Z = 26).

  1. Fe atom: [Ar] 3d⁶ 4s²
  2. Remove 3 electrons, 4s first: remove both 4s electrons, then one 3d electron.
  3. FeX3+\ce{Fe^3+}: [Ar] 3d⁵ (five unpaired electrons, one in each 3d orbital)

Common mistake

Common mistake: Filling 3d before 4s

Potassium is [Ar] 4s¹, not [Ar] 3d¹. The 4s subshell fills before 3d.

Common mistake: Removing 3d electrons first from transition metals

When transition metals form ions, the 4s electrons are removed first. FeX2+\ce{Fe^2+} is [Ar] 3d⁶, not [Ar] 3d⁴ 4s².

Common mistake: Pairing electrons too early

Hund’s rule: put one electron in each orbital of a subshell before pairing. Oxygen’s 2p⁴ is [↑↓] [↑] [↑], with two unpaired electrons.

Notation note

  • Superscripts are sometimes written on the line, e.g. 1s2 2s2 2p4, when superscripts aren’t available.
  • The order of writing 3d and 4s varies between textbooks ([Ar] 3d⁶ 4s² or [Ar] 4s² 3d⁶). Both are accepted.
  • “Aufbau” is German for “building up”.

Remember this

Remember this

  • Subshell capacities: s 2, p 6, d 10, f 14; each orbital holds 2 electrons.
  • Fill in order (4s before 3d); Hund’s rule: spread out before pairing.
  • Noble-gas shorthand: [previous noble gas] + outer electrons.
  • Transition-metal ions lose 4s electrons first. Exceptions: Cr and Cu.

Test yourself

Check your understanding before moving on.

Flashcards

Electron Configuration: Flashcards

10 cards

  1. Question
    How many electrons can s, p, d and f subshells hold?
    Answer

    s 2, p 6, d 10, f 14

  2. Question
    How many electrons can one orbital hold?
    Answer

    Two, with opposite spins (Pauli exclusion principle).

  3. Question
    Which fills first: 4s or 3d?
    Answer

    4s fills before 3d.

  4. Question
    What is Hund's rule?
    Answer

    Electrons occupy separate orbitals in a subshell, with parallel spins, before pairing up.

  5. Question
    Write the electron configuration of oxygen (Z = 8).
    Answer

    1s2 2s2 2p41s^2\, 2s^2\, 2p^4

  6. Question
    Write the noble-gas configuration of sodium (Z = 11).
    Answer

    [Ne] 3s¹

  7. Question
    Write the configuration of FeX2+\ce{Fe^2+} (Fe: Z = 26).
    Answer

    [Ar] 3d⁶ (the two 4s electrons are removed first)

  8. Question
    What are the electron configurations of chromium and copper?
    Answer

    Cr: [Ar] 3d⁵ 4s¹; Cu: [Ar] 3d¹⁰ 4s¹ (exceptions to the simple filling order).

  9. Question
    How many unpaired electrons does nitrogen have?
    Answer

    Three: its 2p³ electrons occupy three separate orbitals.

  10. Question
    What does the noble-gas core [Ar] represent?
    Answer

    The 18 electrons of argon: 1s2 2s2 2p6 3s2 3p61s^2\, 2s^2\, 2p^6\, 3s^2\, 3p^6

Quiz

Electron Configuration: Quiz

7 questions

  1. Question 1EasyWhat is the electron configuration of fluorine (Z = 9)?
    Show answer

    Answer: 1s2 2s2 2p51s^2\, 2s^2\, 2p^5

    9 electrons: 1s holds 2, 2s holds 2, and the remaining 5 go into 2p.

  2. Question 2EasyWhat is the noble-gas configuration of potassium (Z = 19)?
    Show answer

    Answer: [Ar] 4s¹

    After argon (18 electrons), the next subshell to fill is 4s, not 3d.

  3. Question 3MediumHow many unpaired electrons does an oxygen atom have?
    Show answer

    Answer: 2

    Oxygen 2p⁴: by Hund's rule, [↑↓] [↑] [↑], so two unpaired electrons.

  4. Question 4MediumWhat is the configuration of FeX2+\ce{Fe^2+} (Fe: Z = 26)?
    Show answer

    Answer: [Ar] 3d⁶

    Fe is [Ar] 3d⁶ 4s². Transition metals lose 4s electrons first, so Fe²⁺ is [Ar] 3d⁶.

  5. Question 5MediumWhich element has the configuration [Ne] 3s² 3p³?
    Show answer

    Answer: Phosphorus

    10 (Ne) + 2 + 3 = 15 electrons, so Z = 15: phosphorus.

  6. Question 6HardWhich is the correct ground-state configuration of copper (Z = 29)?
    Show answer

    Answer: [Ar] 3d¹⁰ 4s¹

    Copper is an exception: a completely filled 3d subshell is especially stable, so one 4s electron moves to 3d.

  7. Question 7EasyWhat does the Pauli exclusion principle state?
    Show answer

    Answer: An orbital holds at most two electrons, with opposite spins

    That is Pauli. Filling lowest energy first is the Aufbau principle; spreading out before pairing is Hund's rule.

Notes and downloads

  • Worksheet

    Electron Configuration Worksheet

    9 questions on configurations of atoms and ions, orbital diagrams and unpaired electrons. Answer key included.

    IntermediateFree

References

  1. Brown, T. L.; LeMay, H. E., Jr.; Bursten, B. E.; Murphy, C. J.; Woodward, P. M.; Stoltzfus, M. W. Chemistry: The Central Science, 15th ed.; Pearson, 2022.

Spotted a mistake? Let us know and we'll fix it.