Hi
You may have to pay capital gains tax on the disposal of the property. You will be able to claim private residence relief for the period that the property was your main residence.
Have a look at
HS283 Private Residence Relief (2023)
for more information.
There is a capital gains calculator at
Tax when you sell property
Once you purchase you second property, you should write to
H.M. Revenue and Customs
Pay As You Earn
BX9 1AS,
to confirm which property will be your main residence for tax purposes. Please see
Tax when you sell your home
Thank you