In physics, the potential energy is energy possessed by a body by virtue of its position relative to others, stresses within itself, electric charge, and other factors.
The formula for Potential energy of an electron in the nth orbit is given as,
P.E. = -me4 / 4πε02n2h2
ε0 = permittivity of free space
e = Charge on an electron (1.6 x 10–19 C)
n = positive integer
m= mass of an electron
h = Planck’s constant