Predicting bankruptcy risk is one of the most critical issues in corporate financial decision-making. Investors always try to predict the bankruptcy of a firm to reduce the risk of losing their assets, so they are looking for ways by which they can predict the risk of bankruptcy. We predict the position of companies active in the oil and gas industry based on their financial health in the 2020 ranking of S&P global up to three years before 2020. This study uses three data envelopment analysis models (CCR, BCC, and DDEA) and the traditional Altman model for forecasting. We have shown that dynamic data envelopment analysis is a powerful tool for predicting bankruptcy risk.