The maximum height for a fence in a residential area is 2.5 metres, but it may vary depending on the local council's regulations.