Neither. You will be taxed on your net profit. Sale price less selling expenses minus adjusted basis. Therefore, for example, if it was land, and you bought the property for $70,000 and now sold it for $95,000 less sale expenses, such as broker commission, escrow fees, recording fees, documentary transfer tax, etc., of $6,000, your profit would be $19,000 (95-6-70 = 19). Interest, property tax and mortgage principal are NOT expenses of sale. (Interest and tax is deductible as usual; mortgage principal is not deductible ()and when you borrowed the money, you did not have to pay tax on it).
Answered on Feb 25th, 2013 at 8:18 PM