As we go from left to right in a period electrons are added to the same valence shell.Due to this atomic size decreases and nuclear charge increases. As nuclear charge increases, the energy required to remove an electrln increases and hence ionization potential increases across a period