Cardiovascular diseases (CVDs) are a common cause of heart failure globally. The need to explore possible ways to tackle the disease necessitated this study. The study designed a machine learning model for cardiovascular disease risk prediction in accordance with a dataset that contains 11 features which may be used to forecast the disease. The dataset from Kaggle on cardiovascular disease includes approximately 70,000 patient records that were used to determine the outcome. Compared to the UCI dataset, the Kaggle dataset has many more training and validation records. Models created using neural networks, random forests, Bayesian networks, C5.0, and QUEST were compared for this dataset. On training and testing data sets, the results acquired a high accuracy (99.1 percent), which is significantly superior to previous methods. Ahead-of-time detection and diagnosis of cardiac disease, as well as better treatment outcomes, are strong possibilities for the suggested prediction model. Additionally, it may help patients better manage their illness or life forms in order to increase their chances of recovery/survival. The result showed greater accuracy and promising signs that machine-learning algorithms can indeed assist in early identification of the disease and improvement of the treatment outcome.