Using the temperature data observed from the Sounding of the Atmosphere using Broadband Emission Radiometry (SABER), we investigate the response of the mesosphere and lower thermosphere (MLT) to two medium geomagnetic storms with disparate durations, on 20 April 2018 and 10 April 2022. The high-latitude MLT temperature increase in the Southern hemisphere can reach 40 K during April 2018 geomagnetic storm with a longer duration (Kp values greater than 4 for 15 h), while the temperature variations are less than 10 K for the April 2022 event (Kp values greater than 4 for 6 h). To investigate the different temperature responses to disparate geomagnetic storm durations and understand what physical process results in this difference, we simulated the two events using the thermosphere ionosphere mesosphere electrodynamics general circulation model (TIMEGCM). The simulations show that more particles and energy input in longer-duration geomagnetic storms produce larger ion drag force and pressure gradient force at ~130 km, and then the enhanced two forces cause faster horizontal wind, leading to larger horizontal divergence. Subsequently, the stronger downward vertical wind is transported to the MLT region (below 110 km) and ultimately makes greater temperature increases through adiabatic heating/cooling and vertical advection. Therefore, the effects of the storm’s duration on the MLT temperature are also important.