Agriculture is an important part for a country’s both growth and productivity. If agriculture is affected then there will be a huge loss for the country. The farmers are unaware about the types of crops and soil and due to this the growth of crops and quality of soil is hampered. To overcome this problem there are some methods researchers have found using machine learning methods. One of these methods is SVM and Logistic Regression. In this model, the dataset used comprises 22 different types of crops and the amount of potassium, nitrogen and phosphorus needed is obtained using SVM and Logistic Regression. The performance of the model is evaluated in terms of performance metrics like accuracy, precision, recall, F-1 score.