molecalculator

Moles & Molar Mass

Atomic Structure and Electron Configuration

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

Atomic structure describes the arrangement of protons, neutrons, and electrons that make up an atom, while electron configuration specifies how those electrons are distributed among the atom’s orbitals. This page explains both concepts and provides a calculator to determine the electron configuration for any element using its atomic number.

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

Each orbital holds a maximum number of electrons:

  • s orbitals: 2 electrons
  • p orbitals: 6 electrons
  • d orbitals: 10 electrons
  • f orbitals: 14 electrons

The calculator takes the atomic number Z (number of protons, which equals the number of electrons in a neutral atom) and fills orbitals in the order above until all electrons are placed.

Worked Example

For iron, Z = 26. The electrons fill as follows:

  1. 1s: 2 electrons → 1s² (total 2)
  2. 2s: 2 electrons → 2s² (total 4)
  3. 2p: 6 electrons → 2p⁶ (total 10)
  4. 3s: 2 electrons → 3s² (total 12)
  5. 3p: 6 electrons → 3p⁶ (total 18)
  6. 4s: 2 electrons → 4s² (total 20)
  7. 3d: remaining 6 electrons → 3d⁶ (total 26)

The full configuration is 1s² 2s² 2p⁶ 3s² 3p⁶ 4s² 3d⁶. The noble-gas shorthand uses the preceding noble gas (argon, Z=18) as [Ar], giving [Ar] 4s² 3d⁶. Iron has 4 unpaired electrons in the 3d subshell (Hund’s rule: each d orbital gets one electron before pairing).

Assumptions

  • The atom is neutral (electrons = protons).
  • Orbitals fill in the standard aufbau order (no exceptions for transition metals or lanthanides).
  • Hund’s rule is applied: unpaired electrons maximize spin multiplicity.
  • The calculator does not account for relativistic effects or orbital energy shifts in heavy elements.

Background: What Is Atomic Structure?

An atom consists of a dense, positively charged nucleus surrounded by a cloud of negatively charged electrons. The nucleus contains protons (positive charge) and neutrons (no charge), collectively called nucleons. The number of protons defines the element (atomic number Z), while the sum of protons and neutrons gives the mass number A. Electrons are about 1/1836 the mass of a proton and occupy regions of space called orbitals, which are described by quantum mechanics rather than fixed paths.

This model evolved from Dalton’s indivisible atoms (1803), Thomson’s plum pudding (1897), Rutherford’s nuclear model (1911), and Bohr’s planetary model (1913) to the current quantum mechanical model based on Schrödinger’s equation (1926).

How Electron Configuration Works

Electrons are arranged in shells (principal energy levels, n=1,2,3…), subshells (s, p, d, f), and orbitals (specific regions where an electron is likely to be found). Each orbital is defined by three quantum numbers:

  • Principal quantum number (n): determines energy level and size.
  • Angular momentum quantum number (l): determines shape (0=s, 1=p, 2=d, 3=f).
  • Magnetic quantum number (ml): determines orientation in space.

The fourth quantum number, spin (ms), is either +½ or -½. The Pauli exclusion principle states that no two electrons in an atom can have the same set of all four quantum numbers, so each orbital holds at most two electrons with opposite spins.

The aufbau principle states that electrons fill orbitals from lowest to highest energy. However, the 4s orbital is filled before 3d because it has lower energy for neutral atoms (though this reverses for some ions). Hund’s rule says that within a subshell, electrons occupy empty orbitals singly before pairing up, minimizing electron-electron repulsion.

How to Read the Result

The full configuration shows every subshell and its electron count, e.g., 1s² 2s² 2p⁶. The superscript is the number of electrons in that subshell. The noble-gas shorthand replaces the core electrons (those of the nearest preceding noble gas) with the noble gas symbol in brackets, e.g., [Ne] 3s¹ for sodium. This makes long configurations compact.

The number of unpaired electrons is important for magnetic properties and chemical reactivity. For example, iron’s 4 unpaired electrons make it paramagnetic and allow multiple oxidation states (Fe²⁺, Fe³⁺).

For ions, you adjust the electron count: remove electrons from the highest-energy occupied orbital (for cations) or add to the lowest-energy vacant orbital (for anions). For transition metal cations, electrons are removed from the 4s orbital before the 3d.

Common Mistakes and Misconceptions

  • Mixing up 3d and 4s order: In neutral atoms, 4s fills before 3d, but in ions, 3d is lower in energy. For example, Fe²⁺ is [Ar] 3d⁶, not [Ar] 4s² 3d⁴.
  • Overfilling orbitals: Each subshell has a maximum (s=2, p=6, d=10, f=14); exceeding this is impossible.
  • Ignoring exceptions: Chromium (Z=24) and copper (Z=29) have anomalous configurations due to half-filled and fully-filled d subshells being more stable. Chromium is [Ar] 3d⁵ 4s¹, not [Ar] 3d⁴ 4s².
  • Using the wrong noble gas: The shorthand must use the noble gas immediately before the element in the periodic table.

Why Electron Configuration Matters

Electron configuration determines an element’s chemical properties, including:

  • Valence electrons: The electrons in the outermost shell (highest n) determine how atoms bond. For main-group elements, the group number often equals the number of valence electrons.
  • Periodic trends: Ionization energy, electronegativity, and atomic radius all correlate with electron configuration.
  • Spectroscopy: Transitions of electrons between energy levels produce characteristic emission and absorption spectra, used to identify elements in stars and lab samples.
  • Magnetism: Unpaired electrons create magnetic moments, leading to paramagnetism or ferromagnetism.

For example, the configuration of carbon (1s² 2s² 2p²) explains its tetravalency and ability to form long chains, the basis of organic chemistry.

Limitations of the Simple Model

The aufbau order works well for most elements, but heavy elements (Z > 70) show deviations due to relativistic effects and electron-electron interactions. For instance, the 4f and 5d orbitals have similar energies, leading to lanthanide contraction. The calculator assumes the standard order, which is adequate for most educational and practical purposes, but for precise predictions of transition metal or rare-earth properties, more advanced quantum calculations are needed.

Frequently Asked Questions

What is the difference between electron configuration and orbital diagram?

Electron configuration is a shorthand notation (e.g., 1s² 2s² 2p⁴) that lists subshells and electron counts. An orbital diagram uses boxes or lines for each orbital and arrows for electrons, showing their spin and how they are distributed within a subshell (e.g., one arrow per box before pairing). Both convey the same information, but the diagram is more visual and shows unpaired electrons directly.

Why does 4s fill before 3d?

In neutral atoms, the 4s orbital has a lower energy than 3d because of electron shielding and penetration effects. The 4s electron penetrates closer to the nucleus, making it more stable. However, when electrons are removed to form cations, the 3d becomes lower in energy, so electrons are removed from 4s first. This is why transition metal ions often have configurations like [Ar] 3dⁿ.

How do I write the electron configuration for an ion?

Start with the neutral atom’s configuration, then add or remove electrons according to the charge. For a cation (positive charge), remove electrons from the highest energy occupied orbital (usually the one with the largest n, e.g., 4s before 3d). For an anion (negative charge), add electrons to the lowest energy vacant orbital (e.g., adding to 2p for O²⁻). The number of electrons added or removed equals the charge magnitude.

What are the exceptions to the aufbau principle?

The main exceptions are chromium (Z=24) and copper (Z=29), where a half-filled or fully-filled d subshell is more stable than a filled 4s. Chromium is [Ar] 3d⁵ 4s¹, and copper is [Ar] 3d¹⁰ 4s¹. Similar exceptions occur in other transition metals (e.g., molybdenum, silver, gold) and lanthanides/actinides due to subtle energy differences.

Can two electrons in the same orbital have the same spin?

No. The Pauli exclusion principle states that no two electrons in an atom can have the same set of all four quantum numbers. If two electrons occupy the same orbital (same n, l, ml), they must have opposite spins (+½ and -½). This is why each orbital holds a maximum of two electrons.

How does electron configuration relate to the periodic table?

The periodic table is arranged by electron configuration. Elements in the same group have the same number of valence electrons (e.g., alkali metals have ns¹, halogens have ns² np⁵). The block structure (s, p, d, f) corresponds to the subshell being filled. The period number equals the highest principal quantum number n for the valence electrons.

Related

Formula used
in z | Atomic number (Z) | - | 26 | 1 | 118
out config | Electron configuration | - | "1s2 2s2 2p6 3s2 3p6 4s2 3d6" | 0
out noble | Noble-gas shorthand | - | "[Ar] 4s2 3d6" | 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 →