What Are the Tax Consequences of a Deed in Lieu?

A deed in lieu of foreclosure can trigger two separate federal tax events: the IRS treats the transfer as a sale of the property, and any debt the lender forgives on top of that may count as cancellation of debt income. What you actually owe depends on three things — whether your mortgage was recourse or nonrecourse, whether the home was your primary residence or an investment, and whether you qualify for a statutory exclusion. The tax consequences of a deed in lieu of foreclosure can range from zero to a sizable bill, and the difference usually comes down to those three variables and whether you file the right forms.

The Two Tax Events to Account For

The first event is a deemed sale. Handing the deed to the lender is treated as if you sold the property, even though no cash changed hands.1Internal Revenue Service. Foreclosures and Capital Gain or Loss That produces a capital gain or loss, calculated by comparing what you are treated as receiving against your adjusted basis.

The second event is cancellation of debt (COD) income. If the lender accepts the property as full satisfaction of a loan worth more than the property, the forgiven balance can be ordinary taxable income. Whether you actually owe tax on it depends on the loan type and on exclusions you may be able to claim.2Internal Revenue Service. Topic No. 431 – Canceled Debt – Is It Taxable or Not

Recourse vs. Nonrecourse: The Hinge

The single most important factor is whether the mortgage was recourse or nonrecourse. With recourse debt, you are personally liable for the full balance and the lender can pursue your other assets or wages for any shortfall. With nonrecourse debt, the lender’s only remedy is the property itself.

For recourse debt, the IRS splits the transaction. The sale is treated as happening at the property’s fair market value, which gives you your capital gain or loss. Anything the lender forgives 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 separate COD event. The full outstanding loan balance is treated as your amount realized in the sale, even if the property is worth far less. That can produce a larger capital gain, but no ordinary COD income.2Internal Revenue Service. Topic No. 431 – Canceled Debt – Is It Taxable or Not

State Law Can Reclassify the Debt

Your loan documents are not the last word. Several states have anti-deficiency laws that block lenders from pursuing a borrower for any remaining balance after foreclosure or a deed in lieu, which effectively converts recourse debt into nonrecourse debt for federal tax purposes.3Internal Revenue Service. Recourse vs. Nonrecourse Debt If state law bars the deficiency, the IRS treats the loan as nonrecourse regardless of what the mortgage says. That shifts the forgiven amount out of ordinary COD income and into the capital gain calculation, which often carries a lower rate or qualifies for an exclusion.

If your lender sends a Form 1099-C, Box 5 indicates whether you were personally liable. Lenders sometimes mark this wrong, so check your state’s anti-deficiency rules before you accept the lender’s characterization.

Calculating the Gain or Loss

The formula is amount realized minus adjusted basis. Adjusted basis starts with the purchase price, adds capital improvements like a new roof or kitchen remodel, and subtracts any depreciation claimed if the property was a rental. What changes with debt type is the amount realized.

Recourse Debt

Amount realized equals the property’s fair market value at transfer. If your adjusted basis is $320,000 and fair market value is $280,000, you have a $40,000 loss on the sale side. Whether that loss is deductible depends on how the property was used.

Nonrecourse Debt

Amount realized equals the full loan balance. If you owe $350,000 on a nonrecourse mortgage and your adjusted basis is $320,000, you have a $30,000 capital gain, even if the home is only worth $280,000. The whole shortfall rolls into the sale calculation rather than becoming COD income.2Internal Revenue Service. Topic No. 431 – Canceled Debt – Is It Taxable or Not

If the Property Was Your Primary Residence

Two rules reshape the picture when the home was your main residence — one favorable, one not.

The Section 121 Gain Exclusion

Because the deed in lieu is a deemed sale, the primary-residence 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, or up to $500,000 on a joint return if both spouses meet the use test.4Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence For most homeowners, this wipes out the capital gain entirely. You can use the exclusion only once every two years.5Internal Revenue Service. Topic No. 701 – Sale of Your Home

Section 121 only covers gain from the deemed sale. It does nothing for COD income, which is governed by separate rules.

A Loss on Your Home Is Not Deductible

This catches many homeowners off guard. If fair market value is less than your adjusted basis, the resulting loss on a personal residence cannot be deducted. Federal law restricts individual loss deductions to property used in a business or held for investment.6Office of the Law Revision Counsel. 26 US Code 165 – Losses The IRS states it plainly: losses on personal-use property like your home do not offset income.7Internal Revenue Service. What if I Sell My Home for a Loss

So the $40,000 loss in the recourse example above produces no tax benefit at all. You cannot use it against capital gains and you cannot deduct it against ordinary income. It simply disappears.

If the Property Was a Rental or Investment

Losses on property held for profit are deductible. A capital loss from a deed in lieu on rental property offsets capital gains dollar for dollar; if losses exceed gains, you can deduct up to $3,000 against ordinary income each year ($1,500 if married filing separately) and carry the remainder forward.8Office of the Law Revision Counsel. 26 US Code 1211 – Limitation on Capital Losses

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

Cancellation of Debt Income

COD income arises only with recourse debt. It equals the shortfall between what you owed and the property’s fair market value at transfer. Owe $350,000 on a recourse mortgage, house worth $300,000: $50,000 of COD income taxed at your ordinary rate.2Internal Revenue Service. Topic No. 431 – Canceled Debt – Is It Taxable or Not You can end up owing tax on money that never passed through your hands, because the IRS treats the release from a real obligation as an economic benefit.

With nonrecourse debt, no COD income is recognized no matter how big the gap between the loan and the property.

Exclusions That Can Wipe Out COD Income

Several provisions can reduce or eliminate the tax on forgiven debt. Each requires Form 982 and 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 cases, because people giving up a house are usually underwater on other obligations as well.

The math: list every asset at fair market value (bank accounts, retirement accounts, vehicles, other real estate, personal property) against every liability (all mortgages, car loans, credit cards, student loans, medical debt). If liabilities exceed assets by $80,000 and you have $120,000 of COD income, you exclude $80,000 and the remaining $40,000 stays taxable. Thorough documentation of assets and debts as of the day before cancellation is essential.

Bankruptcy

Debt discharged in a Title 11 bankruptcy is fully excluded with no cap. The discharge must come from the bankruptcy court or a court-approved plan.11Office of the Law Revision Counsel. 26 USC 108 – Income From Discharge of Indebtedness If the deed in lieu is part of a bankruptcy, this typically covers the entire COD amount.12Internal Revenue Service. Instructions for Form 982

Qualified Principal Residence Indebtedness: Expired for Most 2026 Cases

For years, homeowners could exclude forgiven mortgage debt on a primary residence under the qualified principal residence indebtedness (QPRI) exclusion. That provision expired at the end of 2025. 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 that 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 agreement with your lender in 2025 but the actual transfer and cancellation happened in 2026, you may still claim QPRI. Keep the dated agreement. The exclusion applied to debt up to $750,000 ($375,000 if married filing separately) used to buy, build, or substantially improve the home. For everyone else in 2026, insolvency and bankruptcy are the remaining paths.

The Catch When You Exclude COD Income

Excluding forgiven debt is not entirely free. The law requires you to reduce certain tax attributes — benefits that would have lowered future tax bills — by the amount excluded, preventing a double benefit.14eCFR. 26 CFR 1.108-7 – Reduction of Attributes The reductions follow a set order and include net operating losses, several credits, capital loss carryovers, the basis of property you still own, passive activity carryovers, and foreign tax credit carryovers. You report them on Part II of Form 982.15Internal Revenue Service. Instructions for Form 982 For most homeowners, the practical consequence is a lower basis in other property, which means a larger gain when that property is later sold.

Forms You Will Receive and Forms You File

From the Lender

Lenders typically issue Form 1099-A, which reports the date of acquisition and fair market value, and Form 1099-C, which reports the canceled debt.16Internal Revenue Service. Instructions for Forms 1099-A and 1099-C When the transfer and the cancellation happen in the same calendar year, as they do in most deeds 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

A 1099-C does not mean you owe tax on the full amount shown. It reports the event; you still apply the calculations and exclusions above.

On Your Return

Report the deemed sale on Form 8949 and carry the result to Schedule D.18Internal Revenue Service. Reporting a Foreclosure and Canceled Debt Enter the amount realized, your adjusted basis, and the gain or loss. If you are claiming Section 121 on a primary residence, show the full gain on Form 8949 and 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, which flows to Form 1040.2Internal Revenue Service. Topic No. 431 – Canceled Debt – Is It Taxable or Not If you are claiming insolvency, bankruptcy, or QPRI, attach Form 982. Skip it, and the IRS will treat the full 1099-C amount as taxable and send a notice for the difference.12Internal Revenue Service. Instructions for Form 982

Records to Keep

The standard IRS recordkeeping period is three years from filing, but if you underreport income by more than 25%, the window stretches to six years.20Internal Revenue Service. How Long Should I Keep Records For a deed in lieu, hold the following for at least six years: the original closing documents, records of capital improvements, the deed-in-lieu agreement, any lender appraisals, Forms 1099-A and 1099-C, your insolvency worksheet with supporting asset-and-liability records, and copies of the filed return and Form 982. If you reduced the basis of other property as a tax attribute, keep those records for as long as you own that property; you will need the adjusted basis whenever you sell it.