The invention relates to an energy storage optimal configuration method considering system gas and thermal power units. The method comprises the following steps: firstly, according to historical data,forecasting the output of a new energy generator set, constructing a typical scene set of the output of the new energy generator set, and combining the load fluctuation characteristics, constructinga load scene set of a power system; This paper analyzes the operation characteristics of gas-fired units and thermal power units in the start-up and stop stages, establishes the state transfer equations, defines the state transfer conditions, and establishes the state transfer models of gas-fired units and thermal power units in the start-up and stop stages, so as to realize the transfer and switching between different states of gas-fired units and thermal power units in the start-up and stop stages. The paper also analyzes the operation characteristics of gas-fired units and thermal power units in the start-up and stop stages. According to the system and operation parameters, considering the wind power consumption objective, the optimal energy storage allocation model considering the climbing ability and multi-stage state transition of gas turbine and thermal turbine is constructed, with the objective of minimizing the relevant investment and total operating cost. Solve the above power system energy storage optimal allocation problem, and obtain the power system energy storage optimal allocation scheme.