The invention relates to an optimal power and capacity selection method of a mobile battery energy storage DC-based deicing system. The method comprises the following steps: step S1: providing a mobile battery energy storage DC-based deicing system, wherein the DC-based deicing system comprises a battery energy storage system, a bidirectional converter, a DC/DC converter, a background monitor and switch combination; step S2, carrying out statistics on the distribution of ice regions of a power grid; step S3, calculating the current value of the DC-based deicing system in the DC-based deicing process; and step S4, calculating deicing powers, deicing capacities and optimization functions of the DC-based deicing system under three deicing modes of "1-1, 1-2", "1-1, 1-1", "1-2, 1-2, 1-2". Starting from the angle of system cost, according to the conditions of ice regions, the state grid guideline and the actual situation of lines of mountainous areas, the method can be used for putting forwards a cost optimization function by calculating the powers and capacities of the DC-based deicing system under three deicing modes, thereby providing a basis for selection of power and capacity of the mobile battery energy storage DC-based deicing system.