Are Court Costs Tax Deductible? Business, Personal, and Settlement Rules

Court costs and legal fees are tax deductible when they come out of a business or rental activity, and a narrow above-the-line deduction covers attorney fees paid on unlawful discrimination claims and qualifying IRS whistleblower awards. For almost everything else — divorce, custody, estate planning, personal injury defense, a personal tax audit, an investment dispute — no federal deduction is available. What matters is not whether you won, lost, or settled, but what the lawsuit was about.

The Rule That Decides It

The IRS applies the “origin of the claim” doctrine. Look at the activity that gave rise to the dispute, and apply the tax rules for that activity. A breach-of-contract fight between two companies is a business expense. A custody battle is personal, even if losing it would cost you time you’d otherwise spend earning income. The indirect financial stakes don’t convert a personal matter into a business one.

That classification decides three things: which form the deduction goes on, whether it reduces your adjusted gross income directly or only helps if you itemize, and whether any deduction exists at all. Putting a fee in the wrong bucket either forfeits a legitimate write-off or invites a disallowance on audit.

Business and Rental Legal Costs

Legal fees and court costs tied directly to a trade, business, or rental property are deductible as ordinary and necessary expenses. That covers breach-of-contract litigation, collecting unpaid invoices, defending the business against a claim, protecting intellectual property, and landlord-tenant disputes.

Sole proprietors and the self-employed deduct these costs on Schedule C (Form 1040). Rental owners use Schedule E (Form 1040).1Internal Revenue Service. Publication 529 (12/2020), Miscellaneous Deductions Both sit above the line, so you benefit whether or not you itemize. Cash-basis filers deduct in the year the fee is paid.

One important exception. Legal fees connected to buying, selling, or defending title to a business asset are not current expenses. They get added to the asset’s cost basis and affect gain or loss when you sell.2Internal Revenue Service. Publication 551 (12/2025), Basis of Assets Closing fees on a commercial property are the classic example.

Discrimination and Whistleblower Claims

Two statutory carve-outs let individuals deduct attorney fees and court costs as adjustments to income on Schedule 1 (Form 1040). These are above-the-line deductions, so they reduce AGI directly, and you don’t need to itemize.

Unlawful Discrimination

Attorney fees and court costs paid in connection with a claim of unlawful discrimination qualify. The statute lists a broad set of laws, including Title VII of the Civil Rights Act, the Americans with Disabilities Act, the Age Discrimination in Employment Act, the Fair Labor Standards Act, the Family and Medical Leave Act, and any federal or state law enforcing civil rights or regulating aspects of the employment relationship.3Office of the Law Revision Counsel. 26 US Code 62 – Adjusted Gross Income Defined Claims against the federal government and certain Social Security Act claims are also covered.1Internal Revenue Service. Publication 529 (12/2020), Miscellaneous Deductions

The deduction is capped at the amount of the settlement or judgment you include in gross income for the year. Pay $80,000 in fees on a fully taxable $200,000 discrimination settlement, and the full $80,000 comes off above the line. If only $100,000 of the recovery is taxable, the deduction can’t exceed $100,000, no matter what you actually paid the attorney.3Office of the Law Revision Counsel. 26 US Code 62 – Adjusted Gross Income Defined

IRS Whistleblower Awards

A parallel above-the-line deduction covers attorney fees paid in connection with an IRS whistleblower award under Section 7623(b), which applies where the disputed tax amount exceeds $2 million. The deduction is again capped at the award amount included in gross income. The smaller discretionary awards under Section 7623(a), below that threshold, are not covered.4Internal Revenue Service. Whistleblower Office Memorandum

Personal Legal Matters

Legal expenses for personal matters cannot be deducted. That includes divorce, child custody, personal injury defense, estate planning, drafting a will, and neighbor disputes. None arise from a profit-seeking activity, so no code provision authorizes a deduction.1Internal Revenue Service. Publication 529 (12/2020), Miscellaneous Deductions

A partial exception used to exist for the tax-advice portion of divorce legal fees, deductible as a tax-determination expense under the old miscellaneous itemized deductions. Congress has now permanently eliminated that category, so the divorce tax-advice deduction no longer applies unless the tax issue relates to a business reported on Schedule C, E, or F.

Before worrying about deducting fees on a personal injury case, check whether the recovery is even taxable. Compensatory damages for personal physical injuries or physical sickness are excluded from gross income, with punitive damages the main exception.5Office of the Law Revision Counsel. 26 USC 104 – Compensation for Injuries or Sickness If nothing is taxable, the deduction question is moot. Emotional distress on its own is not a physical injury; damages for defamation, discrimination, or emotional harm untied to a physical injury are taxable, with only the portion reimbursing actual medical expenses for the distress excludable.6Internal Revenue Service. Publication 525, Taxable and Nontaxable Income

Personal Tax Disputes and Investment-Related Fees

This is where the biggest change hit. Before 2018, individuals could deduct legal fees tied to producing investment income or resolving personal tax disputes as miscellaneous itemized deductions on Schedule A, subject to a 2% of AGI floor. The Tax Cuts and Jobs Act suspended those deductions through 2025. Many taxpayers expected them to return in 2026, but the One Big Beautiful Bill Act made the elimination permanent.

The practical result: an attorney hired to help with a personal tax audit, to recover investment losses, or to give tax advice outside of a trade or business produces no federal deduction. The IRS treats legal expenses for producing or collecting taxable income and for the determination, collection, or refund of any tax as miscellaneous itemized deductions that are no longer deductible.1Internal Revenue Service. Publication 529 (12/2020), Miscellaneous Deductions

The carve-out worth knowing: if the tax dispute relates to income from a business (Schedule C), rental property (Schedule E), or farm (Schedule F), the legal cost can still be deducted on that schedule as a business expense.1Internal Revenue Service. Publication 529 (12/2020), Miscellaneous Deductions A sole proprietor being audited on Schedule C income can deduct the tax attorney’s fee there. What matters is whether the tax issue traces to a profit-seeking activity reported on one of those schedules.

The Contingency Fee Trap

Contingency fees create a problem most plaintiffs don’t see coming. The Supreme Court held in Commissioner v. Banks that when a plaintiff receives a taxable recovery, the full amount is the plaintiff’s gross income, including the portion paid directly to the attorney.7Legal Information Institute (LII) / Cornell Law School. Commissioner of Internal Revenue v. Banks

Win a $500,000 discrimination settlement, pay the attorney 40%, and you still report the full $500,000. If the discrimination above-the-line deduction applies, you subtract the $200,000 fee and pay tax on $300,000. Fine. But if the underlying claim doesn’t fit one of the above-the-line categories and the recovery is taxable, you report $500,000 with no way to deduct the $200,000. You pay tax on money you never touched. This is why Congress built the above-the-line provisions for discrimination and whistleblower claims in the first place. For any case that falls outside them, run the numbers with a tax advisor before settling.

How Settlements Are Reported

Settlement payments come with 1099s that drive the return. When a defendant or insurer pays a settlement to your attorney, the payer reports the gross proceeds in Box 10 of Form 1099-MISC. The attorney’s fee is not separately broken out on that form.8Internal Revenue Service. Instructions for Forms 1099-MISC and 1099-NEC (Rev. April 2025) If any portion of the settlement is taxable damages paid to you, the payer also issues a Form 1099-MISC with the taxable amount in Box 3.

The IRS often receives two 1099s for the same settlement, one to the attorney for the gross and one to the client for the taxable portion. A return that doesn’t reconcile with both forms will draw a notice. Give your preparer every 1099 tied to the settlement, and make sure they can identify which portions are excludable under Section 104(a)(2), which portions are taxable, and which fees qualify for an above-the-line deduction.

Fines and Penalties Stay Non-Deductible

Even when the legal fees defending an action are deductible as a business expense, fines and penalties paid to a government entity from the same case are not. Federal regulations deny deductions for amounts paid to a government in connection with the violation of any law, or the investigation of a potential violation.9eCFR. 26 CFR 1.162-21 – Denial of Deduction for Certain Fines, Penalties, and Other Amounts The attorney’s bill in a regulatory enforcement matter may be deductible; the penalty imposed by the agency is not. Keep the two lines separate in your records so the deductible portion isn’t lost inside a non-deductible total.