At present, there is no legislation to say you have to replace an existing gas boiler. However, gas boilers will be banned from new-build properties from 2025, with heat pumps likely to be the most common replacement.
When will gas boilers be banned in the UK?