In quantum mechanics, the Pauli exclusion principle (German: Pauli-Ausschlussprinzip) states that two or more identical particles with half-integer spins (i.e. fermions) cannot simultaneously occupy the same quantum state within a system that obeys the laws of quantum mechanics. This principle was formulated by Austrian physicist Wolfgang Pauli in 1925 for electrons, and later extended to all fermions with his spin–statistics theorem of 1940.
In the case of electrons in atoms, the exclusion principle can be stated as follows: in a poly-electron atom it is impossible for any two electrons to have the same two values of all four of their quantum numbers, which are: n, the principal quantum number; ℓ, the azimuthal quantum number; mℓ, the magnetic quantum number; and ms, the spin quantum number. For example, if two electrons reside in the same orbital, then their values of n, ℓ, and mℓ are equal. In that case, the two values of ms (spin) pair must be different. Since the only two possible values for the spin projection ms are +1/2 and −1/2, it follows that one electron must have ms = +1/2 and one ms = −1/2.