Tax-Loss Harvesting: Rules Benefits and Guide
Tax-Loss Harvesting: How It Works, Rules, Benefits, and Examples
Market declines are never enjoyable, but investment losses can sometimes create a tax-planning opportunity. Tax–loss harvesting is a strategy that involves selling investments that have declined in value, realizing the loss, and using that loss to potentially offset taxable capital gains.
The strategy does not magically eliminate investment losses. Instead, it can help investors manage the tax consequences of gains and losses within a taxable investment portfolio. When used carefully, tax-loss harvesting may improve after-tax returns and reduce the current tax liability associated with investment gains.
However, the rules matter. A poorly timed repurchase can trigger a wash sale. Selling the wrong investment can also disrupt asset allocation or diversification. That is why tax-loss harvesting should be viewed as part of a broader tax-efficient investing strategy rather than a reason to trade simply because the market is down.
This guide explains what tax-loss harvesting means, how it works, which accounts may be eligible, how capital losses offset gains, and the common mistakes investors should avoid.
Note: Tax rules vary by country and can change. This article is educational and should not replace advice from a qualified tax professional or financial advisor.
What Is Tax-Loss Harvesting?
Tax-loss harvesting, sometimes called tax-loss selling, is the practice of selling an investment that is currently worth less than its purchase price to realize a capital loss.
An unrealized loss becomes a realized loss when the investment is sold. Depending on applicable tax rules, that realized capital loss may be used to offset capital gains and, in some circumstances, other taxable income.
A simple example
Suppose you bought a stock for $10,000 and it is now worth $7,000.
On paper, you have a $3,000 unrealized loss. If you continue holding the stock, that loss generally remains unrealized. If you sell it, you realize a capital loss of approximately $3,000, subject to adjustments such as cost basis and transaction costs.
Now imagine that you previously sold another investment and realized a $3,000 capital gain. The capital loss may potentially offset that gain under the relevant tax rules.
The basic idea is simple:
| Investment Activity | Tax Result |
|---|---|
| Realized gain | +$3,000 |
| Realized loss | -$3,000 |
| Net capital gain | $0 |
Tax-loss harvesting is therefore primarily a tax optimization strategy. It does not guarantee that an investment loss becomes profitable. The potential benefit comes from improving how gains and losses are managed for tax purposes.
How Does Tax-Loss Harvesting Work?
A typical tax-loss harvesting strategy follows four broad steps. The exact process may differ depending on the investment, account type, and tax rules that apply to you.
Identify Investments That Have Lost Value
The first step is to review your investment portfolio and identify securities trading below your adjusted cost basis.
Possible candidates may include:
- Stocks that have fallen in price
- ETFs experiencing temporary declines
- Mutual funds with unrealized losses
- Other taxable securities
A declining investment is not automatically a good candidate for tax-loss harvesting. You should also consider whether you still want to own it, how selling would affect diversification, and whether the investment fits your long-term strategy.
Practical scenario
Suppose your portfolio contains three investments:
| Investment | Purchase Value | Current Value | Unrealized Result |
|---|---|---|---|
| ETF A | $12,000 | $15,000 | +$3,000 |
| ETF B | $10,000 | $7,000 | -$3,000 |
| Stock C | $8,000 | $8,500 | +$500 |
ETF B may present a harvesting opportunity, but you should not sell it solely because it is down. You also need to consider your portfolio exposure after the sale.
Sell Investments and Realize Capital Losses
Once you decide that harvesting makes sense, you sell the investment.
This converts an unrealized loss into a realized capital loss. The loss may then become available to offset eligible realized gains, depending on the tax rules in your jurisdiction.
For example, selling an ETF purchased for $10,000 when it is worth $7,500 could create a realized loss of approximately $2,500.
The word realized matters. A paper loss generally does not produce the same tax result as a loss created through an actual sale.
Offset Capital Gains With Losses
After realizing capital losses, the next step is determining how they interact with realized gains.
Suppose you realized:
- $8,000 in capital gains
- $5,000 in capital losses
The losses may reduce your net capital gains to $3,000.
This process is commonly described as netting gains and losses.
Worked example
Sarah sells an investment with a $12,000 gain earlier in the year. Later, market volatility causes another holding to decline by $4,000 below her purchase price.
She sells the losing investment and realizes a $4,000 capital loss.
Potential calculation:
$12,000 realized gain − $4,000 realized loss = $8,000 net capital gain
Instead of owing tax based on the full $12,000 gain, the applicable taxable amount may be reduced according to the relevant tax rules.
Reinvest in a Suitable Replacement Investment
Selling a security does not necessarily mean you want to leave the market.
An investor may reinvest the proceeds in a suitable replacement investment to maintain desired market exposure. The replacement should fit the investor’s strategy, asset allocation, and diversification goals.
For example, if an investor sells one broad-market fund at a loss, they may consider another investment that provides similar—but not necessarily substantially identical—market exposure.
This step requires special attention because repurchasing the same or substantially identical security too soon may trigger wash-sale restrictions.
Tax-Loss Harvesting Example: A Step-by-Step Scenario
A full example makes the strategy easier to understand.
Imagine David has a taxable brokerage account containing two investments.
Earlier in the year, David sold Stock A and realized a $10,000 capital gain.
Later, ETF B falls significantly:
- Original purchase price: $15,000
- Current market value: $9,000
- Unrealized loss: $6,000
David decides the ETF no longer fits his portfolio strategy. He sells it and realizes the $6,000 loss.
His simplified result is:
| Step | Amount |
|---|---|
| Capital gain from Stock A | +$10,000 |
| Capital loss from ETF B | -$6,000 |
| Net capital gain | $4,000 |
David has not recovered the $6,000 market loss. Instead, he may have reduced the taxable impact of his earlier investment gain.
David then uses the sale proceeds to buy a replacement investment that supports his desired asset allocation while taking care to avoid applicable wash-sale issues.
This example highlights an essential point: tax-loss harvesting should support your investment plan, not replace it.
Tax-Loss Harvesting Rules You Need to Know
The tax rules surrounding investment losses can be more complicated than the basic concept. Understanding these rules before selling is essential.
Understanding the Wash-Sale Rule
The wash-sale rule is one of the most commonly discussed restrictions related to tax-loss harvesting in the United States.
Generally, a wash sale may occur when an investor sells an investment at a loss and acquires the same or a substantially identical security within the applicable period surrounding the sale.
The commonly referenced window is 30 days before and 30 days after the sale, creating a broader period that investors need to consider.
Example
Suppose you sell shares at a $2,000 loss on June 15.
You then buy the same security on June 20.
That repurchase may cause wash-sale treatment under applicable rules, potentially preventing you from immediately using the loss as expected.
Because wash-sale rules can involve purchases across different accounts and more complex situations, investors with multiple brokerage accounts should be particularly careful.
What Is a Substantially Identical Security?
The phrase substantially identical security is crucial because avoiding the wash-sale rule is not always as simple as avoiding an exact repurchase.
The question is whether the replacement investment is sufficiently different under the applicable rules.
For example:
- Selling a stock and immediately buying the exact same stock may create an obvious issue.
- Selling one investment and buying a different investment with a similar market objective may involve a more complex analysis.
Do not assume that every ETF tracking a similar market segment is automatically safe or that every similar investment creates a violation. If the tax consequences are significant, consult a tax professional.
Short-Term vs. Long-Term Capital Gains and Losses
Holding period can affect how gains and losses are classified.
Depending on the relevant tax system, short-term and long-term capital gains may receive different tax treatment. The interaction between short-term and long-term gains and losses can also affect the final netting calculation.
Practical scenario
Suppose an investor has:
- $7,000 in short-term gains
- $2,000 in short-term losses
- $4,000 in long-term losses
The calculation may involve separate categories before arriving at a final net capital gain or loss.
This is one reason why a simple spreadsheet or professional tax software can be helpful when managing multiple transactions.
Capital Loss Deduction and Loss Carryforward Rules
What happens when your losses are larger than your gains?
In some tax systems, excess capital losses may be used to offset a limited amount of other taxable income. Remaining losses may potentially be carried forward into future tax years.
The rules, limits, and eligibility requirements vary by jurisdiction.
For investors, the practical takeaway is that a harvested loss may still have future value even when there are not enough current gains to fully offset it.
What Happens When Capital Losses Exceed Capital Gains?
Imagine you realize:
- $5,000 in capital gains
- $11,000 in capital losses
Your losses exceed your gains by $6,000.
After eligible gains are offset, the treatment of the remaining loss depends on applicable tax law. Some systems permit a limited capital loss deduction against other income, while unused amounts may become a loss carryforward.
Worked example
Suppose the relevant rules allow part of the remaining loss to offset ordinary income, with the balance carried forward.
Your tax records might conceptually look like this:
- Offset $5,000 of capital gains.
- Apply any eligible portion of the remaining $6,000 against other taxable income.
- Carry any remaining eligible loss into future years.
A loss carryforward can be useful, particularly for investors who expect future realized gains.
Still, you should not create unnecessary investment losses simply for a tax deduction. Losing $1 to save a fraction of that amount in taxes is rarely a sensible economic strategy.
Which Accounts Can Use Tax-Loss Harvesting?
Tax-loss harvesting is generally associated with a taxable account or taxable brokerage account because taxable gains and losses are directly relevant to annual tax reporting.
Tax-advantaged or tax-deferred accounts may follow different rules.
Taxable brokerage account
A regular taxable brokerage account is often the primary setting for tax-loss harvesting.
Possible assets may include:
- Individual stocks
- ETFs
- Mutual funds
- Other eligible securities
Tax-deferred and retirement accounts
The tax treatment of transactions inside retirement or other tax-deferred accounts may differ significantly.
In some cases, realizing a loss inside such an account does not create the same current tax benefit available in a taxable account.
Practical scenario
If you own the same investment in:
- A taxable brokerage account
- A retirement account
selling the taxable position at a loss may require additional care if related purchases in another account could affect wash-sale treatment.
This is an area where professional advice may be valuable.
When Should You Use Tax-Loss Harvesting?
There is no single perfect time. The best opportunity depends on your investments, realized gains, tax position, and long-term strategy.
During Market Volatility
Market volatility can create more unrealized losses across a portfolio.
That does not mean every market decline should trigger a sale. Instead, periodic reviews can identify whether a temporary loss also creates a useful tax-planning opportunity.
Example
A diversified portfolio declines 12% during a market correction. An investor identifies one position that is down substantially and has become overweight or no longer fits their strategy.
Selling that position may simultaneously:
- Realize a capital loss
- Improve portfolio positioning
- Create an opportunity to rebalance
When Rebalancing Your Portfolio
Portfolio rebalancing can work naturally with tax-loss harvesting.
Suppose an investor wants to reduce exposure to one asset class. If a position within that allocation is currently below its cost basis, selling it may help both portfolio rebalancing and tax planning.
This approach is often more strategic than harvesting losses without considering asset allocation.
As Part of Year-Round Tax Planning
Many investors think about taxes only near year-end. However, tax-loss harvesting can be a year-round process.
Markets move continuously. A loss that exists in September may disappear after a strong rally in November.
Periodic portfolio reviews may provide more flexibility than waiting until the final weeks of the year.
A practical schedule could include reviews:
- After major market declines
- Before significant portfolio changes
- During planned rebalancing
- Before year-end tax planning
Benefits of Tax-Loss Harvesting
When used appropriately, tax-loss harvesting can offer several potential benefits.
1. It may reduce your tax bill
The primary benefit is the ability to offset eligible capital gains with realized losses.
If you have realized gains elsewhere in your portfolio, harvested losses may reduce your net capital gains and associated capital gains tax.
2. It can improve after-tax returns
Taxes are one component of investment performance.
Two investors with identical pre-tax returns may experience different after-tax results depending on how efficiently gains and losses are managed.
Tax-efficient investing focuses on what remains after taxes, costs, and other factors—not just headline returns.
3. It can support portfolio rebalancing
Tax-loss harvesting can provide a more efficient way to make portfolio changes when a position has declined.
For example, an investor who wants to replace an underperforming sector ETF may realize a loss while moving into a replacement investment that better matches the desired portfolio structure.
4. It may create future tax assets
If eligible losses exceed current gains, loss carryforward provisions may allow some unused losses to provide value in future tax years.
Quick benefit reference
| Potential Benefit | How It May Help |
|---|---|
| Offset capital gains | Reduces net taxable gains |
| Lower current tax liability | May reduce taxes in the current period |
| Support rebalancing | Combines portfolio management with tax planning |
| Maintain market exposure | Allows reinvestment in a suitable replacement |
| Loss carryforward | May preserve unused losses for future years |
Tax savings should always be considered alongside transaction costs, investment risk, and your long-term plan.
Risks and Drawbacks of Tax-Loss Harvesting
Tax-loss harvesting is useful in the right situation, but it has limitations.
Wash-sale violations
A poorly timed repurchase may reduce or delay the expected tax benefit.
This risk can increase when you have multiple brokerage accounts or automated investment programs.
Transaction costs and trading fees
Although many brokers offer commission-free trades, costs can still exist through spreads, fund expenses, taxes, or market impact.
A small tax benefit may not justify unnecessary trading.
Portfolio tracking error
If you sell an investment and buy a replacement that behaves differently, your portfolio may not perform as expected relative to your original strategy.
This is known as tracking risk or portfolio tracking error.
Future tax liability
A tax benefit today may not mean a permanent tax saving.
For example, buying a replacement investment at a lower cost basis could potentially create larger future gains if the investment appreciates.
The strategy may therefore involve tax deferral rather than complete tax elimination.
Market risk
If you sell a position and remain out of the market for too long, you may miss a recovery.
That is why having a suitable reinvestment plan can matter.
Tax-Loss Harvesting vs. Tax-Gain Harvesting
Tax-loss harvesting and tax-gain harvesting use opposite approaches.
Tax-loss harvesting involves realizing losses to offset gains.
Tax-gain harvesting generally involves intentionally realizing gains when doing so may be advantageous under a particular tax situation.
| Strategy | Primary Action | Potential Purpose |
|---|---|---|
| Tax-loss harvesting | Realize losses | Offset taxable gains |
| Tax-gain harvesting | Realize gains | Use favorable tax circumstances or manage future basis |
Example
An investor with unusually low taxable income in one year may explore whether realizing certain gains makes sense under their tax circumstances.
Another investor with significant realized gains may focus on harvesting investment losses to reduce net capital gains.
The right strategy depends on the investor’s broader tax plan.
Automated Tax-Loss Harvesting vs. Doing It Yourself
Investors can manage tax-loss harvesting manually or use automated portfolio management services.
Doing it yourself
A DIY investor may:
- Review holdings for unrealized losses.
- Check cost basis.
- Review recent purchases.
- Consider wash-sale restrictions.
- Sell a suitable losing investment.
- Purchase a replacement investment if appropriate.
- Track gains and losses for tax reporting.
The benefit is control. The drawback is that mistakes can become more likely as the portfolio becomes larger and more complex.
Automated tax-loss harvesting
Automated systems can monitor portfolios and execute harvesting opportunities based on predefined rules.
Potential advantages include:
- Regular monitoring
- Faster response to market movements
- Reduced manual workload
- Systematic tax optimization
Potential disadvantages include:
- Management fees
- Limited customization
- Replacement-investment decisions you may not fully control
- The need to understand how the service handles multiple accounts
Practical choice
A simple portfolio with a few holdings may be manageable for a DIY investor.
A large portfolio containing numerous tax lots, ETFs, mutual funds, and multiple accounts may benefit from professional or automated support.
Common Tax-Loss Harvesting Mistakes to Avoid
1. Selling solely for the tax deduction
Never let the tax tail wag the investment dog.
A poor investment decision does not become good simply because it creates a deduction.
2. Accidentally triggering a wash sale
Check purchases before and after the sale.
Remember that related accounts and automatic dividend reinvestment may also require attention depending on the applicable rules.
3. Ignoring the replacement investment
If you sell a diversified ETF and replace it with an unrelated stock, you may substantially change your investment risk.
Choose a replacement investment based on your portfolio strategy—not only its tax characteristics.
4. Forgetting transaction records
Maintain accurate records of:
- Purchase dates
- Cost basis
- Sale prices
- Realized gains
- Realized losses
- Replacement purchases
Good records make tax planning easier.
5. Waiting until the last minute
Year-end reviews can be useful, but opportunities may occur throughout the year.
A disciplined review process can reduce rushed decisions.
6. Ignoring professional advice in complex situations
If you have substantial gains, multiple accounts, business investments, or complicated tax circumstances, consult a qualified tax professional.
The potential cost of an error can exceed the benefit of handling everything yourself.
Is Tax-Loss Harvesting Worth It?
Tax-loss harvesting can be worth considering when several conditions are present:
- You have investments in a taxable account.
- You have realized or expected capital gains.
- You hold positions with meaningful unrealized losses.
- Selling fits your long-term investment strategy.
- You can avoid wash-sale problems.
- The potential tax benefit exceeds transaction costs and complexity.
Worked decision example
Assume an investor can realize a $5,000 loss and has $5,000 in taxable gains.
The potential benefit may be meaningful because the loss could offset the gains.
Now consider a different investor with no gains, a very small loss, and a replacement process that would create significant complexity. The immediate benefit may be less compelling.
Tax-loss harvesting is therefore not automatically good or bad. Its value depends on the investor’s complete financial situation.
A Practical Tax-Loss Harvesting Checklist
Before taking action, use this quick reference:
- Confirm the investment is held in an eligible taxable account.
- Check the adjusted cost basis and unrealized loss.
- Review realized gains and losses for the year.
- Consider short-term and long-term holding periods.
- Check for potential wash-sale issues.
- Review purchases across relevant accounts.
- Decide whether selling fits your investment strategy.
- Identify a suitable replacement investment if needed.
- Consider transaction costs and fees.
- Keep detailed records.
- Review the tax consequences with a qualified professional when necessary.
A checklist helps prevent the most common mistake: focusing on the tax benefit while overlooking the investment consequences.
Frequently Asked Questions About Tax-Loss Harvesting
Can Tax-Loss Harvesting Reduce My Taxes?
Yes, tax-loss harvesting may reduce your tax liability by allowing eligible realized capital losses to offset capital gains. The exact benefit depends on your tax situation and the rules that apply to you.
For example, if you realize a $4,000 gain and an eligible $4,000 loss, the loss may offset the gain, potentially reducing the amount of net capital gain subject to tax.
How Much Capital Loss Can I Deduct?
The answer depends on your country’s tax rules and whether your losses are being used against capital gains or other income.
In some jurisdictions, losses may first offset gains, followed by limited deductions against other income and possible loss carryforward treatment.
Check current rules or speak with a tax professional before relying on a specific deduction amount.
Can I Buy Back the Same Stock After Selling It?
You may be able to buy it back eventually, but buying the same or a substantially identical security too soon can create wash-sale consequences under applicable rules.
The timing of purchases before and after the sale matters. Review the rules carefully before repurchasing.
Is Tax-Loss Harvesting Only for Taxable Accounts?
Tax-loss harvesting is most commonly associated with taxable brokerage accounts because gains and losses in those accounts generally affect tax reporting.
Retirement, tax-deferred, and other tax-advantaged accounts can follow different rules and may not provide the same loss-harvesting benefit.
Can Unused Capital Losses Be Carried Forward?
In some tax systems, unused capital losses can be carried forward into future tax years.
This can allow investors to preserve eligible losses for future gains, but the duration and conditions depend on local tax law.
Tax-loss harvesting works best when it supports—not disrupts—your investment strategy. Use losses thoughtfully, respect the tax rules, protect your diversification, and focus on improving long-term after-tax returns rather than chasing a tax break.
Read Next

Pingback: 10 Principles of Finance: Essential Guide for Smarter Decisions