Biogas produced from anaerobic digestion (AD) of sewage sludge and organic wastes at wastewater treatment plants (WWTPs) can present an important energy contribution to a sustainable society. This raw biogas contains typically 50-65 molar% methane (CH4) and 50-35 molar% carbon dioxide (CO2). The raw AD biogas can be further upgraded to biomethane (with over 98 molar% CH4). This is a sustainably produced gas of biological origin which has same usability and energetic properties as fossil natural gas. Either by use as biofuel in transportation, local combined heat and power (CHP) or directly fed into the gas grid, biomethane has become a vital non-fossil energy source in Europe but also other parts of the world.During the CO2 separation step of biomethane upgrading, substantial amounts of CO2 are emitted to the atmosphere. A methanation unit can convert this CO2 into sustainable Synthetic Natural Gas (SNG), with a strong potential to be used as additional biomethane (SNG-Biomethane). The methanation unit can replace the conventional carbon dioxide (CO2) separation unit for biomethane upgrading, but needs addition of hydrogen from water electrolysis, e.g. high performance Solid Oxide Electrolysis (SOE). Such SOE can also be built as a novel high-performance reversible Solid Oxide Electrolysis (rSOC), as demonstrated in the European H2020 project BALANCE. Besides the SOE mode, such rSOC can operate also in the opposite fuel cell direction (SOFC): In times when power demands exceed sustainable supply, the SOFC mode of the rSOC can convert raw AD biogas directly to electricity. In this way, WWTPs can act as energy storage solutions to buffer temporal electrical energy surplus and produce domestic sustainable SNG to the transport sector or the gas grid. At the same time, the rSOC provides a concept of zero-emission power production. To highlight the zero-emission potential of the rSOC, this paper emphasizes author’s earlier results from the European H2020 project DEMOSOFC, which demonstrated zero-local emission SOFC using raw biogas from WWTP sewage sludge and organic wastes.In this paper, profitability estimations for optimal rSOC and methanation investment and operation strategies at a modern city level WWTP in Finland, Europe, are presented. Power used in rSOC electrolysis mode (SOEC) origins from intermittent green power sources such as wind power, while power produced in rSOC fuel cell mode (SOFC) uses raw AD biogas. For the assessment, we utilize a dedicated Power-to-X optimization model which combines optimally power market operations, dimensions of renewable power sources, plant dimensions and operational scheduling strategies. The assessment showed high profitability using European gas crisis power market data 2021-2022, resulting in sustainable biomethane net production costs of 30-70 €/MWh.