A numerical method for solving the differential equation of train motion and an algorithm for graphic-analytical calculation of its trajectory movement for railway sections of different complexity, which were implemented on a virtual hilly section of the railway track, are proposed. The numerical values of the speed and travel times of a freight train along the route of the rolling stock are substantiated, taking into account the time for acceleration and deceleration when stopping at the intermediate and final stations of the railway section under study, which were obtained in the form of tabular data. The parameters of the fuel and energy indicators of the transportation work of UzTE16M3 series diesel locomotives in quantitative and monetary terms were obtained when they drove freight trains with a maximum train weight. The research results are recommended and will be useful to specialists of the locomotive complex of railways with a hilly type of track profile.