Chemistry Tool

Electron Configuration Builder

Build and visualize electron configurations for chemical elements. Explore electron shells, s, p, d and f subshells, orbital filling and electron distribution in real time.

  • 118 Elements
  • Interactive
  • Real-Time Visualization
  • Orbital Filling
  • Chemistry Learning Tool

01 Select Element

Full electron configuration

Noble gas notation

Electron shell distribution

Orbital filling diagram

Press Play to animate electron filling, or Step to advance one electron at a time.

Orbital filling order (Aufbau)

Orbital filling table

OrbitalOrbitalsCapacityOccupied

Mini periodic table

Legend

s subshell p subshell d subshell f subshell unpaired electron paired electrons

What is electron configuration?

Electron configuration is the way an atom's electrons are arranged in atomic orbitals, written as subshell labels with superscript electron counts — for example, carbon is 1s² 2s² 2p².

Every neutral atom has as many electrons as protons. Those electrons do not sit randomly: they occupy quantised energy levels called shells, which contain subshells (s, p, d, f), each of which contains one or more orbitals. The configuration tells you exactly how many electrons are in each subshell and therefore predicts chemical behaviour — which electrons are available for bonding, which elements behave similarly, and why the periodic table has its shape.

This Electron Configuration Builder lets you select any of the 118 confirmed elements, see the accepted ground-state configuration, view orbital box diagrams with correct Hund and Pauli filling, and watch electrons placed step by step. Everything runs in your browser with no sign-up and no data sent to a server.

How electron configuration works

Three rules govern how electrons fill orbitals in neutral atoms. First, the Aufbau principle directs electrons into orbitals in order of increasing energy: 1s, 2s, 2p, 3s, 3p, 4s, 3d, 4p, and so on. Second, Hund's rule requires that when a subshell has several equivalent orbitals (such as the three 2p orbitals), each orbital gets one electron before any is paired. Third, the Pauli exclusion principle limits each orbital to two electrons with opposite spins.

Shell distribution is derived by adding the electrons in all subshells that share the same principal quantum number n. Carbon has 2 electrons in shell 1 (1s²) and 4 in shell 2 (2s² 2p²), giving K = 2 and L = 4. The tool calculates this automatically from the configuration string rather than using hard-coded tables.

Electron shells, subshells and orbitals

What are electron shells?

A shell is a principal energy level identified by quantum number n (1, 2, 3…). The first shell (K) holds up to 2 electrons, the second (L) up to 8, the third (M) up to 18, and so on, following 2n². In this tool, shell distribution counts how many electrons actually occupy each n for the selected element.

What are subshells?

Each shell contains subshells labelled s, p, d or f. An s subshell has 1 orbital (max 2 e⁻), p has 3 orbitals (max 6 e⁻), d has 5 orbitals (max 10 e⁻), and f has 7 orbitals (max 14 e⁻). The subshell letter tells you the orbital shape in quantum mechanics; here we show orbital boxes, not circular paths.

What is an orbital?

An orbital is a region of space that holds at most two electrons. Orbital box diagrams represent each orbital as a box; arrows (↑ ↓) show electrons and their spins.

What are s, p, d and f subshells?

What is the s subshell?

The s subshell has one spherical orbital and holds up to 2 electrons. Every principal shell contains an s subshell.

Hydrogen and helium occupy the 1s subshell. Because there is only one orbital, s electrons have no degeneracy and Hund's rule does not change the diagram. Helium completes 1s², the first noble gas configuration.

What is the p subshell?

The p subshell has three orbitals and holds up to 6 electrons. It first appears in shell 2.

Carbon, nitrogen and oxygen illustrate p filling clearly. Carbon 2p² shows two unpaired electrons; nitrogen 2p³ shows three unpaired electrons (half-filled subshell); oxygen 2p⁴ shows the first p orbital paired with four electrons total across three boxes.

What is the d subshell?

The d subshell has five orbitals and holds up to 10 electrons. It first appears in shell 3 but fills after 4s for most transition series elements.

Transition metals derive their colour, magnetism and variable oxidation states from partially filled d subshells. Iron's [Ar] 3d⁶ 4s² configuration places six d electrons that participate in bonding and redox chemistry.

What is the f subshell?

The f subshell has seven orbitals and holds up to 14 electrons. Lanthanides and actinides fill the 4f and 5f subshells respectively.

Lanthanum and actinium start the f blocks; cerium's [Xe] 4f¹ 5d¹ 6s² shows that f and d filling can compete at the beginning of the series. The tool uses the accepted configurations from the dataset for every lanthanide and actinide.

Aufbau principle, Hund's rule and Pauli exclusion

Aufbau principle

The Aufbau principle describes the general tendency of electrons to occupy lower-energy orbitals before higher-energy ones. The canonical filling sequence is 1s → 2s → 2p → 3s → 3p → 4s → 3d → 4p → 5s → 4d → 5p → 6s → 4f → 5d → 6p → 7s → 5f → 6d → 7p. The builder highlights which subshells are occupied for your selected element and animates electrons in this order.

Hund's rule

When degenerate orbitals of equal energy are available — the three 2p orbitals, for example — electrons occupy separate orbitals with parallel spins before any pairing occurs. This maximises total spin and lowers exchange energy. In the orbital diagram, nitrogen's 2p³ appears as three separate ↑ arrows, not one paired box and one empty box.

Pauli exclusion principle

No two electrons in an atom can have the same set of four quantum numbers. Practically, each orbital holds at most two electrons and they must have opposite spins (↑↓). The visualizer never shows two parallel spins in the same box.

Shell distribution explained

Shell distribution counts how many electrons occupy each principal energy level n. It is not the same as a Bohr planetary model — electrons are not orbiting in simple circles. Instead, the shell view summarises total electron count per n derived from the configuration.

For sodium ([Ne] 3s¹), shell 1 holds 2 electrons, shell 2 holds 8, and shell 3 holds 1. For argon ([Ne] 3s² 3p⁶), shell 3 holds 8 electrons, completing the octet. The tool recalculates shell totals instantly when you change elements using the parsed subshell string, so the numbers always match the displayed configuration.

How to write electron configuration

Write subshells in order of filling. Each label has three parts: the principal number (1, 2, 3…), the subshell letter (s, p, d, f), and a superscript count of electrons. Example: 2p⁴ means four electrons in the 2p subshell.

Noble gas notation shortens the string by replacing inner electrons with the previous noble gas in brackets. Sodium is [Ne] 3s¹ instead of 1s² 2s² 2p⁶ 3s¹. Switch between full and noble gas views in the tool using the configuration tabs.

Electron configuration examples

Hydrogen: 1s¹. Carbon: 1s² 2s² 2p². Oxygen: 1s² 2s² 2p⁴. Sodium: [Ne] 3s¹. Chlorine: [Ne] 3s² 3p⁵. Iron: [Ar] 3d⁶ 4s².

  • Hydrogen (1): 1s¹ — one electron in the lowest orbital.
  • Helium (2): 1s² — first shell complete.
  • Carbon (6): 1s² 2s² 2p² — two unpaired p electrons explain carbon's bonding versatility.
  • Oxygen (8): 1s² 2s² 2p⁴ — six valence electrons (2s² 2p⁴).
  • Sodium (11): [Ne] 3s¹ — one valence electron, typical alkali metal.
  • Chlorine (17): [Ne] 3s² 3p⁵ — one electron short of a full p subshell.
  • Iron (26): [Ar] 3d⁶ 4s² — transition metal with partially filled d orbitals.

Transition metal exceptions: chromium and copper

Chromium is [Ar] 3d⁵ 4s¹, not [Ar] 3d⁴ 4s². Copper is [Ar] 3d¹⁰ 4s¹, not [Ar] 3d⁹ 4s².

Half-filled and fully filled d subshells gain extra stability from electron exchange energy. Chromium promotes one 4s electron to 3d to achieve 3d⁵ 4s¹. Copper promotes one 4s electron to reach 3d¹⁰ 4s¹. Similar exceptions appear for molybdenum, silver, gold and several others. This builder uses the accepted configurations stored in the ToolAdda element dataset — not a naive algorithm that would misreport these elements.

4s and 3d: which fills first?

4s is normally filled before 3d when building the atom from scratch, but the 3d subshell lies lower in energy once the atom is formed. That is why transition-metal chemistry is dominated by d electrons even though 4s fills first on the way up.

Common mistakes

  • Pairing electrons in p orbitals before each orbital has one electron (violates Hund's rule).
  • Putting two electrons with the same spin in one orbital (violates Pauli exclusion).
  • Using the simplified Aufbau prediction for Cr and Cu instead of the established ground state.
  • Confusing shell capacity (2n²) with the actual number of electrons in a shell for a specific element.
  • Drawing Bohr-style circular orbits and calling them orbitals — orbital box diagrams are the standard teaching representation.

Frequently asked questions

What is electron configuration?

It is the distribution of electrons among an atom's orbitals, written with subshell notation such as 1s² 2s² 2p².

How do I find electron configuration?

Follow Aufbau order, Hund's rule and Pauli exclusion, or use this tool to look up any element from 1 to 118.

How many electrons can an s subshell hold?

Two electrons — one orbital with maximum occupancy 2.

How many electrons can a p subshell hold?

Six electrons — three orbitals, two each.

How many electrons can a d subshell hold?

Ten electrons — five orbitals, two each.

How many electrons can an f subshell hold?

Fourteen electrons — seven orbitals, two each.

What is an orbital?

A quantum region that holds up to two electrons with opposite spins.

What is the difference between a shell and a subshell?

A shell is the principal level (n); a subshell is a group of orbitals of the same type (s, p, d, f) within that shell.

What is noble gas notation?

Shorthand that replaces core electrons with a noble gas symbol in brackets, e.g. [Ne] 3s² 3p⁵ for chlorine.

What is the electron configuration of helium?

1s² — both electrons in the 1s orbital, first shell complete.

What is the electron configuration of nitrogen?

1s² 2s² 2p³ — three unpaired p electrons (Hund's rule).

What is the electron configuration of neon?

[He] 2s² 2p⁶ — full outer shell, noble gas.

Why does chromium have an unusual configuration?

A half-filled 3d⁵ subshell is stabilised by exchange energy, so the ground state is [Ar] 3d⁵ 4s¹.

Why does copper have an unusual configuration?

A filled 3d¹⁰ subshell is stabilised; the ground state is [Ar] 3d¹⁰ 4s¹.

Can I enter an atomic number?

Yes. Type any integer from 1 to 118 in the atomic number field.

Can I search by element symbol?

Yes. Type symbols such as Fe, O or Au in the search box.

Can I see the orbital diagram?

Yes. Orbital boxes with spin arrows appear for every occupied subshell.

Can I see shell distribution?

Yes. Each principal shell shows its electron count and a dot visualization.

Does the tool support all 118 elements?

Yes, including known ground-state exceptions for transition metals.

Can I visualize electron filling?

Yes. Use Play, Pause, Replay, Step and speed controls to animate placement.

How does Hund's rule affect the diagram?

Electrons singly occupy p, d and f orbitals before pairing; the diagram reflects this.

Is ion configuration supported?

This version focuses on neutral atoms for accuracy. Ion configurations for transition metals require careful removal order; use neutral ground states here.

Does the tool work offline?

Yes, once loaded — all data and logic are local.

What is the URL parameter for sharing?

Add ?element=8 to open with oxygen selected.

Keyboard shortcuts?

Arrow Left and Arrow Right move to the previous or next element when focus is not in an input field.

What is the electron configuration of gold?

[Xe] 4f¹⁴ 5d¹⁰ 6s¹ — another 5d/6s exception similar to copper.

What is the electron configuration of uranium?

[Rn] 5f³ 6d¹ 7s² — actinide with partially filled 5f orbitals.

How many electrons fit in the third shell?

Maximum 18 (2n² for n = 3), but the actual count depends on the element.

What are degenerate orbitals?

Orbitals in the same subshell with the same energy, such as the three 2p orbitals.

What does the superscript mean in 2p⁴?

Four electrons occupy the 2p subshell across its three orbitals.

Is this the same data as the periodic table tool?

Yes. Both tools share the same element dataset in chemistry-tools/data/elements.js.

More chemistry tools