Hi Greg Simmonds,
You would be entitled to claim Private Residence Relief for the period that the property was your main residence, so that Capital Gains Tax is not charged for that period.
The period that you rent the property out for, does not qualify for Private Residence Relief, so Capital Gains Tax may be payable.
Please have a look here for more information:
HS283 Private Residence Relief (2024) Updated 6 April 2024
Thank you.