This article presents a mathematical model of the risk of failures, depending on the operating parameters, of locomotive diesel engines. The purpose of this study is to determine the risk of failures of locomotive diesel engines in maintenance. The theory of probability and the theory of logic and reliability are used in this theoretical study. The innovations and main works are the first approaches to calculating the risk of failures of locomotive diesel engines by hourly fuel consumption, which, under operational conditions, allows for extending the life of locomotive diesel engines during maintenance. As a result, a maintenance process for 5D49 diesel engines is developed in a locomotive depot. When managing the maintenance processes of 5D49 diesel engines in the locomotive depot, it is determined that the optimal mileage is 45,000 km. The resource of 5D49 diesel engines in the locomotive depot increased by 2.4% in the management of the maintenance process compared to the existing maintenance system.