The research of renewable alternatives to decarbonize the transport sector and to reduce the consumption of fossil fuels pushes towards the development of more sustainable solutions for fuel production. Among the diesel substitutes, hydrotreated vegetable oil (HVO) is considered one of the most promising options, since it can be blended with fossil diesel without limitations. In this context, this paper assesses the technical and economic feasibility of producing HVO using waste vegetable oil (WVO) as feedstock, with the help of a simulation model that maximizes the integration of renewable energy sources. The process to synthesize HVO requires a large amount of hydrogen that, in this study, is supplied through an upstream hightemperature electrolysis process occurring in solid oxide electrolysis cells (SOECs), which are fed by low-carbon electricity. The use of waste oils as feedstock eliminates the competition with food crops (e.g. soybean or rapeseed) and promotes the recycling of substances that need to be disposed. The results of the study prove the technical feasibility of a plant with an annual capacity of 100 kton of HVO, having an energy efficiency of 80%. Also, the breakeven point of such investment would be reached before the fourth year of operation, considering a WVO price of 400 €/ton, which is assumed as target price. However, the uncertainty on the market prices of WVO, HVO and electricity, as well as on other fixed and variable production costs, can, significantly affect the projected results.