Abstract Clearly determining the magnitude of fracture pressure is a crucial indicator for fracturing design. Traditional methods for predicting fracture pressure suffer from challenges such as difficulties in obtaining required data, low prediction accuracy, and local limitations in application. In light of these issues, the article proposes a fracture pressure prediction model based on reinforcement learning and XGBoost utilizing geophysical well logging data. Based on the relevance analysis, optimal input parameters, including DEPTH, DEN, AC, GR, CRL, and RT, are selected from geophysical well logging data. We have developed a framework for a fracture pressure prediction model based on XGBoost, wherein hyperparameters are fine-tuned using an improved Q-learning algorithm. The optimized XGBoost model for fracture pressure prediction attains outstanding performance metrics, including an R 2 value of 0.992, a root mean square error of 0.006%, and a mean absolute error of 0.539%. In direct comparison with grid search, Bayesian optimization, and ant colony optimization, the improved Q-learning algorithm emerges as the most effective optimization approach. The predictions generated by the proposed method exhibit remarkable consistency with fracture pressure data measured on-site. This approach successfully addresses the shortcomings encountered with traditional fracture pressure prediction methods, such as inadequate accuracy, demanding data prerequisites, and constrained applicability.