We collected total electron content (TEC) data in the longitudinal sector of 60°W–90°W during 1999–2015 to investigate the latitudinal variation of nighttime middle‐ and high‐latitude ionosphere. The midlatitude trough is one of the important features of the nighttime ionosphere. The statistical analysis provides unprecedented detail of the local time, seasonal, solar activity, and geomagnetic activity variations of the total electron content in the latitude range of 40°N–75°N, focusing on the variation of midlatitude trough. The results show that the trough minimum position has significant local time, seasonal, and geomagnetic activity dependences but slight solar activity dependence. In addition, an empirical model of the TEC in the middle to high latitudes was constructed by empirical orthogonal function analysis. The empirical model can reconstruct latitudinal profiles of TEC and well reproduce the dependence of the midlatitude trough on local time, seasonal, solar cycle, and geomagnetic activity. In addition, we also analyzed the geomagnetic activity dependence of TEC at different latitudes and different local time sectors.