This paper considers methods of determining the capacity of railway lines with mixed traffic. This issue is relevant, since the calculation with the help of standard analytical formulas often does not correspond to the actual existing capacity of the railway line. In connection with this circumstance, the paper considers the method of calculating the capacity of the railway line using simulation modeling, the results of which are closer to the real values of the available capacity.