The invention provides a service life prediction method of a power battery in a time-varying working condition. The service life prediction method includes the steps that based on an actual working condition of the power battery for a vehicle, three main factors, T, C and DOD, which affect the service life of the power battery are taken as variables, combined with the time-varying characteristicsof affecting factors in a vehicle working condition, firstly, a service life prediction model of the power battery in a time-varying current condition is established in the time scale of a single cycle; in the time scale of multiple cycles, the effects of an operating temperature and a discharge depth DOD on battery service life are considered, and finally, a life model of the power battery in thetime-varying working condition which is closer to the actual working condition is obtained. According to the service life prediction method of the power battery in the time-varying working condition,the accuracy of the service life prediction of the power battery for the vehicle is improved, the battery service life is calculated by the model so that the use, maintenance and replacement of the power battery for the vehicle can be guided, and the safe use of electric vehicles is ensured; and furthermore, the model is simple and easy to calculate, and is beneficial to improving the predictionefficiency.