Small and medium-sized enterprises (SMEs) can adopt renewable energy by buying it from a supplier or generating it on-site, yet survey-based studies have treated the two as one behaviour. This study separates them using Flash Eurobarometer 549 (June 2024). After excluding seven member states whose records fail a consistency check, the sample is 9,806 SMEs in 20 EU member states. Logistic regression, random forest and XGBoost are compared and interpreted with SHAP values. In weighted estimates, 18.6% of SMEs purchase renewable energy and 14.3% generate it on-site. The pathway is moderately predictable (mean test AUC 0.75 to 0.76 over 20 splits), and XGBoost improves on logistic regression by only 0.007. On-site generation is associated with investment in resource efficiency and the use of own and public funds, and rises steeply with firm size. Purchasing is associated with having a climate strategy and, across countries, with national income (Spearman rho = 0.68). Country is a leading predictor of both; whether it matters more for purchasing depends on whether countries are counted equally or by their number of SMEs. Among non-users, about a quarter plan to adopt, and planning rises with engagement in resource efficiency. All results are cross-sectional associations.