The issues addressed by the article concern the assessment of energy efficiency in rail transport, resulting from the proper organization of rail traffic. The problems related to energy consumption and, thus, the negative impact of rail transport on the natural environment are highly significant in terms of the green deal concept, climate change and sustainable development. In this article, energy efficiency is investigated in the context of minimizing the energy consumption necessary to satisfy a specific transport requirement. The essence of this article is to present an approach to energy-efficient planning of rail freight traffic. This article aims to develop a method covers the allocation of railway vehicles dedicated to freight traffic (locomotives and railcars) to perform a defined transport task, taking into account the energy efficiency assessment of the solution, routing the train launched with regard to the accomplishment of the defined transport task on the railway network, and determining the conditions of transport for a defined transport task, taking into account the allocated rolling stock (locomotives and railcars) and the route. In this article, based on the presented state of knowledge, a decision-making model has been proposed, including the model’s parameters, the values being searched for, indicators for assessing the quality of the solution, as well as the limitations and boundary conditions of the problem. The function of minimizing the energy consumption necessary to transport a shipment within the railway network (determining the energy efficiency of the proposed solution) has been proposed as the criterion. In addition, a description of the proprietary method of selecting rolling stock for accomplishing tasks, based on the assessment of the energy efficiency of the solution and a case study illustrating the operation of the method on the example of the area of Poland, has been presented.