Budget overruns continue to be a widespread and enduring issue in government-funded construction endeavors, with actual expenditures often surpassing planned figures by more than 20%. Conventional approaches to cost forecasting, which depend primarily on professional expertise and parameter-driven models, find it difficult to account for the intricate, nonlinear interdependencies among the diverse variables influencing project expenditures. Although recent research has highlighted the advantages of machine learning over traditional techniques, relying on a single predictive model frequently leads to poor generalizability and insufficient transparency, thereby limiting real-world implementation. In this study, we develop a hybrid stacking-based ensemble prediction framework that combines four diverse base learners—XGBoost, LightGBM, CatBoost, and Random Forest—unified through a stacking strategy with Ridge Regression serving as the second-level aggregator. The proposed system also includes a structured data preprocessing workflow designed to address the specific properties of publicly available construction datasets and leverages SHapley Additive exPlanations (SHAP) to enhance model transparency. Evaluation on an authentic public-sector construction cost dataset shows that the proposed method attains an R² of 0.971, an RMSE of 16.3×10³ USD, and a MAPE of 5.7%, substantially surpassing each individual baseline model. Component-wise ablation experiments validate the effectiveness of each module within the framework, and SHAP-based interpretation indicates that project duration, gross floor area, and number of floors serve as the most significant cost-influencing factors. These results demonstrate that hybrid ensemble strategies, when paired with interpretability tools, provide a viable and dependable solution for intelligent cost estimation in public construction project management.