The search for ways to save energy at livestock enterprises is one of the actual problems. The development of high-quality energy-saving lighting for the cultivation of farm animals is the basis for the successful development of the agro-industrial complex. It is determined that the prerequisite for the development of a new algorithm and methodology is the annual increase in the cost of electricity resources, which leads to an increase in the cost of livestock products. The parameters of lighting devices used for lighting livestock premises are not always justified, as a result of which the cost of the lighting system increases, its efficiency decreases. (Research purpose) The research purpose is developing a methodology and algorithm for the calculation of an effective lighting system. (Materials and methods) We selected the parameters of the lighting device that provide the smallest deviation of the maximum illumination and the unevenness of illumination from their set values in the livestock room. They showed one of the variants of progressive scientific and technical developments of the methodology and algorithm of the program in order to implement an energy-saving power supply mode. It was established that the development of the program will allow to calculate the design parameters of LED-based lighting installations, to ensure the quality of illumination on the working horizontal surface in the livestock room. We conducted theoretical studies at one of the livestock enterprises. (Results and discussion) We determined the main design parameters of the lighting device for a specific livestock room, in which the illumination norm is ensured and uneven lighting is excluded. (Conclusions) It was stated that the proposed design of the LED lighting device of the lamp will lead to a reduction in energy consumption, an increase in the efficiency of using electric energy and, accordingly, an increase in the productivity of livestock. They have shown that the use of the developed software will make it possible to increase the efficiency of calculations.