Handing your home back to the lender through a deed in lieu of foreclosure has two tax consequences, not one. The IRS treats the property transfer as a deemed sale that can produce a capital gain or loss, and it treats any mortgage balance the lender writes off as cancellation of debt income taxed at ordinary rates. Whether both consequences hit you, and how large each one is, depends on the type of mortgage you had and which exclusions you qualify for. In many cases, exclusions wipe out most or all of the tax, but only if you claim them correctly on your return.
The Two Tax Events
The IRS does not see 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 capital gain or loss the same way you would after selling the house to a buyer, comparing an “amount realized” to your adjusted basis in the home. Separately, any part of the mortgage the lender forgives beyond what the property covered is cancellation of debt (COD) income, which the IRS treats as ordinary income unless an exclusion applies. How the numbers get split between these two buckets depends entirely on whether your mortgage was recourse or non-recourse.
Recourse vs. Non-Recourse Debt
This single distinction controls nearly everything about your tax outcome.
Non-recourse debt means the lender’s only remedy is the property itself. When you transfer the home, the IRS treats the full outstanding loan balance as your sale price, even if the home is worth less. Because the entire debt is folded into the sale price, no balance is left to forgive. There is no COD income. The whole tax picture 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 amount owed. The IRS splits a recourse deed in lieu into two pieces. Your sale price for the property transfer equals the lesser of the debt or the home’s fair market value. Any debt above fair market value that the lender forgives is COD income, taxed as ordinary income unless you exclude it.1Internal Revenue Service. Publication 4681 – Canceled Debts, Foreclosures, Repossessions, and Abandonments
Most residential mortgages are recourse, so most homeowners doing a deed in lieu face both tax events. To confirm, check box 5 on the Form 1099-C your lender sends. If it’s checked, the lender reported you as personally liable, which means the loan was recourse.2Internal Revenue Service. Instructions for Forms 1099-A and 1099-C
The Forgiven Debt Piece
When the lender writes off any remaining mortgage balance, that forgiven amount is COD income. The reasoning is straightforward: you received borrowed money you no longer have to repay, so the IRS treats the discharge as income.
Lenders report canceled debt of $600 or more on Form 1099-C. Box 2 shows the total canceled amount; box 7 reports the property’s fair market value.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 discharge and expects you to address it. The burden is on you to claim any exclusion.
The Qualified Principal Residence Exclusion (and Its 2026 Cutoff)
This exclusion lets you exclude up to $750,000 of forgiven mortgage debt ($375,000 if married filing separately) if the debt was used to buy, build, or substantially improve your main home and was secured by that home.4Office of the Law Revision Counsel. 26 USC 108 – Income From Discharge of Indebtedness
The catch: the exclusion only covers debt discharged before January 1, 2026, or debt discharged under a written arrangement entered into before that date.5Internal Revenue Service. Instructions for Form 982 If your deed in lieu is completed entirely in 2026 with no earlier written agreement, this exclusion is unavailable. If you and the lender signed a deed-in-lieu agreement in 2025 but the transfer and discharge happened in 2026, you may still qualify because the arrangement was “entered into and evidenced in writing” before the cutoff. Timing your agreement matters.
The Insolvency Exclusion
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.6Internal Revenue Service. What if I Am Insolvent With the principal residence exclusion sunsetting for new arrangements, insolvency is the fallback many homeowners will rely on.
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, only 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 debts exceeded your assets by $50,000 but the lender forgave $75,000, you can exclude only $50,000. The remaining $25,000 is taxable ordinary income.
Using the insolvency exclusion is not entirely free. The excluded amount reduces certain future tax benefits in a statutory order, starting with net operating losses and business credits and working down to the tax basis of property you still own.4Office of the Law Revision Counsel. 26 USC 108 – Income From Discharge of Indebtedness For most homeowners without carryovers or credits, the practical effect is a reduction in the basis of other property. You report both the exclusion and the reduction on Form 982.
The Property Sale Piece
Separately from any COD income, the deed in lieu is treated as a sale of the home. You compare the amount realized (the deemed sale price described above) to your adjusted basis.
Your adjusted basis starts with what you originally paid, plus the cost of capital improvements such as a new roof, an addition, or a kitchen remodel, minus any depreciation you claimed for rental or business use. Subtract that from the amount realized to get your gain or loss.
The Section 121 Exclusion on 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 if married filing jointly) under Section 121.7Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence For most owner-occupied homes, this wipes out the capital gain entirely. It applies even though the transfer was involuntary.
Two limits to keep in mind. The two-year use test can trip up homeowners who moved out and rented the property before the deed in lieu, or who bought recently. And Section 121 shelters capital gain only, not COD income. If you have both, you need Section 121 for the gain and a separate provision, typically insolvency, for the forgiven debt.
If the Numbers Produce a Loss
If your adjusted basis exceeds the amount realized, you have a loss. Losses on a personal residence are not deductible. If the property was a rental or investment, the loss is generally deductible.
Holding Period and Rates
Gain on property held more than one year is taxed at long-term capital gains rates, currently 0%, 15%, or 20% depending on your taxable income. Most homeowners fall into the 0% or 15% bracket. COD income, by contrast, is taxed at your ordinary income rate, which can run as high as 37%. That rate gap is another reason the recourse split matters: it decides how much of your overall tax lands in the cheaper bucket versus the more expensive one.
Forms You’ll File
A deed in lieu typically brings three or four forms together on your return.
- Form 1099-C from your lender is your starting point. It reports the canceled amount, whether you were personally liable, and the property’s fair market value.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) and report the resulting reduction in your tax attributes.5Internal Revenue Service. Instructions for Form 982
- Schedule D (Form 1040) is where the capital gain or loss from the deemed sale goes.8Internal Revenue Service. About Schedule D (Form 1040), Capital Gains and Losses
- Schedule 1 (Form 1040) picks up any COD income you could not exclude, reported as other income.
You may also see Form 1099-A. Lenders can file a 1099-C alone when the debt cancellation and property acquisition happen in the same year, which is the typical deed-in-lieu pattern.2Internal Revenue Service. Instructions for Forms 1099-A and 1099-C
What to Check Before You Sign
The tax bill on a deed in lieu can range from zero to tens of thousands of dollars. A few things are worth doing before the transfer is final.
Run the insolvency calculation honestly. Add up every asset — bank accounts, cars, retirement balances, other real estate — and compare the total to all your debts. If you are clearly insolvent, the COD concern may be smaller than you feared. If you are close to solvent, an asset you overlooked could push you over the line.
Confirm whether the mortgage is recourse or non-recourse. Your loan documents will say, and a real estate attorney or the lender can confirm. That single fact decides whether you face one tax event or two.
If you have not yet signed the deed-in-lieu agreement and the principal residence exclusion matters to your numbers, remember that only written arrangements entered into before January 1, 2026, preserve eligibility.4Office of the Law Revision Counsel. 26 USC 108 – Income From Discharge of Indebtedness After that, insolvency and Section 121 are the tools most homeowners will be working with.