Tax-Loss Harvesting: What the Tax Rules Actually Allow

    The direct answer

    Tax-loss harvesting means intentionally selling an investment at a loss so that an otherwise deductible loss enters the tax calculation.

    There is no special “tax-loss harvesting deduction” or election. The strategy uses the ordinary realization, capital-loss, wash-sale, and related-party rules.

    Whether harvesting actually helps depends on what the loss offsets, existing carryovers, the replacement investment, and whether another rule defers or disallows the loss.

    An unrealized loss does not offset a realized gain

    Suppose one investment has risen by $40,000 while another is down $20,000.

    The $20,000 decline does not ordinarily offset the $40,000 realized gain merely because both positions appear in the same portfolio.

    The loss generally needs a recognition event.

    Tax-loss harvesting deliberately creates that event by selling the loss position.

    Once recognized and otherwise deductible, the loss enters the capital-gain and loss netting process explained in Capital Losses and Carryovers.

    The tax value depends on what the loss actually offsets

    A harvested loss does not have one fixed tax value.

    A loss used against a capital gain can have a different current-year effect from a loss that contributes to an overall net capital loss subject to the $3,000 annual deduction limit against other income.

    Existing capital-loss carryovers can also reduce the incremental value of harvesting another loss today.

    That is why “I harvested $25,000 of losses” does not answer the more important question:

    What did those losses change on the return?

    The tax projection needs to follow the loss through the actual netting rules.

    Tax-loss harvesting does not create a free deduction

    The investor also gave up an investment position.

    If the position is immediately replaced with substantially identical stock or securities and §1091 applies, the loss can be disallowed currently.

    In an ordinary taxable-account wash sale, the disallowed loss generally moves into replacement basis rather than producing the intended current deduction.

    So a strategy designed to realize a loss can fail at the exact point where the investor tries to preserve identical market exposure.

    See Wash Sales for the full wash-sale and related-party analysis.

    A replacement investment needs tax analysis and investment analysis

    A replacement security does not become safe merely because its ticker is different.

    The federal wash-sale rule asks whether the replacement is substantially identical where §1091 applies.

    For closely related ETFs and other instruments, there is no universal bright-line safe list.

    That creates a real planning tension.

    The replacement should be sufficiently distinct for the intended tax treatment while still fitting the investor's actual investment objective.

    Tax treatment should not be evaluated as though investment risk disappeared during the process.

    Options, straddles, and similar positions can introduce separate loss rules

    Wash-sale analysis is not always the end of the loss-deferral inquiry.

    Options, straddles, offsetting positions, and certain other investment structures can be subject to separate rules that defer, limit, or change the character of a loss even when the ordinary §1091 analysis does not resolve the issue.

    That means a transaction should not be treated as producing an immediately usable harvested loss merely because it avoids an obvious same-security repurchase.

    For portfolios involving derivatives, offsetting positions, or coordinated transactions, the particular instruments and positions need to be analyzed under the rules that apply to them.

    The 30-day window runs in both directions

    A harvesting plan cannot look only at what happens after the sale.

    Section 1091's window includes 30 days before the sale, the sale date, and 30 days after it.

    That means purchases already made can matter.

    So can automatic activity such as dividend reinvestment or purchases in another relevant account.

    A taxpayer planning a loss realization should review the transaction history before the sale as well as intended activity afterward.

    IRAs and related parties can change the result

    The full treatment belongs in Wash Sales, but the planning implication belongs here:

    The portfolio is not always limited to the taxable account where the loss is being harvested.

    A taxpayer-caused purchase of substantially identical stock in an IRA or Roth IRA can create the Rev. Rul. 2008-5 result, where the loss is disallowed without the ordinary taxable-account replacement-basis increase.

    Related-party transactions can invoke different rules.

    And an independent spouse purchase should not be treated as an automatic 30-day wash sale solely because of timing; coordination and transaction form matter.

    A harvesting plan involving spouse, IRA, or controlled-entity activity therefore needs more than a same-account broker check.

    Lot selection can determine whether there is a useful loss to harvest

    If you bought the same stock at several prices, selling “some shares” is not enough to determine the tax result.

    One lot may contain a large loss.

    Another may contain a gain.

    One may be short-term.

    Another may be long-term.

    Specific identification under Specific Identification vs. FIFO can therefore be part of the planning process.

    But the identification needs to satisfy the applicable requirements. Tax-loss harvesting does not create a right to choose a favorable lot retroactively at return preparation.

    Short-term and long-term losses retain their character

    A harvested capital loss enters the normal character and netting rules.

    That means the holding period of the disposed position matters.

    Short-term and long-term losses do not simply merge into an undifferentiated “tax-loss harvesting” bucket.

    If losses survive into future years, the carryover mechanics under §1212 preserve the relevant character.

    Harvesting can defer tax rather than eliminate it

    Suppose an investor sells a position at a deductible loss and replaces it with a sufficiently different investment at current market value.

    The current loss may reduce taxable capital gain or contribute to a carryforward.

    But the replacement asset begins with its own basis under the applicable rules. If it later appreciates and is sold, future gain can arise.

    So it is safer to describe harvesting as a strategy that can change the timing and use of recognized losses than as a guaranteed permanent tax saving.

    Future investment returns, tax rates, realization decisions, and state consequences can all change the ultimate economic result.

    What should be documented?

    A useful harvesting record can include:

    • the sold lot and adjusted basis;
    • sale confirmation;
    • short-term or long-term character;
    • purchases during the relevant wash-sale window;
    • replacement-security details;
    • IRA or other account activity where relevant;
    • prior capital-loss carryovers; and
    • the tax projection showing how the loss is expected to be used.

    The broker's tax-loss dashboard can help identify candidates.

    It cannot determine the taxpayer's complete tax result without the rest of the return and relevant outside-account facts.

    Sources and authority

    Primary authority

    • IRC §1001 — Gain or loss realization
    • IRC §1011 — Adjusted basis
    • IRC §1012 — Basis
    • IRC §§1211 and 1212 — Capital-loss limitations and carryovers
    • IRC §1222 — Capital-gain and loss character
    • IRC §1091 — Wash sales
    • IRC §267 — Related-party loss rules
    • IRC §1092 — Straddles
    • Treas. Reg. §1.1091-1
    • Treas. Reg. §1.1212-1

    Operational / explanatory support

    • Form 1099-B
    • Form 8949
    • Schedule D
    • IRS Publication 550

    Where this becomes a professional question

    Tax-loss harvesting becomes more consequential when losses are large, several accounts or entities hold overlapping investments, substantial carryovers already exist, concentrated positions limit replacement choices, derivatives are involved, or federal and state consequences point in different directions.

    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.