Purpose. Ukraine is one of the world's five largest producers of grain crops. Much of the grain is exported. Traditionally, grain cargoes are exported through the western land crossings and seaports of the Black and Azov Seas, with the bulk of grain exports going through the port of Nikolaev and the ports of Greater Odessa. Rail transport provides delivery to exporting ports up to 2/3 of the total volume of grain transshipment in ports. Given the significant number of operations in the general technological process of processing grain wagons in ports, the required capacity of technical equipment of railway transport (number of tracks, locomotives, weighing devices, etc.) plays a significant role in the duration of the transshipment process and total operating costs. In this regard, determining the required number of ways to service the flow of grain for export is an urgent task. Methods. Comprehensive analysis of technical equipment and technology of railway transport of grain terminals in seaports, statistical analysis, graph-analytical modeling. Results. Based on the processing of statistics on the delay of wagons due to commercial marriages with grain cargo in the seaport, the conditional division of detained wagons due to and, consequently, the duration of delay of wagons into long and short. The characteristics of random values of the delay of the car are established and the dependence of the number of detained cars on the value of the total car traffic with grain cargo entering the transshipment is obtained. For short-term delays it is a polynomial dependence of the second degree, for long-term delays it is characterized by exponential dependence. Based on research, an additional track capacity has been established for the sedimentation of detained cars and recommendations have been developed for the number of such tracks and their length. Based on the rationing of the duration of shunting operations with delayed wagons, an additional working fleet of shunting locomotives for servicing delayed wagons was determined and recommendations for the location of wagon scales for commercial weighing of wagons in the process of processing grain wagons in the port. Practical significance. The obtained results can be used to determine the number of tracks and the total capacity of grain terminals in seaports. The duration of additional shunting operations to service the detained cars allows to clarify the calculation of the required locomotive fleet of grain terminals.