molecalculator

Moles & Molar Mass

Electron Configuration: How to Write & Read Them

Calculator No. 01-10248 · 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 you can write one by following the Aufbau principle, Pauli exclusion principle, and Hund’s rule. This page explains the notation, the filling order, and how to derive configurations for any element on the periodic table. You’ll also see worked examples, common mistakes, and answers to frequent questions.

Formula

The electron configuration is built by filling orbitals in order of increasing energy, following these rules:

  • Aufbau principle: electrons occupy the lowest-energy available orbital first. The filling order is: 1s, 2s, 2p, 3s, 3p, 4s, 3d, 4p, 5s, 4d, 5p, 6s, 4f, 5d, 6p, 7s, 5f, 6d, 7p.
  • Pauli exclusion principle: each orbital holds at most two electrons, and they must have opposite spins.
  • Hund’s rule: within a subshell (e.g., p, d, f), electrons fill each orbital singly before pairing up.

The notation lists the principal quantum number (n), the subshell letter (s, p, d, f), and a superscript for the number of electrons in that subshell. For example, 1s2 means two electrons in the 1s orbital. The total of all superscripts equals the atomic number Z for a neutral atom.

For the calculator above, the configuration is generated by assigning electrons to orbitals in the Aufbau order until all Z electrons are placed. The noble-gas core notation replaces the filled inner shells with the symbol of the preceding noble gas in brackets (e.g., [Ar] for argon, Z=18). Unpaired electrons are counted by applying Hund’s rule to the partially filled subshells.

Worked Example

Let’s find the electron configuration for iron (Fe), atomic number Z = 26, using the default value in the calculator.

  1. Start filling orbitals in order: 1s (2), 2s (2), 2p (6), 3s (2), 3p (6), 4s (2), 3d (6).
  2. Total electrons placed: 2+2+6+2+6+2+6 = 26. All electrons are assigned.
  3. Write the configuration: 1s2 2s2 2p6 3s2 3p6 4s2 3d6.
  4. Noble-gas core: the preceding noble gas is argon (Z=18), so the core is [Ar]. The remaining electrons are 3d6 4s2, giving [Ar] 3d6 4s2.
  5. Unpaired electrons: the 3d subshell has 5 orbitals. With 6 electrons in 3d, Hund’s rule gives 5 singly occupied orbitals plus 1 paired electron, so there are 4 unpaired electrons.

These results match the calculator outputs exactly.

Assumptions

  • The atom is neutral (number of electrons = atomic number Z).
  • The ground-state (lowest energy) configuration is assumed, not an excited state.
  • The Aufbau filling order is the standard one taught in introductory chemistry; it holds for most elements but has a few exceptions among transition metals and lanthanides.
  • Orbital energies are taken as the approximate order for a typical many-electron atom; the exact order can shift with nuclear charge.

How to Read an Electron Configuration

Each part of the notation tells you something specific:

  • Number (1, 2, 3…): the principal energy level (shell). Higher numbers mean electrons are farther from the nucleus on average.
  • Letter (s, p, d, f): the subshell shape. s holds 2 electrons, p holds 6, d holds 10, f holds 14.
  • Superscript: the actual number of electrons in that subshell. For a filled subshell, it equals the maximum capacity.

For example, 1s2 2s2 2p4 is oxygen (Z=8): two electrons in the first shell, and six in the second shell (2 in s, 4 in p). The outermost electrons—those in the highest n value—are called valence electrons and largely determine chemical reactivity.

How to Choose the Filling Order

The Aufbau order is not strictly sequential by shell number; it follows increasing orbital energy. A simple way to remember it is the diagonal rule (Madelung rule): write the subshells in rows by n, then read diagonally from top right to bottom left. The order is:

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, and 5s before 4d. This happens because the 4s orbital is slightly lower in energy than 3d in neutral atoms. However, when writing the configuration, it is conventional to list subshells in order of increasing n (e.g., [Ar] 3d6 4s2 for Fe, not [Ar] 4s2 3d6), even though 4s fills first.

Common Mistakes and Exceptions

Students often make these errors:

  • Forgetting the 4s/3d order: writing 3d4 4s2 instead of 4s2 3d4 for chromium. Also, chromium is an exception: the actual configuration is [Ar] 3d5 4s1, not 3d4 4s2, because a half-filled d subshell is lower in energy.
  • Overfilling a subshell: each subshell has a maximum (s=2, p=6, d=10, f=14). Putting 3 electrons in an s orbital is impossible.
  • Miscounting electrons: the sum of superscripts must equal Z for a neutral atom. For ions, add or subtract electrons accordingly (e.g., Fe3+ has 23 electrons).
  • Ignoring Hund’s rule: for p3 (like nitrogen), all three electrons go into separate p orbitals with parallel spins, not two in one orbital.

Other notable exceptions include copper ([Ar] 3d10 4s1) and silver ([Kr] 4d10 5s1), where a filled d subshell is favored over a half-filled s. These exceptions are due to the extra stability of half-filled or fully filled subshells.

Why Electron Configuration Matters

The arrangement of electrons dictates an atom’s chemical behavior:

  • Valence electrons (outermost shell) determine how an atom bonds. Elements in the same group have similar configurations and thus similar chemistry.
  • Ionization energy trends reflect how tightly electrons are held; removing a core electron is much harder than removing a valence electron.
  • Magnetic properties arise from unpaired electrons. Atoms or ions with unpaired electrons are paramagnetic (attracted to a magnetic field); those with all paired electrons are diamagnetic.
  • Spectroscopy and color of transition metal compounds depend on d-electron transitions between orbitals.

For example, iron’s 4 unpaired 3d electrons make it strongly magnetic in its metallic form, and its ability to lose different numbers of electrons (Fe2+ and Fe3+) stems from the similar energies of the 4s and 3d orbitals.

Frequently Asked Questions

How do I write the configuration for an ion?

Start with the neutral atom’s configuration, then add or remove electrons from the highest-energy orbital (usually the one with the largest n). For a cation like Fe3+ (Z=26), remove electrons from 4s first, then 3d: [Ar] 3d5. For an anion like O2− (Z=8), add two electrons to the 2p subshell: 1s2 2s2 2p6.

Why does 4s fill before 3d?

In neutral atoms, the 4s orbital has a slightly lower energy than 3d because of electron shielding and penetration effects. However, once electrons occupy the 3d orbitals, they shield the 4s electrons more, so in transition metal cations, 4s electrons are lost first. This is why the 4s is written after 3d in the final notation.

What is the difference between electron configuration and orbital diagram?

An electron configuration is a compact notation listing subshells and electron counts (e.g., 1s2 2s2 2p2 for carbon). An orbital diagram shows each orbital as a box and each electron as an arrow (up or down), making it easier to see unpaired electrons and spin. The configuration is more concise; the diagram shows the same information with more detail.

How do I know how many valence electrons an element has?

For main-group elements (s and p blocks), the valence electrons are the sum of the superscripts in the outermost shell (highest n). For example, chlorine ([Ne] 3s2 3p5) has 7 valence electrons. For transition metals, the valence electrons are usually the ns electrons plus the (n−1)d electrons, but the d electrons are often considered separately in bonding.

Are there any elements that don’t follow the Aufbau principle?

Yes, about 20 elements have exceptions, mostly in the d and f blocks. Chromium (Cr), copper (Cu), niobium (Nb), molybdenum (Mo), ruthenium (Ru), rhodium (Rh), palladium (Pd), silver (Ag), platinum (Pt), and gold (Au) are common examples. The exceptions arise because a half-filled or fully filled d subshell is more stable than the predicted configuration.

What does the superscript number mean exactly?

The superscript tells you how many electrons occupy that subshell. For example, in 2p4, there are four electrons in the 2p subshell. Since a p subshell has three orbitals, each holding two electrons, four electrons means two orbitals are fully paired and one orbital has a single unpaired electron (by Hund’s rule).

Related

Formula used
in z | Atomic number Z | - | 26 | 1 | 118
out config | Electron configuration | - | 1s2 2s2 2p6 3s2 3p6 4s2 3d6 | 0
out core | Noble-gas core notation | - | [Ar] 3d6 4s2 | 0
out unpaired | Unpaired electrons | - | 4 | 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 →