Deductions & credits

Can I deduct all expenses for the sale of"2nd home" such as Commissions paid, payoff of mort loans?etc?