molecalculator

Moles & Molar Mass

Electron Configuration Grouping: How Atoms Arrange

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

Electron configurations are grouped by the four quantum numbers that define each electron’s state, but the practical grouping you see in the periodic table comes from the aufbau principle, Hund’s rule, and the Pauli exclusion principle. These rules determine the order in which atomic orbitals are filled, which in turn groups elements into s-, p-, d-, and f-blocks based on the type of orbital that receives the last electron. This article explains how that grouping works, how to write configurations, and what the patterns mean for chemical behavior.

Formula

The electron configuration is not a single formula but a set of ordering rules. The aufbau principle states that electrons fill orbitals from lowest to highest energy. The order is approximately:

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

Each orbital can hold a maximum of 2 electrons (Pauli exclusion principle), and within a subshell (e.g., the three p orbitals), electrons occupy empty orbitals singly before pairing up (Hund’s rule). The block of an element is determined by the subshell that receives the last electron: s-block (groups 1–2), p-block (groups 13–18), d-block (groups 3–12), and f-block (lanthanides and actinides).

Worked Example

Take iron, atomic number Z = 26 (the default). The order of filling is:

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

So the configuration is 1s² 2s² 2p⁶ 3s² 3p⁶ 4s² 3d⁶. The last electron enters a d orbital, so iron is a d-block element. The calculator above reproduces this using a built-in table of orbital order and capacities.

Assumptions

  • The aufbau order is the standard one taught in introductory chemistry; it is an approximation that works for neutral atoms in their ground state.
  • Exceptions exist for some transition metals and lanthanides (e.g., chromium and copper) where a half-filled or fully filled d subshell is more stable; the calculator uses the textbook order and does not account for those exceptions.
  • For ions, you would remove electrons from the highest-energy occupied orbital first (usually the ns orbital before the (n-1)d), but this calculator only handles neutral atoms.

Why Grouping Matters

The periodic table is organized by electron configuration. Elements in the same group (column) have the same number of valence electrons, which gives them similar chemical properties. For example, all alkali metals (group 1) have one electron in an s orbital, and all halogens (group 17) have five p electrons. The block structure also explains why transition metals show variable oxidation states—they can lose different numbers of d electrons.

How to Write a Configuration

To write a configuration for a neutral atom:

  1. Find the atomic number Z (number of protons, which equals the number of electrons).
  2. Follow the aufbau order, filling each subshell to its capacity (s=2, p=6, d=10, f=14).
  3. Stop when you have placed all Z electrons.
  4. Optionally, use the noble gas shorthand: write the symbol of the preceding noble gas in brackets, then continue from there. For iron, [Ar] 4s² 3d⁶.

Common Mistakes

  • Order of 4s and 3d: For transition metals, 4s fills before 3d, but when writing the configuration, it is conventional to list 3d before 4s (e.g., [Ar] 3d⁶ 4s² for iron). The calculator uses the filling order, not the listing order.
  • Exceptions: Chromium (Z=24) is [Ar] 3d⁵ 4s¹, not [Ar] 3d⁴ 4s². Copper (Z=29) is [Ar] 3d¹⁰ 4s¹. These arise because a half-filled or filled d subshell is lower in energy. The calculator does not correct for these; always double-check against a periodic table.
  • Ions: For cations, remove electrons from the highest n first (e.g., Fe²⁺ removes two 4s electrons, giving [Ar] 3d⁶). For anions, add electrons to the next available orbital.

How to Use the Calculator

Enter the atomic number (1–118) of any neutral element. The calculator returns the full electron configuration and the block. For example, Z=26 gives the configuration above and “d” as the block. Use this to quickly check your hand-written configurations or to see the pattern across a row.

Limitations and Alternatives

The aufbau principle is a useful mnemonic but not a law. For heavier elements, relativistic effects and electron-electron repulsion can change the order. A more accurate method is to use the Madelung rule (which is the same as aufbau) or to look up the actual configuration from a spectroscopic table. For ions, you need to account for the loss of electrons from the highest principal quantum number, not the last filled. The calculator is intended for educational purposes and standard textbook cases.

Frequently Asked Questions

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

In a hydrogen atom, the 4s and 3d orbitals have the same energy, but in multi-electron atoms, the 4s orbital is lower in energy because it is more penetrating (the electron spends more time near the nucleus). So 4s fills first. However, once the 3d orbitals start filling, they drop below 4s in energy, which is why transition metals lose 4s electrons first when forming ions.

What is the difference between a subshell and an orbital?

A subshell is a group of orbitals with the same principal and azimuthal quantum numbers (e.g., the p subshell has three p orbitals). An orbital is a specific region of space that can hold two electrons. For example, the 2p subshell has three orbitals (2px, 2py, 2pz), each holding up to two electrons, for a total of six.

How do I write the configuration for an ion?

Start with the neutral atom’s configuration, then remove electrons from the orbital with the highest principal quantum number (n). For example, Fe (Z=26) is [Ar] 4s² 3d⁶. For Fe²⁺, remove two 4s electrons → [Ar] 3d⁶. For Fe³⁺, remove one more 3d electron → [Ar] 3d⁵. For anions, add electrons to the next available orbital (e.g., O²⁻: [He] 2s² 2p⁶).

Why do some elements not follow the predicted order?

Chromium and copper are the classic exceptions. In chromium, the 3d⁵ 4s¹ configuration has a half-filled d subshell, which is extra stable due to exchange energy. In copper, a fully filled 3d¹⁰ 4s¹ is more stable than 3d⁹ 4s². Similar exceptions occur in the lanthanides and actinides. The calculator does not include these, so always verify with a periodic table.

What does “block” mean in the periodic table?

The block refers to the subshell that the element’s last electron occupies. The s-block includes groups 1 and 2 (plus helium), the p-block includes groups 13–18, the d-block includes the transition metals (groups 3–12), and the f-block includes the lanthanides and actinides. The block often correlates with properties: s-block metals are reactive, p-block includes metals and nonmetals, d-block are transition metals, and f-block are inner transition metals.

Can I use the noble gas shorthand for all elements?

Yes, for any element after helium. Write the symbol of the noble gas at the end of the previous period in brackets, then continue with the remaining configuration. For example, for potassium (Z=19), [Ar] 4s¹. This shorthand is concise and widely used. For elements before helium, write the full configuration.

Related

Formula used
in z | Atomic number Z | - | 26 | 1 | 118
out conf | Electron configuration | - | config(z) | 0
out block | Block (s/p/d/f) | - | block(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 →