The maximum number of electrons in the nth shell of an atom is expressed as 2n^2, derived from the Schrödinger equation for hydrogen-like atoms. This formula assumes that each orbital can hold two electrons with opposite spins, and there are n^2 orbitals in each shell. The energy levels of these orbitals are determined by the number of nodes, with each shell containing orbitals characterized by their angular momentum quantum number (l). The sum of the multiplicities of orbitals across different l values confirms the n^2 relationship. While a complete mathematical solution for atoms beyond hydrogen is not feasible, the principles governing electron distribution can be illustrated through experimental data and comparisons to theoretical models.