An electric dipole is a pair of two objects having equal and opposite charges, separated by a distance.
The electric dipole moment for this pair of equal and
opposite charges is equal to the magnitude of the charges multiplied by the
distance between them.
\[\therefore \vec{P}=q\vec{d}\]
The total charge of the electric dipole is obviously zero.
This does not mean that the field of the electric dipole is zero. Since the
charge q and –q are separated by some distance, the electric fields due to
them, when added, do not exactly cancel out.