Tax-Gain Harvesting: When Realizing a Gain Can Change the Tax Result

    The direct answer

    Sometimes an investor intentionally sells an appreciated investment before needing to.

    The reason is usually tax timing: the investor may have unused capacity in the regular 0% or 15% long-term capital-gain bands, capital-loss carryovers that can absorb gain, or another reason to recognize the gain in the current year rather than a future one.

    If the investment is then repurchased, the recognized gain remains recognized. The repurchased property generally receives a new cost basis and begins a new holding period.

    Unlike tax-loss harvesting, IRC §1091 does not disallow a recognized gain because the investment was repurchased. Section 1091 is a loss rule.

    Why intentionally recognize income?

    Usually, tax planning is described as delaying taxable income.

    Gain harvesting tests the opposite question:

    Would recognizing some gain now produce a better tax result than leaving all of it for later?

    One common reason is available capacity in the preferential long-term capital-gain rate structure.

    For 2026, regular net long-term capital gain uses the 0%, 15%, and 20% framework described in What Are the Capital Gains Tax Rates?

    But those rates are applied through taxable-income stacking.

    The relevant question is therefore not whether the taxpayer is casually described as being “in the 0% capital-gain bracket.”

    It is how much gain, if any, can actually fit within the remaining preferential-rate capacity after the rest of the return is considered.

    Example: one gain can cross two rate bands

    Assume a single taxpayer has:

    • $40,000 of taxable income other than net capital gain and qualified dividends;
    • no qualified dividends;
    • no other capital gains or losses; and
    • $15,000 of regular long-term capital gain intentionally realized in 2026.

    The 2026 single 0% ceiling is $49,450.

    Approximately $9,450 of the gain fits within the remaining 0% band.

    The remaining $5,550 moves into the 15% band.

    The entire $15,000 gain is still recognized. It simply does not all receive the same federal rate.

    A 0% gain is still income

    Calling a harvested gain “tax-free” can obscure the analysis.

    A portion of regular long-term gain can be subject to a 0% federal capital-gain rate.

    That does not mean the gain disappears from the return.

    Recognizing additional income can affect other tax calculations and income-sensitive provisions, including NIIT, deductions, credits, surcharges, and state tax.

    So the planning question should not stop at:

    “Can I realize this gain at 0%?”

    It should continue:

    “What else changes if I recognize this gain?”

    A basis reset requires a genuine taxable realization

    The potential basis reset in tax-gain harvesting comes from actually recognizing a taxable disposition.

    If appreciated investment property is sold in a genuine taxable sale, the gain is recognized under the normal tax rules. If the investor later purchases the investment again, the new property generally begins with its own cost basis and a new holding period.

    The basis does not increase merely because the investment's market value increased.

    And an economically similar transaction that does not produce a recognized taxable sale should not be described as creating the same basis reset.

    This is one reason tax-gain harvesting differs from simply continuing to hold an appreciated position.

    IRC §1091 is a loss-disallowance rule. Recognizing a genuine gain and then repurchasing property is not turned into a wash sale merely because the repurchase occurs within 30 days.

    The repurchase does not retroactively erase the recognized gain.

    The new holding period matters too

    A basis reset comes with another consequence.

    The repurchased position generally begins a new holding period.

    That can matter if the shares may need to be sold again soon.

    An investor can recognize a long-term gain today, repurchase the investment, and later discover that a second disposition occurs before the new shares have been held long enough for ordinary long-term treatment.

    The basis benefit should therefore not be evaluated without the holding-period consequence.

    Capital-loss carryovers can change the strategy

    Suppose the taxpayer already has substantial capital-loss carryovers.

    A newly realized gain may be absorbed by those losses before the gain reaches the preferential rate calculation in the way the taxpayer expected.

    That can still be useful, but it is a different strategy.

    The relevant planning asset may be the loss carryover rather than unused 0% rate capacity.

    See Capital Losses and Carryovers for the mechanics.

    NIIT can change the federal result

    The regular long-term capital-gain rate is not the entire federal analysis.

    IRC §1411 can impose the 3.8% Net Investment Income Tax where its requirements are satisfied.

    NIIT has its own calculation and thresholds.

    A taxpayer therefore should not assume that gain falling into a favorable §1(h) band automatically has no additional federal tax consequence.

    See Net Investment Income Tax where relevant.

    State tax can make a 0% federal gain taxable

    A 0% federal capital-gain rate does not imply a 0% state rate.

    States can use different capital-gain rules.

    That means a gain intentionally realized to use federal 0% capacity may still create a current state tax cost.

    For a material transaction, the federal and state consequences should be modeled separately.

    Future rates and future income are uncertain

    Gain harvesting moves recognition into the present.

    Its value therefore depends partly on facts no one knows with certainty:

    • future taxable income;
    • future capital-gain rates;
    • future state residence;
    • future investment performance;
    • future realization decisions; and
    • future law.

    That uncertainty is not a defect in the analysis. It is part of the decision.

    A projection can show what happens under stated assumptions. It cannot turn those assumptions into facts.

    Investment considerations still matter

    A tax-motivated sale is still an investment transaction.

    Execution costs, market movement, concentration, portfolio objectives, and the consequences of restarting the holding period can matter.

    Tax-gain harvesting should therefore not be treated as categorically beneficial simply because a favorable federal rate is available.

    The tax calculation answers one part of the decision.

    What should be documented?

    A useful gain-harvesting analysis can include:

    • the tax lot being sold;
    • adjusted basis;
    • holding period;
    • projected taxable income;
    • qualified dividends;
    • other capital gains and losses;
    • capital-loss carryovers;
    • NIIT exposure;
    • state tax assumptions;
    • sale confirmation; and
    • repurchase confirmation, where applicable.

    A broker can calculate the gain on the transaction.

    It generally cannot determine how much unused 0% or 15% capacity exists on the taxpayer's complete return.

    Sources and authority

    Primary authority

    • IRC §1(h) — Preferential capital-gain rate structure
    • IRC §1001 — Recognition and computation of gain
    • IRC §1012 — Basis of repurchased property
    • IRC §1222 — Long-term capital-gain character
    • IRC §§1211 and 1212 — Capital losses and carryovers
    • IRC §1091 — Wash-sale loss-disallowance rule
    • IRC §1411 — Net Investment Income Tax
    • Treas. Reg. §1.1012-1
    • Revenue Procedure 2025-32 — 2026 inflation-adjusted capital-gain thresholds

    Operational / explanatory support

    • Schedule D (Form 1040)
    • Applicable capital-gain tax worksheets
    • IRS Topic 409

    Where this becomes a professional question

    Gain-harvesting analysis becomes more consequential with six-figure gains, significant capital-loss carryovers or qualified dividends, NIIT exposure, multi-state issues, or other income-sensitive tax provisions. In those cases, the useful analysis is a whole-return projection rather than the gain viewed in isolation.

    Call PRISM — (917) 724-3965

    The Investment Tax Atlas explains general rules. It does not create a professional engagement or determine a filing position for a specific taxpayer.

    PRISM uses Google Analytics to measure how the site is used. Until you allow it, no analytics or advertising cookies are set and Google receives only an anonymous, cookieless signal. Nothing you type into a form is ever sent to Google. See our privacy policy.