Deductions & credits

Any gains on the sale of the second home will be taxed as long term capital gains. 

Gain or Loss equals Sales Price minus Sales Expenses minus Adjusted Basis