Due to the intermittent character of wind power, substitution of a dispatchable conventional power sources with the wind power plants is challenging and several wind integration options have been studied. This paper focuses on using surplus electricity generated by wind turbines for heat production by the heat pumps combined with the heat storage in the district heating systems. The main aim of this study is to determine the optimal capacity of the heat pump and heat storage facilities for certain capacities of the wind power plants within the power supply system. The optimal capacities are sought on the bases of technical, environmental and economic criteria. The method used is the numerical experiment with the Latvia’s energy system model created within the EnergyPLAN environment. Life cycle inventory databases were used for determination of life cycle energy and material consumption.