The potential energy of a molecule is determined by two key factors, namely the internuclear distance and the attractive or repulsive forces. The potential energy is commonly plotted as a function of the internuclear distance. As the distance between the atoms varies, the attraction or repulsion between them also changes, thereby influencing the potential energy.