The invention provides a whole-car electrical system for a pure electric formula racing car. The system takes a main controller as a core, performs data transmission based on a CAN bus, and comprisesa driving system, a battery and BMS management system, a safety system and a control and data acquisition system. The driving system is driven by rear wheels and double motors; the battery and BMS management system detects signals of current, voltage, temperature and the like of the battery in real time, dynamically formulates a battery management strategy, and controls the battery to work under aproper working condition by means of thermal management, active equalization management, charging management, discharging management and the like. The safety system detects the state of the racing car in real time, and cuts off all power sources if the state is abnormal; the control and data acquisition system obtains the driving intention of the racing car by combining signals such as a pedal angle sensor and the like, finally realizes the control of a power system, high-voltage safety, hardware early warning protection and the like of the racing car, and solves the problems of complex wiring harness arrangement of the electric racing car, weak CAN signal anti-interference capability, poor robustness of an electrical system and the like.