Qualified Farm Indebtedness Exclusion: Limits, Basis Rules, and Form 982

The qualified farm indebtedness exclusion lets a farmer keep canceled debt out of taxable income when the debt was incurred in connection with a farming business and farming produced at least 50 percent of the farmer’s gross receipts over the three years before the discharge. It sits in Section 108(g) of the Internal Revenue Code, and it is one of the few ways producers can avoid a large tax bill on top of the financial pressure that led to the debt cancellation in the first place. The relief is not free. In exchange, you have to reduce tax benefits you would otherwise use in future years.

What Debt Qualifies

Two conditions have to be met. The debt must have been incurred directly in connection with operating a farming business, and you must pass the 50-percent gross receipts test. The loan does not need to be secured by farmland or equipment. An unsecured operating line qualifies as long as the money went into the farming operation, whether for seed, equipment, land tied to production, or day-to-day expenses. The purpose of the borrowing controls, not the collateral.

Farming for this purpose covers cultivating soil, raising and harvesting crops or horticultural products, managing livestock, and handling or storing farm commodities in their raw state. Tree farming and timber operations count. Custom harvesting run as a service business, trucking farm products for hire, and processing commodities into value-added goods like wine or cheese do not.

The 50-Percent Gross Receipts Test

This is the gateway. Add up your gross receipts across the three tax years before the year the debt was discharged. At least 50 percent of that combined total has to come from farming. A debt canceled in 2026 puts 2023, 2024, and 2025 under the microscope.1Internal Revenue Service. Publication 4681 – Canceled Debts, Foreclosures, Repossessions, and Abandonments

It is an aggregate test, not year-by-year. A weak year can be offset by two strong ones. Crop sales, livestock sales, and government agricultural program payments all count on the farming side. Off-farm wages, rental income, and investment income go into the denominator and pull your farming percentage down.

If your farming share is trending toward that line, run the numbers before you finalize any settlement. Once the lender issues a Form 1099-C, the discharge year is locked and so is the three-year window that determines whether you qualify.

Who the Lender Has to Be

The cancellation must come from a “qualified person”: any federal, state, or local government body, or any person or institution actively and regularly engaged in the business of lending money.2Office of the Law Revision Counsel. 26 U.S. Code 108 – Income From Discharge of Indebtedness Banks, credit unions, the Farm Service Agency, and commercial agricultural lenders all fit.

Several categories are shut out. Forgiveness from a related person, from the seller of the property the debt relates to, or from anyone who took a fee in connection with your investment in that property does not qualify. These rules exist to stop taxpayers from arranging debt forgiveness within a family or business circle to manufacture a tax benefit.3Office of the Law Revision Counsel. 26 U.S. Code 49 – At-Risk Rules

How Much You Can Actually Exclude

Meeting every eligibility requirement does not guarantee the whole canceled amount escapes tax. The exclusion is capped at the sum of your adjusted tax attributes plus the aggregate adjusted bases of all qualified property you hold at the start of the tax year after the discharge.2Office of the Law Revision Counsel. 26 U.S. Code 108 – Income From Discharge of Indebtedness

Qualified property is anything used or held for use in a trade or business or for the production of income. For a working farm, that generally means farmland, equipment, grain bins, barns, breeding livestock, and similar productive assets. Adjusted basis is what you paid, less accumulated depreciation and other adjustments. Tax attributes on the other side of the sum include net operating losses, capital loss carryovers, and various credit carryforwards.

Any canceled amount above the combined cap is ordinary income on your return. That makes the cap calculation the single most important number to run before signing off on a settlement, because it decides whether the exclusion fully covers the discharge or leaves a taxable remainder.1Internal Revenue Service. Publication 4681 – Canceled Debts, Foreclosures, Repossessions, and Abandonments

The Trade-Off: Reducing Future Tax Attributes

The excluded amount does not disappear from the tax system. You pay for it by reducing tax attributes that would otherwise cut your future taxes. Section 108(b)(2) sets a mandatory order, and you work down the list until the excluded amount is used up:

  1. Net operating losses for the discharge year and any NOL carryovers, reduced dollar for dollar.
  2. General business credit carryovers, reduced at 33⅓ cents for each dollar excluded.
  3. Minimum tax credits available as of the beginning of the following year, reduced at 33⅓ cents per dollar.
  4. Net capital losses and capital loss carryovers, reduced dollar for dollar.
  5. Basis of property, reduced dollar for dollar under the farm-specific ordering below.
  6. Passive activity loss carryovers dollar for dollar, and passive activity credit carryovers at 33⅓ cents per dollar.
  7. Foreign tax credit carryovers, reduced at 33⅓ cents per dollar.

The split rates reflect relative value. A dollar of NOL is worth a dollar of future deduction, so it burns a dollar of excluded amount. A dollar of credit reduces tax dollar-for-dollar, which is more valuable, so it only consumes 33⅓ cents.2Office of the Law Revision Counsel. 26 U.S. Code 108 – Income From Discharge of Indebtedness

How Basis Reduction Works for Farm Property

When the sequence reaches basis, Section 1017 imposes farm-specific rules for qualified farm indebtedness. The reduction cannot be spread across any property you own. It has to be applied to qualified property in this order:

  1. Depreciable property, such as equipment and buildings.
  2. Farmland used or held for use in farming.
  3. Any other qualified property used in a trade or business or for the production of income.

Directing the hit at depreciable assets first protects farmland to the extent the numbers allow. Depreciable assets lose basis over time through normal depreciation anyway, so the additional reduction bites less than it would against land, which is not depreciable.4United States Code. 26 USC 1017 – Discharge of Indebtedness

The Election to Reduce Basis First

Section 108(b)(5) lets you skip the default order and reduce the basis of depreciable property before touching NOLs or any other attribute. The election is available for the farm exclusion just as it is for bankruptcy and insolvency exclusions.

The reason to use it is planning. If you carry large NOLs you expect to deduct against future income, preserving those losses may save more tax than protecting basis in equipment you plan to replace anyway. The election has to be modeled against your expected income for the years ahead, and once made it can be revoked only with IRS consent. You elect by marking the appropriate box on Form 982 and attaching it to a timely filed return.

What Happens When You Sell the Property Later

Basis reductions have a delayed cost. Lower basis means larger recognized gain when you sell. A tractor whose adjusted basis dropped from $50,000 to $30,000 produces $20,000 of additional gain at sale.

Section 1017(d) takes it a step further. Any basis reduction under these rules is treated as a depreciation deduction for purposes of Sections 1245 and 1250 recapture. That converts the gain attributable to the reduction into ordinary income rather than capital gain, and it pulls property into the recapture rules even if it would not ordinarily be subject to them.5GovInfo. 26 USC 1017 – Discharge of Indebtedness

The exclusion defers tax; it does not erase it. If you are likely to sell farmland or equipment within a few years of the discharge, build the recapture into your settlement math.

When Insolvency or Bankruptcy Rules Take Over

The farm exclusion is not the only way to shelter canceled debt. Insolvency and bankruptcy have their own exclusions under Section 108(a)(1)(A) and (B), and when more than one could apply, the statute sets an order.

Bankruptcy comes first. Debt discharged in a Title 11 case is excluded under the bankruptcy rules, and the farm exclusion does not reach that portion. Insolvency comes next: if you are insolvent when the debt is discharged, the insolvency exclusion covers the debt up to the amount of your insolvency, and only the excess can potentially fall under the farm exclusion.2Office of the Law Revision Counsel. 26 U.S. Code 108 – Income From Discharge of Indebtedness

The routes differ in their caps and their attribute reduction consequences. The farm exclusion is capped at adjusted tax attributes plus qualified property basis, which can leave a taxable slice. The insolvency exclusion is capped at your insolvency amount. Farmers who are both insolvent and pass the gross receipts test should compare both paths for the portion of debt that lies beyond the insolvency line.

Filing With Form 982

You claim the exclusion on Form 982, Reduction of Tax Attributes Due to Discharge of Indebtedness, attached to your federal return for the year of discharge. Individuals attach it to Form 1040; estates and trusts use Form 1041.6Internal Revenue Service. Form 982 – Reduction of Tax Attributes Due to Discharge of Indebtedness

Check the box on Line 1c for discharge of qualified farm indebtedness. Enter the total excluded amount on Line 2, then report the dollar amount of each attribute you are reducing in Part II. Indicate the Section 108(b)(5) election on the form if you are using it.7Internal Revenue Service. Instructions for Form 982 – Reduction of Tax Attributes Due to Discharge of Indebtedness

Your lender will send you a Form 1099-C reporting the canceled amount. The figures on Form 982 need to reconcile with the 1099-C and with the cancellation agreement itself. Keep the agreement, your three-year gross receipts calculation, and documentation of the adjusted basis of every qualified property. The IRS can request verification, and the gross receipts test is a common area of inquiry.8Internal Revenue Service. About Form 1099-C, Cancellation of Debt

If You Don’t Qualify

Miss the 50-percent threshold or hold a debt that wasn’t incurred in connection with farming, and the canceled amount is taxable unless another exclusion applies. The insolvency exclusion shelters canceled debt to the extent your liabilities exceed your assets. The bankruptcy exclusion covers debts discharged in a Title 11 case. A separate exclusion for qualified real property business indebtedness can reach farm real estate debt that falls outside the farm-specific rules. Run the gross receipts calculation early, because after the 1099-C is issued the tax consequences are set and the room to restructure closes.