Canceled mortgage debt: 3 IRS rules to check
For movers: if you sell or leave a home and part of its mortgage was canceled, these are the tax rules to check before you sign.
Before you start
Keep your move date, the mover’s name and any written estimate within reach. The sources linked below hold the rules for your state and your kind of move.
Canceled mortgage debt generally counts as ordinary income unless an exclusion applies; past depreciation may also affect gain on a sale.
Key takeaways
- Get the canceled amount and the written agreement date from your lender.
- Check whether the debt was on a qualified principal residence and whether an exclusion applies.
- Gather old returns showing depreciation before calculating any recapture.
Why canceled debt can surprise you
Many homeowners learn this only after the sale closes, when a notice from the lender arrives or a tax preparer asks about it. By then, your choices may be narrower than they were before you signed.
This post covers three IRS rules that matter most in this situation. They come from the IRS guide Publication 523, Selling Your Home. The rules here are general information, not tax advice. Your own facts, such as how you owned the home, how you used it, and what the lender agreed to, decide how each rule applies to you.
Each rule is covered below, followed by a checklist and some notes on records and getting help.
The first rule: canceled mortgage debt is generally ordinary income
This rule is the starting point for almost every case. Publication 523 says you should report, as ordinary income on Form 1040, 1040-SR, or 1040-NR, the applicable canceled or forgiven mortgage debt.
Ordinary income differs from capital gain. The IRS uses the same contrast in its recapture discussion, where it says certain gains are taxed "as ordinary income and not capital gain." You do not need to memorize the categories to see the basic point. The forgiven amount is not automatically untaxed just because you did not receive cash for it.
The word "applicable" in the rule matters. Working out what is applicable requires knowing the exact amount the lender canceled, the type of debt involved, and whether any exclusion covers it.
The exact amount is often less obvious than it sounds. The number you need is the portion of the loan the lender has agreed to cancel or forgive, not the total you originally borrowed and not the price you received for the house. Ask the lender for a written statement that shows the balance before the agreement, the amount being forgiven, and the balance after it. If that statement and your own records do not match, resolve the difference before you file anything. Small errors in the starting figure carry forward into every later calculation.
Do not stop at this rule just because the lender did not send you cash. A forgiven loan can create a tax bill even when your bank balance looks the same as before. If you are planning a sale, a short sale, a payoff, or a move-out with a negotiated balance, ask early how much of the forgiven amount will be treated as income and on which form it will be reported.
It also helps to separate two situations. In the first, you sell the home, the proceeds do not cover the loan, and the lender accepts less and forgives the rest. In the second, you keep the home for a while and the lender modifies or forgives part of the debt. The facts in each case can lead to different answers, so compare your situation with the exclusion and recapture rules described in the sections that follow.
Illustrative example: identify the canceled amount
These illustrative figures identify the amount forgiven; they do not calculate tax or establish eligibility for an exclusion. Keep the lender's written agreement with your records before deciding how to report it.
The second rule: a special exclusion for home debt had a deadline
This rule is the one most likely to have changed since you started planning. Publication 523 explains that an exclusion for mortgage debt canceled or forgiven can keep some of that debt out of your income. The 2025 version of Publication 523 says the exclusion was extended through December 31, 2025.
The same source adds a second limit. The indebtedness discharged must generally be on a qualified principal residence and based on an agreement, in writing, prior to January 1, 2026. Read those two conditions together. Check both the residence qualification and the date of the written agreement that led to the forgiveness.
That second condition is easy to miss. A reader might assume the deadline applies to the date the debt was actually forgiven, but the publication ties the requirement to the written agreement. If the written agreement to cancel or forgive your mortgage was made on or after January 1, 2026, do not assume this exclusion covers the debt. Check the current version of the publication before you rely on the exclusion for any new agreement, because the IRS may update its guidance.
The gap between an agreement date and a payment date matters too. Lenders may sign an agreement in one year and finish the paperwork or the cancellation in another. The written agreement is the document the publication points to, so find it, read the date on it, and keep a copy with your other records.
Here is a simple way to test your situation. Find the date of the written agreement with your lender. Check whether the debt was on a qualified principal residence. Then check the current IRS guidance for whether the exclusion still applies to an agreement made on that date. If you cannot answer all three questions, do not assume the exclusion applies.
An exclusion is not automatic. Even when debt qualifies, read the exclusion section of Publication 523 in full, along with the instructions for the forms that apply to you. Do not rely on a summary, including this one.
A practical habit helps here. Write down the date of every loan modification, forbearance agreement, or payoff letter you receive. These documents are where the dates in this rule come from. If the paperwork is unclear, ask your lender to explain in writing what kind of debt was canceled and when the agreement was made. A written answer is much easier to work with than a memory of a phone call.
The third rule: depreciation can turn part of your gain into ordinary income
This rule matters if you ever claimed depreciation on the home. Publication 523 describes the recapture rules this way: the recapture rules of section 1250 tax certain gains from the sale or other disposition of real property as ordinary income and not capital gain, to the extent the gain is due to depreciation previously claimed in excess of straight-line for section 1250 realty held more than a year.
Depreciation is a deduction taken for property over time, and recapture is how the IRS taxes part of that earlier benefit when the property changes hands.
This rule can apply alongside debt cancellation because a sale, a short sale, or another transfer of the property may be a disposition. Whether your particular transaction counts, and how much of the gain is affected, depends on the details. Canceled mortgage debt alone does not establish that recapture applies.
Homeowners who used part of the property for rental activity, for a business, or for an office, and who claimed depreciation for that use, need to pay the most attention. If you never claimed depreciation on the home, this rule is less likely to apply, but confirm that with your records. Some people discover depreciation they claimed years ago only when they pull old returns.
Because recapture and canceled debt can touch the same sale, the two can stack. One part of your income may come from the forgiven debt, and another from recapture. Keep the two calculations separate in your notes so you can see which amount comes from which rule, and ask your tax professional to show how each one flows onto your return.
Before you sign a sale or payoff agreement
Many of the most useful decisions happen before the paperwork is final. If you are about to agree to a short sale, a deed in lieu of foreclosure, a negotiated payoff, or a loan modification that forgives part of the balance, ask these questions first.
Ask the lender in writing what amount it plans to cancel or forgive and how it will report that amount. Ask for the date on which the agreement will be final, since the date of a written agreement can matter under the second rule. Ask whether the debt is on a qualified principal residence.
Consider whether you used any part of the home for rental or business activity and claimed depreciation for that use. If you did, the third rule may apply, and you should gather the old returns that show the depreciation. If you have already moved out, you may still be able to answer these questions, but the facts may be harder to reconstruct later.
None of these steps requires a decision on the spot. You can ask for more time, request a written summary of the terms, or have a tax professional review the agreement before you sign.
Records to keep
Good records make every one of these rules easier to work with. Keep copies of the original loan documents, every modification or forbearance agreement, the closing statement from the sale or payoff, and any letter the lender sends about forgiven debt. Keep the old tax returns that show any depreciation claimed for the property, along with records of improvements, since they can affect the property's cost over time.
Store these papers in one labeled folder, paper or digital. Write a short note on each important document that says what it is and what date it covers. If a record is missing, say so in your notes. Do not guess a number to fill a gap, because a clear note about what is missing is more useful than a figure you cannot support. Use the move records guide to organize related address, tax and housing papers.
Keep a simple timeline too. Write down the purchase date, any dates you used the home for rental or business, the date you moved out, the date of each lender agreement, and the date of the sale or disposition. Several rules in this post depend on dates, so the timeline has to be accurate, even if it is not fancy.
Common mistakes to avoid
The first mistake is treating a forgiven loan as a non-event because no money changed hands. Put the reporting question on your list before closing.
The second mistake is assuming the exclusion applies because it existed in the past. Check the dates and the current status of the exclusion yourself.
The third mistake is forgetting about depreciation. Homeowners who once rented out a room or used part of the property for work often do not think about that history when the house sells. Search your old returns before you assume the sale is simple.
The last mistake is waiting. The choices in this post, including what to ask, what to sign, and what to keep, are easiest to make before the deal closes. After closing, your options may be fewer and the facts harder to rebuild. For the rest of your departure planning, see moving mistakes to avoid.
When to bring in a tax professional
This post explains the rules in general terms, but it cannot tell you how they apply to your exact situation. Consider professional help if the forgiven amount is large, if you used the home for rental or business activity, if you claimed depreciation, or if the lender's paperwork is confusing. It is also worth getting help if the agreement was made near the January 1, 2026 date, since the exact date of the written agreement can change the answer.
When you meet with a preparer, bring your timeline, your lender paperwork, your old returns, and your questions written down. Ask how each rule applies to your facts, which form each amount goes on, and whether any part of the plan should change before the deal closes. A good preparer will explain the reasoning, not just give a result.
If you cannot afford a professional, the IRS publication is a starting point. Read the sections on selling a home, canceled debt, and recapture, and make notes as you go. Use those notes to frame your questions.
A short checklist
Use this list to organize your work. It does not replace the publication or professional advice.
- Find the exact amount of mortgage debt the lender canceled or forgave, and the date of the written agreement.
- Confirm whether the debt was on a qualified principal residence.
- Check the current version of Publication 523 to see whether the exclusion for mortgage debt canceled or forgiven still applies to an agreement made on the date you signed.
- Determine whether you claimed depreciation on any part of the home, and gather the returns that show it.
- Work out how much of any gain may be recaptured as ordinary income under the section 1250 rules.
- Report the applicable canceled debt as ordinary income on the correct form, unless an exclusion covers it.
- Keep your records and timeline in one place, and note any gaps.
Work through the list in order, since one answer often shapes the rest. If the agreement was made on or after the January 1, 2026 date, the exclusion may not be available, and the canceled amount may be income that needs careful reporting. If the agreement was made before that date and the debt was on a qualified principal residence, check whether the exclusion covers any of it and whether the other rules apply.
Your next step
Today, find your lender's written agreement and check its date and canceled amount against your records. If either is unclear, write down the question to ask your lender before you file.
Common questions
What amount should I check first?
Start with the amount the lender agreed to cancel or forgive. Compare the written statement with your own records and resolve any difference.
What should I bring to a preparer?
Bring your timeline, lender paperwork, old returns and written questions. Include records showing any depreciation so the preparer can assess recapture separately.
Sources for this guide
- U.S. Environmental Protection Agency Sources read on
- Internal Revenue Service Sources read on
- U.S. Census Bureau Sources read on
General information, not legal, tax or immigration advice. Rivewyn is not a mover, a broker or a government agency. Your own rule is on the agency’s page, so read that.