Baker 1031Investor Workspace
Welcome, there!Log Out

Learn

A little clarity for your next decision.

Loading your learning library…

Browse the library

Baker 1031

Investor workspace · Airtable inventory

How to Defer Capital Gains on a Business Sale

By Jerry Baker

Deferring tax on a business sale depends on what is being sold, who owns it, and how the deal is structured. Real estate, equipment, inventory, goodwill, and company stock can receive different tax treatment. Start with an asset-by-asset tax estimate before choosing an installment sale, property exchange, or another strategy.

A business sale is not always one capital gain

An owner may describe a transaction as selling the business for one price. The tax return may treat that same deal as the sale of several assets, each with its own basis and tax character.

The IRS explains that an asset sale generally requires separate treatment of the assets sold. Inventory can produce ordinary income. Business real estate and equipment may involve Section 1231 rules and recapture. A stock sale starts with a different analysis. [1]

That distinction comes before any discussion of a tax-deferral investment. You cannot decide how to defer a gain until you know which gain you have.

I would want the CPA and transaction attorney involved while the deal is being shaped. The purchase agreement, payment terms, ownership, and closing instructions can affect which choices remain available.

Identify an asset sale or an ownership-interest sale

In an asset sale, the business transfers specified property to the buyer. That might include equipment, inventory, customer-related assets, goodwill, and real estate.

In a stock sale, the shareholder generally sells shares of the corporation. The company's underlying assets do not automatically become assets sold directly by the shareholder. Tax elections can change the treatment of some transactions, so the legal label is not the whole answer.

A sale of a partnership interest also needs a separate review. Although it is generally treated as a capital-asset sale, the portion tied to unrealized receivables and inventory can be ordinary income. The IRS calls attention to this distinction. [1]

Ask who receives the sale proceeds and who owes the tax. If a corporation sells its assets, do not assume that the shareholder can personally exchange those corporate proceeds. Moving money or property out of the entity can create another tax event.

Before discussing investments, obtain a written description of the transaction for tax purposes. “Selling my company” is a useful conversation starter, but it is not enough for a tax calculation.

Review the purchase-price allocation

For a covered business asset purchase, buyer and seller generally use the residual method. This divides the price among groups of assets. Goodwill and going-concern value do not simply receive whatever allocation produces the lowest tax for one side. [1][2]

The allocation affects the seller's gain and the buyer's basis. The parties can have different goals, so it deserves attention during negotiation.

Form 8594 generally reports covered business asset sales. Goodwill or going-concern value must attach, or be capable of attaching, and the buyer's basis must be based on the price paid. Exceptions and special rules apply, including for the portion of a transaction qualifying under Section 1031. [2]

Keep the agreement, valuation support, and tax reporting consistent. An unsupported allocation written solely to achieve a tax result may not hold up.

Also identify later adjustments, such as changes to price or contingent payments. A transaction may require updates after the first return is filed. Closing is not always the end of the reporting work.

A simplified example of why the asset split matters

Assume a fictional owner sells business assets for $3 million. The following amounts are invented and ignore selling costs, debt, entity-level issues, and special adjustments.

Illustrative asset values and gain before tax-character review
AssetAllocated priceAdjusted basisDifference
Business real estate$1,500,000$700,000$800,000
Equipment$300,000$100,000$200,000
Inventory$200,000$150,000$50,000
Goodwill$1,000,000$0$1,000,000
Total$3,000,000$950,000$2,050,000

The $2.05 million total is not a conclusion that every dollar is long-term capital gain. Equipment recapture, inventory income, the origin of goodwill, holding periods, and the taxpayer's history still need review.

The real estate may be a candidate for a properly structured 1031 exchange. The equipment, inventory, and goodwill do not become eligible replacement real estate merely because they were sold with the building. [3]

This example shows why a proposal to defer the entire business price through one real estate purchase is incomplete. Begin with the actual asset schedule.

An installment sale can spread eligible gain over payments

An installment sale generally involves at least one payment after the tax year of sale. When the method applies, each principal payment can contain a return of basis and a portion of gain. Interest is treated separately. [4]

The method does not apply equally to every business asset. Inventory generally cannot use it. Depreciation recapture under the applicable rules is generally reported in the sale year even if cash has not yet arrived. [4]

For an original simplified example, assume a qualifying nonpublic stock sale has a $2 million price and $500,000 basis. Ignore costs, debt, exclusions, and special adjustments. Total gain is $1.5 million, giving a 75% gross-profit percentage.

If the seller receives $400,000 of principal in the sale year, $300,000 is gain and $100,000 is basis recovery. The remaining $1.2 million of gain is generally recognized as later principal is received under the assumed terms. Interest is additional and separately taxable. [4]

The example assumes the transaction qualifies and has no rule accelerating payment or gain. Publicly traded stock sales cannot use this installment method. A note does not, by itself, establish eligibility.

Deferral changes your financial risk

Seller financing means you still depend on the buyer after closing. A smaller current tax bill is not a substitute for the buyer's ability to pay.

Review the buyer's cash flow, down payment, collateral, guarantees, loan priority, and reporting duties. Understand what happens if payments stop and what it would cost to enforce the agreement.

A balloon payment can create a large future risk. The buyer may need refinancing or a sale at that time. Ask what happens if lending terms are worse than expected.

Compare the note with cash at closing after tax. Include interest income, default risk, collection costs, and your household's need for access to money. A note that cannot be sold easily may be a poor match for near-term spending.

Tax rules also address related-party sales, certain pledges of installment obligations, and interest on some large deferred-tax balances. Do not assume that borrowing against a note gives you unrestricted sale cash without tax consequences. [4]

A 1031 exchange may apply to the real estate portion

Section 1031 generally applies to qualifying real property held for investment or use in a trade or business. Property held primarily for sale does not qualify. [3]

If the business owns its building, that building may be reviewed for an exchange separate from the non-real-estate assets. Ownership and closing structure must work. The person or entity selling the real estate cannot be casually replaced by a different taxpayer buying the replacement.

A standard deferred exchange generally has a 45-day identification period and a 180-day acquisition period, limited by the applicable return due date including extensions if earlier. Arrange the qualified intermediary and proceeds restrictions before closing. [3][5]

For the fictional $1.5 million building with $700,000 basis, a fully qualifying equal-value exchange could defer the assumed $800,000 eligible real estate gain. That result would not also defer the $1.25 million difference shown for the other assets.

A qualifying DST may be a replacement ownership form when its structure and the exchange meet the rules. It does not expand Section 1031 to cover inventory, equipment, or company stock. [6]

Check qualified small business stock before choosing deferral

Section 1202 can exclude eligible gain on qualified small business stock, or QSBS, when the detailed requirements are met. An exclusion differs from deferral. Qualifying excluded gain is not simply waiting to be taxed later. [7]

Key tests include the taxpayer, C corporation status, original issuance, the company's asset size, active business use, stock holding period, and limits on eligible gain. Certain businesses are excluded. Being a small company in everyday language is not enough.

The 2025 law changed several rules. For stock acquired after July 4, 2025, the statutory schedule generally permits a 50% exclusion after three years, 75% after four years, and 100% after five years, subject to the other requirements and limits. [7]

Older stock follows its applicable acquisition-date rules, including the more-than-five-year holding condition for that group. The newer schedule does not simply shorten every existing shareholder's waiting period.

The law also changed certain dollar and company asset limits, with separate effective dates and later inflation adjustments. Review the actual issuance and acquisition records instead of applying today's headline limit to every block of shares.

Gather stock purchase documents, capitalization records, corporate tax history, and support for asset and business tests. A buyer's willingness to pay a high price does not establish QSBS eligibility.

Section 1045 is a narrow stock-to-stock rollover

Section 1045 may defer eligible gain for a taxpayer other than a corporation. It requires QSBS held for more than six months and new qualifying QSBS bought during the 60-day period that begins on the sale date. An election and other requirements apply. [8]

The amount-realized rule matters. It is not simply a requirement to reinvest the gain. For a simplified example, suppose qualified stock sells for $1 million with $200,000 basis, producing $800,000 of gain.

If the taxpayer buys $700,000 of eligible replacement stock within the required period, the $300,000 excess of sale amount over replacement cost is recognized under the assumed facts. The remaining $500,000 gain is deferred. This example assumes no ordinary income or other adjustment.

Section 1045 is not a route from a business sale into a rental property or a DST. The replacement must satisfy the stock rules. Review the new company's risk as carefully as the tax result.

A short reinvestment window should not be used to justify an investment you do not understand. Keep a normal taxable sale available as a comparison.

Opportunity Zone funds may address eligible gain

An eligible capital or qualified Section 1231 gain may be considered for a timely investment in a qualified opportunity fund. Ordinary income does not become eligible just because it arose during the same business sale. [9][10]

Use the actual gain schedule and the correct investor. Pass-through entities and owners can have different election and timing choices. The general 180-day period has specific starting rules that need review.

Under the original program, remaining deferred gain is generally included on December 31, 2026, or when an earlier event requires it. A 2026 investment does not start a fresh five-year deferral under those rules. [9]

For amounts invested after December 31, 2026, the enacted framework generally uses a five-year deferral period, subject to earlier events and other requirements. The new five-year basis increases and longer-term appreciation rules have their own conditions. [10]

Keep the original business-sale gain separate from later QOF appreciation. The ten-year investment benefit does not mean that every original gain can remain untaxed for ten years.

A QOF may involve development or operating-business risk, with limited liquidity and uncertain distributions. Review the investment and the future tax-payment plan together.

Charitable planning requires a real charitable goal

A charitable remainder trust may fit someone who wants to support charity and retain a defined income interest. It is an irrevocable arrangement, with a charitable remainder. [11]

It is not a way to keep full personal ownership of sale proceeds while calling them donated. Assets transferred during life generally carry their existing basis into the trust, and beneficiary payments can carry taxable income and gain.

Before contributing a business interest, have the attorney review transfer limits, the stage of the sale negotiations, debt, income characteristics, and the trust's ability to hold or sell the asset. Do this before assuming any sale can be redirected into a trust.

A possible charitable deduction has value and tax limits. The entire contributed value is not automatically a currently usable deduction. This option deserves its own legal and tax design, not a box checked at closing.

Include state tax and the entity's tax

A federal calculation is only part of the result. The states involved may treat a strategy differently or require separate reporting. Review the owner's residence, business locations, and property locations.

For example, California does not conform to the federal Opportunity Zone gain deferral and exclusion, including the 2025 changes described by the Franchise Tax Board. A federal QOF benefit is not a complete California tax estimate. [12]

Entity structure also matters. A corporate asset sale and later transfer of proceeds to shareholders may involve more than one level of tax. Do not estimate the owner's spendable cash by subtracting only a shareholder capital-gain rate. [1]

Ask for separate lines showing entity tax, owner tax, state tax, transaction costs, debt payoff, and reserves. The goal is to understand actual cash available after the deal, not merely a quoted sale price.

Create a cash and tax calendar

List cash expected at closing, later principal payments, interest, escrow releases, and contingent payments. Keep amounts that are uncertain clearly marked.

Next list tax payments and filing dates supplied by the CPA. Some tax may be due before all sale proceeds arrive, especially when recapture or other current income is involved.

Suppose the household receives $600,000 at closing but must reserve $220,000 for estimated taxes, $80,000 for closing and professional costs, and $100,000 for the next year's living needs. Only $200,000 remains before other obligations.

Those figures are invented, but the exercise is useful. A proposal to invest all $600,000 would ignore money already committed elsewhere. Keep liquidity needs separate from long-term investment goals.

Give each professional a defined assignment

The transaction attorney should explain the legal structure, agreements, liabilities, and closing conditions. The CPA should model basis, gain character, elections, timing, and federal and state tax.

If real estate is being exchanged, the qualified intermediary has a specific exchange role. The investment professional should explain the replacement's economics, costs, risks, and fit with your goals.

Make sure they are reviewing the same version of the deal. A changed allocation, payment schedule, or ownership structure can make an earlier calculation obsolete.

Ask for the unresolved questions in writing. A missing basis record or unclear election should remain visible until resolved. Confidence in the sale process is not evidence that every tax issue has been answered.

Choose the result you need after the sale

Ask each adviser to prepare the same short comparison. Start with the sale as it is currently proposed. Show the cash you would receive, tax due now, future tax, and money left for your next stage of life. Then add the proposed change on a second line. This makes the tradeoff easier to see.

Have the adviser identify the exact dollars that are deferred, excluded, or simply invested after tax. Those terms mean different things. A large new investment is not proof of a large tax benefit. A lower first-year bill can also come with a larger bill later.

Include all fees in both versions. Ask who receives them, when they are paid, and whether you owe them if the business sale falls through. Keep the tax advice separate from the pitch for a particular investment.

Finally, choose a date to update the comparison. A price change, a revised closing date, or a new payment term may alter the result. Make sure the version you approve matches the agreement you are about to sign.

Decide how much income, liquidity, involvement, and risk you want after leaving the business. You may be trading one concentrated asset for another if you invest all proceeds in a single property or private fund.

Compare the ordinary taxable sale with any proposed deferral. Show the tax timing, money committed, new risks, fees, and the cost of maintaining the arrangement.

A plan that defers tax but leaves you short of cash or exposed to a weak borrower may not solve the real problem. The business sale should support your next stage of life, with taxes treated as one important part of the decision.

Frequently asked questions

Can I use a 1031 exchange for the entire business?

Not simply because the business includes real estate. Current Section 1031 applies to qualifying real property. Equipment, inventory, goodwill, and company stock need separate treatment. The real estate portion may be reviewed for its own exchange. [1][3]

Is all business-sale profit capital gain?

No. Inventory, receivables, depreciation recapture, and other items can produce ordinary income. An asset sale requires separate calculations, and even a partnership-interest sale can include an ordinary-income portion. [1]

Does seller financing defer every tax until I am paid?

No. The installment method has exclusions and current-recognition rules. Inventory and depreciation recapture can create sale-year income even when payments arrive later. Interest and eligible installment gain also have different treatment. [4]

Can my company stock qualify for the QSBS exclusion?

Possibly, but the C corporation, original-issuance, asset, business, holding-period, and other tests must be met. The 2025 changes have specific effective dates. Have the stock's actual history reviewed. [7]

Does Section 1045 let me buy real estate with stock gains?

No. It concerns eligible QSBS sold and qualifying replacement QSBS purchased within the prescribed 60-day window. It is not a general stock-to-real-estate exchange rule. [8]

Can an Opportunity Zone fund defer ordinary business income?

Ordinary income is not eligible merely because it came from a business sale. Review eligible capital and qualified Section 1231 gains separately, along with investor, timing, election, and fund requirements. [9][10]

Will the same federal strategy work on my state return?

Not necessarily. State conformity and reporting differ. California's treatment of Opportunity Zone gains is one example. Ask for a state-specific calculation before committing funds based on a federal estimate. [12]

When should I begin planning?

Before the transaction's structure and closing are fixed. Bring the asset list, ownership records, basis schedules, proposed allocation, payment terms, and personal cash needs to your CPA and attorney. Some options cannot be added after a completed sale.

Sources and references

  1. Internal Revenue Service. Sale of a Business. Current IRS educational guidance..Relevant sections: Separate asset gain character, partnership interests, corporate liquidations, and residual price allocation.. Accessed October 7, 2026.
  2. Internal Revenue Service. Instructions for Form 8594: Asset Acquisition Statement. November 2021 instructions, current posted edition when accessed..Relevant sections: Who must file, covered asset transfers, exceptions for qualifying like-kind property, and allocation classes.. Accessed October 7, 2026.
  3. United States Congress; Legal Information Institute. 26 U.S.C. 1031: Exchange of Real Property Held for Productive Use or Investment. Current statutory text.Relevant sections: Subsections (a), (b), and (d): eligibility, timing, cash received, and basis. Accessed October 6, 2026.
  4. Internal Revenue Service. Publication 537: Installment Sales. Current posted Publication 537; additional recapture and pledge passages retained in business3.json..Relevant sections: Gross-profit method, public stock and inventory exclusions, sale-year depreciation recapture, business asset sales, related parties, pledges, and large obligations.. Accessed October 7, 2026.
  5. United States Treasury; Legal Information Institute. 26 CFR 1.1031(k)-1: Treatment of Deferred Exchanges. Current Treasury regulation.Relevant sections: Paragraphs (g)(4) and (g)(6): intermediary agreements and restrictions on proceeds. Accessed October 6, 2026.
  6. Internal Revenue Service. Revenue Ruling 2004-86, Classification of Delaware Statutory Trusts. Foundational ruling, August 16, 2004; actual provisions read October 6, 2026..Relevant sections: Ruling facts, restricted trustee activities, grantor ownership and holdings. Qualification depends on the specified structure and other section 1031 requirements.. Accessed October 6, 2026.
  7. U.S. Congress, published by Cornell Legal Information Institute. 26 U.S.C. §1202: Qualified Small Business Stock. Operative statute including 2025 amendment notes; effective-date passage also retained in business2.json..Relevant sections: Taxpayer and corporate tests, original issuance, business exclusions, acquisition-date holding periods, and 2025 amendments with effective dates.. Accessed October 7, 2026.
  8. U.S. Congress, published by Cornell Legal Information Institute. 26 U.S.C. §1045: Rollover of Qualified Small Business Stock Gain. Current operative statute..Relevant sections: Noncorporate taxpayer, more-than-six-month hold, 60-day replacement period, amount-realized test, and election.. Accessed October 7, 2026.
  9. Internal Revenue Service. Opportunity Zones Frequently Asked Questions. IRS educational FAQs describing original program; post 2026 changes sourced to enacted statute, not older FAQ examples..Relevant sections: Questions 11-12, 22-23, 25-30, 37-39: eligible capital/qualified 1231 gains, equity interest, 180-day starting rules, original-program gain versus appreciation and QOF entity form.. Accessed October 6, 2026.
  10. U.S. Congress, published by Cornell Legal Information Institute. 26 U.S.C. §1400Z-2: Opportunity Zone Investments and Effective-Date Amendments. Current operative text and effective-date notes read on stated access date..Relevant sections: Original-program gain investment and 2026 inclusion, mixed funds, QOF definition, ten-year election; enacted amendment notes for amounts invested after 2026: five-year inclusion, 10% or qualifying rural 30% basis increase, 30-year valuation ceiling.. Accessed October 6, 2026.
  11. Internal Revenue Service. Charitable Remainder Trusts. Current IRS educational guidance..Relevant sections: Irrevocability, carryover basis, partial charitable deduction, taxable distribution tiers, and filings.. Accessed October 7, 2026.
  12. California Franchise Tax Board. Summary of Federal Income Tax Changes: Public Law119-21 §70421. Current operative text and effective-date notes read on stated access date..Relevant sections: Section 70421 California Analysis: California does not conform to QOF gain deferral/exclusion or 2025 amendments.. Accessed October 7, 2026.

Educational information, not an offer or a personal tax, legal, or investment recommendation. Examples are hypothetical and omit stated adjustments. Tax treatment depends on your facts and current law. Review your transaction with your CPA, attorney, and qualified intermediary. Real estate investments can lose value and may be illiquid.

Opening your workspace…