The loss of electrons from the n-region and the gain of
electron by the p-region causes a  difference of potential across
the junction of the two regions The polarity of this potential is
such as to oppose further flow of carriers so that a condition of
equilibrium exists Figure 14 11 shows the p-n junction at
equilibrium and the potential across the junction