This study examines the factors influencing online education for selected Sri Lankan universities during the COVID-19 pandemic. It also analyses the moderate effect of gender and type of the university on online education. Primary data were collected using a questionnaire via google form from Management students in Sri Lankan selected universities. Data analysis was done through structural equations using analysis of moment structures (AMOS) version 22.0. Attitude, internet and related facilities, curriculum, and self-motivation were found to have a significant positive impact on online education, while workload & time have no significant effect on online education. Among four factors, the strongest influence was derived from self-motivation followed by the curriculum. We have not found significant differences among male and female students’ views on online education, while the impact from the type of university is different among the two categories. This study effectively guides policy makers and university administrators across the educational institutes to decide on continuing online education. It reveals some insights to the teachers, students, and parents to understand the significance of the modern online learning environment and its positive impact on the new learning mode. There is no study related to the factors associated with the impact of online education during the Covid-19 pandemic in the Sri Lankan context.