Electron Configuration Calculator

Find the electron configuration of any element. Get the full configuration, noble gas shorthand notation, orbital diagram, and number of valence electrons.

Electron Configuration Result

Full Electron Configuration
Noble Gas Shorthand
Total Electrons
Valence Electrons
Electron Shells

Electrons per Shell

Orbital Diagram

What is Electron Configuration?

Electron configuration is the arrangement of electrons in an atom's orbitals. Every atom consists of a positively charged nucleus surrounded by negatively charged electrons. These electrons do not orbit the nucleus in random paths; instead, they occupy specific energy levels and sublevels that are described by quantum mechanics. The electron configuration tells us exactly how these electrons are distributed among the available orbitals.

The electron configuration is written as a sequence of subshell labels, each followed by a superscript indicating the number of electrons in that subshell. For example, the electron configuration of oxygen (atomic number 8) is 1s2 2s2 2p4. This tells us that oxygen has 2 electrons in the 1s subshell, 2 electrons in the 2s subshell, and 4 electrons in the 2p subshell, for a total of 8 electrons.

Understanding electron configuration is fundamental to chemistry because it determines an element's chemical properties, its position in the periodic table, the types of bonds it can form, its reactivity, its magnetic properties, and the colors of light it can absorb or emit. In essence, virtually every chemical and physical property of an element can be traced back to its electron configuration.

The Three Fundamental Rules

Three fundamental principles govern how electrons fill the available orbitals in an atom. Together, these rules predict the ground-state electron configuration of every element in the periodic table.

1. The Aufbau Principle

The word "Aufbau" comes from German and means "building up." The Aufbau principle states that electrons fill orbitals starting from the lowest energy level and moving progressively to higher energy levels. In other words, an electron will always occupy the lowest-energy orbital available before filling a higher-energy orbital.

The energy of an orbital depends on two quantum numbers: the principal quantum number (n), which defines the shell, and the angular momentum quantum number (l), which defines the subshell type (s, p, d, or f). The general filling order follows the (n + l) rule: orbitals with a lower sum of (n + l) are filled first. When two orbitals have the same (n + l) value, the one with the lower n is filled first.

This produces the well-known filling order: 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 fills before 4d. This is because the 4s orbital has a lower energy than the 3d orbital for neutral atoms (though this reverses for ions, which is why some transition metal ions lose their s electrons first).

2. The Pauli Exclusion Principle

Formulated by Wolfgang Pauli in 1925, the Pauli exclusion principle states that no two electrons in the same atom can have identical sets of all four quantum numbers. Since each orbital is defined by three quantum numbers (n, l, and ml), and the fourth quantum number (ms, the spin quantum number) can only be +1/2 or -1/2, each orbital can hold a maximum of two electrons, and those two electrons must have opposite spins.

This principle has profound consequences. It explains why each s subshell holds at most 2 electrons (1 orbital x 2), each p subshell holds at most 6 electrons (3 orbitals x 2), each d subshell holds at most 10 electrons (5 orbitals x 2), and each f subshell holds at most 14 electrons (7 orbitals x 2). Without the Pauli exclusion principle, all electrons would collapse into the lowest energy orbital, and chemistry as we know it would not exist.

3. Hund's Rule

Hund's rule (also called the rule of maximum multiplicity) states that when electrons occupy orbitals of equal energy (degenerate orbitals), they fill each orbital singly before pairing up, and all singly occupied orbitals have electrons with the same spin direction. This minimizes electron-electron repulsion and leads to a more stable arrangement.

For example, consider the 2p subshell of nitrogen (atomic number 7). Nitrogen has 3 electrons in its 2p subshell. According to Hund's rule, these 3 electrons each occupy one of the three 2p orbitals with parallel spins, rather than two electrons pairing in one orbital and the third going into another. This is why nitrogen has three unpaired electrons and is paramagnetic.

Hund's rule can be understood intuitively: electrons are negatively charged and repel each other. By occupying separate orbitals, they stay farther apart on average, reducing repulsion and lowering the total energy of the atom.

Electron Configuration Chart (Aufbau Filling Order)

The Aufbau filling order can be remembered using a simple diagonal diagram. Write out the subshells in order of increasing principal quantum number, then draw diagonal arrows from top-right to bottom-left. Following the arrows gives you the correct filling order.

1s 2s 2p 3s 3p 3d 4s 4p 4d 4f 5s 5p 5d 5f 6s 6p 6d 7s 7p Filling Order: 1s → 2s → 2p → 3s → 3p → 4s → 3d → 4p → 5s → 4d → 5p → 6s → 4f → 5d → 6p → 7s → 5f → 6d → 7p

How to Write Electron Configuration - Step by Step

Writing the electron configuration of an element is a systematic process. Follow these steps:

  1. Determine the total number of electrons. For a neutral atom, this equals the atomic number. For a cation (positive ion), subtract the charge from the atomic number. For an anion (negative ion), add the magnitude of the charge to the atomic number.
  2. Follow the Aufbau filling order. Begin filling electrons into orbitals starting from 1s and following the order: 1s, 2s, 2p, 3s, 3p, 4s, 3d, 4p, 5s, 4d, 5p, 6s, 4f, 5d, 6p, 7s, 5f, 6d, 7p.
  3. Respect subshell capacities. Each s subshell holds 2 electrons, each p subshell holds 6, each d subshell holds 10, and each f subshell holds 14.
  4. Apply Hund's rule for orbital diagrams. Within a subshell, distribute electrons one per orbital (with parallel spins) before pairing any.
  5. Check for exceptions. Certain elements (like chromium and copper) have configurations that deviate from the standard filling order due to the extra stability of half-filled or fully filled d subshells.
  6. Write the result. List each occupied subshell with its electron count as a superscript. For example, iron (Fe, Z=26) is 1s2 2s2 2p6 3s2 3p6 4s2 3d6.

Noble Gas Shorthand Notation

Writing out the full electron configuration for heavy elements can be quite long. The noble gas shorthand notation simplifies this by replacing the core electrons (those matching the configuration of the preceding noble gas) with the chemical symbol of that noble gas in square brackets.

The noble gases and their electron counts are:

  • [He] - Helium (2 electrons)
  • [Ne] - Neon (10 electrons)
  • [Ar] - Argon (18 electrons)
  • [Kr] - Krypton (36 electrons)
  • [Xe] - Xenon (54 electrons)
  • [Rn] - Radon (86 electrons)

For example, the full configuration of sulfur (Z=16) is 1s2 2s2 2p6 3s2 3p4. The first 10 electrons (1s2 2s2 2p6) match the configuration of neon, so the shorthand is [Ne] 3s2 3p4. This notation makes it much easier to focus on the valence electrons that determine chemical behavior.

Valence Electrons

Valence electrons are the electrons in the outermost shell (highest principal quantum number) of an atom. These are the electrons that participate in chemical bonding and determine the chemical properties of an element.

For main group elements (s-block and p-block), the valence electrons are simply those in the highest energy level. For example, sulfur has the configuration [Ne] 3s2 3p4. The outermost shell is n=3, which contains 2 + 4 = 6 valence electrons. This is why sulfur is in Group 16 (or VIA) of the periodic table.

For transition metals (d-block elements), the situation is slightly more complex. The valence electrons include both the outermost s electrons and the d electrons in the (n-1) shell that are being filled. For example, iron ([Ar] 3d6 4s2) can exhibit multiple oxidation states because both the 4s and 3d electrons can participate in bonding.

The number of valence electrons directly determines how many bonds an atom can form, its typical oxidation states, and its position within a group of the periodic table. Elements in the same group have the same number of valence electrons, which is why they exhibit similar chemical behavior.

Exceptions to the Aufbau Principle

While the Aufbau principle correctly predicts the electron configurations of most elements, there are notable exceptions, particularly among the transition metals and lanthanides/actinides. These exceptions arise because half-filled (d5) and fully filled (d10) subshells have extra stability due to exchange energy effects and symmetrical electron distribution.

Element Expected Configuration Actual Configuration Reason
Chromium (Cr, Z=24) [Ar] 3d4 4s2 [Ar] 3d5 4s1 Half-filled 3d subshell is more stable
Copper (Cu, Z=29) [Ar] 3d9 4s2 [Ar] 3d10 4s1 Fully filled 3d subshell is more stable
Molybdenum (Mo, Z=42) [Kr] 4d4 5s2 [Kr] 4d5 5s1 Half-filled 4d subshell is more stable
Silver (Ag, Z=47) [Kr] 4d9 5s2 [Kr] 4d10 5s1 Fully filled 4d subshell is more stable
Gold (Au, Z=79) [Xe] 4f14 5d9 6s2 [Xe] 4f14 5d10 6s1 Fully filled 5d subshell is more stable
Palladium (Pd, Z=46) [Kr] 4d8 5s2 [Kr] 4d10 Fully filled 4d, empty 5s is more stable
Platinum (Pt, Z=78) [Xe] 4f14 5d8 6s2 [Xe] 4f14 5d9 6s1 Nearly filled 5d is more stable

These exceptions highlight the limitations of simple filling rules. The actual configuration of an atom is determined by the total energy of all its electrons, including electron-electron repulsion and exchange interactions. When moving an electron from an s orbital to a d orbital lowers the total energy, the exception occurs. This phenomenon is particularly common in the 4th and 5th periods of the periodic table.

Electron Configuration and the Periodic Table

The periodic table is organized in a way that directly reflects electron configurations. The table is divided into four blocks based on which type of subshell is being filled:

  • s-block (Groups 1-2 and Helium): Elements whose valence electrons are filling an s subshell. This includes the alkali metals (Group 1: ns1) and alkaline earth metals (Group 2: ns2), as well as hydrogen and helium.
  • p-block (Groups 13-18): Elements whose valence electrons are filling a p subshell. This includes the metalloids, nonmetals, halogens, and noble gases. The p subshell holds up to 6 electrons, corresponding to the 6 groups in this block.
  • d-block (Groups 3-12): The transition metals, whose electrons are filling a d subshell. The d subshell holds up to 10 electrons, corresponding to the 10 groups of transition metals. Note that the d electrons being filled are in the (n-1) shell, not the n shell.
  • f-block (Lanthanides and Actinides): The inner transition metals, whose electrons are filling an f subshell. The f subshell holds up to 14 electrons. The lanthanides fill the 4f subshell, while the actinides fill the 5f subshell.

Understanding this relationship means you can quickly determine an element's general electron configuration just by knowing its position in the periodic table. For example, any element in the 4th period, Group 16 (like selenium, Se) will have a configuration ending in 4s2 3d10 4p4, because it is in the p-block with 4 electrons in the 4p subshell.

Frequently Asked Questions

What is the electron configuration of oxygen (O, Z=8)?

Oxygen has 8 electrons. Following the Aufbau filling order: 1s2 2s2 2p4. In noble gas shorthand, this is [He] 2s2 2p4. Oxygen has 6 valence electrons (2 in 2s + 4 in 2p), which is why it is in Group 16 and typically forms 2 bonds (needing 2 more electrons to complete its octet).

What is the electron configuration of carbon (C, Z=6)?

Carbon has 6 electrons. Its configuration is 1s2 2s2 2p2, or in shorthand: [He] 2s2 2p2. Carbon has 4 valence electrons. According to Hund's rule, the two 2p electrons occupy two separate 2p orbitals with parallel spins, leaving one 2p orbital empty. This gives carbon the ability to form 4 covalent bonds, making it the foundation of organic chemistry.

What is the electron configuration of sulfur (S, Z=16)?

Sulfur has 16 electrons. Its full configuration is 1s2 2s2 2p6 3s2 3p4. In noble gas shorthand: [Ne] 3s2 3p4. Sulfur has 6 valence electrons in its third shell. Like oxygen (which is directly above it in Group 16), sulfur commonly forms 2 bonds but can also expand its octet to form 4 or 6 bonds, since it has accessible 3d orbitals.

What is the electron configuration of iron (Fe, Z=26)?

Iron has 26 electrons. Its configuration is 1s2 2s2 2p6 3s2 3p6 4s2 3d6, or in shorthand: [Ar] 3d6 4s2. Iron commonly forms Fe2+ and Fe3+ ions. Fe2+ loses the two 4s electrons to become [Ar] 3d6. Fe3+ loses both 4s electrons and one 3d electron to become [Ar] 3d5 (a half-filled d subshell, which is particularly stable).

What is the electron configuration of sodium (Na, Z=11)?

Sodium has 11 electrons. Its full configuration is 1s2 2s2 2p6 3s1. In noble gas shorthand: [Ne] 3s1. Sodium has just 1 valence electron in its outermost 3s orbital. This single electron is easily removed, which is why sodium is highly reactive and always forms Na+ ions in chemical reactions. The Na+ ion has the same electron configuration as neon: 1s2 2s2 2p6.

Why does chromium have the configuration [Ar] 3d5 4s1 instead of [Ar] 3d4 4s2?

The expected configuration based on the Aufbau principle would be [Ar] 3d4 4s2, but chromium's actual configuration is [Ar] 3d5 4s1. This occurs because a half-filled d subshell (d5) has extra stability due to two factors: (1) exchange energy, which is maximized when the maximum number of electrons have parallel spins, and (2) the symmetrical distribution of electron density across all five d orbitals, which minimizes electron-electron repulsion. The energy gain from achieving d5 more than compensates for the energy cost of leaving the 4s subshell half-filled.

How do you determine valence electrons for transition metals?

For transition metals, the concept of valence electrons is more nuanced than for main group elements. Strictly speaking, valence electrons include the electrons in the outermost s subshell and the (n-1)d subshell. For example, iron ([Ar] 3d6 4s2) has 8 electrons that can potentially participate in bonding (2 from 4s + 6 from 3d). However, not all of these electrons are removed in every compound. Iron commonly shows oxidation states of +2 (losing 4s2) and +3 (losing 4s2 and one 3d electron). The variable oxidation states of transition metals arise because the energies of the ns and (n-1)d subshells are very close together.

What is the electron configuration of calcium (Ca, Z=20)?

Calcium has 20 electrons. Its full configuration is 1s2 2s2 2p6 3s2 3p6 4s2. In noble gas shorthand: [Ar] 4s2. Calcium has 2 valence electrons in the 4s subshell. It readily loses both to form Ca2+, which has the electron configuration of argon. This is why calcium is in Group 2 (alkaline earth metals) and always forms +2 ions.