Deductions & credits

If you have capital gains on the sale of the second home, those gains are taxable regardless of how the gains are used.