The objective of this study was to technically and economically optimize the public swimming baths heating system with special respect to the Rülzheim district heating system and the use of deep geothermal power.