You can generally account for legal fees that directly facilitate the sale of business property or an ownership interest, but the usual federal treatment is to capitalize them and apply them in calculating gain or loss on the sale. They generally do not belong with ordinary operating expenses on the return. Legal work performed for the business's ongoing operations may qualify for a current deduction under a different rule. The result depends on what the lawyer did, which taxpayer incurred the cost, and how the transaction was structured. Treasury Regulation § 1.263(a)-1(e) · IRS guidance on selling a business
Identify the legal work your bill covers
Begin with the engagement letter and detailed bills. Identify services that helped implement the transaction, such as negotiating the purchase agreement, preparing the documents that transfer the assets or shares, and reviewing closing documents. These services usually relate directly to the sale. If the engagement also covered ordinary business disputes, routine vendor contracts, or other ongoing matters, identify those tasks and amounts separately. Each item needs its own review for capitalization, deduction, or personal treatment. Treasury Regulation § 1.263(a)-5 · 26 U.S.C. § 162
When a law firm sends one monthly invoice, ask for the breakdown behind the total. For example, the invoice may cover both negotiating the buyer's asset transfer and collecting an overdue amount from a customer in the ordinary course of business. Billing descriptions and a reasonable allocation based on documented services help distinguish the two matters. Record the completion dates and who requested the work. A generic ledger entry like legal fees offers little evidence of the tax treatment of either item. Treasury Regulation § 1.263(a)-5 · AE guide to documenting business expenses
Also look at separately billed work for financing, issuing equity, or reorganizing the business. A closing can depend on one of these steps while each remains subject to distinct federal capitalization or recovery rules. Follow the terms of the engagement and the legal documents to determine which step the invoice facilitated. A bill for obtaining a loan, for instance, should be reviewed under the debt issuance rules before it is applied against sale proceeds. A seller can use a cost schedule to record the transaction or asset involved for each item. Treasury Regulation § 1.263(a)-5 · Treasury Regulation § 1.446-5
How the usual rule affects a completed sale
The Treasury regulations generally require the seller to capitalize amounts paid to facilitate a sale of property. Under that rule the seller reduces amount realized by the qualifying costs in the year the sale occurs. A regulation example applies this treatment to legal fees and other closing expenses on a real property sale. If an eligible installment sale is involved, follow the installment form and instructions for how selling expenses enter the computation. Keep the records needed to ensure the same fees are used only once. Treasury Regulation § 1.263(a)-1(e) · IRS Publication 537
Suppose an owner sells a capital asset for $400,000 in cash. Assume adjusted basis is $150,000, qualifying selling legal fees are $18,000, and no other amounts affect the result. Net amount realized is $382,000 and gain is $232,000. The fee reduced gain by $18,000. The change in actual tax depends on the gain's character and the owner's return. The example would require a different computation if the price included liabilities, additional assets, or consideration payable in later years. IRS Publication 550 · AE guide to how a business sale is taxed
When the fee is paid before closing
If the lawyer bills this year and the sale closes next year, the ordinary sale facilitation rule generally takes the cost into account in the year the sale occurs. Retain a schedule of which charges were capitalized while the transaction was being pursued. Once the sale closes, reconcile the total to the fees applied in the gain or loss calculation. The date on the invoice or a cash accounting method does not by itself make a capital cost currently deductible. Check whether the work belonged to an ongoing operating matter or a transaction subject to a separate rule. Treasury Regulation § 1.263(a)-1(e) · IRS Publication 544
The seller is different in an asset sale and a stock sale
When a company sells its assets, identify the costs the company incurred for the sale and apply them in its reporting as appropriate. In a shareholder stock sale, the shareholder typically sells the shares, even though the company's lawyers may perform work for the target corporation. A bill paid by the company needs separate analysis if some services were performed for the shareholder or the company agreed to pay costs someone else owed. Identify who engaged counsel, who benefited from the work, and whose obligation was paid. Do not apply the same invoice to the company's tax computation and the shareholder's gain. Treasury Regulation § 1.263(a)-5 · IRS Publication 542
If a partner sells a partnership interest, start with the documentation for the interest sale. The partner's amount realized may include relief of partnership liabilities, and the gain can have an ordinary component attributable to certain partnership assets. Obtain the partnership's relevant tax information as well as the seller's own closing statements and invoices. Reconcile any seller-paid costs and the partnership's costs separately. If the partnership sold assets and is distributing the proceeds, the entity-level reporting and each partner's tax basis calculation are separate steps. IRS Publication 541 · AE partnership tax preparation services
Allocate fees across assets and transaction steps where needed
If you sell several assets in one deal, identify expenses directly tied to an asset and evaluate how to allocate expenses that cover the entire transaction. An attorney may spend time preparing a deed and separately negotiating terms that apply to the whole business. Use records that reflect the services and a supportable allocation for shared amounts. Asset classes can have different tax consequences. Moving fees between inventory, depreciable equipment, and goodwill can affect the character of the gain as well as the number entered on each form. IRS Publication 544 · IRS guidance on selling a business · AE guide to goodwill in a business sale
In a qualifying asset acquisition, the seller and buyer generally report the purchase price allocation on Form 8594. Retain that allocation with the settlement statement and separately reconcile how the seller accounted for its own expenses. Confirm the federal definitions for the seller's consideration and the purchaser's cost, especially when one party pays expenses on behalf of another. Neither a net closing wire nor a fee total from the ledger can replace the analysis of the actual amounts in the agreement and supporting schedules. IRS instructions for Form 8594 · IRS Publication 544
Example of a bill covering ongoing operations and closing
Suppose counsel bills $20,000 for two clearly documented matters. The records attribute $14,000 to negotiating and preparing the sale agreement and $6,000 to resolving a routine vendor dispute arising from current operations. Assuming the latter expense meets Section 162 and any other applicable requirements, it may be deductible as an operating expense. The $14,000 generally enters the sale calculation if incurred by the seller to facilitate the completed sale. Review other expenses billed on the same closing statement and exclude the $6,000 from the selling cost total. 26 U.S.C. § 162 · Treasury Regulation § 1.263(a)-1(e)
Check special rules for deal-specific costs
Treasury Regulation § 1.263(a)-5 imposes capitalization requirements for costs incurred to facilitate specified business acquisitions, reorganizations, and capital structure transactions. For certain covered transactions, when work occurred can matter. Some tasks, including preparing purchase or merger agreements and obtaining specified transaction approvals, are inherently facilitative under the rule. That characterization can apply even to work done before the milestone used for other services. Review the rule for the taxpayer and transaction before classifying early due diligence or preparatory legal work. Treasury Regulation § 1.263(a)-5(e)
For a fee contingent on successfully closing a transaction covered by the regulation, review the specific documentation or an available election. Revenue Procedure 2011-29 provides an optional safe harbor for certain success-based fees in covered transactions if its requirements are met. It permits a 70 percent nonfacilitative allocation with the remaining 30 percent capitalized. Nonfacilitative treatment under that procedure does not itself establish a current deduction under another Code provision. Review eligibility, election timing, and what the fee actually covers. The rule does not assign those percentages to an ordinary hourly legal bill. Treasury Regulation § 1.263(a)-5(f) · IRS Revenue Procedure 2011-29
What if the deal falls through or is paid in installments?
The regulations allow qualifying capitalized sale costs to be considered in the year a sale is abandoned if a deduction is permissible. Whether you can claim a loss depends on the facts and applicable rules, including Section 165. Preserve the agreement, the termination notice, and evidence of when the proposed transaction ended. A delayed transaction, a change of buyer, or revised negotiations can require separate analysis of whether the original project was abandoned and what the fees relate to. Determine whether a bill relates to a continuing transaction before treating it as an abandoned sale cost. Treasury Regulation § 1.263(a)-1(e) · 26 U.S.C. § 165
If an eligible installment sale closes, Form 6252 generally accounts for qualifying selling expenses in the installment sale basis calculation used to determine gross profit. It identifies attorney fees among potential selling expenses. Where the buyer pays a seller's expenses or a portion is withheld to satisfy them, review the form's instructions on amounts included in selling price and payments before calculating the expense adjustment. Some business assets and amounts, including inventory and applicable depreciation recapture, have separate timing rules. Use the sale-year calculation to reconcile amounts across the forms. IRS Publication 537 · IRS Form 6252
Keep the records that explain the tax treatment
Save the engagement letter, each invoice and any allocation supplied by counsel, payment evidence, and the closing statement. Identify the work performed, the taxpayer for whom the work was done, and the transaction or assets to which it relates. Give the preparer the gross settlement numbers and fees separately. If the sale is reported on Form 8949 or Form 4797, use the instructions for the applicable form and year to report selling costs in the right place. Check whether the proceeds already reflect a selling charge before entering an additional adjustment. IRS instructions for Form 8949 · IRS instructions for Form 4797 · AE bookkeeping services
Follow amounts withheld from the closing wire
Suppose a settlement agent receives the buyer's $600,000 payment, pays $24,000 to the seller's counsel, and sends the seller $576,000. Assume the legal fees all qualify as selling expenses and no other amounts affect the calculation. The seller starts with the gross consideration and accounts for the $24,000 once. If the accountant starts from a figure already net of those fees, another subtraction would duplicate the cost. This reconciliation also helps when cash at closing was reduced for a debt payoff or held in escrow, because those amounts can follow different rules. Treasury Regulation § 1.263(a)-1(e) · IRS Publication 544
If the buyer pays the seller's lawyer directly, identify whether the payment discharges a seller obligation and how it was counted in the consideration. The installment sale guidance, for example, directs sellers to include certain seller expenses paid by the buyer in the selling price computation. Review the agreement and closing records together before deciding what amounts go on the seller's tax forms. Ask for the final invoice when the settlement agent used a provisional amount. Differences can arise when a fee is estimated before closing and billed afterward. IRS guidance on installment sales · IRS Form 6252
Document tasks performed for the company and the owners
An engagement involving several clients may cover company approvals and shareholder negotiations. Ask counsel to separate matters by the party represented and the scope of work. Check any purchase agreement provisions assigning professional fees before recording them. A company's payment of an owner's personal obligation may require separate tax and accounting treatment. Preserve approvals and evidence of any reimbursement. If the company paid the amount from a pooled closing account, record the ultimate obligor and the source of funds rather than assuming the cash movement settled the question. Treasury Regulation § 1.263(a)-5 · IRS Publication 542
When one fee covers work across jurisdictions or entities, use the underlying invoices rather than dividing it solely by the number of owners or legal entities. The preparer needs to see which party incurred each item and what it facilitated. If the transaction involves an S corporation and a shareholder that both incur costs, keep separate workpapers. The entity-level figures and any separate shareholder adjustments should reconcile to the arrangement without each including the same payment. Review state tax treatment if more than one state is affected. Treasury Regulation § 1.263(a)-5 · AE S corporation tax preparation services
Reconcile prior-year costs and final invoices
Make a schedule showing what you paid before closing, what was withheld at settlement, and what you expect to pay afterward. Match the line items to invoices and verify whether you already booked a payment, accrued an amount, or recorded the fee as a capital cost. If an earlier operating expense entry included transaction work, investigate the classification and determine whether a correction is needed. Compare the tax reporting with the books and retain the reason for any difference. Check the treatment of the final bill under the accounting and transaction rules that apply before changing a filed return. Treasury Regulation § 1.263(a)-1(e) · AE tax planning services
A transaction might change shape after you first consult counsel. Keep dated records of which proposed structure the work related to and what the parties ultimately signed. If early work applied to a discontinued transaction, preserve the evidence needed to determine if and when it ended. Review the invoices again if a restructuring, financing, or transfer of a different asset became part of the closing. A complete schedule should let the next preparer see how the costs were traced to the ultimate seller, taxpayer, and reporting year. Treasury Regulation § 1.263(a)-5
Confirm whether the business sells property as a dealer
The regulation has a separate provision for a dealer in property that pays to facilitate the sale of that property. Such amounts may qualify as ordinary and necessary business expenses. For example, the regulation distinguishes fees on a dealer's real estate sale from fees paid by an owner selling real estate otherwise. A business that frequently sells products should still review whether the transaction in question is a regular sale of dealer property or a sale of the business itself. Document which assets the fees covered and which statutory rule applies. Treasury Regulation § 1.263(a)-1(e)(2)
Have the preparer verify this classification before entering closing costs and retain the final calculation in the sale file. Keep the related engagement letter and settlement record with that workpaper. Review each remaining account balance to verify no fees were carried forward after being recovered.