molecalculator

Moles & Molar Mass

Electron Configuration Boxes: How to Fill Them

Calculator No. 01-9561 · 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 configuration boxes, also called orbital box diagrams, are a visual way to show how electrons are arranged in an atom’s orbitals, including their spin. You draw each orbital as a box, put arrows in the boxes to represent electrons, and fill them following the Aufbau principle, Hund’s rule, and the Pauli exclusion principle. The result shows not just which orbitals are occupied, but also whether each electron is spin-up or spin-down.

Formula

The box diagram is built from the standard electron configuration, which lists orbitals in order of increasing energy. For a neutral atom with atomic number Z, you add Z electrons one at a time. The order of 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 of 2 electrons (Pauli exclusion principle). When filling a set of degenerate orbitals (like the three 2p orbitals), place one electron in each orbital with parallel spins before pairing any (Hund’s rule). The shorthand uses superscripts: n for principal quantum number, l for subshell (s, p, d, f), and the superscript is the number of electrons in that subshell.

Worked Example

Take iron, atomic number Z = 26. Following the filling order:

  1. 1s: 2 electrons → 1s2
  2. 2s: 2 electrons → 2s2
  3. 2p: 6 electrons → 2p6
  4. 3s: 2 electrons → 3s2
  5. 3p: 6 electrons → 3p6
  6. 4s: 2 electrons → 4s2
  7. 3d: 6 electrons → 3d6

Total: 2+2+6+2+6+2+6 = 26. The configuration is 1s2 2s2 2p6 3s2 3p6 3d6 4s2. For the box diagram, draw one box for each orbital: 1s has 1 box, 2s has 1, 2p has 3, 3s has 1, 3p has 3, 4s has 1, and 3d has 5 boxes. Fill arrows: up arrow first in each 3d box, then add down arrows to four of them, giving 4 unpaired electrons. The calculator above returns the same configuration and unpaired count for Z = 26.

Assumptions

  • The atom is neutral (number of electrons = Z).
  • The ground state is assumed, not an excited state.
  • The Aufbau order is the standard one taught in introductory chemistry; some transition metals have exceptions (e.g., Cr and Cu) that this simple order does not predict.

How to Draw a Box Diagram Step by Step

Once you have the electron configuration, converting it to boxes is mechanical:

  1. Write the subshells in the same order as the configuration.
  2. Draw one box per orbital: s has 1, p has 3, d has 5, f has 7.
  3. Label each box with its orbital name (e.g., 2px, 2py, 2pz).
  4. Add arrows: for each subshell, first put one up arrow in each box, then go back and add down arrows until the subshell is full.
  5. Count unpaired electrons: arrows without a partner in the same box.

For example, nitrogen (Z=7) has configuration 1s2 2s2 2p3. The three 2p electrons go one in each p box, all up arrows, giving three unpaired electrons.

Common Mistakes and Misconceptions

The most frequent error is filling the 3d before the 4s. In the neutral atoms of the first transition series, 4s is lower in energy than 3d, so 4s fills first. However, when writing the configuration in order of increasing principal quantum number (for example, in some textbooks), 3d is written before 4s. Both are correct if you know the convention; the box diagram should follow the Aufbau order.

Another common mistake is pairing electrons in a p or d subshell before placing one in each orbital. Hund’s rule is not optional—it minimizes electron-electron repulsion and gives the lowest energy state. For carbon (1s2 2s2 2p2), the two 2p electrons go into two different p orbitals, both spin-up, giving two unpaired electrons, not one pair.

A third issue is confusing the number of boxes with the number of electrons. A d subshell has 5 boxes but holds up to 10 electrons. The box diagram shows the filling, not just the count.

Why Box Diagrams Matter

Box diagrams are not just a drawing exercise. They directly explain:

  • Magnetism: Unpaired electrons make an atom paramagnetic (attracted to a magnetic field). Iron’s four unpaired electrons explain its strong magnetism.
  • Chemical bonding: Unpaired electrons are available for bonding. Carbon’s two unpaired 2p electrons explain its divalent chemistry, though hybridization complicates the picture.
  • Spectroscopy: The arrangement of electrons in d orbitals affects the colors of transition metal compounds.
  • Ion formation: When forming cations, electrons are removed from the highest energy level first—for transition metals, that means the 4s electrons come off before the 3d. Iron(II) is [Ar] 3d6, not [Ar] 3d44s2.

Knowing how to draw and read these diagrams helps predict why some ions are stable and others are not.

Exceptions to the Aufbau Order

The simple filling order works for most elements, but there are notable exceptions. Chromium (Z=24) is [Ar] 3d54s1, not 3d44s2, because a half-filled d subshell is extra stable. Copper (Z=29) is [Ar] 3d104s1, not 3d94s2, for a similar reason. These exceptions arise from the subtle balance between electron repulsion and exchange energy. For the box diagram, you must use the actual configuration, not the predicted one, for these elements. The calculator above gives the simple Aufbau prediction; for Cr and Cu, you would adjust the last two electrons manually.

Frequently Asked Questions

How do I know how many boxes to draw for a given element?

Write the electron configuration first. Each s subshell contributes 1 box, each p subshell 3, each d subshell 5, and each f subshell 7. Add them up. For example, chlorine (Z=17) has configuration [Ne] 3s23p5. The boxes are: 1s (1), 2s (1), 2p (3), 3s (1), 3p (3) = 9 boxes total.

What does an up arrow vs. a down arrow mean?

The arrow direction represents electron spin, a quantum property. Up and down are arbitrary labels for the two possible spin states (+½ and –½). Two electrons in the same orbital must have opposite spins (Pauli exclusion principle), so one is up and one is down.

Why does the 4s fill before the 3d?

In neutral atoms, the 4s orbital is slightly lower in energy than the 3d because of penetration—the 4s electron spends more time near the nucleus. This is a consequence of the effective nuclear charge and electron shielding. However, once the 3d starts filling, the energy order can flip, which is why exceptions occur.

How do I draw boxes for ions?

For a cation, remove electrons from the highest energy level first. For transition metals, remove 4s before 3d. For example, Fe2+ (Z=26) loses the two 4s electrons, leaving [Ar] 3d6. Draw the 3d boxes with 6 electrons: 4 unpaired and 1 pair. For an anion, add electrons to the next available orbital following the Aufbau order.

Can I use box diagrams for molecules?

Box diagrams are for atoms and ions. For molecules, you use molecular orbital diagrams, which are similar but show how atomic orbitals combine to form bonding and antibonding orbitals. The same principles (Pauli, Hund) apply, but the boxes represent molecular orbitals, not atomic ones.

Related

Formula used
in z | Atomic number Z | - | 26 | 1 | 118
out config | Electron configuration | - | "1s2 2s2 2p6 3s2 3p6 3d6 4s2" | 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 →