Stroke imposes an immense burden on healthcare systems across the globe as a leading cause for mortality and permanent disablement. The condition occurs by an alteration in blood flow to the brain that results in neurological damage. As a result, early and accurate pre- diction of stroke risk is critical for timely intervention and prevention, which can significantly reduce its impact. Therefore, the primary objective of this study is to develop an ensemble-based Machine Learning (ML) model that can accurately predict the risk of stroke and identify the key factors contributing to it. To ensure optimal performance, data preprocessing was carefully implemented. Using a dataset sourced from Kaggle, comprising 5110 instances with 12 clinical and demographic features, the study employed multiple ensemble-based classifiers, including Decision Tree (DT), Random Forest (RF) classifier, Gradient Boosting (GB) classifier, AdaBoost classifier, Bagging classifier, and Extra Trees (ET) classifier. Among these models, the ET classifier achieved exceptional results, with 99.36% training accuracy and 99.43% testing accuracy. The minimal gap between training (99.36%) and testing (99.43%) accuracy indicates no significant overfitting, ensuring the model generalizes well to new data. Comprehensive evaluation metrics further highlighted the model’s performance, with precision (98.90%), recall (100%), F1-score (99.45%), Matthews Correlation Coefficient (MCC) (98.87%), AUC (1.0), RMSE (0.08%), and MSE (0.01%). Feature importance analysis conducted using the ET classifier identified age, average glucose level, and BMI as the most significant predictors of stroke. These results highlight the effectiveness of ensemble-based models in early stroke detection and risk stratification using demographic and clinical features.