The formula to find the maximum number of electrons that can be accommodated in a shell = 2n2 where 'n' is the number of the given shell from the nucleus. For example, the maximum number of electrons that can be filled in the: First shell (K - Shell) = 2(1)2 = 2 electrons.