What Are the Tax Consequences of a Deed in Lieu?

The tax consequences of a deed in lieu of foreclosure come in two parts: the IRS treats your transfer of the property as a sale that can produce a capital gain or loss, and it can also treat any debt the lender forgives as ordinary income. What you actually owe depends on whether your mortgage was recourse or nonrecourse, whether the home was your primary residence or an investment, and whether you qualify for an exclusion like insolvency or bankruptcy.

Handing over the keys does not make the tax event go away. In many cases it creates it.

The Two Tax Events

The IRS treats your voluntary transfer of property to the lender as a sale, even though no money changes hands.1Internal Revenue Service. Foreclosures and Capital Gain or Loss That deemed sale is the first event, and it produces a capital gain or loss based on what you’re treated as receiving minus your adjusted basis in the property.

The second event is cancellation of debt (COD) income. When the lender accepts a property worth less than the balance owed and forgives the shortfall, the forgiven amount can count as ordinary taxable income. Whether it actually is taxable depends on the loan type and the exclusions you qualify for.2Internal Revenue Service. Topic No. 431 – Canceled Debt – Is It Taxable or Not

Recourse vs. Nonrecourse Debt Drives the Result

With recourse debt, you are personally liable for the full balance. If the property does not cover it, the lender can pursue your other assets or wages. With nonrecourse debt, the lender’s only remedy is taking the property. That single distinction changes both the gain-or-loss math and whether you owe any COD income at all.

For recourse debt, the IRS splits the transaction. The sale is treated as happening at fair market value, which produces the capital gain or loss. Any forgiven balance above that fair market value is separate COD income taxed at ordinary rates.2Internal Revenue Service. Topic No. 431 – Canceled Debt – Is It Taxable or Not

For nonrecourse debt, there is no COD event. The full outstanding loan balance is treated as the amount received in the sale, even if it far exceeds what the home is worth. That inflated amount realized can create a larger capital gain, but you will not owe any ordinary COD income.2Internal Revenue Service. Topic No. 431 – Canceled Debt – Is It Taxable or Not

State Anti-Deficiency Laws Can Reclassify the Debt

The loan documents are not the only word on this. Several states have anti-deficiency laws that prohibit lenders from pursuing borrowers for the remaining balance after a foreclosure or deed in lieu, and where those laws apply, federal tax rules treat the debt as nonrecourse regardless of what the mortgage agreement says.3Internal Revenue Service. Recourse vs. Nonrecourse Debt That shift matters because it moves the forgiven amount out of ordinary income and into the capital gain calculation, where lower rates or exclusions may apply.

If your lender issues a Form 1099-C, Box 5 will indicate whether you were personally liable. Lenders sometimes get this wrong, so checking your state’s rule is worth the effort.

Calculating the Gain or Loss

The basic formula: amount realized minus adjusted basis. Adjusted basis starts with your purchase price, adds the cost of capital improvements, and subtracts depreciation you claimed (or should have claimed) if the property was ever a rental. The amount realized is where debt type comes in.

Recourse debt: the amount realized equals the fair market value at the time of transfer. If your adjusted basis is $320,000 and the property’s fair market value is $280,000, you have a $40,000 loss on the property side of the transaction.

Nonrecourse debt: the amount realized equals the full outstanding loan balance. If you owe $350,000 on a nonrecourse mortgage and your adjusted basis is $320,000, you realize a $30,000 capital gain, even if the house is worth only $280,000.2Internal Revenue Service. Topic No. 431 – Canceled Debt – Is It Taxable or Not

If the Home Was Your Primary Residence

Two rules override the general calculation when the property was your main home. One is favorable, one is not.

Section 121 Can Erase the Gain

Because a deed in lieu is treated as a sale, the standard primary-residence gain exclusion applies. If you owned and lived in the home for at least two of the five years before the transfer, you can exclude up to $250,000 of gain from income, or up to $500,000 on a joint return if both spouses meet the use requirement.4Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence For many homeowners, this wipes out the capital gain entirely. You can only use the exclusion once every two years.5Internal Revenue Service. Topic No. 701 – Sale of Your Home

Section 121 covers only the gain from the property transfer. It does nothing about COD income, which is governed by different rules.

Losses on a Personal Residence Are Not Deductible

This is where homeowners often get an unpleasant surprise. If the fair market value is less than your adjusted basis, the resulting loss is not deductible. Federal law limits individual loss deductions to property used in a trade or business or held for investment.6Office of the Law Revision Counsel. 26 US Code 165 – Losses The IRS is explicit that losses on personal-use property like your home cannot offset your income.7Internal Revenue Service. What if I Sell My Home for a Loss The $40,000 loss in the recourse example above simply disappears for tax purposes.

If the Property Was a Rental or Investment

Losses on property held for profit are deductible. A capital loss can offset capital gains dollar for dollar, and any excess loss can offset ordinary income up to $3,000 per year ($1,500 if married filing separately), with unused amounts carried forward.8Office of the Law Revision Counsel. 26 US Code 1211 – Limitation on Capital Losses

Rental owners also face depreciation recapture. The portion of any gain attributable to depreciation you claimed is taxed at a maximum rate of 25% rather than the lower long-term capital gains rates. Depreciation reduces your basis, which increases the gain. Even if you never actually claimed depreciation, the IRS requires you to reduce basis by the amount you were entitled to claim.

Cancellation of Debt Income

COD income only arises with recourse debt. The amount equals the difference between what you owed and the property’s fair market value at the time of transfer. Owe $350,000 on a recourse mortgage on a home worth $300,000, and $50,000 is COD income at ordinary rates.2Internal Revenue Service. Topic No. 431 – Canceled Debt – Is It Taxable or Not

You can end up owing tax on money you never received. The IRS views the forgiveness itself as an economic benefit, since the lender released you from a real obligation.

Exclusions That Reduce or Eliminate COD Income

Federal law offers several ways to reduce or eliminate the tax on forgiven debt. Each requires filing IRS Form 982 with your return and meeting specific conditions.9Internal Revenue Service. About Form 982 – Reduction of Tax Attributes Due to Discharge of Indebtedness

Insolvency

If your total debts exceeded the fair market value of everything you owned immediately before the cancellation, you were insolvent, and you can exclude COD income up to the amount of that insolvency.10Internal Revenue Service. What if I Am Insolvent This is the most commonly used exclusion in deed-in-lieu situations, because people facing foreclosure are often underwater on more than the mortgage.

The math: total every asset at fair market value (bank accounts, retirement accounts, vehicles, other real estate, personal property) and compare to every liability (all mortgages, car loans, credit cards, student loans, medical debt). If liabilities exceed assets by $80,000 and COD income is $120,000, you exclude $80,000 and pay tax on $40,000. Documentation of every asset and debt as of the day before the cancellation is what makes or breaks this exclusion.

Bankruptcy

Debt discharged in a Title 11 bankruptcy case is fully excluded from income with no dollar cap. The discharge must be granted by the bankruptcy court or occur under a court-approved plan.11Office of the Law Revision Counsel. 26 USC 108 – Income From Discharge of Indebtedness If the deed in lieu happens inside a bankruptcy proceeding, this exclusion typically covers the full COD amount.12Internal Revenue Service. Instructions for Form 982

Qualified Principal Residence Indebtedness Has Largely Expired

For years, taxpayers could exclude COD income from forgiven mortgage debt on their primary home under the qualified principal residence indebtedness (QPRI) exclusion. That provision expired at the end of 2025. Forgiven debt from a discharge completed in 2026 generally does not qualify unless the deed-in-lieu arrangement was entered into and evidenced in writing before January 1, 2026.11Office of the Law Revision Counsel. 26 USC 108 – Income From Discharge of Indebtedness IRS Publication 4681 confirms QPRI cannot be excluded for discharges completed or agreements entered into after December 31, 2025.13Internal Revenue Service. Publication 4681 – Canceled Debts, Foreclosures, Repossessions, and Abandonments

If you signed a written deed-in-lieu agreement in 2025 and the transfer completes in 2026, you may still claim it. Keep the dated agreement. The exclusion was limited to debt up to $750,000 ($375,000 if married filing separately) used to buy, build, or substantially improve your main home. For anyone else navigating a deed in lieu in 2026, insolvency and bankruptcy are the remaining exclusions.

The Price of Using an Exclusion

Excluding COD income is not entirely free. The law requires you to reduce certain tax attributes by the excluded amount, preventing a double benefit from the same event.14eCFR. 26 CFR 1.108-7 – Reduction of Attributes The reductions happen in a set order that begins with net operating losses and general business credits and works down through capital loss carryovers to the basis of property you still own.15Internal Revenue Service. Instructions for Form 982

For most individual homeowners the practical impact is a reduced basis in other property they own, which means a larger taxable gain if they sell that property in the future. You report the reductions on Part II of Form 982.

What the Lender Sends, What You File

The lender typically issues Form 1099-A (reporting the date of acquisition and fair market value) and Form 1099-C (reporting the amount canceled).16Internal Revenue Service. Instructions for Forms 1099-A and 1099-C When the transfer and the cancellation happen in the same calendar year, which is typical for a deed in lieu, the lender may issue only the 1099-C.17Internal Revenue Service. Topic No. 432 – Form 1099-A, Acquisition or Abandonment of Secured Property

Receiving a 1099-C does not automatically mean you owe tax on the full canceled amount. It reports the event; you still apply the exclusions and calculations to figure your actual liability.

On your return, the deemed sale goes on Form 8949 and flows to Schedule D of your Form 1040.18Internal Revenue Service. Reporting a Foreclosure and Canceled Debt If you’re claiming the Section 121 exclusion, report the full gain on Form 8949 and then exclude the qualifying portion on Schedule D.19Internal Revenue Service. About Schedule D (Form 1040) – Capital Gains and Losses Any taxable COD income goes on Schedule 1, Line 8 as other income.2Internal Revenue Service. Topic No. 431 – Canceled Debt – Is It Taxable or Not

If you’re claiming insolvency, bankruptcy, or QPRI, attach Form 982. Skip it and the IRS will treat the full 1099-C amount as taxable and send you a notice.12Internal Revenue Service. Instructions for Form 982