Hi this is a question for the accountants. If i bought a IP for a certain price then sold it and made a profit but it was crossed with my PPOR using a LOC. The end profit back to me will be less as the banks will get there money first. eg. Bought IP for $329k including all costs etc sold for $390k less costs say have gross profit of $50k which would then go back to the bank as it was crossed loan with PPOR. Do i still have to pay tax on the gross profit before bank takes it back? Not sure how the capital gains tax is worked out with lines of credit etc? can someone explain it!