A method of precisely calculating the external applied voltage and the optimum type-II phase matching angles for KTP crystal, which is used as both an intracavity electro-optic (EO) Q-switch and a frequency doubler, is presented. The effective EO coe