Hi,
It is likely that you will have capital gains tax to pay when you dispose of the property.
When you dispose of the property, you will be able to claim private residence relief for the period that the property was your main residence.
You do not qualify for this relief for the period you rented the property out.
Have a look at
HS283 Private Residence Relief (2024) for more information.
There is a capital gains calculator at
Tax when you sell property to help you work out your gain.
Thank you.