Investors & landlords

Okay! Just to be clear, there is no capital gain until the house is sold to a third party? I have a second scenario to explore, but I will start another thread.  Many thanks again.