In this case, when a hydrogen atom is raised to an excited state, it gains potential energy, but the kinetic energy decreases because the atom is less tightly bound in the higher energy state. The potential energy increases as the electron moves farther from the nucleus.