Each energy level in an atom holds a specific maximum number of electrons that follows a clean pattern: the first level holds 2, the second holds 8, the third holds 18, and the fourth holds 32. These capacities come from a simple formula where you multiply 2 by the square of the level number. The pattern is tidy, but how atoms actually fill those levels is messier than the formula suggests, and the exceptions matter just as much as the rule.
The Numbers for Each Level
If you label the energy levels 1, 2, 3, 4, and so on (starting closest to the nucleus), the maximum electron capacity of each level is 2 multiplied by the level number squared. That gives you:
- Level 1: 2 × 1² = 2 electrons
- Level 2: 2 × 2² = 8 electrons
- Level 3: 2 × 3² = 18 electrons
- Level 4: 2 × 4² = 32 electrons
- Level 5: 2 × 5² = 50 electrons
In practice, no known element has enough electrons to completely fill level 5 or beyond. Oganesson, the heaviest element on the current periodic table, has 118 electrons. That is enough to fill levels 1 through 4 and partially fill levels 5, 6, and 7, but nowhere near enough to fill level 5’s theoretical 50-electron capacity. So while the formula keeps working mathematically for higher levels, the numbers past level 4 describe a theoretical ceiling rather than something you will encounter in any real atom we have observed so far.
Why Those Specific Numbers
The capacities are not arbitrary. Each energy level is divided into sublevels, and each sublevel is divided into orbitals. An orbital is a region of space around the nucleus where an electron is likely to be found, and each orbital holds at most two electrons. The two electrons sharing an orbital must have opposite spins, which is a basic rule of how electrons behave. So the whole system of shell capacities comes down to how many orbitals exist at each level.
Level 1 has just one sublevel, which contains one orbital, giving it room for 2 electrons. Level 2 has two sublevels with a total of four orbitals, so it holds 8. Level 3 has three sublevels with nine orbitals total, for 18. Level 4 has four sublevels containing sixteen orbitals, reaching 32. The pattern of orbitals per level follows a square number sequence (1, 4, 9, 16), and since each orbital holds two electrons, you double those squares to get the shell capacities.
Sublevels and How They Add Up
The sublevels are usually labeled s, p, d, and f, and each type holds a fixed number of electrons. Understanding the sublevels helps explain why certain blocks of the periodic table have the widths they do.
- s sublevel: 1 orbital, holds up to 2 electrons
- p sublevel: 3 orbitals, holds up to 6 electrons
- d sublevel: 5 orbitals, holds up to 10 electrons
- f sublevel: 7 orbitals, holds up to 14 electrons
Level 1 has only an s sublevel (2 electrons). Level 2 has s and p (2 + 6 = 8). Level 3 has s, p, and d (2 + 6 + 10 = 18). Level 4 has s, p, d, and f (2 + 6 + 10 + 14 = 32). Each new energy level gains one additional sublevel type compared to the level before it.
This is why, for instance, the periodic table has a two-column block on the left (the s block), a six-column block on the right (the p block), a ten-column block in the middle (the d block), and a fourteen-column block pulled out at the bottom (the f block). The table’s shape is a direct map of sublevel capacities.
Why Atoms Do Not Fill Each Level Before Moving to the Next
If electrons simply filled level 1, then level 2, then level 3, and so on, chemistry would be straightforward but dull. In reality, the filling order gets tangled starting around level 3. Electrons do not always complete one energy level before starting the next, because sublevels from different levels can overlap in energy.
The general filling order, sometimes called the aufbau principle, is not a strict “fill the lowest level first” rule. Instead, electrons fill the lowest-energy sublevel available. For the first 18 elements (hydrogen through argon), this tracks neatly with the levels: 1s, 2s, 2p, 3s, 3p. But element 19, potassium, adds its next electron to the 4s sublevel rather than 3d, because 4s is slightly lower in energy at that point. Calcium does the same. Only then, starting with scandium at element 21, does the 3d sublevel begin filling.
This means that level 3’s full capacity of 18 electrons is not reached until you are already partway through filling level 4. The interleaving gets more pronounced with heavier elements, where 4f fills after 6s, and 5f fills after 7s. For a reader trying to figure out how many electrons sit in each shell of a specific element, the simple formula tells you the maximum, but the actual distribution depends on where you are in the periodic table.
When the Standard Filling Rules Break Down
Even the standard filling order has well-known exceptions. Chromium and copper are the classic textbook cases. Chromium was expected to have four electrons in its 3d sublevel and two in 4s, but experimentally it has five in 3d and one in 4s. Copper similarly steals an electron from 4s to complete its 3d sublevel. The conventional explanation is that half-filled and fully filled d sublevels carry a small energy advantage, making these rearrangements favorable.
These exceptions multiply as atoms get heavier. Among the transition metals and especially the lanthanides and actinides, the energy gaps between sublevels become razor-thin, and electrons shuffle between them in ways that the simple filling rules do not predict. Research analyzing ionization energies across the periodic table has found that the observed order of electron removal does not always match the shell order given by the standard aufbau rule, suggesting the traditional picture oversimplifies what is happening in many-electron atoms.
1PubMed. Atomic shells according to ionization energiesFor a student learning the basics, the exceptions might seem like trivia. But for understanding the chemistry of transition metals (which includes the metals in your phone, your car’s catalytic converter, and most industrial catalysts), these filling irregularities explain why these elements have such varied and useful properties. The flexibility of their d electrons is what makes iron magnetic, copper conductive, and platinum an excellent catalyst.
The Outermost Shell Is What Matters Most for Chemistry
Regardless of how many electrons an atom has in total, its chemical behavior is almost entirely determined by the electrons in its outermost energy level, known as valence electrons. Sodium has 11 electrons spread across three levels (2 in the first, 8 in the second, 1 in the third), but it is that single outer electron doing all the work. Sodium readily gives it up, which is why sodium is so reactive.
The maximum of 8 electrons in the outermost occupied shell is the basis of the “octet rule” that governs most of everyday chemistry. Atoms tend to gain, lose, or share electrons until their outer shell has 8 (or 2, for the lightest elements). This drive is what creates chemical bonds and builds molecules. Table salt forms because sodium gives its lone outer electron to chlorine, which needs one more to complete its outer shell of 8. Water forms because oxygen shares electrons with two hydrogen atoms to fill its outer shell.
One common point of confusion: the octet rule says 8, but level 3 can hold 18 and level 4 can hold 32. The distinction is that the octet rule applies to the valence shell of most main-group elements, which typically only uses the s and p sublevels (holding a combined maximum of 8). The d and f sublevels, which push the total capacity higher, generally belong to inner shells or are only accessible to transition metals and heavier elements. So 8 as a stability target and 18 or 32 as shell maximums are both correct, just describing different things.
How the Periodic Table Reflects Shell Capacity
The periodic table is essentially a filing system organized by electron shells. Each row (period) corresponds to filling a new principal energy level. Period 1 has 2 elements because level 1 holds 2 electrons. Period 2 has 8 elements, matching level 2’s capacity. Period 3 also has 8, because only the s and p sublevels of level 3 fill before level 4’s s sublevel starts.
Periods 4 and 5 each have 18 elements, because the d sublevel kicks in and adds 10 extra slots. Periods 6 and 7 have 32 elements each (though they are usually displayed with 14 of those pulled out into the lanthanide and actinide rows at the bottom) because the f sublevel adds another 14 spots. Every quirk of the table’s shape traces back to the sublevel capacities described above.
This also explains why elements in the same column share similar properties. Elements in the same column have the same number of valence electrons, even though their total electron counts differ dramatically. Lithium (3 electrons), sodium (11 electrons), and potassium (19 electrons) all have exactly one valence electron and all behave as soft, highly reactive metals. The inner shells differ, but the outer shell, which drives chemistry, is the same.
Superheavy Elements and the Limits of the Pattern
The formula works beautifully for the 118 elements we have confirmed, but physicists are actively thinking about what happens beyond that. Superheavy elements, those with atomic numbers above 118 that may be synthesized in the future, push into uncharted territory where the standard filling rules are expected to break down more frequently.
At very high atomic numbers, the innermost electrons move at speeds approaching a significant fraction of the speed of light. This causes relativistic effects that shift the energies of various sublevels, sometimes dramatically. The result is that the neat ordering of shells and sublevels becomes increasingly unreliable. Researchers studying aufbau rule violations have proposed models to predict the likely electron configurations of these as-yet-unsynthesized elements, using the patterns of known violations to estimate where future ones will occur.2arXiv. Madelung rule violation statistics and superheavy elements electron shell prediction
There is also the theoretical question of whether a fifth sublevel type, sometimes called g (with 9 orbitals and room for 18 electrons), would start filling in extremely heavy atoms. This would add a whole new block to the periodic table. Whether any atom would actually populate a g sublevel depends on exactly how relativistic effects reshape the energy landscape, and that is an open question since nobody has made an atom heavy enough to test it yet.
Electron Shells Under Extreme Pressure
Energy level capacities are not just a classroom topic. They have consequences for some of the most dramatic objects in the universe. White dwarf stars, the dense remnants left after a star like our sun exhausts its fuel, are held up against gravitational collapse largely by the resistance of electrons to being squeezed into the same energy states. This resistance, called degeneracy pressure, is a direct consequence of the same rule that limits each orbital to two electrons.
When matter is compressed to the densities found in a white dwarf (roughly a million times denser than water), all the low-energy electron states fill up. Additional electrons are forced into higher and higher energy levels, and the resulting pressure counteracts gravity. Recent theoretical work examining how degeneracy pressure behaves under extreme conditions has found that the pressure may be somewhat reduced compared to standard predictions, which aligns with observations suggesting that white dwarfs are slightly smaller than older models expected.3Modern Physics Letters A. Degeneracy pressure in the presence of maximum length for non-interacting electrons
The takeaway is that the capacity limits on energy levels are not just bookkeeping rules for chemistry class. They determine the internal structure of dead stars and set the upper mass limit for white dwarfs, beyond which the star collapses further into a neutron star or black hole. The same principle that says level 1 holds only 2 electrons is, scaled up to astronomical proportions, holding a star-sized object together.
Common Misconceptions Worth Clearing Up
A few misunderstandings about electron shells are widespread enough to be worth addressing directly.
The first is that electrons orbit the nucleus like planets orbit the sun, in neat circular paths. They do not. Electrons exist in fuzzy probability clouds, and the “shell” language is a useful metaphor rather than a physical description. An electron in level 2 is more likely to be found farther from the nucleus than one in level 1, but it does not travel in a fixed circular track at a specific distance.
The second is that the 2n² formula tells you how many electrons each shell has in a particular atom. It tells you the maximum. Most atoms do not have enough electrons to fill all their occupied shells to capacity. Oxygen, for example, has 8 electrons: 2 in level 1 and 6 in level 2. Level 2 could hold 8, but oxygen only has 6 there. The formula gives you the ceiling, not the actual count for any specific element.
The third is that electrons always fill the lowest shell completely before moving up. As discussed earlier, the interleaving of sublevels means the filling order weaves between levels. Potassium’s outermost electron is in level 4 even though level 3 still has room for 10 more electrons in its d sublevel. If you are trying to figure out an element’s electron arrangement, the filling order matters more than the simple shell capacity.
Why the Electron Capacity at Each Level Differs From What You Often See Taught
Many introductory courses only teach the sequence 2, 8, 8 when describing electron shells, since that covers the first 18 elements and is enough for most of the chemistry encountered in everyday life. This shorthand is not wrong, but it gives the impression that 8 is a hard cap for every shell after the first. Students are sometimes surprised to later learn that level 3 holds 18 and level 4 holds 32.
The discrepancy arises because introductory courses typically stop at the point where only s and p sublevels are being filled. The 3d sublevel starts filling in period 4 of the table, which is past the scope of most intro-level coverage. So the “2, 8, 8” shorthand works for light elements, but it is an incomplete picture. If you are looking at elements heavier than argon (element 18), you need the full capacities to make sense of their electron arrangements.
This is also why some periodic tables you find online label the shells differently depending on the audience. A table aimed at middle-school students might show three rings around an atom with 2, 8, and 8 slots. A table aimed at college chemistry students will show the full sublevel breakdown. Both are describing the same physics, just at different levels of detail, and neither is wrong for its intended use.