Educational content only — not investment adviceAdvertiser disclosure
tax tipsfoundation

Tax-Loss Harvesting

Tax-loss harvesting is the deliberate sale of an investment at a loss to create a realized capital loss that can offset taxable capital gains and, subject to federal limits, other income. The strategy can improve tax timing, but wash-sale rules, trading costs, replacement exposure and future taxes can reduce its value.

By ROIStreet EditorialReviewed by ROIStreet PublisherLast reviewed: 2026-08-31Editorial process15 min read✓ Fact-checked

> Definition > > Tax-loss harvesting is the deliberate sale of an investment for less than its adjusted basis to realize a capital loss for tax purposes. The loss can generally offset capital gains and, if losses still exceed gains, may offset a limited amount of other income, with unused losses carried forward under federal rules. Harvesting changes the timing and use of tax losses; it does not erase the underlying investment loss or guarantee a lower lifetime tax bill.

Expanded explanation

Tax-loss harvesting is easy to describe and easy to oversell.

The basic transaction is simple:

  1. an investment is worth less than its adjusted basis
  2. the investment is sold
  3. the sale creates a realized capital loss
  4. that loss enters the federal capital-gain-and-loss netting process
  5. the portfolio is either left with cash or moved into a replacement investment

The tax step is only half the decision.

The portfolio still needs an investment after the sale.

That replacement can introduce new risk, create tracking error, trigger a wash sale or change the portfolio's intended exposure.

A good harvest therefore requires both tax logic and portfolio logic.

How tax-loss harvesting works

Assume a taxable ETF position has:

  • adjusted basis: $30,000
  • current market value: $24,000

Selling the position realizes:

$24,000 − $30,000 = -$6,000

The investor now has a $6,000 realized capital loss.

Assume the same tax year also contains:

$5,000 of net capital gains

The harvested loss can offset those gains.

Remaining net capital loss:

$1,000

Under the general federal individual rules, that remaining $1,000 can potentially reduce other income because it is below the annual net capital-loss deduction limit.[1][2]

The investor did not earn $6,000 by harvesting.

The portfolio already lost $6,000 relative to basis.

The harvest simply converted an unrealized loss into a realized tax attribute.

The $3,000 rule is not the harvesting limit

One of the most persistent misconceptions is that only $3,000 of investment losses can be useful in a year.

That is wrong.

Capital losses first offset capital gains under the federal netting rules.[1][2][3]

Suppose an investor realizes:

  • capital gains: $80,000
  • harvested capital losses: $60,000

The losses can reduce the net capital gain to:

$20,000

The $3,000 limit does not stop $60,000 of losses from offsetting $60,000 of gains.

The general $3,000 limit for individuals — $1,500 for married taxpayers filing separately — applies to remaining net capital loss deducted against other income after capital gains and losses have been netted.[1][2]

That distinction determines whether a harvest has immediate value.

Unused harvested losses can carry forward

If realized losses exceed gains by more than the annual deduction allowed against other income, unused loss generally carries into future years.[1][2][3]

Example:

  • net capital loss after all gains are offset: $13,000
  • current-year deduction against other income: $3,000
  • remaining carryforward: $10,000

That $10,000 can enter later-year capital-gain-and-loss calculations.

A carryforward can be valuable.

It can also reduce the value of harvesting still more losses today if the investor already has more loss carryforwards than are likely to be used for years.

The size of the red number is not enough.

Expected usability matters.

Tax-loss harvesting often defers tax rather than eliminates it

Harvesting is frequently presented as "saving taxes."

That can be true in the current year.

Over a lifetime, the economics are more complicated.

Suppose an investor sells an ETF for:

$80,000

with basis of:

$100,000

Harvested loss:

$20,000

A replacement investment is purchased for $80,000.

If that replacement later rises to $120,000 and is sold, its gain is:

$120,000 − $80,000 = $40,000

Had the original position somehow been held until it recovered from $80,000 to $120,000, its gain relative to the original $100,000 basis would have been:

$20,000

The harvest created a $20,000 tax loss earlier, but the replacement begins with the lower $80,000 basis.

Conceptually, part of the benefit is a shift in tax timing.

That timing can still be economically valuable because money not paid in tax today can remain invested.

The ultimate value depends on what happens later.

When harvesting can create more than simple deferral

Tax deferral is not always the entire story.

The long-term result can differ when:

  • the harvested loss offsets a higher-taxed short-term gain
  • a future replacement gain qualifies for lower long-term capital-gain treatment
  • the replacement is later donated to charity rather than sold
  • the investor dies while holding appreciated replacement property and applicable basis rules change the embedded gain
  • future tax rates differ
  • a loss carryforward offsets future gains that otherwise would have been taxed
  • state tax treatment differs across years or residences

None of those outcomes is guaranteed.

The point is narrower:

the value of tax-loss harvesting depends on the full tax path, not just the deduction created on the harvest date.

The wash-sale rule is the central implementation constraint

The federal wash-sale rule can disallow a loss when stock or securities are sold at a loss and substantially identical stock or securities are acquired within the statutory window.

IRS Publication 550 and Investor.gov describe the window as:

30 days before the sale through 30 days after the sale.[2][4]

That creates a 61-day period centered on the sale date.

A common mistake is to think only purchases after the sale matter.

Purchases during the prior 30 days can matter too.

This becomes especially important for:

  • automatic dividend reinvestment
  • recurring investment plans
  • employee stock purchases
  • purchases in another brokerage account
  • purchases by a spouse
  • replacement purchases in an IRA

A loss sale cannot be evaluated in isolation from surrounding transactions.

"Different ticker" is not the legal test

Investors sometimes assume that buying a security with a different ticker symbol automatically avoids a wash sale.

The statute and IRS guidance use the phrase:

substantially identical stock or securities.[2][4]

That standard is not reduced to ticker symbols.

Two securities can have different tickers and still require analysis.

Conversely, two funds covering the same broad market can have meaningful differences in:

  • index methodology
  • constituent universe
  • weighting
  • sector exposure
  • factor exposure
  • fees
  • duration
  • credit quality
  • tax characteristics

There is no universal IRS list declaring which ETF pairs are or are not substantially identical.

That uncertainty is one reason replacement selection requires judgment rather than a mechanical ticker swap.

Replacement exposure matters even when the wash sale is avoided

Avoiding a wash sale does not prove the replacement investment is economically appropriate.

Suppose a broad U.S. stock ETF is sold at a loss.

A replacement concentrated in technology stocks may be clearly different for tax purposes, but the portfolio has also changed materially.

That can create:

  • sector concentration
  • higher volatility
  • different valuation exposure
  • different dividend characteristics
  • different benchmark tracking
  • different expected return

The tax transaction may succeed while the portfolio decision fails.

The replacement should be evaluated against the exposure that was intentionally held before the harvest.

A practical replacement trade-off

There is often tension between two objectives:

stay economically close enough to preserve the portfolio strategy

and:

stay legally far enough away to avoid a substantially identical replacement

Those objectives are not identical.

A replacement that is too similar can create wash-sale risk.

A replacement that is too different can create unwanted market exposure.

This trade-off is one reason tax-loss harvesting works more naturally in diversified portfolios with several reasonable ways to obtain similar, but not necessarily identical, exposure.

It can be harder with a concentrated single-stock position.

Broker reporting does not capture every wash sale

Brokerage tax reporting is useful.

It is not comprehensive across every account and taxpayer relationship.

IRS instructions require certain broker reporting when covered securities with the same CUSIP are sold and repurchased in the same account.[2][3]

But the taxpayer's wash-sale obligation can be broader than what appears in Box 1g of one Form 1099-B.

Potential blind spots can include:

  • purchases at another brokerage firm
  • purchases in another account at the same firm
  • spouse transactions
  • certain employer-plan or compensation transactions
  • IRA replacement purchases
  • securities that are substantially identical without sharing the same CUSIP

"No wash sale reported by the broker" does not necessarily mean "no wash sale occurred."

IRA replacement purchases can be especially costly

A particularly important trap occurs when a taxable-account loss sale is followed by acquisition of substantially identical stock or securities in an IRA or Roth IRA within the wash-sale period.

IRS Publication 550 includes IRA acquisitions within the wash-sale rule.[2]

The ordinary wash-sale pattern often adds the disallowed loss to replacement-share basis.

An IRA replacement does not provide the same ordinary taxable-account basis recovery.

That can make the disallowed loss economically more damaging.

For investors coordinating taxable and retirement accounts, the wash-sale review should therefore look across the household's trading activity rather than only at the taxable account being harvested.

Harvesting throughout the year vs. only in December

Tax-loss harvesting is often associated with year-end planning.

There is no general rule requiring investors to wait until December.

Loss opportunities can appear after:

  • market corrections
  • company-specific declines
  • interest-rate shocks
  • portfolio rebalancing
  • withdrawals
  • concentrated-position reductions

Waiting until year-end can allow a loss opportunity to disappear if the investment recovers.

Harvesting too aggressively throughout the year can create the opposite problem:

  • more trading
  • more tax lots
  • more wash-sale monitoring
  • more tracking error
  • more operational complexity

The correct frequency is a cost-benefit question, not a calendar slogan.

Tax-loss harvesting vs. rebalancing

The two strategies can produce similar trades for different reasons.

Tax-loss harvesting asks:

Can realizing this loss improve the portfolio's tax position?

Rebalancing asks:

Have current portfolio weights moved too far from target?

A position can be sold for both reasons at once.

Example:

  • international equities are below cost
  • their portfolio weight is also above target

Selling part of the position may both:

  • realize a capital loss
  • restore target allocation

That is operationally efficient.

But neither objective proves the other one exists.

A portfolio can need rebalancing with no harvestable losses.

A tax-loss opportunity can exist in a position that is already at its desired weight.

Existing loss carryforwards change the decision

Assume an investor already has:

$150,000 of capital-loss carryforwards

and expects only modest future gains.

Harvesting another $10,000 loss may have little near-term tax value because the existing losses already shelter likely gains.

The new loss can still be valid.

Its marginal usefulness may be low.

Compare that with an investor who has:

$100,000 of realized capital gains this year

and no loss carryforward.

A $10,000 harvest can have immediate tax relevance.

Same harvested loss.

Different tax value.

This is why portfolio software that highlights harvestable losses without incorporating existing tax attributes can overstate the opportunity.

Short-term gains can make losses especially valuable

Net short-term capital gains are generally taxed as ordinary income.[1]

That can make losses that offset short-term gains more valuable than the same dollar amount offsetting long-term gains taxed at a lower federal rate.

Example:

  • $10,000 harvested loss
  • Scenario A: offsets $10,000 short-term gain
  • Scenario B: offsets $10,000 long-term gain

The dollar offset is identical.

The tax value can differ because the tax character differs.

The broader netting rules still control, so individual transactions should not be matched informally without calculating the full short-term and long-term picture.

Trading costs and spreads can consume tax value

Commission-free trading does not make transactions free.

A harvest can still incur:

  • bid-ask spread
  • market impact
  • fund premium or discount
  • tax-lot complexity
  • opportunity cost while out of the original position
  • replacement-fund expense differences
  • short-term redemption restrictions in some products

For a small loss, these frictions can exceed the expected tax benefit.

A strategy that ignores implementation cost can generate activity without creating value.

Tax-loss harvesting is usually irrelevant inside retirement accounts

Traditional IRAs, Roth IRAs and 401(k)s generally do not recognize each internal investment sale as a current taxable capital gain or deductible capital loss.

That makes ordinary tax-loss harvesting a taxable-account strategy.

Selling a losing stock inside an IRA may still be appropriate for investment reasons.

It does not generally create a current Schedule D capital loss simply because the position declined.

Account type should therefore be checked before any harvesting analysis begins.

Worked example: tax benefit today, lower basis tomorrow

Assume a taxable investment has:

  • basis: $50,000
  • market value: $40,000

The position is sold.

Harvested loss:

$10,000

Assume the loss offsets taxable gains and creates an illustrative current tax reduction of:

$2,000

A replacement investment is purchased for $40,000.

Several years later it is worth $70,000 and is sold.

Replacement gain:

$30,000

The $2,000 current tax reduction was real.

So is the lower replacement basis that can produce more taxable gain later.

The correct comparison is not:

"$2,000 saved" vs. nothing

It is:

tax avoided today + investment growth on deferred tax + future tax consequences + portfolio differences + transaction costs

That is the economic frame.

Common misconceptions

"Tax-loss harvesting turns a losing investment into a winner."

No. The economic loss already occurred. Harvesting may create tax value from it.

"Only $3,000 of harvested losses can be used."

No. Losses can offset capital gains without that $3,000 ceiling. The general limit applies to the remaining net loss deducted against other income.[1][2]

"Any different ETF automatically avoids a wash sale."

No. The legal standard is substantially identical stock or securities, not simply a different ticker.[2][4]

"The broker will flag every wash sale."

No. Broker reporting can miss transactions across accounts or institutions and other situations outside the broker's reporting scope.[2][3]

"Harvesting should always wait until December."

No. Loss opportunities can arise throughout the year.

"Tax-loss harvesting works inside a Roth IRA."

Not in the ordinary taxable-account sense. Internal Roth trades generally do not create current deductible capital losses.

"The replacement investment does not matter."

It matters substantially. A poor replacement can change portfolio risk enough to overwhelm the tax benefit.

"Tax deferral is permanent tax savings."

Not necessarily. Lower replacement basis can create more taxable gain later.

Professional note

A disciplined harvest starts with six questions:

  1. Loss: What is the actual unrealized loss after verifying adjusted basis?
  2. Tax value: Which gains or income could the realized loss offset, and at what tax character?
  3. Carryovers: Are existing capital-loss carryforwards already sufficient?
  4. Wash-sale exposure: What was purchased in the prior 30 days, and what may be purchased during the next 30 days across relevant accounts?
  5. Replacement: What security can maintain an acceptable portfolio exposure without creating an unacceptable wash-sale risk?
  6. Future tax: What lower basis, future gain and transaction cost does the harvest create?

The best harvest is not necessarily the largest available loss.

It is the loss whose after-tax benefit exceeds the implementation cost without weakening the portfolio.

Related terms

  • Capital Loss — GLS-027: the realized tax loss created by a successful harvest.
  • Cost Basis — GLS-026: determines the size of the embedded and realized loss.
  • Capital Gain — GLS-025: harvested losses can offset taxable capital gains.
  • Wash-Sale Rule — GLS-014: can disallow the current deduction when substantially identical stock or securities are reacquired within the statutory window.
  • Asset Allocation — GLS-019: replacement investments should be evaluated against intended portfolio exposure.
  • Diversification — GLS-003: a harvest should not unintentionally create concentration risk.

Related ROIStreet guides

  • INV-012 — What Is a Stock?
  • INV-014 — What Is an ETF?
  • INV-015 — What Is a Mutual Fund?
  • INV-036 — What Is a Roth IRA?
  • INV-039 — How to Build a Diversified Portfolio

Sources & References

1. Internal Revenue Service, Topic No. 409, Capital Gains and Losses https://www.irs.gov/taxtopics/tc409

2. Internal Revenue Service, Publication 550 (2025), Investment Income and Expenses https://www.irs.gov/publications/p550

3. Internal Revenue Service, Instructions for Schedule D (Form 1040) https://www.irs.gov/instructions/i1040sd

4. U.S. Securities and Exchange Commission — Investor.gov, Wash Sales https://www.investor.gov/introduction-investing/investing-basics/glossary/wash-sales

5. FINRA, The Basics of Direct Indexing https://www.finra.org/investors/insights/direct-indexing

Educational Disclaimer

ROIStreet publishes educational content intended to help readers understand investing and investment taxation. Nothing in this glossary entry is personalized investment, legal, tax or financial advice or a recommendation to sell an investment, realize a loss or purchase a replacement security. Tax-loss harvesting can be affected by capital-gain character, loss carryovers, wash-sale rules, account ownership, tax rates, state law and portfolio circumstances, and current tax rules should be verified before acting.

The ROIStreet Reader Promise

We strive to explain before we evaluate, present evidence before opinions, discuss risks alongside potential benefits, distinguish facts from analysis, and correct material errors transparently.

Our purpose is to help readers better understand investing—not to tell them what to do.

Definitions used in this guide

Diversification
Diversification is the practice of spreading investment exposure across and within asset classes to reduce dependence on any single security, issuer, sector or source of risk.
Return
Investment return is the gain or loss produced by an investment over a period, including changes in value and applicable income such as interest, dividends or distributions.
Wash sale rule
A US tax rule that disallows a loss deduction if you buy a substantially identical security within 30 days before or after the sale.
Asset Allocation
Asset allocation is the division of portfolio capital among broad investment categories such as stocks, bonds and cash. The mix determines where much of the portfolio's economic exposure and risk is concentrated.
Capital Gain
A capital gain generally occurs when a capital asset is sold or otherwise disposed of for more than its adjusted basis. The holding period determines whether the gain is usually classified as short-term or long-term.
Cost Basis
Cost basis is the amount used to measure gain or loss when an investment is sold. Purchase cost is often the starting point, but reinvestments, stock splits, return of capital, wash sales, gifts, inheritances and other events can change the basis used for tax reporting.
Capital Loss
A capital loss generally occurs when a capital asset is sold or otherwise disposed of for less than its adjusted basis. Capital losses first offset capital gains under federal netting rules, while excess net losses for individuals are subject to an annual deduction limit and carryover rules.
Tax Lot
A tax lot is a group of investment units acquired in the same transaction or under the same basis conditions. Different lots of the same security can have different acquisition dates, adjusted bases and unrealized gains or losses, which can materially affect the tax result when part of a position is sold.

We may earn a commission if you open an account through links on this page. Our editorial analysis is independent and is never influenced by commercial partnerships. Full disclosure.