The potential energy of shells around an atom increases with distance from the nucleus. The K shell has the lowest energy, followed by the L shell. The outer shells (M, N, O) have higher energy due to weaker attraction from the nucleus. Energy increases away from the nucleus.