molecalculator

Moles & Molar Mass

Electron Configuration s p d f Explained

Calculator No. 01-11178 · Updated · Formula and assumptions shown below

The calculator on this page is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

Electron configuration describes how electrons are arranged in an atom’s orbitals, and the letters s, p, d, and f denote the four types of atomic orbitals (subshells) that electrons occupy. These letters correspond to the sharp, principal, diffuse, and fundamental spectral series, and they define the shape and energy of each orbital. This page explains what each letter means, how to write configurations, and how to use them to predict an element’s properties.

Formula

The maximum number of electrons that can occupy a subshell is given by:

Maximum electrons = 2 × (2ℓ + 1)

where ℓ is the azimuthal quantum number (0 for s, 1 for p, 2 for d, 3 for f). The principal quantum number n (1, 2, 3, …) sets the energy level and size of the orbital. The calculator above takes n and ℓ and returns the subshell’s capacity (e.g., for n=3, ℓ=2, capacity = 10).

Worked Example

Using the defaults: n = 3, ℓ = 2 (d subshell), electrons = 6.

Capacity = 2 × (2×2 + 1) = 2 × 5 = 10 electrons. The subshell letter is ‘d’. The 6 electrons are fewer than the capacity, so this represents a partially filled 3d subshell (e.g., iron, Fe, has 6 electrons in 3d).

Assumptions

  • The azimuthal quantum number ℓ ranges from 0 to n−1 for a given n.
  • The maximum electron count follows the Pauli exclusion principle (each orbital holds two electrons with opposite spins).
  • The subshell letter mapping is standard: s=0, p=1, d=2, f=3.

What Do the Letters s, p, d, f Stand For?

The letters originate from early spectroscopy. When scientists observed atomic emission spectra, they classified lines into series they called sharp, principal, diffuse, and fundamental. The initial letters became the orbital labels. Later, after the letters f, the labels continue alphabetically (g, h, …), but only s, p, d, and f are occupied in ground-state atoms of known elements.

Each letter corresponds to a specific shape:

  • s orbitals are spherical and centered on the nucleus.
  • p orbitals are dumbbell-shaped, oriented along the x, y, or z axes.
  • d orbitals have more complex cloverleaf shapes (four lobes) plus one with a ring.
  • f orbitals have even more intricate shapes with multiple lobes.

How to Write an Electron Configuration

Electrons fill orbitals in order of increasing energy, following the Aufbau principle. The typical order is:

  1. 1s, 2s, 2p, 3s, 3p, 4s, 3d, 4p, 5s, 4d, 5p, 6s, 4f, 5d, 6p, 7s, 5f, 6d, 7p.
  2. Each s subshell holds up to 2 electrons, p up to 6, d up to 10, and f up to 14.
  3. Hund’s rule: within a subshell, electrons occupy empty orbitals singly before pairing.

For example, oxygen (8 electrons) has the configuration 1s² 2s² 2p⁴. The superscripts indicate the number of electrons in that subshell.

How to Choose the Correct Subshell Order

The order is determined by the (n + ℓ) rule: lower (n + ℓ) values fill first. If two subshells have the same (n + ℓ), the one with lower n fills first. For instance, 4s (n+ℓ = 4+0 = 4) fills before 3d (3+2 = 5). However, this rule has exceptions for transition metals and lanthanides where half-filled or fully filled subshells are more stable (e.g., chromium is 3d⁵ 4s¹, not 3d⁴ 4s²).

Common Mistakes and Misconceptions

  • Confusing the order of filling with the order in the periodic table: After 3p, 4s fills before 3d, but in the periodic table, the 3d block appears after 4s.
  • Writing 3d¹⁰ 4s² instead of 4s² 3d¹⁰: For neutral atoms, the standard notation lists subshells in order of increasing n, then ℓ, so 3d comes before 4s in the written form, even though 4s fills first.
  • Assuming all d and f orbitals are the same: d orbitals have five orientations, f has seven, each holding two electrons.
  • Ignoring exceptions: Copper (Cu) is [Ar] 3d¹⁰ 4s¹, not 3d⁹ 4s².

Using Configurations to Predict Properties

The outermost electrons (valence electrons) determine chemical reactivity. Elements in the same group have similar configurations. For example, all alkali metals end in s¹, making them highly reactive. Transition metals have partially filled d orbitals, giving them variable oxidation states and colored compounds. The f-block elements (lanthanides and actinides) have partially filled f orbitals, leading to similar chemical properties across the series.

Limitations and Advanced Notes

The simple Aufbau order works well for ground-state neutral atoms, but it fails for some ions and excited states. For transition metal ions, electrons are removed from the s subshell before the d subshell (e.g., Fe²⁺ is [Ar] 3d⁶, not 4s² 3d⁴). Relativistic effects become significant for heavy elements, altering orbital energies. The orbital shapes are also approximations; in multi-electron atoms, orbitals are not exactly the hydrogen-like shapes.

Frequently Asked Questions

Why are there only s, p, d, f orbitals? These are the only subshells that are occupied in the ground states of known elements. The next letter would be g (ℓ=4), but no ground-state atom has electrons in a g orbital.

How many electrons can each subshell hold? s holds 2, p holds 6, d holds 10, and f holds 14. This comes from 2(2ℓ+1).

What is the difference between electron configuration and orbital diagram? Configuration uses numbers and letters (e.g., 1s²), while an orbital diagram uses boxes and arrows to show individual electrons and spins.

Why does 4s fill before 3d? Because 4s has a lower energy than 3d in neutral atoms, as predicted by the (n+ℓ) rule. However, when ionizing, electrons are removed from 4s first because the 3d orbitals become lower in energy.

How do I write shorthand configurations? Use the noble gas core. For example, sodium is [Ne] 3s¹, where [Ne] represents the configuration of neon.

Are there exceptions to the Aufbau principle? Yes, about 20 elements, mostly transition metals and lanthanides, have configurations that differ from the predicted order due to extra stability from half-filled or fully filled subshells.

Related

Formula used
in n | Principal quantum number n | - | 3 | 1
in l | Azimuthal quantum number l | - | 2 | 0
in e | Number of electrons in subshell | - | 6 | 0
out cap | Maximum electrons in subshell | - | 2*(2*l+1) | 0
out sub | Subshell letter | - | (l==0?"s":(l==1?"p":(l==2?"d":"f"))) | 0

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.

More in this section

The whole Moles & Molar Mass section →