The utility model relates to a shunting device for selecting a train compartment when riding a subway, which relates to the field of shunting in the subway. The shunting device contains subway doors,glass doors, integrated circuit boards, seats, car bottom panels, indicator lights, voice announcers, waiting areas, car power, passenger capacity identification, infrared sensors, weighing sensors. The invention has the following beneficial effects: let the indicator light of the corresponding car display one of the colors of red, yellow and green before the subway arrives at the station, Passengers are guided to choose the best carriage to wait in queue, so as to play the role of diversion when boarding the train, and to maximize the use of subway interior compartment space, to avoid the same high-speed rail local congestion and local idle state coexistence of the situation.