V=4πϵ01r2pcosθ 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.