$V=4πϵ_{0}1 r_{2}pcosθ $ where p is the dipole moment, r is the distance at which the potential V of the dipole is calculated and $θ$ is the angle between the distance vector and the dipole.