You just paid a $20,000 legal bill, and losing the underlying fight could have cost you the business itself. Surely that makes the fee deductible — what could be more "ordinary and necessary" than legal work that saves your livelihood? The IRS disagrees, and it has a test that says so: it does not matter what was at stake. It does not matter who wrote the check, or what the invoice calls the work. The only thing that matters is where the dispute came from. Deduct a fee whose origin is personal and you have an overstated deduction that unravels on audit, plus interest and possibly penalties. Capitalize nothing when you should have, and you have deducted basis you were supposed to recover over years. This guide explains the origin of claim test, the three buckets every legal bill falls into, and how to document your fees so the deduction survives contact with an examiner.
The Test in One Sentence
Every legal fee is classified by the transaction, activity, or dispute that gave rise to the legal work — its origin — and never by the consequences of winning or losing. That single rule decides whether a fee is a business expense, a personal expense, or a capital expenditure, and it overrides all three of the things owners instinctively point to: the invoice description, who paid the bill, and how much income was on the line.
The Supreme Court settled the consequences question in United States v. Gilmore (1963). A businessman facing divorce argued his legal fees were deductible because his wife's claim threatened his controlling stake in three car dealerships and the income they produced. The Court said no: deductibility turns on the claim's origin, not on what losing would do to the taxpayer's income-producing property. The claim came from the marriage, so the fees were personal — even though losing could have cost him his livelihood. Courts later applied the same origin logic to the deduct-versus-capitalize boundary: fees whose origin is acquiring, defending, or perfecting a capital asset get capitalized into that asset rather than deducted.
Note which way the test cuts. It is not simply a weapon against deductions. A matter that sounds personal at first glance can still be business if it arose from your operations, and plenty of owners leave legitimate deductions on the table because the invoice label sounded vague or personal. Origin is a sorting machine, and it sorts in both directions.
The Three Buckets Every Legal Bill Falls Into
Once you know the origin of the work, the fee lands in exactly one of three buckets: deducted now, capitalized and recovered later, or never deducted at all. A single invoice can — and often does — split across all three, which is why sorting by matter beats sorting by invoice.
Bucket 1: Deductible Now as an Ordinary and Necessary Business Expense
Fees whose origin is operating your business are deductible under Section 162 in the year you pay or accrue them, depending on your accounting method. The clean cases include contract drafting and disputes, collecting overdue accounts, business tax planning and audit defense, defending lawsuits that arise from your operations, and the employer side of employment matters such as drafting offer letters, handbooks, and separation agreements. If you run rental property, legal work tied to operating the rental — evictions, lease enforcement, a deposit dispute — is deductible against rental income on Schedule E. Sole proprietors deduct business legal fees on Schedule C; corporations and partnerships deduct them on their own returns.
One trap inside this bucket is assuming the deduction follows the checkbook. It follows the taxpayer the expense belongs to. If your S corporation pays your personal divorce lawyer, that payment does not become a corporate deduction — it is more likely a distribution or compensation to you, and the fee stays personal. Go the other direction, paying a bill that belongs to your corporation out of your own pocket, and your payment is generally treated as a capital contribution: the corporation deducts the fee if it qualifies, and you get no deduction on your individual return. Match the fee to the right taxpayer before you match it to the right line.
Bucket 2: Capitalized Into What the Work Bought, Built, or Defended
Some business-related fees are real business costs that you still cannot deduct, because their origin is a capital transaction. Section 263(a) sends them into basis instead:
- Acquiring an asset or a business. Legal fees for buying equipment, real estate, a competitor, or its customer list are added to what you bought. You recover them through depreciation, amortization, or a reduced gain when you sell — not as a current-year deduction.
- Starting or organizing the business. Startup expenditures (Section 195) and corporate organizational expenditures (Section 248) allow only a limited immediate deduction — up to $5,000, phased out dollar for dollar once total costs exceed $50,000 — with the remainder amortized over at least 60 months. Legal fees for entity formation, founder agreements, and pre-opening work usually land here.
- Creating, registering, or improving an intangible asset. Patent prosecution costs, trademark registration, and the legal spend behind developing a franchise system are capitalized into the intangible. So are the fees for successfully defending title to property you own. If the defense fails, there is no asset left to absorb the cost, so unsuccessful defense fees generally go nowhere at all — one more reason to know which bucket you are in before the bills arrive.
The practical sting of this bucket is timing, not denial: you still get the cost back, just spread over years instead of all at once. Misclassifying capitalized fees as current deductions is one of the adjustments examiners make most mechanically, because the invoice usually announces the capital origin in plain language — "asset purchase," "stock acquisition," "patent filing."
Bucket 3: Never Deductible
Some origins produce no deduction under any circumstances:
- Purely personal matters. Divorce, child custody, wills and revocable trusts, estate administration for a relative, and defending personal traffic or criminal matters are personal under Section 262. The invoice saying "business consultation" changes nothing; examiners read engagement letters and pleadings, not invoice labels.
- Individual investment legal fees. Before 2018 these were miscellaneous itemized deductions. The Tax Cuts and Jobs Act suspended that whole category for 2018 through 2025, and the One Big Beautiful Bill Act of 2025 made the elimination permanent. Legal fees you pay as an individual investor — reviewing a brokerage dispute, fighting over an inherited portfolio — are now permanently nondeductible for federal purposes. Note the boundary this creates: the same dispute can be deductible inside a trade or business and dead on arrival outside one, so how you hold the activity matters.
- Fines, penalties, and political spending. Amounts paid to a government for violating the law are nondeductible under Section 162(f), and political contributions plus most lobbying costs are barred by Section 162(e). Legal fees allocable to those nondeductible payments generally follow them into nondeductibility.
The Gray Zones That Trip Up Owners
Employment Disputes: Which Side of the Table Are You On?
The employer side is usually straightforward: fees arising from hiring, managing, and separating employees originate in your business operations and are deductible. If you are the employer paying a discrimination settlement, your side follows the ordinary origin analysis, while the payment itself needs separate 162(f) review if any of it looks like a fine or penalty.
The employee side is harsher. A worker who hires a lawyer for a workplace dispute is paying for something connected to employment, but employee legal fees were miscellaneous itemized deductions — the category Congress just permanently repealed. The surviving exception is narrow but important: attorney fees and court costs paid in connection with a claim of unlawful discrimination are deductible above the line under Section 62(a)(20), which means they reduce gross income directly rather than as an itemized deduction. The same treatment extends to certain whistleblower and False Claims Act matters. Two limits apply: the deduction cannot exceed the settlement or award amount you included in income that year, and under the Supreme Court's Banks decision the full recovery — including the slice your lawyer keeps under a contingent fee — is gross income to you first.
Settlements Follow the Same Test as the Fees
A settlement payment is classified by the origin of the claim it resolves, exactly like the fees incurred to get there. A payment settling a vendor contract fight is a business expense; a payment settling a personal dispute is personal; a payment that is really buying an asset — say, settling a dispute by purchasing the contested property — is capital. Keep the settlement agreement forever: it is the document that proves what the payment was for, and lump-sum agreements that do not allocate between claims invite the IRS to allocate for you. Where a settlement bundles deductible business claims with nondeductible penalties or personal claims, negotiate an explicit written allocation at signing time, when the other side will still cooperate, rather than reconstructing one years later under audit.
One Invoice, Three Tax Results
Mixed bills are the norm for owner-operated businesses, where one law firm handles a contract dispute, an acquisition, and the owner's will in the same month. Suppose a $20,000 invoice covers three matters: $11,000 for a vendor contract dispute, $7,000 for buying a competitor's customer list, and $2,000 for the owner's personal will. The first slice is deductible now, the second is capitalized into the customer list, and the third gets no deduction at all. Same invoice, three different tax results — which is why the fix is procedural. Ask your attorney for itemized invoices with time entries by matter while the work is happening, keep the engagement letters that define each matter's scope, and sort the bill by origin before you book it. A percentage you invent after an IRS notice arrives persuades no one.
How to Document Legal Fees So They Survive an Audit
Examiners disallow legal-fee deductions most often for failure of proof, not failure of law. Build a file for every significant fee that contains the attorney's itemized invoice with time entries, the engagement letter showing what the work was for, a short business-purpose note in your own words connecting the matter to your operations, the pleadings or settlement papers for litigated matters, a record of which entity or property the expense belongs to when you run more than one, and a note of how you treated any capitalized portion. That file is what converts your origin analysis from an argument into evidence.
Booking It: Deducted vs. Capitalized in Your Ledger
Your books should mirror the three buckets, because the return follows the books. Deductible business legal fees post to a legal expense account; capitalized fees post to the asset they belong to; personal fees paid from business accounts post to owner draws or distributions so they never touch the profit and loss. Using the mixed-invoice example above, the deductible and capitalized slices book like this — the $2,000 personal slice would book separately to an equity or draw account, never to an expense:
option "operating_currency" "USD"
option "title" "Legal fees: expense vs capitalize"
2026-01-01 open Assets:Checking USD
2026-01-01 open Expenses:Legal:Business
2026-01-01 open Assets:Intangibles:Customer-List
2026-11-04 * "Smith & Associates" "Invoice 1042: vendor contract dispute"
Expenses:Legal:Business 11000.00 USD
Assets:Checking
2026-11-04 * "Smith & Associates" "Invoice 1042: acquisition of customer list"
Assets:Intangibles:Customer-List 7000.00 USD
Assets:CheckingKeeping separate subaccounts for deductible legal spend and capitalized legal costs pays off twice: your tax preparer can pull the deduction total without re-reading every invoice, and the capitalized balance ties directly to the depreciation and amortization schedules. If you keep your books in plain text, the Beancount documentation covers account setup and the balance assertions that catch a misclassified posting before it reaches the return.
Before you close the books this month, pull every legal invoice you paid this year, sort each line by the origin of the matter behind it, and get itemization in writing for any bill that is still a single lump sum. The deduction was decided the day the dispute started — make sure your paperwork proves where that was.





