Is Loan Forgiveness Taxable? Student Loans, Mortgages, Exclusions

Forgiven loan debt is generally taxable as ordinary income on your federal return, and after two temporary shields expired on December 31, 2025, that default rule now catches more borrowers than it did a year ago. Whether you actually owe tax on a canceled loan depends on the type of debt, the reason it was forgiven, and whether you qualify for one of the permanent exclusions written into federal law.

The statutory basis is short and broad: gross income includes income from the discharge of indebtedness.1Office of the Law Revision Counsel. 26 USC 61 – Gross Income Defined The reasoning is that you got the benefit of spending borrowed money without having to pay it back, so the forgiven amount is treated like any other income you received during the year.

How the IRS Finds Out

Any creditor that cancels $600 or more of your debt is required to file Form 1099-C with the IRS and send you a copy.2Internal Revenue Service. About Form 1099-C, Cancellation of Debt The form lists the amount forgiven, the date, and a letter code identifying the reason. The IRS matches those forms against your return, so ignoring a 1099-C reliably produces an automated notice, even in cases where an exclusion would have zeroed out the tax.

Getting a 1099-C does not automatically mean you owe. It means the discharge is on the IRS’s radar and your return needs to address it, either by including the amount in income or by claiming an exclusion on Form 982.

Student Loan Forgiveness in 2026

The American Rescue Plan Act temporarily excluded all forgiven student loan debt from federal income tax for discharges between December 31, 2020 and January 1, 2026.3Federal Student Aid. How Will a Student Loan Payment Count Adjustment Affect My Taxes That blanket shield is gone. What’s taxable now depends on which program forgave the loan.

Still Tax-Free

Federal law permanently excludes forgiveness tied to working in a qualifying profession for a broad class of employers.4Office of the Law Revision Counsel. 26 US Code 108 – Income From Discharge of Indebtedness Public Service Loan Forgiveness, which discharges remaining federal loan balances after 120 qualifying payments in government or qualifying nonprofit work, is not federal taxable income.5Federal Student Aid. Are Loan Amounts Forgiven Under Public Service Loan Forgiveness (PSLF) Considered Taxable by the Internal Revenue Service (IRS)? Teacher Loan Forgiveness, which cancels up to $17,500 for qualifying teachers after five consecutive years at a low-income school, also falls under the permanent exclusion.6Federal Student Aid. 4 Loan Forgiveness Programs for Teachers National Health Service Corps loan repayment and similar state health professional programs remain tax-free under the same provision.

Now Taxable

The change hits borrowers in income-driven repayment plans hardest. Under IDR plans like SAVE, PAYE, or IBR, any balance remaining after 20 or 25 years of qualifying payments is forgiven. That forgiveness was shielded before 2026. It isn’t anymore. A borrower with $40,000 forgiven under IDR in 2026 will see that amount added to gross income for the year, which can push them into a higher bracket and produce a bill of several thousand dollars.

Private student loan forgiveness also lost its temporary shield. If you settle a private student loan for less than the balance, the forgiven portion is taxable. The general Section 108 exclusions for bankruptcy and insolvency still apply, but the special student-loan carve-out for private debt is gone.

Discharges based on the borrower’s death or total and permanent disability had a separate exclusion originally set to expire after 2025, and recent legislation addressed those specifically. If you’re dealing with a death or disability discharge, confirm the current status with the Department of Education or a tax professional before assuming either result.

Mortgage Debt Forgiveness After 2025

Homeowners who went through a short sale, foreclosure, or principal reduction before 2026 could exclude up to $750,000 of forgiven mortgage debt ($375,000 if married filing separately) under the qualified principal residence indebtedness rules, provided the loan was used to buy, build, or substantially improve the main home.7Internal Revenue Service. Publication 4681 (2025), Canceled Debts, Foreclosures, Repossessions, and Abandonments

That exclusion expired for discharges completed after December 31, 2025, and for agreements not entered into in writing before January 1, 2026.8Office of the Law Revision Counsel. 26 USC 108 – Income From Discharge of Indebtedness If your lender forgives mortgage debt in 2026 and you don’t have a written agreement dated before that cutoff, the forgiven amount is taxable unless you qualify under insolvency, bankruptcy, or another permanent exclusion.

Even when the mortgage exclusion was available, it had limits. Cash-out refinance proceeds beyond the old mortgage principal didn’t qualify. Home equity balances used for vacations or credit card payoffs weren’t acquisition debt. And forgiveness given in exchange for services performed for the lender fell outside the rule.

Exclusions That Can Eliminate the Tax

Several permanent exclusions apply to all types of debt, not just specific loan programs. If any of these fit your situation, the tax on the forgiven amount can be reduced or wiped out entirely.

Bankruptcy

Debt discharged in a federal bankruptcy case is not taxable income.9Internal Revenue Service. What if I File for Bankruptcy Protection? This is the strongest exclusion because it’s absolute. If your debt qualifies for both the bankruptcy exclusion and another exclusion, you must use the bankruptcy exclusion first.7Internal Revenue Service. Publication 4681 (2025), Canceled Debts, Foreclosures, Repossessions, and Abandonments

Insolvency

You’re insolvent when your total debts exceed the fair market value of everything you own. If you were insolvent immediately before the discharge, you can exclude the forgiven amount from income up to the amount by which you were insolvent.8Office of the Law Revision Counsel. 26 USC 108 – Income From Discharge of Indebtedness

The calculation requires listing everything you own at fair market value against everything you owe. The IRS counts assets that creditors can’t touch, including retirement accounts, pension interests, and even clothing and household goods.7Internal Revenue Service. Publication 4681 (2025), Canceled Debts, Foreclosures, Repossessions, and Abandonments That surprises people who assume their 401(k) is off the table. It’s protected from creditors, but the IRS still counts its value in this test. Publication 4681 includes a worksheet for working through the numbers.

Gifts

When someone forgives a debt as a genuine gift or through an inheritance, the canceled amount is not taxable income to the borrower. A parent who lends a child money and later tears up the note has made a gift, not generated income for the child.7Internal Revenue Service. Publication 4681 (2025), Canceled Debts, Foreclosures, Repossessions, and Abandonments The person doing the forgiving may face gift tax reporting, but the borrower owes nothing.

Deductible Debt

If paying the debt would have given you a tax deduction, canceling it doesn’t create income.4Office of the Law Revision Counsel. 26 US Code 108 – Income From Discharge of Indebtedness The classic example is a business that accrues an expense it never pays; when the vendor writes off the bill, the business doesn’t report income because it would have deducted the payment anyway. This rule rarely helps with consumer debt like credit cards, since those payments aren’t deductible.

Farm and Business Real Property Debt

Farmers can exclude forgiven debt directly connected to their farming operation, provided at least half their gross receipts over the preceding three years came from farming. A parallel exclusion covers debt tied to real property used in a trade or business, limited to non-corporate taxpayers and to debt secured by that property.8Office of the Law Revision Counsel. 26 USC 108 – Income From Discharge of Indebtedness Both require an election on your tax return.

The Catch: Reducing Tax Attributes

Using the bankruptcy, insolvency, or farm exclusions is not entirely free. In exchange, you must reduce certain tax benefits you’ve accumulated, such as net operating loss carryovers, capital loss carryovers, general business credit carryovers, and the basis in your property.10Internal Revenue Service. Instructions for Form 982

For most individuals, the biggest practical effect is the reduction in property basis. If you own a home or investment property and use the insolvency exclusion, your cost basis drops, and when you eventually sell you’ll recognize more gain. The exclusion defers the tax hit rather than making it vanish. The gift and deductible-debt exclusions do not carry this tradeoff.

State Taxes May Not Follow Federal

Federal exclusions don’t automatically carry to your state return. Each state decides independently whether to adopt federal definitions of income, and many either lag behind federal changes or choose not to follow them.

Rolling conformity states pick up federal changes automatically. Fixed-date conformity states have to pass new legislation to catch up, and if they haven’t updated to include a particular exclusion, the forgiven debt stays taxable at the state level even when federal law excludes it. Federal Student Aid warns that even PSLF, which is federally tax-free, may still be taxed by your state.5Federal Student Aid. Are Loan Amounts Forgiven Under Public Service Loan Forgiveness (PSLF) Considered Taxable by the Internal Revenue Service (IRS)? Check your state department of revenue’s current conformity status before filing.

Claiming an Exclusion on Your Return

If you qualify for any Section 108 exclusion, you claim it by filing Form 982 with your tax return. The form asks you to check a box identifying which exclusion applies, enter the excluded amount, and show any required reduction in tax attributes.10Internal Revenue Service. Instructions for Form 982

Skipping Form 982 is one of the most common mistakes. The 1099-C tells the IRS a discharge happened, but the system has no way to know you were insolvent or went through bankruptcy unless you file the form. Without it, the entire amount is treated as taxable and a balance-due notice follows.

If the 1099-C itself is wrong, and creditors get these wrong more often than you’d expect, contact the lender and ask for a corrected form. If the lender refuses, report the amount shown on the return but attach an explanation of why the figure is incorrect and keep documentation supporting your position.11Taxpayer Advocate Service. I Have a Cancellation of Debt or Form 1099-C

Failing to include 1099-C income on your return exposes you to the accuracy-related penalty of 20% of the underpaid tax, with interest running from the original due date.12Internal Revenue Service. Accuracy-Related Penalty If you qualified for an exclusion but forgot to file Form 982, you can usually fix it by amending. Handling it correctly the first time is far easier.