This study aims to optimize the subway platform passenger flow guidance method using Anylogic simulation software. The objective of the study is to minimize overcrowding within subway carriages, enhance transportation capacity, and augment service levels by guiding passengers on the platform to board trains in a distributed manner. The study achieves a balanced flow of passengers in each carriage by taking into consideration the number of passengers in each carriage, the number of passengers at the station, and the expected number of passengers disembarking from the trains. The standard deviation of balance is used to optimize the subway platform passenger flow guidance method. We simulated Guangzhou Metro Zhujiang New Town Line 5 platform to compare different guidance methods and evaluate their effects on the uneven distribution of passengers with passenger flows ranging from 120K to 600K people per day. Our results show that guidance method 2, relative to manual guidance, improves by 38.5% under a daily passenger flow of 240K people on Zhujiang New Town Line 5. Guidance method 3 improves by 25.7% relative to guidance method 2 and by 54.4% relative to manual guidance.