$Missed Deductions

How does a foreclosure affect my taxes?

Other Life Eventsadvanced3 answers · 6 min readUpdated February 28, 2026

Quick Answer

Foreclosure typically creates taxable income equal to the forgiven debt amount minus your home's basis. For example, if you owed $300,000 but your home was worth $250,000 at foreclosure, you'd have $50,000 in cancellation of debt income, potentially increasing your tax bill by $11,000-$18,500 depending on your bracket.

Best Answer

MW

Michelle Woodard, JD

Homeowners facing or who have experienced foreclosure on their primary residence

Top Answer

What tax consequences does foreclosure create?


Foreclosure creates two potential tax impacts: cancellation of debt (COD) income and possible capital gains or losses. According to IRS Publication 4681, when your mortgage lender forgives debt through foreclosure, that forgiven amount becomes taxable income unless you qualify for an exclusion.


The tax hit can be substantial. If your mortgage balance exceeded your home's fair market value at foreclosure, the difference becomes cancellation of debt income reported on Form 1099-C.


Example: $350,000 mortgage, $280,000 home value


Let's say you owed $350,000 on your mortgage when your home was foreclosed. The bank sold it for $280,000. Here's what happens:


  • Mortgage debt forgiven: $70,000 ($350,000 - $280,000)
  • Taxable COD income: $70,000 (unless excluded)
  • Additional tax owed: $15,400-$25,900 (depending on your tax bracket)

  • You'll receive Form 1099-C showing the $70,000 cancellation of debt income, which must be reported on your tax return.


    The qualified principal residence exclusion


    Fortunately, IRC Section 108(a)(1)(E) provides relief for many homeowners. You can exclude up to $2 million of COD income ($1 million if married filing separately) if:


  • The debt was used to buy, build, or substantially improve your main home
  • The home secured the debt
  • You meet other qualification requirements

  • This exclusion applies to foreclosures that occurred from 2007 through 2025 under current law.


    Capital gains treatment on foreclosure


    The IRS treats foreclosure as a sale for capital gains purposes. You calculate gain or loss by comparing the home's fair market value at foreclosure to your adjusted basis (usually what you paid plus improvements minus depreciation).



    Key factors that affect your tax liability


  • Recourse vs. non-recourse debt: Non-recourse debt (common in some states) may create different tax treatment
  • Purchase money vs. refinanced debt: Only purchase money debt qualifies for the principal residence exclusion
  • Insolvency status: If you were insolvent when the debt was cancelled, you may exclude some or all COD income
  • Primary vs. investment property: Investment property foreclosures don't qualify for the principal residence exclusion

  • What you should do


    1. Gather all documents: Closing statements, improvement receipts, and Form 1099-C

    2. Calculate your basis: Add purchase price plus capital improvements

    3. Determine exclusion eligibility: Review whether you qualify for the principal residence exclusion

    4. Consider professional help: Foreclosure tax situations are complex and penalties for errors can be severe

    5. Use our return scanner to identify potential missed deductions that could offset any additional tax liability


    Key takeaway: Foreclosure often creates taxable cancellation of debt income, but the qualified principal residence exclusion can eliminate up to $2 million in COD income for most homeowners who used the debt to purchase their primary residence.

    *Sources: IRS Publication 4681, IRC Section 108(a)(1)(E), IRS Publication 523*

    Key Takeaway: Foreclosure typically creates taxable cancellation of debt income, but homeowners can exclude up to $2 million if the debt was used to purchase their primary residence.

    Tax treatment comparison by foreclosure scenario

    ScenarioCOD IncomeCapital TreatmentPotential Exclusions
    Underwater mortgage (debt > FMV)Yes - forgiven debt amountLoss (non-deductible)Principal residence exclusion
    Break-even (debt = FMV)Minimal or noneNo gain/lossUsually no exclusions needed
    Above-water (FMV > debt)Usually nonePotential gainHome sale exclusion ($250k/$500k)
    Insolvent taxpayerExcluded if insolventMay have gain/lossInsolvency exclusion

    More Perspectives

    DF

    Diana Flores, EA

    Older homeowners who may have significant equity and face different financial circumstances during foreclosure

    Special considerations for seniors facing foreclosure


    Seniors often face unique tax situations during foreclosure, particularly regarding the home sale exclusion and potential impacts on Social Security benefits.


    If you're 65 or older and have lived in your home for decades, you likely have substantial equity. According to the Census Bureau, homeowners over 65 have median home equity of $250,000. This can create different tax outcomes than younger homeowners with underwater mortgages.


    The $250,000/$500,000 home sale exclusion


    Seniors who have capital gains from foreclosure may qualify for the home sale exclusion under IRC Section 121. You can exclude up to $250,000 in capital gains ($500,000 if married filing jointly) if you:


  • Owned and lived in the home for at least 2 of the past 5 years
  • Haven't used the exclusion in the past 2 years

  • This exclusion is particularly valuable for seniors with long-term homeownership.


    Impact on Social Security and Medicare


    Cancellation of debt income counts as ordinary income, which can:

  • Make more of your Social Security benefits taxable
  • Increase your Medicare Part B and D premiums (IRMAA surcharges)
  • Push you into higher tax brackets

  • For example, if COD income increases your modified adjusted gross income above $103,000 (single) or $206,000 (married), you'll face Medicare premium surcharges of $70-$560 per month.


    Insolvency exclusion benefits


    Seniors on fixed incomes may qualify for the insolvency exclusion under IRC Section 108(a)(1)(B). If your total debts exceeded your assets immediately before the foreclosure, you can exclude COD income up to the amount you were insolvent.


    Key takeaway: Seniors with substantial home equity may face capital gains rather than cancellation of debt income, making the $250,000/$500,000 home sale exclusion more valuable than the principal residence debt exclusion.

    Key Takeaway: Seniors with substantial home equity may benefit more from the $250,000/$500,000 home sale exclusion than the cancellation of debt exclusion.

    MW

    Michelle Woodard, JD

    Homeowners whose foreclosure was triggered by job loss, divorce, medical issues, or other major life events

    When life events lead to foreclosure


    Major life changes often create cascading financial effects that can lead to foreclosure and complicate your tax situation. The key is understanding how these circumstances may provide additional tax relief.


    Hardship-related exclusions


    If your foreclosure resulted from specific hardships, you may qualify for broader debt forgiveness exclusions:


    Insolvency exclusion (IRC Section 108(a)(1)(B)): If job loss, medical bills, or divorce left you with more debts than assets, you can exclude COD income up to your insolvency amount.


    Qualified student loan discharge: If disability caused your foreclosure and you also had student loans discharged, different rules may apply to the combined debt forgiveness.


    Timing considerations for major life events


    The timing of your foreclosure relative to other life events affects your tax strategy:


  • Divorce: If foreclosure occurs during divorce proceedings, allocation of COD income between spouses becomes complex
  • Job loss: Unemployment may put you in a lower tax bracket, reducing the impact of COD income
  • Medical bankruptcy: Large medical expenses may qualify as itemized deductions to offset COD income

  • Amended returns and loss carrybacks


    If your foreclosure was preceded by years of financial struggle, you might benefit from:

  • Amending prior year returns to claim overlooked deductions
  • Carrying back any remaining capital losses to offset previous gains
  • Claiming casualty losses if the foreclosure was related to a federally declared disaster

  • According to IRS statistics, taxpayers who amend returns after major life events recover an average of $1,800 in additional refunds.


    Key takeaway: Major life events that trigger foreclosure may also create opportunities for additional tax exclusions, loss carrybacks, and amended return benefits that can substantially reduce your overall tax burden.

    Key Takeaway: Life events triggering foreclosure often create additional tax relief opportunities through insolvency exclusions and amended return strategies.

    Sources

    foreclosuredebt forgivenesscapital gainsform 1099c

    Reviewed by Michelle Woodard, JD on February 28, 2026

    This content is for educational purposes only and is not a substitute for professional tax advice. Consult a qualified tax professional for advice specific to your situation.

    How Does Foreclosure Affect My Taxes? | MissedDeductions