This paper critically analyses and simulates the circuit configuration of the integral gated mode single photon detector which is proposed for eliminating the transient spikes problem of conventional gated mode single photon detector.The relationship between the values of the circuit elements and the effect of transient spikes cancellation has been obtained.With particular emphasis,the bias voltage of the avalanche photodiode and the output signal voltage of the integrator have been calculated.The obtained analysis results indicate that the output signal voltage of the integrator only relates to the total quantity of electricity of the avalanche charges by choosing the correct values of the circuit elements and integral time interval.These results can be used to optimize the performance of single photon detectors and provide guides for the design of single photon detectors.