Abstract. In order to design the control system, it is necessary to have an exact model of buck-boost converter. This paper put forward the transfer function model of buck-boost converter by the state-space average method. The openloop transfer function model of uncompensated system is deduced according to the mathematic model of the buckboost converter, the controller is designed according to frequency domain. The phase and magnitude margin of the open-loop system of the buck-boost converter with compensator have both been increased. After compensating, this control system has the advantages of small overshoot and short settling time. It can also improve control system's real time property and anti-interference ability.