Text or WhatsApp (808) 600-9260

Tax Planning for Selling a Business

A business sale may create recognized gain, generally measured as the amount realized minus adjusted basis. Whether the transaction is structured as an asset sale, stock sale, or stock purchase with a § 338 election may affect how gain is measured and allocated. The result depends on the transaction’s facts and any applicable statutory provision (IRC § 1001).

This page is general research, not tax, legal, or investment advice. Do not take any action based on this page without first consulting a qualified CPA or tax attorney who knows your facts.

This page is general research, not tax, legal, or investment advice. Consult a qualified CPA or tax attorney who knows your facts before acting.

Key takeaways

  • Gain measurement starts with § 1001. Gain is the excess of the amount realized over adjusted basis. Loss is the excess of adjusted basis over the amount realized (IRC § 1001(a)).
  • Recognition is the default. Except as otherwise provided in the subtitle, the entire gain or loss on a sale or exchange is recognized (IRC § 1001(c)). Any planning that may reduce or defer tax must rest on a specific statutory exception or timing rule.
  • Asset acquisitions follow an allocation rule. In an “applicable asset acquisition,” consideration is allocated among acquired assets in the manner described in § 338(b)(5). That allocation determines both the buyer’s basis and the seller’s gain or loss (IRC § 1060(a)).
  • Written allocation agreements carry weight. A written agreement allocating consideration or stating fair market values binds both parties unless the Secretary determines it is inappropriate (IRC § 1060(a)).
  • Section 338 is not automatic. Its deemed asset sale treatment applies to a qualified stock purchase with a § 338 election, or with a deemed election under subsection (e) (IRC § 338(a)).
  • Installment payments raise timing questions. Section 1001 does not prevent the gain portion of an installment payment from being taxed in the year the payment is received (IRC § 1001(d)). That provision alone does not establish eligibility for installment reporting.
  • No single structure is universally preferable. The better structure, if any, depends on the parties, assets, consideration, and other facts.

Scope of this guide

This guide gives an overview of the federal statutory framework that applies when a business owner or business entity disposes of a business. It focuses on three Code sections:

  1. IRC § 1001, which defines gain and loss, defines amount realized, sets the general recognition rule, and addresses installment payments.
  2. IRC § 1060, which governs allocation of consideration in applicable asset acquisitions and imposes related information reporting.
  3. IRC § 338, which, when its conditions are met, treats certain stock purchases as deemed purchases and sales of the target corporation’s assets.

Tax rates, holding period rules, the tax character of particular assets, reporting forms, and filing deadlines are outside this guide’s scope. A transaction involving any of those topics needs analysis by a qualified professional who can review the current authorities.

How gain or loss is measured

The basic formula

Section 1001(a) sets out the arithmetic. Gain from a sale or other disposition of property is the excess of the amount realized over adjusted basis. Loss is the excess of adjusted basis over the amount realized (IRC § 1001(a)).

Every sale of a business therefore requires two figures:

  • Amount realized, which is what the seller receives.
  • Adjusted basis, which is the seller’s tax investment in what is sold, as adjusted under the Code.

Neither figure is always easy to determine in a business sale. A business is often a bundle of many assets, each with its own basis. Consideration may also come in several forms.

What counts as amount realized

Under § 1001(b), amount realized generally includes money received plus the fair market value of property, other than money, received. The statute also contains adjustments for certain real property taxes (IRC § 1001(b)).

In practice, consideration in a business sale may include cash at closing, property such as buyer equity, deferred payments, or other arrangements. Each element raises its own questions about valuation and timing. Section 338 addresses regulatory adjustments for liabilities and other relevant items. How liabilities enter amount realized in every case requires review of the full authorities by a professional.

Adjusted basis

Section 1001 uses adjusted basis as an input but does not itself set out how basis is determined or adjusted. For a business sale, basis can differ greatly between the assets inside a business and an owner’s interest in the business entity. That difference is one reason structure matters.

Recognition as the default rule

Section 1001(c) provides that, except as otherwise provided in the subtitle, the entire gain or loss determined under § 1001 on a sale or exchange of property is recognized (IRC § 1001(c)).

This rule frames business sale planning. The starting assumption is full recognition. Any approach that may reduce or defer recognized gain depends on identifying a specific statutory provision that changes the default and meeting every requirement of that provision. A professional might consider nonrecognition provisions or timing rules elsewhere in the Code. Any approach depends on the requirements of the applicable provision (IRC § 1001(c)).

Transaction structure: asset sales, stock sales, and § 338 elections

Business sales are often described as either asset sales or stock sales. That shorthand is helpful but incomplete. Not every disposition fits neatly into one category, and the statutes describe the categories in more technical terms.

Structure, in general termsWhat the statute addressesThreshold question for a professional
Transfer of assets constituting a trade or businessAllocation of consideration and information reporting for an “applicable asset acquisition” (IRC § 1060(a) to (c))Is the buyer’s basis determined wholly by reference to the consideration paid?
Purchase of corporate stock without a § 338 electionSections 1001, 1060, and 338 do not prescribe a special allocation rule for this caseHow is the seller’s gain on the stock measured under § 1001?
Qualified stock purchase with a § 338 election or deemed electionTarget is treated as selling its assets at fair market value and as a new corporation buying them (IRC § 338(a))Is there a qualified stock purchase, and has an election been made or deemed made?

The table compares what the statutes address. It does not rank the structures. Whether one structure produces a better overall result depends on the seller’s and buyer’s tax profiles, the mix of assets, the entity types involved, and other facts. The statutes cited here do not establish that any structure is universally preferable.

Asset acquisitions and § 1060

What is an applicable asset acquisition

Section 1060(c) defines an applicable asset acquisition as a direct or indirect transfer of assets that constitute a trade or business, where the transferee’s basis in those assets is determined wholly by reference to the consideration paid (IRC § 1060(c)).

Two parts of the definition deserve attention:

  • “Constituting a trade or business.” The rule targets transfers of a business, not isolated asset sales. Whether a group of assets constitutes a trade or business is a factual question.
  • “Determined wholly by reference to consideration paid.” The definition turns on how the buyer’s basis is computed. If the buyer’s basis is determined in some other way, the transfer may fall outside the definition.

Section 1060(c) also provides that a transfer is not excluded from the definition solely because § 1031 applies to part of the assets transferred (IRC § 1060(c)).

The allocation rule

For an applicable asset acquisition, § 1060(a) requires that consideration be allocated among the acquired assets in the manner described in § 338(b)(5). The allocation applies for two purposes:

  1. Determining the transferee’s basis in each acquired asset.
  2. Determining the transferor’s gain or loss on each asset.

(IRC § 1060(a))

Because one allocation drives both sides, the buyer and seller may have different interests in how consideration is spread among assets. Section 1060(a) cross-references § 338(b)(5) for the method. The detailed allocation mechanics require review of the applicable regulations.

Written allocation agreements

Section 1060(a) provides that if the transferee and transferor agree in writing on the allocation of any consideration, or on the fair market value of any asset, the agreement binds both parties. The exception is where the Secretary determines that the allocation or value is not appropriate (IRC § 1060(a)).

Several points follow from that text:

  • An allocation schedule in a purchase agreement is not merely a commercial term. It may bind both parties for tax purposes.
  • The binding effect runs to the parties. It does not bind the government, which retains the ability to determine that an allocation is inappropriate.

For these reasons, allocation language is often an area where sellers involve tax counsel early in negotiations.

Information reporting

Section 1060(b) requires the transferor and transferee in an applicable asset acquisition to furnish information to the Secretary, as provided by regulations. The required information includes the amount of consideration allocated to § 197 intangibles and any modification of that amount (IRC § 1060(b)).

A seller should review current reporting requirements with a tax professional (IRC § 1060(b)).

Stock purchases and § 338

The deemed asset sale

Section 338(a) provides that, for a qualified stock purchase where a § 338 election is made, or where an election is deemed made under subsection (e), the target corporation is treated in two ways:

  1. As having sold all of its assets at fair market value at the close of the acquisition date.
  2. As a new corporation that purchased all of those assets as of the beginning of the following day.

(IRC § 338(a))

The effect is that a transaction that is a stock purchase in legal form may be treated, for certain federal tax purposes, as if the target sold and bought back its assets. This can change the target’s basis in its assets and can produce gain or loss at the target level.

Conditions, not defaults

The § 338 treatment is tied to two conditions:

  • There must be a qualified stock purchase.
  • There must be a § 338 election, or a deemed election under subsection (e).

A stock sale that does not meet these conditions is not covered by § 338(a). A seller or buyer considering a § 338 approach needs a professional who can review the complete statute and regulations.

The deemed purchase amount

Section 338(b), paragraphs (1) through (5), sets rules for determining the amount the new target is treated as having paid for its assets and for allocating that amount among target assets. That amount includes specified stock basis components and is adjusted under regulations for liabilities and other relevant items (IRC § 338(b)(1) through (5)).

Section 338(b)(5) is also the allocation method that § 1060(a) cross-references for applicable asset acquisitions. Asset purchases and § 338 deemed asset purchases therefore share an allocation framework, even though they arise from different transaction forms.

Installment payments and § 1001(d)

Many business sales include payments after closing. Section 1001(d) provides that, for property sold under a contract providing for installment payments, § 1001 does not prevent taxation in the year received of the part of an installment payment that represents gain or profit (IRC § 1001(d)).

Section 1001(d) provides that, for property sold under a contract providing for installment payments, § 1001 does not prevent taxation in the year received of the part of an installment payment that represents gain or profit (IRC § 1001(d)). Eligibility for installment reporting depends on applicable statutory requirements.

A seller who receives deferred payments may be able to defer recognition of part of the gain to the years in which payments arrive, if the applicable statutory requirements are met. Whether those requirements are met, and whether particular assets or items are eligible, requires analysis beyond this guide. Including an installment contract in a deal does not by itself make the entire sale eligible for installment reporting.

Hypothetical example

Hypothetical example. The figures below are illustrative only and do not reflect any real transaction. The example applies §§ 1001 and 1060. It does not compute tax.

Facts assumed. Seller A owns a business and transfers the business assets to Buyer B. Assume the transfer is an applicable asset acquisition under § 1060(c). Buyer B pays $1,000,000 in cash and transfers property with a fair market value of $200,000. Assume no liabilities, no selling expenses, and no real property tax adjustments.

Step 1: Amount realized. Under § 1001(b), amount realized includes money received plus the fair market value of property received.

  • Cash: $1,000,000
  • Fair market value of property received: $200,000
  • Amount realized: $1,200,000

Step 2: Allocation. Seller A and Buyer B sign a written agreement allocating consideration among three asset groups. Assume, for the illustration, that the allocation follows the manner described in § 338(b)(5) and that the Secretary does not determine it inappropriate.

Asset group (hypothetical)Allocated considerationAssumed adjusted basisGain or (loss) under § 1001(a)
Equipment$300,000$350,000($50,000)
Inventory$200,000$150,000$50,000
Intangible assets$700,000$200,000$500,000
Total$1,200,000$700,000$500,000 net

Step 3: Observations.

  • The net figure of $500,000 equals the total amount realized minus total adjusted basis. The asset-by-asset view shows a loss on one group and gains on the others. That breakdown may matter because different assets can be treated differently under provisions beyond this guide.
  • Under § 1060(a), the same allocation sets Buyer B’s basis in each asset group. A shift of consideration from one group to another changes both Seller A’s gain by group and Buyer B’s basis by group.
  • Under § 1060(a), the written agreement binds both parties unless the Secretary determines it is inappropriate.
  • If part of the intangible assets were § 197 intangibles, § 1060(b) reporting would include the consideration allocated to them.
  • Under § 1001(c), the example assumes full recognition. If a statutory exception applied, the result could differ.

Variation. Suppose instead that $400,000 of the cash were payable under an installment contract in later years. Section 1001(d) would not prevent the gain portion of each later payment from being taxed in the year received. Whether Seller A could report any part of the gain on the installment method would depend on other applicable rules.

Planning considerations that may reduce or defer tax

The statutes point to several areas where careful structuring and documentation may affect the amount or timing of recognized gain. None produces a guaranteed result. Each depends on the facts and on meeting statutory requirements.

Structure selection. Whether the transaction is an applicable asset acquisition, a stock sale without a § 338 election, or a qualified stock purchase with an election may change whose gain is recognized and how basis carries forward. The parties’ interests may conflict, and the analysis is fact-specific.

Allocation of consideration. Because § 1060(a) uses one allocation to set both the seller’s gain and the buyer’s basis, allocation is a negotiated term with tax consequences on both sides. The written agreement rule makes the timing of that negotiation important.

Timing of receipt. Deferred consideration may allow gain to be recognized as payments are received, if the statutory requirements for installment reporting are met. Section 1001(d) states that § 1001 does not prevent that approach but does not establish eligibility.

Partial like-kind treatment. Section 1060(c) contemplates that § 1031 may apply to part of the assets in an applicable asset acquisition. Whether any assets qualify, and what requirements apply, needs separate analysis.

Statutory exceptions to recognition. Section 1001(c) recognizes all gain or loss “except as otherwise provided” in the subtitle. Identifying any applicable exception and meeting each requirement is central to any approach that may reduce or defer tax.

Documentation and process considerations

Several areas may make records and agreements relevant later:

  • Basis records. Because gain depends on adjusted basis, records that support basis for each asset or ownership interest are central to the computation.
  • Valuation support. Amount realized includes the fair market value of property received, and § 338(a) uses fair market value for the deemed sale. Valuation support may be relevant in both settings.
  • Allocation schedules. Written allocations bind the parties under § 1060(a). Final schedules and later modifications may be relevant, particularly given § 1060(b) reporting of modifications affecting § 197 intangibles.
  • Election records. If a § 338 election is part of the transaction, evidence that the election was made, or that a deemed election applies, will be relevant. The election procedure should be reviewed with a professional.
  • Payment terms. Contracts with deferred payments may affect timing under § 1001(d) and other provisions.

Common misconceptions

“Every business sale is either an asset sale or a stock sale.” The statutes use more precise categories. A § 338 transaction is a stock purchase in form that is treated as an asset sale and purchase for certain purposes. Other transactions may not fit either label cleanly.

“A stock sale always triggers § 338 treatment.” Section 338(a) ties its treatment to a qualified stock purchase and an election or deemed election. It does not apply automatically to every stock sale.

“The allocation in the contract is only a business term.” Under § 1060(a), a written allocation binds both parties unless the Secretary determines it is inappropriate.

“Signing an installment contract makes the whole sale eligible for installment reporting.” Section 1001(d) states only that § 1001 does not prevent taxation of installment gain in the year received. Eligibility depends on other rules.

“One structure is always better for sellers.” The statutes do not establish a universal preference. Outcomes depend on facts.

Questions to take to a CPA or tax attorney

  1. Based on the facts of this transaction, is it likely to be an applicable asset acquisition under § 1060(c), a stock sale outside § 338, or a qualified stock purchase that could support a § 338 election?
  2. What is the adjusted basis of each asset being transferred, and what records support those figures?
  3. What forms of consideration are involved, and how would the fair market value of any non-cash property be determined for purposes of § 1001(b)?
  4. How would liabilities assumed or taken subject to by the buyer affect the computation?
  5. How does the allocation schedule interact with the § 338(b)(5) method referenced in § 1060(a), and what are the consequences of agreeing to it in writing?
  6. What reporting obligations under § 1060(b) and the regulations apply, including for § 197 intangibles?
  7. If a § 338 election is considered, what requirements and consequences should each party evaluate?
  8. If part of the price is deferred, which portions, if any, may be eligible for installment reporting, and what rules beyond § 1001(d) apply?
  9. Does § 1031 apply to any part of the assets, and if so, what requirements must be met?
  10. Are there statutory exceptions to the § 1001(c) recognition rule that may reduce or defer recognized gain in this transaction, and what would be needed to qualify?
  11. What state, local, or non-income tax consequences should be evaluated alongside the federal analysis?
  12. Which Treasury regulations and IRS guidance govern these questions as of the expected closing date?

This page is general research, not tax, legal, or investment advice. Do not take any action based on this page without first consulting a qualified CPA or tax attorney who knows your facts.

Sources

This section cites statutory text from Cornell Legal Information Institute, accessed November 14, 2026. Historical amendment and effective-date notes are not treated here as current planning figures.

  1. IRC § 1001(a) and (b), computation of gain or loss and amount realized. https://www.law.cornell.edu/uscode/text/26/1001
  2. IRC § 1001(c), recognition of gain or loss. https://www.law.cornell.edu/uscode/text/26/1001
  3. IRC § 1001(d), installment sales. https://www.law.cornell.edu/uscode/text/26/1001
  4. IRC § 1060(a), allocation of consideration and binding effect of written agreements. https://www.law.cornell.edu/uscode/text/26/1060
  5. IRC § 1060(b), information reporting, including § 197 intangibles. https://www.law.cornell.edu/uscode/text/26/1060
  6. IRC § 1060(c), definition of applicable asset acquisition and partial § 1031 transfers. https://www.law.cornell.edu/uscode/text/26/1060
  7. IRC § 338(a), deemed sale and purchase of target assets for a qualified stock purchase with an election or deemed election. https://www.law.cornell.edu/uscode/text/26/338
  8. IRC § 338(b)(1) through (5), determination and allocation of the deemed purchase amount. https://www.law.cornell.edu/uscode/text/26/338

In this section

18 pages

GuideAsset Sale vs Stock Sale: Tax DifferencesLearn how asset sales and stock sales differ under IRC § 1001, § 1060 allocation rules, and § 338 elections, including binding allocations and reporting.GuidePurchase Price Allocation and Form 8594Learn how the residual method allocates a business purchase price among asset classes, when Form 8594 generally applies, and how later changes are reported.GuideEarnouts and How They Are TaxedLearn how IRC §§ 453 and 483 apply to earnouts, including installment reporting, contingent payments, recapture income, and unstated interest.GuideQSBS Requirements: Active Business, Gross Assets and Holding PeriodLearn the QSBS requirements under IRC § 1202 as of 2026: active business tests, the $75,000,000 gross assets ceiling, holding periods and gain limits.GuideQSBS Stacking and GiftingLearn how Section 1202 treats gifted QSBS, how holding periods carry over, and how per-issuer gain limits apply to stacking, including post-2026 changes.GuideRolling Equity in a Private Equity DealLearn how IRC §§ 351, 721, and 1001 may apply when a seller rolls equity in a private equity deal, including key exceptions and questions for counsel.GuideSelling to an ESOP: Section 1042Learn how Section 1042 may allow a seller of stock to an ESOP to defer capital gain, with the 30 percent test, replacement property, and S corporation rules.GuideSelling a Business to Family MembersLearn how IRC Section 267 related-party rules affect selling a business to family members, including loss disallowance, family definitions, and resale gain.GuidePre-Sale Estate Planning for OwnersLearn how the $15,000,000 basic exclusion for decedents dying after 2025, portability, and IRC § 1014 basis rules relate to owners planning a business sale.GuideCharitable Strategies Before a SaleHow IRC § 170 deduction limits, timing rules, and substantiation apply to charitable gifts before a business sale, including changes after 2025.GuideTax on Selling an S CorporationLearn how IRC § 1361 eligibility rules, including the 100-shareholder limit, trust rules, and single class of stock rule, can affect an S corporation sale.GuideTax on Selling a Partnership or LLC InterestExplains how selling a partnership or LLC interest is taxed under IRS Publication 541 (Dec.GuideMoving States Before a Business SaleLearn what IRS Publication 17 (2025) says about federal return changes and state tax, and what to ask a CPA before moving states ahead of a business sale.GuideGoodwill, Personal Goodwill and Sale TaxesLearn how IRC Sections 1001 and 1221 apply to goodwill and personal goodwill in a business sale, including gain, recognition, and capital asset rules.InfographicQSBS Eligibility Decision TreeLearn the QSBS eligibility tests under IRC Section 1202, with asset caps, active business rules, and holding periods for stock acquired after July 4, 2025.InfographicAsset Sale vs Stock Sale Flow of FundsLearn how IRC Sections 1001, 1060, and 338 shape gain, basis, and the allocation of consideration in asset sales versus qualified stock purchases.GuideWorking With an Exit Planning Tax Advisor: What They Do and What to AskSee what an exit planning tax advisor reviews in a business sale, including IRC § 1001 gain, § 1060 allocation, § 338 elections, and questions to ask.Pillar guideQualified Small Business Stock (Section 1202) ExplainedLearn how Section 1202 may apply to qualified small business stock, including exclusion percentages, holding periods, issuer limits, and eligibility requirements.