The Aufbau Principle
To determine the electron configuration for any particular atom, we can “build” the structures in the order of atomic numbers. Beginning with hydrogen, and continuing across the periods of the periodic table, we add one proton at a time to the nucleus and one electron to the proper subshell until we have described the electron configurations of all the elements. This procedure is called the Aufbau principle, from the German word Aufbau (“to build up”).
Each added electron occupies the subshell of lowest energy available (in the order shown in the figure above), subject to the limitations imposed by the allowed quantum numbers according to the Pauli exclusion principle. Electrons enter higher-energy subshells only after lower-energy subshells have been filled to capacity.
The figure below illustrates the traditional way to remember the filling order for atomic orbitals. Since the arrangement of the periodic table is based on the electron configurations, the electron configuration table below provides an alternative method for determining the electron configuration. The filling order simply begins at hydrogen and includes each subshell as you proceed in increasing Z order. For example, after filling the 3p block up to Ar, we see the orbital will be 4s (K, Ca), followed by the 3d orbitals.

The arrow leads through each subshell in the appropriate filling order for electron configurations. This chart is straightforward to construct. Simply make a column for all the s orbitals with each n shell on a separate row. Repeat for p, d, and f. Be sure to only include orbitals allowed by the quantum numbers (no 1p or 2d, and so forth). Finally, draw diagonal lines from top to bottom as shown.

This periodic table shows the electron configuration for each subshell. By “building up” from hydrogen, this table can be used to determine the electron configuration for any atom on the periodic table.
We will now construct the ground-state electron configuration and orbital diagram for a selection of atoms in the first and second periods of the periodic table. Orbital diagrams are pictorial representations of the electron configuration, showing the individual orbitals and the pairing arrangement of electrons.
We start with a single hydrogen atom (atomic number 1), which consists of one proton and one electron. Referring to any of the two figures above, we would expect to find the electron in the 1s orbital. By convention, the \({m}_{s}=+\frac{1}{2}\) value is usually filled first. The electron configuration and the orbital diagram are:
Following hydrogen is the noble gas helium, which has an atomic number of 2. The helium atom contains two protons and two electrons. The first electron has the same four quantum numbers as the hydrogen atom electron (n = 1, l = 0, ml = 0, \({m}_{s}=+\frac{1}{2}\)). The second electron also goes into the 1s orbital and fills that orbital. The second electron has the same n, l, and ml quantum numbers, but must have the opposite spin quantum number, .\({m}_{s}=-\frac{1}{2}.\)
This is in accord with the Pauli exclusion principle: No two electrons in the same atom can have the same set of four quantum numbers. For orbital diagrams, this means two arrows go in each box (representing two electrons in each orbital) and the arrows must point in opposite directions (representing paired spins). The electron configuration and orbital diagram of helium are:
The n = 1 shell is completely filled in a helium atom.
The next atom is the alkali metal lithium with an atomic number of 3. The first two electrons in lithium fill the 1s orbital and have the same sets of four quantum numbers as the two electrons in helium. The remaining electron must occupy the orbital of next lowest energy, the 2s orbital. Thus, the electron configuration and orbital diagram of lithium are:
An atom of the alkaline earth metal beryllium, with an atomic number of 4, contains four protons in the nucleus and four electrons surrounding the nucleus. The fourth electron fills the remaining space in the 2s orbital.
An atom of boron (atomic number 5) contains five electrons. The n = 1 shell is filled with two electrons and three electrons will occupy the n = 2 shell. Because any s subshell can contain only two electrons, the fifth electron must occupy the next energy level, which will be a 2p orbital. There are three degenerate 2p orbitals (ml = −1, 0, +1) and the electron can occupy any one of these p orbitals. When drawing orbital diagrams, we include empty boxes to depict any empty orbitals in the same subshell that we are filling.
Carbon (atomic number 6) has six electrons. Four of them fill the 1s and 2s orbitals. The remaining two electrons occupy the 2p subshell. We now have a choice of filling one of the 2p orbitals and pairing the electrons or of leaving the electrons unpaired in two different, but degenerate, p orbitals. The orbitals are filled as described by Hund’s rule: the lowest-energy configuration for an atom with electrons within a set of degenerate orbitals is that having the maximum number of unpaired electrons. Thus, the two electrons in the carbon 2p orbitals have identical n, l, and ms quantum numbers and differ in their ml quantum number (in accord with the Pauli exclusion principle). The electron configuration and orbital diagram for carbon are:
Nitrogen (atomic number 7) fills the 1s and 2s subshells and has one electron in each of the three 2p orbitals, in accordance with Hund’s rule. These three electrons have unpaired spins. Oxygen (atomic number 8) has a pair of electrons in any one of the 2p orbitals (the electrons have opposite spins) and a single electron in each of the other two. Fluorine (atomic number 9) has only one 2p orbital containing an unpaired electron. All of the electrons in the noble gas neon (atomic number 10) are paired, and all of the orbitals in the n = 1 and the n = 2 shells are filled. The electron configurations and orbital diagrams of these four elements are: