What age is it legal for a child to leave home in the united kingdom?

The legal age to be able to leave home is 16, however, the law is different in parts of the United Kingdom.