How this instrument works
The principal quantum number n labels an atom's electron shells — n = 1 is the innermost shell (spectroscopists call it K), n = 2 is L, n = 3 is M, and so on outward. For a given n, quantum mechanics restricts the azimuthal number l to integers from 0 up to n − 1, and each l carries 2l + 1 magnetic sublevels; summing (2l + 1) over every allowed l gives exactly n² distinct orbitals. The Pauli exclusion principle then permits exactly two electrons per orbital, one spin-up and one spin-down, which is where the factor of two in N_max = 2n² comes from. Nothing about the formula is arbitrary — it is a direct count of quantum states.
This is why the periodic table's period lengths run 2, 8, 8, 18, 18, 32 rather than some smoother sequence. Shell n = 1 caps at 2n² = 2 electrons, covering hydrogen and helium. Shell n = 2 caps at 8, covering lithium through neon — the golden case this page checks. But shell n = 3's true capacity, 2(3)² = 18, is not reached until after shell n = 4 has already started filling: the 4s orbital sits at slightly lower energy than 3d, so potassium and calcium fill 4s before any electron touches 3d. N_max reports a shell's total room, not the order electrons arrive in — that ordering is the Aufbau principle, a separate rule layered on top of shell capacity.
A common mix-up follows from that gap: full shell is not the same claim as full octet. Argon looks chemically inert because its outermost electrons — 3s² 3p⁶, eight of them — fill every available s and p orbital, the octet chemists reason from when predicting reactivity. But argon's n = 3 shell is not actually full; 2n² says it can hold 18, and the 3d orbitals stay empty until the transition-metal row begins. Chemical inertness tracks a filled valence subshell, not a satisfied N_max — the two ideas coincide for n = 1 and n = 2 and diverge from n = 3 onward, exactly where a shortcut memorized from the first two rows starts giving wrong answers.
- Enter the principal quantum number n as a whole number — 1 for the innermost shell, 2 for the next one out, and so on.
- Leave everything else alone: the instrument multiplies n squared by two the moment you type, using N_max = 2n².
- Read the result in the Maximum electrons in shell n field — the total electrons that shell can hold at full capacity.
- Step n up by one at a time to watch the capacity climb 2, 8, 18, 32 — the sequence behind the periodic table's row lengths.
Worked example — the n = 2 shell (why period two has eight elements)
Set n = 2, the second shell out from the nucleus — the one holding the 2s and 2p subshells in elements from lithium to neon. The formula gives N_max = 2 × 2² = 2 × 4 = 8, so the Maximum electrons in shell n field reads exactly 8.0. That is not a coincidence of arithmetic: it is the reason period two of the periodic table runs for precisely eight elements, from lithium, which starts filling the shell, to neon, which completes it.
Neon's stability follows directly from that number. With eight electrons sitting in a shell whose capacity is exactly eight, there is no lower-energy orbital left unfilled and no partially filled orbital eager to bond, which is exactly why neon, like helium before it, sits in the noble-gas column. The same 2n² arithmetic that gives silicon's outer shell room for eight electrons is what a materials scientist leans on when explaining why silicon forms four covalent bonds to complete that shell in a crystal lattice.
Questions
Why is the electron capacity 2n² and not just n²?
Because n² only counts orbitals, not electrons. Quantum mechanics allows n² distinct orbitals in shell n — one for each allowed combination of the azimuthal number l and magnetic number m_l — and the Pauli exclusion principle then permits exactly two electrons per orbital, spin-up and spin-down. Multiply the orbital count by that factor of two and you get 2n², the shell's true electron capacity.
Does the periodic table's third row really hold 18 elements?
No — period three has eight elements, not eighteen, even though 2n² gives shell n = 3 a true capacity of 18. The 4s orbital sits lower in energy than 3d, so potassium and calcium fill 4s first; the 3d orbitals only start filling in period four, with the transition metals. N_max tells you a shell's total room, not the order electrons fill it in.
Is a full shell the same thing as a full octet?
Only for n = 1 and n = 2. Hydrogen's shell fills at 2 electrons and neon's fills at 8, matching the familiar octet rule exactly. From n = 3 onward the two ideas split: argon looks inert with an octet, 3s² 3p⁶, but its actual n = 3 shell capacity is 18, since the 3d orbitals remain empty. Chemical stability tracks a filled valence subshell, not N_max.
What values of n are valid?
Any positive integer: n = 1, 2, 3, and so on, naming shells K, L, M, N in older spectroscopic notation. The formula itself has no upper limit, though only the first seven shells hold electrons in any element on the current periodic table, since heavier elements are either unstable or unsynthesized before an eighth shell would begin filling.
Why does the exponent land on n instead of l?
Because the orbital count comes from summing (2l + 1) over every l from 0 to n − 1, and that sum works out to n² exactly — a standard result from angular momentum quantum mechanics, not a fit to observed data. Doubling for electron spin then gives 2n². The exponent is fixed by the geometry of allowed angular momentum states, not a parameter open to adjustment.
Can the result ever come out as a fraction?
No. Since n is restricted to positive integers, 2n² is always a whole number: 2, 8, 18, 32, 50, and so on. If a problem seems to call for a fractional shell number, it is describing something other than a principal quantum number, such as an effective nuclear charge or an average orbital radius, and this formula does not model that.