Hi,
There is no Capital Gains Tax arising on the transfer of assets between a husband and wife or civil partners. If those criteria are not met, then yes, there may be Capital Gains Tax to pay. Private Residence Relief may reduce or cancel out any gains.
There is a Capital Gains Tax calculator to help you work this out here:
Tax when you sell property
Thank you.