molecalculator

Moles & Molar Mass

Configuration of an Atom: Electrons, Shells & Orbitals

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

The configuration of an atom is the arrangement of its electrons in shells and subshells around the nucleus, usually written as a notation like 1s2 2s2 2p6… This arrangement determines the atom’s chemical behavior, size, and reactivity. Enter an atomic number or element symbol to get its ground-state electron configuration, the number of electrons per shell, and the valence shell count.

Formula

The electron configuration follows the Aufbau principle, which fills orbitals in order of increasing energy. The order is: 1s, 2s, 2p, 3s, 3p, 4s, 3d, 4p, 5s, 4d, 5p, 6s, 4f, 5d, 6p, 7s, 5f, 6d, 7p. Each orbital holds a maximum number of electrons:

  • s subshell: 1 orbital, max 2 electrons
  • p subshell: 3 orbitals, max 6 electrons
  • d subshell: 5 orbitals, max 10 electrons
  • f subshell: 7 orbitals, max 14 electrons

For an atom with atomic number Z, you add Z electrons one by one to the lowest-energy available orbital, respecting the Pauli exclusion principle (no two electrons share the same four quantum numbers) and Hund’s rule (fill each orbital singly before pairing). The notation nℓcount means principal quantum number n, subshell letter ℓ (s, p, d, f), and the number of electrons in that subshell.

Worked Example

Take iron, atomic number Z = 26. Add 26 electrons in order:

  1. 1s2 → 2 electrons (total 2)
  2. 2s2 → 2 (total 4)
  3. 2p6 → 6 (total 10)
  4. 3s2 → 2 (total 12)
  5. 3p6 → 6 (total 18)
  6. 4s2 → 2 (total 20) – note 4s fills before 3d
  7. 3d6 → 6 (total 26)

The configuration is 1s2 2s2 2p6 3s2 3p6 4s2 3d6. Electrons per shell: shell 1 has 2, shell 2 has 8, shell 3 has 14 (2+6+6), shell 4 has 2. Valence electrons (outermost shell, n=4) = 2. The calculator gives the same: config = 1s2 2s2 2p6 3s2 3p6 4s2 3d6, shells = 2,8,14,2, valence = 2.

Assumptions

  • Ground state (lowest energy) configuration, not an excited state.
  • Neutral atom – the number of electrons equals Z.
  • Standard Aufbau order for neutral atoms; some transition metals and lanthanides have exceptions (e.g., Cr and Cu) that the calculator does not model.
  • No relativistic effects (important only for very heavy elements).

How to Read the Configuration

The configuration tells you which orbitals are occupied and how many electrons are in each. The outermost electrons – those in the highest principal quantum number – are the valence electrons. They participate in bonding. For example, sodium (1s22s22p63s1) has one valence electron, which it readily loses to form Na+. The inner electrons (core electrons) are tightly bound and rarely involved in chemistry.

The periodic table is organized by configuration: elements in the same group have the same valence electron count. Lithium (2s1) and sodium (3s1) both have one valence electron, explaining their similar reactivity.

Common Mistakes and Misconceptions

  • Filling 3d before 4s: For neutral atoms, 4s is lower in energy than 3d, so it fills first. But when writing the configuration, you list subshells in order of principal quantum number: 3d comes after 4s in the notation, even though it fills later.
  • Counting valence electrons: For transition metals, the valence electrons are often considered to be the 4s electrons plus the 3d electrons, but the definition varies. The calculator uses the highest n shell only.
  • Ignoring exceptions: Chromium (Z=24) is actually 3d54s1, not 3d44s2, because a half-filled d subshell is more stable. Copper (Z=29) is 3d104s1. The calculator gives the Aufbau-predicted configuration, not the experimental one for these exceptions.

Why Configuration Matters

The configuration explains periodic trends: atomic radius, ionization energy, electronegativity, and electron affinity all depend on how tightly the outer electrons are held. For instance, fluorine (2p5) has a high electronegativity because it needs one more electron to complete its octet. Noble gases (ns2np6) have full shells, making them chemically inert.

Configuration also determines magnetic properties. Atoms with unpaired electrons (like iron’s 3d6 has four unpaired) are paramagnetic; those with all paired electrons are diamagnetic. This matters in materials science and spectroscopy.

Limits of the Model

The Aufbau principle is a useful approximation, but it fails for many heavier elements. For example, the actual configuration of tungsten (Z=74) is 4f145d46s2, not 5d46s2 as predicted. The order of orbital energies shifts with nuclear charge and electron-electron repulsion. For precise configurations, consult a spectroscopic database or a periodic table that lists experimental configurations.

Also, the shell model (electrons per shell) is a simplification. In reality, electrons are in orbitals that are not concentric spheres; they have complex shapes (s is spherical, p is dumbbell, d is cloverleaf). The shell count is still useful for chemistry because it reflects the principal quantum number.

Frequently Asked Questions

What is the difference between a shell and a subshell?

A shell is a group of orbitals with the same principal quantum number n (1, 2, 3, …). A subshell is a group within a shell with the same azimuthal quantum number ℓ (s, p, d, f). For n=3, there are three subshells: 3s, 3p, 3d. The shell capacity is 2n2 electrons, but the subshells fill in a specific order.

Why does 4s fill before 3d?

Because the 4s orbital is lower in energy than 3d for neutral atoms. This is due to penetration: the 4s electron spends more time near the nucleus than a 3d electron, so it is more tightly bound. This is a consequence of the radial distribution of the orbitals.

How do I find the valence electrons from the configuration?

Look at the highest principal quantum number n that has electrons. The electrons in that shell (all subshells with that n) are the valence electrons. For example, for potassium (1s22s22p63s23p64s1), the highest n is 4, so the valence electron count is 1.

Are there exceptions to the Aufbau principle?

Yes, about 20 elements, mostly transition metals and lanthanides, have configurations that differ from the simple Aufbau prediction. The most common are chromium and copper, where a half-filled or fully filled d subshell is more stable than a partially filled one. The calculator does not account for these exceptions.

What does the superscript in 2p6 mean?

The superscript indicates the number of electrons in that subshell. 2p6 means the 2p subshell has 6 electrons, which fills all three p orbitals (2 electrons each). A full subshell is more stable than a partially filled one.

Related

Formula used
in z | Atomic number (Z) | - | 26 | 1 | 118
out config | Electron configuration | - | ec(z) | 0
out shells | Electrons per shell (1..7) | - | shell(z) | 0
out valence | Valence electrons | - | val(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 →