This paper explores the potential of Twitter, a popular social media platform, as a tool for predicting election outcomes. Sentiment analysis has emerged as a powerful tool for predicting election outcomes, with numerous studies showcasing its effectiveness in various countries. For instance, research has utilized sentiment analysis to forecast election results in nations like the USA, India, Pakistan and other countries, demonstrating the utility of social media data in gauging public opinion and predicting electoral results [1]. Elections in India are always considered important events that most people look forward to the rapid growth of social media in the past has provided end users with powerful tools to share their ideas. Twitter, which is one such platform, provides daily updates on political events through various hashtags and trends. People react to political events and give their opinions. Our approach is to collect tweets from top political parties contesting the Gujarat Assembly Elections 2022, and then calculate sentiment scores. The database includes a variety of recent and well-liked tweets about a specific political party. Party tweets are generated with specific keywords like “BJP”, “AAP”,“Congress” and so on. In the context of India, Twitter sentiment analysis tools and classification have been used to predict the outcomes of state assembly elections, underscoring the potential of social media data in forecasting electoral results within the country [2]. We used standard machine learning algorithms like VADER sentiment analyzer on Random Forest and Decision Tree for our classification and testing data to classify tweets as positive and negative. As a result, this work uses sentiment analysis to evaluate tweets gathered from Twitter and forecast election outcomes. This work shows the growing influence of social media on politics and the feasibility of using such platforms for predictive analysis. The findings of this study could provide valuable insights for political parties, policymakers, and researchers interested in the intersection of social media and politics. Random Forest and Decision Tree models performed well in predicting election outcomes based on sentiment analysis on Twitter data with 89% and 86% respectively.