Home Foreclosure & Short Sale Tax Calculator 2026 β Capital Gain + COD Income
Calculate the two tax events in a home foreclosure or short sale: capital gain on the deemed sale and cancellation of debt income. Applies Section 121 exclusion, Section 108 insolvency, and QPRI exclusion.
$
Adjusted basis β purchase price plus improvements minus depreciation $
FMV at time of foreclosure or short sale $
Total debt at time of foreclosure or short sale $
How much liabilities exceeded assets just before discharge (0 = solvent) $0
Capital Gain (Event A)
$0
COD Income (Event B)
$0
Exclusions Applied
$0
Total Tax Owed
Two-Event Tax Analysis
How Foreclosure Taxes Work: Two Events
A foreclosure or short sale creates up to two separate taxable events. Understanding both is essential to determine your total tax liability and available exclusions.
Event A: Capital Gain on Deemed Sale
Non-Recourse: Amount Realized = Outstanding Debt
Recourse: Amount Realized = Fair Market Value
Capital Gain = Amount Realized β Adjusted Basis
Section 121 Exclusion: up to $250,000 single / $500,000 MFJ (primary residence, 2-of-5 years)
Recourse: Amount Realized = Fair Market Value
Capital Gain = Amount Realized β Adjusted Basis
Section 121 Exclusion: up to $250,000 single / $500,000 MFJ (primary residence, 2-of-5 years)
Event B: Cancellation of Debt Income (Recourse Only)
COD Income = Outstanding Debt β Fair Market Value (recourse loans only)
Sec. 108 Exclusions: Insolvency (up to insolvency amount) or QPRI (primary residence)
Taxable COD = COD Income β Exclusions
Sec. 108 Exclusions: Insolvency (up to insolvency amount) or QPRI (primary residence)
Taxable COD = COD Income β Exclusions
Sources and References (click to expand)
- IRC Section 121 β Exclusion of Gain from Sale of Principal Residence ($250K/$500K exclusion)
- IRC Section 108 β Income from Discharge of Indebtedness (insolvency and QPRI exclusions)
- IRC Section 1001 β Determination of Amount of and Recognition of Gain or Loss (amount realized)
- IRS Publication 4681 β Canceled Debts, Foreclosures, Repossessions, and Abandonments
- IRS Form 982 β Reduction of Tax Attributes Due to Discharge of Indebtedness (Sec. 108 elections)
- Mortgage Forgiveness Debt Relief Act of 2007 (extended through 2026) β QPRI exclusion
Extended
4-Scenario Comparison + Form 982 / Form 8949 Worksheet
Compare tax under recourse vs non-recourse, primary vs investment, and insolvent vs solvent scenarios with step-by-step worksheets
Compare tax outcomes across four key scenarios using your inputs from above.
$
$
$
$
| Scenario | Capital Gain | Exclusion (Β§121) | Taxable Gain | COD Income | COD Excluded (Β§108) | Total Taxable |
|---|
Step-by-step calculations for Form 8949 (capital gain) and Form 982 (COD exclusion) using your inputs.
Frequently Asked Questions
What is the difference between a recourse and non-recourse loan in a foreclosure?
A recourse loan means the lender can pursue the borrower personally for any remaining balance after the foreclosure sale (the deficiency). A non-recourse loan means the lender's only remedy is the collateral β the property β and cannot sue the borrower for the shortfall. This distinction is critical for tax purposes: in a non-recourse foreclosure, the amount realized equals the full outstanding debt (which can create a larger capital gain), but there is no Cancellation of Debt (COD) income. In a recourse foreclosure, the amount realized is the fair market value of the property, and the difference between debt and FMV becomes COD income.
How does the Section 121 exclusion work in a foreclosure or short sale?
If the property is your primary residence and you owned and lived in it for at least 2 of the 5 years before the sale or foreclosure, you may exclude up to $250,000 of capital gain (single) or $500,000 (married filing jointly) under IRC Section 121. The exclusion applies to the capital gain portion of a foreclosure β the deemed sale of the property β but not to cancellation of debt income. The 2-of-5 year test can be partially met under hardship exceptions, which may allow a partial exclusion based on the fraction of time requirements met.
What is the Section 108 exclusion for cancellation of debt income?
IRC Section 108 provides several exclusions from COD income. Two most relevant to foreclosures: (1) Insolvency exclusion β if you were insolvent at the moment of discharge, COD income is excluded up to the amount of insolvency (assets minus liabilities). (2) Qualified Principal Residence Indebtedness (QPRI) exclusion β for COD from a primary residence under the Mortgage Forgiveness Debt Relief Act, extended through 2026. The QPRI exclusion covers acquisition debt on a principal residence up to $750,000 ($375,000 MFS). Form 982 is used to elect and report these exclusions.
How is the "amount realized" calculated in a foreclosure?
The amount realized in a foreclosure depends on the loan type. For non-recourse debt: the amount realized equals the outstanding principal balance (the full mortgage), not the fair market value of the property. This means if the debt exceeds the adjusted basis, there is a taxable gain. For recourse debt: the amount realized equals the fair market value of the property as of the foreclosure date. Any debt forgiven above that FMV is COD income, not capital gain. This two-event analysis is laid out in Cottage Savings Association v. Commissioner and confirmed in Commissioner v. Tufts (1983).
Do I report foreclosure income even if I received no cash?
Yes. The IRS treats a foreclosure or short sale as a deemed sale of the property, creating capital gain or loss, even if you received no cash proceeds. The lender is required to issue Form 1099-A (Acquisition or Abandonment of Secured Property) for foreclosures and Form 1099-C (Cancellation of Debt) for any forgiven amount. You must report these on Form 8949 (for the deemed sale) and potentially Form 982 (to claim exclusions from COD income). Failure to report can trigger IRS matching notices because the 1099-A and 1099-C are filed with the IRS as well.