The accuracy of Peukert’s battery capacity equation may decrease under the conditions of variable current and variable temperatures. Some researchers have previously tried to overcome the lack of C-rate change. However, the dependence of battery capacity on temperature is still not included. In this paper, we mainly studied the capacity reduction effect of batteries under variable temperatures. The proposed method can calculate the battery’s available capacity according to the specific discharge conditions. The experimental method proposed in this paper provides a reasonable test method to generate the required coefficients in order to establish a state of charge prediction model with high accuracy. After establishing the method, we can make a real-time prediction of the available energy of battery including the remaining energy of battery. From the result, we can see that the result is of great precision and the method is valuable.