molecalculator

Moles & Molar Mass

Electron Configuration for Every Element

Calculator No. 01-9619 · 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.

This page explains how to write the electron configuration for every element in the periodic table, from hydrogen to oganesson. You enter an atomic number, and the calculator returns the full electron configuration in standard notation, plus the noble-gas shorthand and the number of unpaired electrons.

Formula

The electron configuration is built by filling atomic orbitals in order of increasing energy, following the Aufbau principle, Pauli exclusion principle, and Hund’s rule. The order of orbital filling is:

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

For an atom with atomic number Z, the configuration is the sequence of occupied subshells, each written as nℓcount, where n is the principal quantum number, ℓ is the subshell letter (s, p, d, f), and count is the number of electrons in that subshell. The sum of all counts equals Z.

The noble-gas shorthand replaces the core (the configuration of the previous noble gas) with its symbol in brackets, e.g., [Ar] for argon.

Worked Example

Using the default atomic number 26 (iron):

  1. Fill orbitals in order: 1s2, 2s2, 2p6, 3s2, 3p6, 4s2, 3d6.
  2. Count electrons: 2+2+6+2+6+2+6 = 26.
  3. Full configuration: 1s2 2s2 2p6 3s2 3p6 4s2 3d6.
  4. Shorthand: [Ar] 4s2 3d6.
  5. Unpaired electrons: in the 3d subshell with 6 electrons, Hund’s rule gives 4 unpaired (↑↑↑↑ then one pair).

The calculator returns exactly these results.

Assumptions

  • The Aufbau principle holds for neutral atoms in their ground state.
  • Orbital energies follow the standard (n+ℓ) rule, with exceptions for transition metals and lanthanides as listed in the periodic table.
  • Hund’s rule is applied to count unpaired electrons.
  • No relativistic effects are considered (they matter for superheavy elements beyond about Z=100).

How to Read the Result

The configuration tells you how electrons are distributed among shells and subshells. The outermost electrons (highest n) determine the element’s chemical properties. For example, sodium (Z=11) has [Ne] 3s1; the single 3s electron is easily lost to form Na⁺. The number of unpaired electrons correlates with magnetic behavior and typical valence.

Common Mistakes

  • Forgetting that 4s fills before 3d: write 4s2 3dn, not 3dn 4s2.
  • Using the previous noble gas incorrectly: for potassium (Z=19), the shorthand is [Ar] 4s1, not [Ne] 4s1.
  • Misapplying Hund’s rule: count unpaired electrons only after pairing starts; for d4, there are 4 unpaired, not 2.
  • Confusing the order for chromium and copper: they have exceptions (Cr: [Ar] 4s1 3d5, Cu: [Ar] 4s1 3d10) due to half-filled and filled subshell stability.

Exceptions and Periodic Trends

About 20 elements deviate from the simple Aufbau order. The most famous are chromium (Z=24) and copper (Z=29), where a 4s electron is promoted to the 3d subshell to achieve a half-filled or filled d subshell. Similar exceptions occur in the lanthanides (e.g., cerium, gadolinium) and actinides. The calculator uses the experimentally observed ground-state configurations for all elements, so you can rely on it for these cases.

Why It Matters

Electron configurations explain the periodic table’s structure: elements in the same group have the same outer-shell configuration, which is why they share chemical properties. They also predict ion formation, oxidation states, and magnetic properties. For example, the paramagnetism of oxygen (O2) arises from two unpaired electrons in its molecular orbitals, a concept that starts with atomic configurations.

Frequently Asked Questions

What is the electron configuration of gold?

Gold (Z=79) has the configuration [Xe] 4f14 5d10 6s1. The 5d subshell is filled and the 6s has one electron, a relativistic stabilization effect that makes gold’s characteristic yellow color.

How do I write the shorthand for an element?

Find the noble gas that comes before the element in the periodic table, put its symbol in brackets, then write the remaining electrons in order. For example, chlorine (Z=17) becomes [Ne] 3s2 3p5.

Why is the 4s subshell filled before the 3d?

In the ground state, the 4s orbital has a lower energy than the 3d for potassium and calcium, so it fills first. This is due to electron-electron repulsion and penetration effects. For transition metals, the 4s and 3d energies are close, leading to exceptions.

How many unpaired electrons does iron have?

Iron (Z=26) has four unpaired electrons in its 3d subshell. This explains its strong magnetic properties and common +2 and +3 oxidation states.

Can I use this for ions?

For cations, remove electrons from the highest n orbital first (e.g., Fe2+ loses 4s2 before 3d6). For anions, add electrons to the next available orbital. The calculator is for neutral atoms; adjust manually for ions.

What is the configuration of the heaviest element?

Oganesson (Z=118) has the predicted configuration [Rn] 5f14 6d10 7s2 7p6. It is a noble gas, but relativistic effects may alter its chemistry significantly.

Related

Formula used
in z | Atomic number | - | 26 | 1 | 118
out config | Electron configuration | - | config(z) | 0
out shorthand | Noble-gas shorthand | - | shorthand(z) | 0
out unpaired | Unpaired electrons | - | unpaired(z) | 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 →