It is always a good idea to get the highest possible EPC rating you can get, as this means your property will be the most energy efficient, saving money on bills and be more desirable for tenants. But by law, you need at least a rating of an E (according to current times 2023) however, by 2025, new builds will be required to have an EPC rating of a C.