Nowadays, heart disease is considered to be the main cause of sickness. Since the majority of people are unaware of their own kind and severity of heart disease, heart disease is now a significant problem that affects people of all ages. On the other hand, manual approach of prediction is challenging and often requires the capability to choose the relevant approach. To resolve these issues, various machine-learning models are playing a vital role in automatic disease prediction in medical field. In this study, we have calculated and made a comparison of accuracy of various machine learning models such as SVM, KNN, Logistic Regression, Decision Tree, Random Forest, Gaussian Naive Bayes, AdaBoost, Extra Tree Classifier and Gradient Boosting for prediction of heart disease using UCI repository dataset for training and testing of models. Among all the models used, the highest accuracy of 95.08% obtained by the Gradient Boosting model The major aim of the paper is to get a reliable, computationally effective machine learning algorithm for heart disease prediction.