Essentially, if there’s a deficiency in the course of a foreclosure or other type of sale, the amount is considered your taxable income, unless the deficiency arose from the acquisition or improvement of your principal home. (This issue is discussed in more detail in Ch. 8.)