If you wish to end your tenancy during the fixed term period of the agreement which is due to run out, you will need to give at least 14 days' notice. This notice can be given up to and including the last day of the fixed term.
If you wish to end your tenancy after the fixed term has ended (and you have not signed another agreement), you will need to give at least 21 days' notice.