The physical characteristics of classrooms can significantly impact the physical and mental health as well as the learning performance of college students. This study investigates the effects of classroom size and ceiling height on learning performance using virtual reality technology. Four classroom settings were created: two small classrooms (40.5 m2) with ceiling heights of 3.0 m and 3.9 m, and two large classrooms (62.1 m2) with ceiling heights of 3.9 m and 4.8 m. 34 students participated in task tests while their subjective evaluations and physiological data were recorded. Results showed higher subjective ratings in larger classrooms with the same ceiling height. Classroom size did not significantly affect task test scores. However, there is a significant difference in Task test scores for ceilings of different heights with the same size classroom. The task test improved by 17.3% in the Big and High Room (BHR) and by 20.1% in the Small and Low Room (SLR). Physiological data revealed significant effects of ceiling height, with HRV-nLF/nHF and EEG-β power increasing by 26.5% and 53.9% in BHR, and by 10.7% and 22.8% in SLR, respectively. This study concludes that classroom size and ceiling height plays a crucial role in learning performance and provides insights for classroom design. It also establishes a framework for future research on the interplay between heart rate variability, EEG, and learning performance.