Panicum maximum cultivars have distinct characteristics, especially morphological ones related to the leaf structure and coloration, and there may be differences in the spectral behavior captured by sensors. These differences can be used in classification using machine learning (ML) algorithms to differentiate biodiversity within the same species. The objectives of this study were to identify ML models able to differentiate P. maximum cultivars and determine which is the best spectral input for these algorithms and whether reducing the sample size improves the response of the algorithms. The experiment was carried out at the experimental area of the Forage Sector of the School Farm belonging to the Federal University of Mato Grosso do Sul (UFMS). The leaf samples of the cultivars Massai, Mombaça, Tamani, Quênia, and Zuri were collected from experimental plots in the field. Analysis was carried out on 120 leaf samples from the P. maximum cultivars using a VIS/NIR hyperspectral sensor. After obtaining the spectral data and separating them into bands, the data were submitted for ML analysis to classify the cultivars based on the spectral variables. The algorithms tested were artificial neural networks (ANNs), REPTree and J48 decision trees, random forest (RF), and support vector machine (SVM). A logistic regression (LR) was used as a traditional classification method. Two input models were evaluated in the algorithms: the entire spectrum band provided by the sensor (ALL) and another input configuration using the calculated bands. The reflectances from the P. maximum cultivars showed different behavior, especially in the green and NIR regions. RL and ANN algorithms using all information in the spectrum are able to accurately classify the cultivars, reaching accuracies above 70 for CC and above 0.6 for kappa and F-score. VIS/NIR leaf reflectance can be a powerful tool for low-cost, non-destructive, and high-performance analysis to distinguish P. maximum cultivars. Here, we achieved better model accuracy using only 40 leaf samples. In the present study, the J48 decision tree model proved to have good classification performance regardless of the sample size used, which makes it a strategic model for forage cultivar classification studies in smaller or larger datasets.