In the context of supersymmetry, the two-loop Barr-Zee diagrams which induce CP-violating electric dipole moment of electron due to superpartners simultaneously yield CP-conserving magnetic dipole moment of muon. In this paper, we derive the coherence between the electric and magnetic dipole moments at two-loop level due to stops, charginos or neutralinos-charginos. We also use the coherence to constrain superpartner masses and their CP-violating phases, in the light of recent ACME limit on the electric dipole moment of electron and future experiments about magnetic dipole moment of muon such as Fermilab E989 experiment.