Due to topography, geology, and other factors, small spacing sections are common between tunnels and interchange exits. There is mandatory lane-changing behavior for vehicles that need to leave the main line and drive inside the road before leaving the tunnel. Affected by the “white hole” of a tunnel, the lane-changing behavior of off-ramp vehicles differs significantly from that of original roadbed sections. To study the mandatory lane-changing duration (MLCD) of off-ramp vehicles in small spacing sections of the tunnel to interchange in mountainous areas, their time and trajectory data were collected based on a driving simulator. According to the characteristics of the data, the survival analysis method was used to analyze the influence on the MLCD of off-ramp vehicles of the spacing section between the tunnel and interchange, vehicle types, tunnel types, ramp types, highway service level, and whether to set exit advance guide signs in the tunnel and the Cox proportional hazards model of the MLCD was established. The results showed that the spacing of the tunnel interchange, the road service level, and whether to set exit advance guide signs in the tunnel had significant effects on the MLCD of vehicles, while the vehicle, the tunnel, and the ramp types did not. When the spacing section of the tunnel interchange was less than 500 m, the off-ramp vehicle had continuous mandatory lane-changing behavior, and when the distance decreased from 400 m to 300 m, the risk rate of lane changing increased by 5.68 times. Survival function curve estimation provided the 75% quantile of MLCD of off-ramp vehicles under different conditions, which could provide a theoretical reference for setting the minimum distance between a tunnel and interchange exit.