
Let P be an axial point at distance r from the center of the dipole. Electric potential at point P is given as
V = V1 + V2
V1 and V2 are the potentials at point P due to charges +q and –q respectively

Hence, the electric potential is \(\frac 1{4\pi \varepsilon_0} \left(\frac {2P}{(r^2 - 4a^2)}\right)\).