The income tax consequences of a foreclosure or short sale of real property depend on whether the mortgage debt is recourse or nonrecourse to the taxpayer.  If the mortgage debt is recourse, then the taxpayer is personally liable for any deficiency on the loan.  If the lender forgives such a deficiency, the taxpayer recognizes cancellation-of-indebtedness income, which is taxed as ordinary income.  In contrast, if the mortgage debt is nonrecourse, then the entire balance of the debt is treated as proceeds from the sale of the property, even if it exceeds the fair market value or actual sales price of the property.