Are legal fees tax deductible for businesses?

- Can you deduct legal fees from your taxes?
- What legal expenses are 100% tax-deductible?
- Capital vs. current legal expenses
- What legal fees aren't tax-deductible?
- Above-the-line legal fee deductions
- How to deduct legal fees on your taxes
- How TCJA changed deductions for legal expenses
- Turn legal expenses into tax savings with Ramp

Every dollar you can deduct from your tax bill matters. The IRS collects hundreds of billions in business income taxes each year, and legal fees are one of the most commonly missed deductions.
The short answer is that business-related legal fees are generally deductible, while personal legal fees usually aren't. Knowing the difference can have a big impact on your tax planning, particularly after the Tax Cuts and Jobs Act (TCJA) changed how some deductions are handled.
Here's what qualifies, what doesn't, and how to claim your legal fee deductions correctly.
Can you deduct legal fees from your taxes?
Business legal fees are generally tax-deductible. Like any other tax-deductible business expense, the IRS requires that they be ordinary and necessary to your operations.
Ordinary means that the business expense is common and accepted in your industry. Necessary expenses are helpful and appropriate for your business. Ordinary and necessary expenses also tie directly to the business's income-producing activities.
So, as long as your legal expenses directly support business operations and contribute to generating taxable income, they're tax-deductible. In contrast, personal legal fees are generally not deductible.
What legal expenses are 100% tax-deductible?
The IRS allows you to fully deduct legal fees related to business operations, including business lawsuits, settlements, disputes, tax issues, and other activities tied to producing taxable income. These expenses are deductible in the year you pay them, as long as they qualify as current expenses rather than capital expenditures (more on that distinction below).
Business lawsuits and settlements
If your business is involved in a lawsuit, whether as a plaintiff or defendant, the legal fees incurred are usually tax-deductible. This includes:
- Attorney fees: For defending your business in a lawsuit, such as a breach of contract claim or a customer dispute
- Settlement costs: Tied to resolving commercial disputes, provided they're compensatory and not punitive
However, note that while fees associated with settlements are generally deductible, punitive damages, penalties, or government-imposed fines are not deductible under IRS rules.
Intellectual property protection
Legal fees for protecting your intellectual property are fully deductible as current business expenses. This includes the attorney fees you pay for trademark registration, patent applications, copyright filings, and trade secret protection.
Common deductible IP expenses include trademark registration and renewal fees, patent application legal costs, copyright registration, trade secret litigation, and sending cease-and-desist letters to infringers. If you're defending your existing IP in court, those attorney fees are tax deductible as a current expense because you're protecting an asset you already own.
The distinction matters when you're acquiring IP from another party. If you purchase a patent or buy trademark rights, those legal fees must be capitalized and amortized over the asset's useful life rather than deducted immediately. Defending existing IP is a current expense; acquiring new IP is a capital one.
Legal fees related to business startup costs
If you incurred legal fees to set up your business entity and draft your operating agreement or articles of incorporation, these startup expenses are deductible. This also includes fees for registering your business, setting up corporate bylaws and records, or hiring a tax professional.
However, you're limited to deducting $5,000 in business organizational expenses in the year you begin business. If your total organizational expenses exceed this limit, you'll need to capitalize and amortize them over 15 years.
Other recurring or one-time tax-deductible legal fees
There are a number of other reasons you might incur legal and professional fees. Legal expenses for the following business scenarios are also tax-deductible:
- Contractual legal services: Drafting, reviewing, and negotiating contracts with clients, vendors, employees, and other parties is a routine part of business operations. Legal fees paid to attorneys for these services are deductible.
- Employment-related legal fees: You can deduct legal costs associated with employment issues like drafting employee handbooks, handling disputes or unlawful discrimination lawsuits, and ensuring compliance with employment laws
- Regulatory compliance: You may need legal help to comply with various regulations, including environmental regulations, industry-specific laws, and data protection regulations. Fees paid to attorneys for compliance advice are tax-deductible.
- Tax planning and disputes: Legal fees paid for tax advice and representation in tax disputes are also deductible. This includes consulting with a tax attorney and defending your business in IRS audits or tax court.
- Real estate transactions: You might pay lawyer fees for real estate transactions, like reviewing lease agreements or purchasing commercial property. These legal fees are deductible.
- Whistleblower claims: If you file a whistleblower claim about federal tax violations or SEC regulations, the legal costs associated with this claim may be deductible
- Farm income and expenses: If you're in agriculture, legal fees related to land disputes or farm equipment agreements are deductible under Schedule F
Capital vs. current legal expenses
Not all deductible legal fees work the same way. The distinction between current and capital expenses determines when you can claim the deduction.
Current expenses are legal fees you deduct immediately in the tax year you pay them. These cover day-to-day business operations: defending lawsuits, drafting contracts, handling employment disputes, and getting tax advice.
Capital expenses are legal fees tied to acquiring or creating a long-term asset. You add these to the asset's cost basis and recover them over time through depreciation or amortization.
The IRS uses the "origin of the claim" test to classify legal fees, as established in United States v. Gilmore. What matters isn't what the lawyer did, but what the underlying issue relates to. If the legal work creates, acquires, or improves a long-term asset, the fees are capital. If it protects your ongoing operations, the fees are current.
| Capitalize these | Expense these |
|---|---|
| Acquiring real estate or a business | Collecting business debts |
| Defending or perfecting title to property | Defending breach of contract claims |
| Obtaining a new patent | Defending an existing patent |
| Reorganizing corporate structure | Employment-related disputes |
| Negotiating a long-term lease | Tax advice and compliance |
A practical rule of thumb: ask whether the legal work creates or acquires a long-term asset. If yes, capitalize. If it protects ongoing operations, expense it in the year you pay.
What legal fees aren't tax-deductible?
Not all legal fees qualify for a deduction. Personal legal fees, even if they indirectly affect your business, are typically not deductible.
Some common examples of non-deductible legal or attorney fees include:
- Defending against civil action or criminal charges resulting from personal legal issues
- Personal injury cases
- Divorce or custody disputes
- Residential real estate transactions
- Estate planning or drafting a will
- Creating a family trust
- Advice on buying a home
- Personal income tax advice or preparation fees
- Non-employee immigration expenditures
Above-the-line legal fee deductions
Some legal fee deductions fall outside the standard business vs. personal framework. These are "above-the-line" deductions that reduce your adjusted gross income directly, regardless of whether you itemize.
Three categories of legal fees qualify for above-the-line treatment under IRC Section 62(a):
- Unlawful discrimination claims: Legal fees from cases involving race, sex, age, disability, or other protected-class discrimination
- Whistleblower actions: Attorney costs for claims under the False Claims Act or SEC/IRS whistleblower programs
- Civil rights claims: Legal fees for actions under federal, state, or local civil rights statutes
These deductions survived TCJA. When Congress eliminated miscellaneous itemized deductions in 2017, it specifically preserved above-the-line treatment for these categories. If you're a business owner who faces discrimination or retaliation in your capacity as an employee or contractor, you can still claim these legal fee deductions directly against your gross income.
How to deduct legal fees on your taxes
Follow these steps to maximize your business tax deductions and claim every deductible legal fee:
1. Keep accurate records
The first step in claiming your legal expense deductions is to keep comprehensive records. For each legal service, ensure you document:
- Invoices detailing the nature of the services provided
- Receipts for payments made to your attorney or law firm
- Contracts or engagement letters that specify the business-related nature of the legal services
- Any email correspondence or other written agreements that clarify the purpose of the legal services
These documents substantiate your deductions in case of a business tax audit. The more organized your records are, the easier it will be to support your claims.
2. Use the correct IRS forms
Once you've properly tracked and documented your legal expenses, the next step is to report them correctly on the appropriate IRS forms. Select the correct form based on your business type:
- Schedule C (Form 1040): For self-employed individuals or sole proprietors, legal fees related to business operations are reported on this form
- Schedule E (Form 1040): If you're claiming legal expenses related to rental properties, use Schedule E to report those deductions
- Schedule F: Farmers should report legal expenses related to farming operations on Schedule F
3. Categorize legal fees correctly
Categorize your legal fees carefully to avoid confusion and errors. Remember that business-related legal fees are deductible, but personal legal fees are not.
Ask your attorney to itemize invoices, clearly indicating which services are related to business and which are personal. This will make it easier to separate your deductible expenses from the non-deductible ones.
For example, if your attorney handles both a business contract dispute and your personal estate plan in the same billing cycle, the invoice should clearly separate the $3,000 in business litigation fees (deductible) from the $1,500 in estate planning fees (not deductible).
4. Consult a tax professional
The rules surrounding legal fee deductions can be complex, especially when some expenses may involve both personal and business matters. If you're unsure about how to classify or deduct mixed-use legal fees, or you want to prepare for a potential IRS audit, it's a good idea to consult with a tax professional.
A tax advisor or CPA can:
- Guide you through the process of categorizing legal expenses correctly
- Help you navigate the impact of TCJA and the changes to deductions for personal legal fees
- File your tax return correctly, minimizing the risk of an audit and maximizing your deductions
5. Use expense management automation software
To make tracking legal fees easier, consider using automated expense management software like Ramp. Ramp automatically categorizes business expenses, including legal fees. This will:
- Reduce the likelihood of manual errors when reporting legal expenses
- Save you time during tax season, as all your legal expenses will be categorized and easily accessible
- Help you monitor your taxable income and ensure you're maximizing your tax refund by claiming every deductible expense
How TCJA changed deductions for legal expenses
The Tax Cuts and Jobs Act (TCJA) of 2017 significantly changed how individuals and businesses deduct legal fees. Here's what shifted:
| Before TCJA (pre-2018) | After TCJA (2018-present) | |
|---|---|---|
| Personal legal fees | Deductible as miscellaneous itemized deductions (subject to 2% AGI floor) | Not deductible (miscellaneous itemized deductions eliminated) |
| Business legal fees | Fully deductible as business expenses | Fully deductible as business expenses (no change) |
| Employment discrimination/whistleblower | Deductible as above-the-line deductions | Deductible as above-the-line deductions (no change) |
Personal legal fees
Before TCJA, you could deduct personal legal fees as miscellaneous itemized deductions on Schedule A, subject to the 2% adjusted gross income floor. TCJA eliminated this entire category of deductions through 2025, which matters when you file your business taxes.
If you're paying for personal legal services like divorce proceedings, estate planning, or personal tax advice, those fees aren't deductible under current law.
Business legal fees
TCJA didn't change the rules for business expense categories related to legal fee deductions. If your legal fees are ordinary and necessary business expenses, they remain fully deductible regardless of your business structure.
The business vs. personal distinction matters more than ever. If you can legitimately classify legal work as business-related, you can still deduct it in full.
As of 2026, the TCJA provisions affecting legal fee deductions remain in effect. The elimination of miscellaneous itemized deductions has been made permanent under IRC Section 67(g), making the business vs. personal distinction even more important for maximizing deductions.
Turn legal expenses into tax savings with Ramp
Tracking legal expenses shouldn't be an afterthought. Ramp helps you maximize your tax benefits while staying compliant with the tax code.
Ramp's expense management software tracks all your expenses automatically, categorizing them for tax purposes and helping you capture every deductible expense. You get the right records if the IRS comes knocking, without the manual data entry.
Try an interactive demo and see why companies that use Ramp save an average of 5% a year across all spending.

FAQs
Legal fees related to business operations are among the most overlooked deductions. Many business owners don't realize that attorney fees for contract reviews, ongoing compliance, and even collections efforts are fully deductible as ordinary and necessary business expenses.
Yes, if the retainer is for business-related legal services. A retainer paid to keep an attorney available for your business needs is deductible in the year it's paid, as long as the services relate to your trade or business operations.
Yes. The deductibility of legal fees doesn't depend on whether you win or lose the case. As long as the dispute is directly connected to your business operations, the attorney fees and court costs are deductible regardless of the outcome.
No. Business legal fees are deducted on your business tax return (Schedule C, Form 1065, or Form 1120) as a business expense, not as an itemized personal deduction. You claim them whether or not you itemize personal deductions on Schedule A.
“Most banks treat the back office as a cost to keep down. We treat ours as a return to compound, which is why we run it on Ramp. Now we put our clients on Ramp, too.”
Patrick Gaughen
President & COO, Hingham Institution for Savings

“Browserbase builds infrastructure so AI agents can do real work. Ramp is doing the same for finance. It’s not another tool. It’s a system purpose-built for AI-driven finance, and that’s why we chose Ramp as our financial operating system from day one.”
Paul Klein IV
Founder & CEO, Browserbase

“We used to pay up to $20k a year for our AP platform. With Ramp, we’re earning back well over that amount. That's money that belongs to the mission now, not to the back-office software.”
Heidi Coffer
Chief Financial Officer, Boys & Girls Clubs of San Francisco

“The tricky thing about corporate travel policy is timing. We didn't need a stricter policy. We needed the policy to show up earlier. With Ramp Travel, it finally does.”
Keith Frantz
Director of Enterprise Risk Management, Prosper

“We're accountable to our funders, our partners, and the families we serve. That accountability starts with how we manage every dollar. Ramp makes it easy for our team to spend wisely, track in real time, and keep overhead low so more resources reach the families navigating infertility.”
Rachel Fruchtman
CFO, Jewish Fertility Foundation

“Each member of our team has an outsized impact due to our focus on using high-leverage tools like Ramp.”
Lauren Feeney
Controller, Perplexity

“With Ramp, we haven’t had to add accounting headcount to keep up with growth. The biggest takeaway is that instead of hiring our way through it, we fixed the workflow so we can keep supporting the organization as we scale.”
Melissa M.
VP of Accounting at Brandt Information Services

“In the public sector, every hour and every dollar belongs to the taxpayer. We can't afford to waste either. Ramp ensures we don't.”
Carly Ching
Finance Specialist, City of Ketchum



