In order to harmonize supply and demand of green energy, new future-proof technologies are needed. Here, hydrogen plays a key role. Within the current framework conditions, the production of green hydrogen is not yet economically viable. The use of the oxygen produced and the possible increase in efficiency associated with it mostly remains unconsidered. The aim is to demonstrate that the economic efficiency of a power-to-gas (PtG) project can be increased by using the by-product oxygen. In this research project, a water electrolyser connected to grid is powered to supply hydrogen to a hydrogen refuelling station. By utilising the by-product oxygen from water electrolysis for a wastewater treatment plant (WWTP), it is shown that the net present value (NPV) of the project can be improved by up to 13 % compared to the initial scenario. If a photovoltaic (PV) system is used in addition to grid electricity for higher green hydrogen production, the NPV can be further improved by up to 58 %. The levelized cost of hydrogen (LCOH) is calculated for different scenarios with and without oxygen configuration. A sensitivity analysis is then performed to find important parameters.