The cost basis of a home includes only capital improvements. Ordinary expenses, such as utility costs and property taxes, do not increase basis.
When debts are cancelled in bankruptcy cases, the cancelled amount is excluded from gross income. Tax attributes are certain losses, credits, and property basis that must be reduced to the extent of the exclusion.