Ordinary differential equations (ODEs) are fundamental tools for modeling and understanding a wide range of chemistry, physics, and biological phenomena. However, solving complex ODEs often presents significant challenges, necessitating advanced numerical approaches beyond traditional analytical techniques. Thus, a novel machine learning (ML)-based method for solving and analyzing ODEs is proposed in the current investigation. In this study, we utilize a feed-forward neural network (FNN) with five fully connected layers trained on data samples generated from the exact solutions of specific ODEs. To show the efficacy of our suggested method, we will conduct a thorough evaluation by comparing the anticipated solutions of the FNN with the exact solutions for some ODEs. Furthermore, we analyze the absolute error and present the loss functions for some ODE examples, providing valuable insights into the model’s performance and potential areas for further development.