Tax Loss Harvesting: A Complete Guide to Reducing Your Tax Bill
Every year, billions of dollars in capital gain taxes are legally avoided by savvy investors using a strategy called tax loss harvesting. It requires no exotic offshore structures, no complex derivatives, and no aggressive interpretation of tax law — just a disciplined, systematic approach to realizing portfolio losses in a way that offsets gains elsewhere.
This guide explains everything you need to know: how tax loss harvesting works, the wash-sale rule that can invalidate your strategy, when it makes sense, and how to do it correctly.

The Core Concept: Offset Gains with Losses
When you sell an investment for more than you paid for it, you have a capital gain. When you sell for less than you paid, you have a capital loss. Both are “realized” when you sell — unrealized gains and losses sitting in your portfolio have no immediate tax consequence.
The tax code allows you to net these against each other:
Net Capital Gain (or Loss) = Total Capital Gains − Total Capital Losses
If you sold a tech stock for a $50,000 gain and a retail stock for a $30,000 loss in the same year, your taxable net gain is only $20,000 — saving you up to $7,600 in federal tax at the 20% long-term rate.
Tax loss harvesting is the proactive strategy of intentionally selling investments that have declined in value specifically to generate these offsetting losses.
The Critical Priority Order: Matching Short-Term and Long-Term
Not all capital gains and losses are equal. The IRS requires you to apply losses in a specific order that maximizes your tax benefit:
Step 1: Short-term losses first offset short-term gains (taxed at up to 37%).
Step 2: Long-term losses first offset long-term gains (taxed at up to 20%).
Step 3: If there is still a net loss, it offsets the opposite category.
Step 4: Any remaining net loss offsets up to $3,000 of ordinary income per year.
Step 5: Unused losses carry forward indefinitely to future tax years.
The priority order matters because short-term gains — taxed as ordinary income at rates up to 37% — are nearly twice as expensive as long-term gains. Harvesting short-term losses to offset short-term gains generates nearly twice the tax savings per dollar compared to harvesting long-term losses.
The Wash-Sale Rule: The Critical Constraint
The IRS created the wash-sale rule specifically to prevent investors from gaming the tax system by selling at a loss and immediately buying back the same investment. The rule is defined as follows:
A loss is disallowed if you buy a “substantially identical” security within the 61-day window surrounding the sale:
(30 days before the sale) + (the sale date) + (30 days after the sale) = 61-day total window
If a wash sale occurs, the disallowed loss is not gone forever — it is added to the cost basis of the repurchased shares, deferring the loss recognition to when those shares are eventually sold outside a wash-sale window.
Tax Loss Harvesting Without Triggering a Wash Sale
The key is to replace the sold security with something similar but not identical:
| Sold Security | Valid Replacement |
|---|---|
| S&P 500 Index Fund (VFIAX) | Total U.S. Stock Market Fund (VTSAX) |
| Apple Inc. (AAPL) | Technology sector ETF (XLK) |
| Euro bond fund | Total international bond fund |
| Bitcoin | Ethereum (as of 2026, crypto is property not a security) |
This keeps your portfolio fully invested in the same asset class while you wait the 30 days required to rebuy the original security without triggering the wash-sale rule.
Tax Loss Harvesting in Practice: A Complete Example
Scenario: You have a $500,000 taxable brokerage portfolio in November. You identify the following:
- Vanguard Growth ETF: $60,000 unrealized gain (held 18 months → long-term)
- iShares Tech ETF: $25,000 unrealized loss (held 8 months → short-term)
- Small cap value fund: $15,000 unrealized loss (held 14 months → long-term)
Step 1: Sell the iShares Tech ETF for a $25,000 short-term loss. Replace immediately with a similar (but not identical) tech ETF to stay invested.
Step 2: Sell the small cap value fund for a $15,000 long-term loss. Replace with a similar small cap value fund.
Step 3: Tax calculation:
- Long-term gain: $60,000
- Long-term loss: $15,000
- Net long-term gain: $45,000 — taxed at 15% = $6,750
- Short-term loss remaining: $25,000 − $3,000 ordinary income deduction = $22,000 carried forward
Without harvesting, the full $60,000 gain would have been taxed at 15% ($9,000). Harvesting saved $2,250 this year and generated a $22,000 carryforward.
Is Tax Loss Harvesting Right for You?
Tax loss harvesting generates the greatest benefit for:
- Investors in the 22% (or higher) federal tax bracket
- Portfolios with significant unrealized gains AND losses simultaneously
- Years with unusually high capital gains events (a business sale, RSU vesting at peak stock price)
- Investors with a long enough time horizon to benefit from the tax deferral
It is less beneficial for:
- Investors in the 0% capital gains bracket (taxable income under $47,025 for single filers in 2026)
- Tax-advantaged accounts (401k, IRA) — wash-sale rules don’t apply but neither does harvesting
- Small portfolios where the transaction costs and complexity outweigh the tax savings
Conclusion
Tax loss harvesting is a powerful, entirely legal form of tax planning that is easy for individual investors to execute, yet the majority of investors never do it systematically. The combination of free brokerage trades, low-cost index funds, and high-income tax rates in 2026 makes this one of the most accessible sources of after-tax return enhancement available. Review your portfolio every October and November with your tax advisor — and make loss harvesting part of your annual financial checklist.
Related Articles
- Payroll Tax Guide for Small Business Owners (2026)
- Corporate Tax Systems Compared Globally (2026 Guide)
- Global VAT Registration Thresholds 2026: A Quick Guide
- Tax Filing Deadlines Worldwide: Complete 2026 Guide by Country
Frequently Asked Questions (FAQ)
What is tax loss harvesting?
Intentionally selling investments at a loss to realize a capital loss that offsets capital gains elsewhere in the portfolio, reducing overall tax liability.
What is the wash-sale rule?
The IRS rule that disallows a capital loss if you buy a “substantially identical” security within 30 days before or after selling the loss position. The 61-day window is absolute.
Can capital losses offset ordinary income?
Yes — net capital losses can be deducted against ordinary income up to $3,000 per year, with excess losses carried forward indefinitely.
What is the difference between short-term and long-term capital gains?
Short-term gains (≤12 months) are taxed as ordinary income (up to 37%). Long-term gains (>12 months) qualify for preferential rates of 0%, 15%, or 20%.
Does tax loss harvesting create permanent tax savings?
Primarily a deferral — the replacement security has a lower cost basis, so future gains are larger. The value is the time value of the deferred tax payment.
When is the best time to harvest tax losses?
Review your portfolio in October and November to identify harvesting opportunities before the December 31 tax year deadline.
Does the wash-sale rule apply to cryptocurrency?
As of 2026, technically no — crypto is classified as property, not a security. Investors can sell and immediately repurchase crypto without triggering the wash-sale rule.
Can I harvest losses in my 401(k) or IRA?
No. Tax loss harvesting only applies to taxable brokerage accounts. Retirement accounts have no immediate tax consequences for gains or losses.
What is a ‘substantially identical’ security?
The same stock in the same company, or options/convertibles on the same stock. Switching between different (but similar) funds in the same asset class is generally not substantially identical.
Is tax loss harvesting worth it for small portfolios?
Most beneficial for investors in the 22%+ bracket with portfolios above $100,000 and significant gains. For smaller portfolios in lower brackets, the administrative complexity may outweigh the savings.