Given that breast cancer is one of the most difficult and dangerous cancers, the use of diagnostic methods in the early stages of its development can be very effective and important in the process of treating patients. This early diagnosis can help doctors treat patients, thus greatly reducing mortality. Many different features have been collected to diagnose and predict breast cancer, and it is very difficult for specialists to use all of these features for a large number of cancers. The aim of this study is to provide a new method for minimizing the process of breast cancer diagnosis through the Grasshopper optimization algorithm. The steps of the proposed method consist of three main parts: The first step after receiving the data is to normalize the pre-processed data. The second step is to reduce the features using the GOA. The final step is to select the optimal features and improve the parameters using the SVM Classifier. The experiments in this study were performed on three datasets, namely WBC (Wisconsin Breast Cancer), WDBC (Wisconsin Diagnosis Breast Cancer) and WPBC (Wisconsin Prognosis Breast Cancer). The results show that the accuracy of the proposed method is 99.51, 98.83 and 91.38 for the WBC, WDBC and WPBC datasets, respectively. In comparison with other methods, the results show that the proposed method has better performance.