We study how effects of the CP violation can be observed indirectly by precision measurements of Higgs boson couplings at a future Higgs factory such as the international linear collider. We consider two Higgs doublet models with the softly broken discrete symmetry. We find that by measuring the Higgs boson couplings very precisely we are able to distinguish the two Higgs doublet model with CP violation from the CP conserving one.