Electric vehicles (EVs) are becoming increasingly popular, due to their beneficial environmental effects and low operating costs. However, one of the main challenges with EVs is their short battery life. This study presents a comprehensive approach for predicting the Remaining Useful Life (RUL) of Nickel Manganese Cobalt-Lithium Cobalt Oxide (NMC-LCO) batteries. This research utilizes a dataset derived from the Hawaii Natural Energy Institute, encompassing 14 individual batteries subjected to over 1000 cycles under controlled conditions. A multi-step methodology is adopted, starting with data collection and preprocessing, followed by feature selection and outlier elimination. Machine learning models, including XGBoost, BaggingRegressor, LightGBM, CatBoost, and ExtraTreesRegressor, are employed to develop the RUL prediction model. Feature importance analysis aids in identifying critical parameters influencing battery health and lifespan. Statistical evaluations reveal no missing or duplicate data, and outlier removal enhances model accuracy. Notably, XGBoost emerged as the most effective algorithm, providing near-perfect predictions. This research underscores the significance of RUL prediction for enhancing battery lifecycle management, particularly in applications like electric vehicles, ensuring optimal resource utilization, cost efficiency, and environmental sustainability.