Kinetic and potential energy of atoms result from the motion of electrons. When electrons are excited they move to a higher energy orbital farther away from the atom. The further the orbital is from the nucleus, the higher the potential energy of an electron at that energy level.