Deed in Lieu of Foreclosure: Tax Consequences and COD Income

Handing your home back to the lender through a deed in lieu of foreclosure carries two possible tax consequences: the IRS treats the transfer as a sale that can produce a capital gain, and it treats any mortgage balance the lender writes off as ordinary income. Whether you owe anything depends on the type of mortgage you had, how much the home was worth, and whether you qualify for one of the exclusions built into the tax code. Many homeowners end up owing little or nothing once those exclusions are applied, but the reporting still has to be done correctly.

The Two Tax Events

The IRS does not treat a deed in lieu as a single transaction. It sees two things happening at once: you gave up property, and the lender forgave a debt. Each piece is taxed under its own rules.

The property transfer is a deemed sale. You calculate a capital gain or loss the same way you would if you had sold the house to a buyer. Separately, any mortgage balance the lender writes off beyond what the property covered becomes cancellation of debt income, taxed as ordinary income unless an exclusion applies. How much of your tax hit lands in each bucket depends on whether your mortgage was recourse or non-recourse.

Recourse vs. Non-Recourse Debt

This single distinction controls almost everything about your tax outcome.

Non-recourse debt means the lender’s only remedy is the property itself. If the home is worth less than what you owe, the lender absorbs the loss. When you transfer the property, the IRS treats the full outstanding loan balance as your sale price, even when the home’s fair market value is lower. Because the whole debt is folded into the sale price, nothing is left over to forgive. There is no cancellation of debt income. The entire tax consequence is a capital gain or loss.1Internal Revenue Service. Publication 4681 – Canceled Debts, Foreclosures, Repossessions, and Abandonments

Recourse debt means you are personally liable for the full loan amount. The lender could pursue you for any shortfall. In a deed in lieu with recourse debt, the IRS splits the transaction. Your sale price for the property piece is the lesser of the outstanding debt or the home’s fair market value. Any debt above fair market value that the lender writes off becomes cancellation of debt income.1Internal Revenue Service. Publication 4681 – Canceled Debts, Foreclosures, Repossessions, and Abandonments

Most residential mortgages are recourse debt, so most homeowners doing a deed in lieu face both tax events. You can confirm which type you have by checking box 5 on the Form 1099-C your lender sends. If it is checked, the lender reported you as personally liable, which means recourse debt.2Internal Revenue Service. Instructions for Forms 1099-A and 1099-C

When Forgiven Debt Becomes Taxable Income

When a lender accepts a deed in lieu and writes off any remaining mortgage balance, the forgiven amount is cancellation of debt (COD) income. The reasoning is that you received money you never repaid, so the IRS treats the forgiven portion as a financial benefit taxable as ordinary income.

The lender reports canceled debt of $600 or more to both you and the IRS on Form 1099-C. Box 2 shows the total canceled amount. Box 7 reports the fair market value of the property you transferred. Those numbers, combined with your loan balance and your adjusted basis in the home, are what you need to figure both tax events.3Internal Revenue Service. About Form 1099-C, Cancellation of Debt

Getting a 1099-C does not automatically mean you owe tax on the full amount. It means the IRS knows about the forgiven debt and expects you to address it on your return. The burden is on you to show the income qualifies for an exclusion.

Here is how the numbers usually break out. Say you owe $280,000 on a recourse mortgage and transfer the home when it is worth $230,000. The lender writes off the $50,000 difference. Your sale price for gain-or-loss purposes is $230,000, because fair market value is lower than the debt. The $50,000 write-off is COD income. If your adjusted basis in the home was $210,000, you also have a $20,000 capital gain on the property transfer. Two separate items, each with its own rules.

Ways to Exclude Forgiven Debt From Income

The tax code offers several ways to keep COD income off your taxable income. Any exclusion you claim requires filing Form 982, Reduction of Tax Attributes Due to Discharge of Indebtedness, with your return.4Internal Revenue Service. Instructions for Form 982

Insolvency

If your total liabilities exceeded the fair market value of your total assets immediately before the debt was canceled, you were insolvent, and you can exclude COD income up to the amount of that insolvency.5Internal Revenue Service. What if I Am Insolvent

The IRS counts everything you own as an asset for this test, including retirement accounts like 401(k)s and IRAs, even though creditors generally cannot reach them. Liabilities include the full balance of any recourse debt and, for non-recourse debt, the portion up to the property’s fair market value.1Internal Revenue Service. Publication 4681 – Canceled Debts, Foreclosures, Repossessions, and Abandonments

The exclusion is capped at the extent of your insolvency. If your liabilities exceeded your assets by $50,000 but the lender forgave $75,000, you can exclude only $50,000. The other $25,000 is taxable ordinary income.

Excluding COD income under insolvency is not entirely free. The excluded amount reduces future tax benefits in a statutory order: net operating losses first, then general business credits, capital loss carryovers, and the basis of property you still own.6Office of the Law Revision Counsel. 26 USC 108 – Income From Discharge of Indebtedness For most homeowners, this ends up reducing the basis of other property they own, since they have no NOLs or business credits.

Qualified Principal Residence Indebtedness

This exclusion lets you exclude up to $750,000 of forgiven mortgage debt ($375,000 if married filing separately) from income. It covers debt you took on to buy, build, or substantially improve your main home, as long as that home secured the debt.6Office of the Law Revision Counsel. 26 USC 108 – Income From Discharge of Indebtedness

There is a hard timing rule to watch. The exclusion only covers debt discharged before January 1, 2026, or debt discharged under a written arrangement entered into before that date.4Internal Revenue Service. Instructions for Form 982 If your deed in lieu is completed entirely in 2026 with no prior written agreement, this exclusion is not available. If you and your lender signed a deed-in-lieu agreement in 2025 but the actual transfer and debt discharge happened in 2026, you may still qualify because the arrangement was entered into and evidenced in writing before the cutoff. That is why the timing of the signed agreement, not just the closing date, matters.

With the qualified principal residence exclusion narrowing for new arrangements, insolvency has become the primary shelter for many homeowners doing a deed in lieu.

Capital Gain or Loss on the Property Transfer

Separate from any COD income, the deed in lieu is treated as a sale. You calculate gain or loss by comparing the amount realized (your deemed sale price) to your adjusted basis in the property.

Your adjusted basis starts with what you originally paid for the home, plus the cost of any capital improvements such as a new roof, an addition, or a kitchen remodel, minus any depreciation you claimed if you rented the property or used part of it for business. The amount realized depends on the debt type: the full loan balance for non-recourse debt, or the lesser of the loan balance and fair market value for recourse debt.

The Section 121 Exclusion for Your Main Home

If the property was your primary residence and you owned and lived in it for at least two of the five years before the deed in lieu, you can exclude up to $250,000 of capital gain ($500,000 for married couples filing jointly) under Section 121.7Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence

This exclusion often wipes out the capital gain entirely for owner-occupied homes. It applies even though the transfer was involuntary. The two-year use requirement can trip up homeowners who bought the home shortly before financial trouble hit, or who had already moved out and rented the property. If you fail the ownership and use test, the full gain is taxable.

Section 121 covers only capital gains, not COD income. If you have both a capital gain and forgiven debt, you need Section 121 for the gain and a separate exclusion, such as insolvency, for the COD portion.

Losses on a Personal Residence

If your basis exceeded the amount realized, the tax treatment depends on how you used the property. Losses on a personal residence are not deductible. The IRS does not allow you to claim a loss on the sale of your own home. If the property was an investment or rental, the loss is generally deductible.

How the Holding Period Affects Rates

Capital gains from property you held for more than one year qualify for long-term rates, which are lower than ordinary income rates. For 2026, long-term gains are taxed at 0%, 15%, or 20% depending on your taxable income. Most homeowners fall into the 0% or 15% bracket because they have owned the property for years. Short-term gains on property held one year or less are taxed at your ordinary rate, which can run as high as 37%.

Because the capital gain portion of a deed in lieu is taxed at capital gains rates while the COD portion is taxed at ordinary income rates, the split between the two matters financially. That is another reason the recourse question is so important. It determines how much of the total tax hit lands in each bucket.

Forms You’ll File

A deed in lieu typically pulls in three or four forms.

  • Form 1099-C from your lender reports the canceled debt amount, whether you were personally liable, and the property’s fair market value. It is your starting point.3Internal Revenue Service. About Form 1099-C, Cancellation of Debt
  • Form 982 is required whenever you exclude COD income. You check the applicable box (insolvency, qualified principal residence indebtedness, or another exclusion), enter the excluded amount, and report the resulting reduction in your tax attributes.4Internal Revenue Service. Instructions for Form 982
  • Schedule D (Form 1040) is where the capital gain or loss from the deemed sale is reported, just like any other property sale.8Internal Revenue Service. About Schedule D (Form 1040), Capital Gains and Losses
  • Schedule 1 (Form 1040) reports any COD income you could not exclude on Form 982 as other income, which flows into your Form 1040.

You may also receive Form 1099-A instead of or alongside the 1099-C. Lenders can file a 1099-C alone when debt cancellation and property acquisition happen in the same year, which is the typical deed-in-lieu situation.2Internal Revenue Service. Instructions for Forms 1099-A and 1099-C

What to Check Before Signing

The tax consequences of a deed in lieu can range from nothing to tens of thousands of dollars. A few things are worth confirming before you finalize the agreement.

Run the insolvency calculation honestly. Add up every asset you own, including bank accounts, cars, retirement accounts, and any other real estate, and compare the total to all your debts. If you are clearly insolvent, the COD tax concern may be smaller than you expect. If you are close to the line, even a modest asset you forgot to count could push you into taxable territory.

Confirm whether your mortgage is recourse or non-recourse. Your loan documents will say, and your lender or a real estate attorney can verify. This one fact decides whether you face one tax event or two.

If you have not signed the deed-in-lieu agreement yet and the qualified principal residence exclusion could matter to your situation, keep in mind that only written arrangements entered into before January 1, 2026, preserve eligibility.6Office of the Law Revision Counsel. 26 USC 108 – Income From Discharge of Indebtedness