This study proposes an approach for finding the optimal size of a high‐speed flywheel in an energy storage system based on battery‐flywheel cooperation, called battery‐flywheel energy storage system (BFESS), supplying an electric vehicle. Considering an energy‐based model for the flywheel and battery, including the losses, the optimal control theory is utilised as a two‐dimensional Pontryagin's minimum principle for solving the problem. The objective function of the flywheel sizing problem includes two terms, in which its maximum interaction with the system from the energy and filtering aspects are taken into consideration by a desirable weighting. While energy interaction is a common task, filtering the fast dynamics of the system such as the harsh conditions for the battery is the key role of the considered lightweight and high‐speed flywheel. A trade‐off between the energy contribution and filtering is made, targetted for the long‐term and short‐term dynamics in the drive cycles, respectively. The proposed methodology is presented in detail using some simple dynamics. Also, the sizing is carried out for the ECE‐15 urban drive cycle, the WLTC class‐3 and FTP‐75 drive cycles. The results confirm that by using the determined optimal size of the flywheel energy storage system (FESS), most of the dynamics could be handled from the filtering and energy interaction aspects.