The invention relates to a method for realizing automatically compiling train working diagrams of the urban rail train, which comprises configuring basic parameters required by compilation, configuring ideal running intervals of each time period in one day, adjusting ranges of the time periods, determining starting time and terminal time of each running line, pre-connecting the running lines, regulating the starting point according to the number of rolling stock, compiling running lines of entering/exiting the garage of the train, and then diagramming a train working diagram. Compared with the prior art, the method has the advantages that, by regulating the time periods into integral multiple of the running intervals, the balance of diagramming transient running line of the peak hours and the non-peak hours is guaranteed, further, the compiling software is enabled to automatically diagram urban rail train working diagrams with balanced running intervals and capability of furthest meeting requirements of passenger flow in various time periods under restriction of conditions of the number of rolling stock, reentrant time, reentrant mode and the like, thereby significantly increasing the compiling efficiency of train working diagrams to be adaptable to requirements of train working diagram regulation along with variation of passenger flow, technical equipments and transport organizing methods.