What is legal age to leave child alone at home in UK?

There is no legal age limit for leaving a child on their own, but it is an offence to leave a child alone if it places them at risk