Tax-Loss Harvesting for DIY Index Fund Investors
Your S&P 500 ETF is down 15% this year. Most investors feel sick about it. But a few know how to turn that loss into a real tax break, and still stay fully invested in the market. That strategy is called tax-loss harvesting, and it is one of the most powerful tools available to DIY investors with taxable brokerage accounts.
This guide breaks it all down in plain English. No jargon. No fluff. Just exactly how tax-loss harvesting works, the rules you must follow, and how to use it whether you are holding ETFs, index funds, or even crypto.
What Is Tax-Loss Harvesting?
Tax-loss harvesting is the practice of selling an investment that has dropped in value to lock in a capital loss. You then use that loss to offset capital gains you have earned elsewhere. The result: a lower tax bill.
Here is the simple version. Say you sold some shares earlier in the year at a profit. The IRS wants a cut of that profit. But if you also have investments sitting at a loss, you can sell those losers to cancel out the winners. Less gain on paper means less tax owed.
Tax-loss harvesting does not mean you give up on the investment forever. You can sell it, capture the loss for tax purposes, and then buy something very similar to maintain your market exposure. You stay invested. You just get a tax benefit in the process.
This strategy works best in a taxable brokerage account. It does NOT work in a Roth IRA or traditional IRA, because those accounts are already tax-advantaged. More on that in the FAQ below.
How Tax-Loss Harvesting Works (Step-by-Step)
Let us walk through a concrete example so the mechanics are crystal clear.
The setup: It is November. You bought $10,000 worth of VTI (a total US market ETF) in January. The market dropped, and your VTI is now worth $8,500. You are sitting on a $1,500 unrealized loss.
Earlier in the year, you also sold some shares of a tech stock at a $2,000 profit. That profit will be taxed as a capital gain.
Step 1: Sell the losing position. You sell your VTI shares for $8,500. You have now realized a $1,500 capital loss.
Step 2: Offset your gains. Your $2,000 gain is now reduced by the $1,500 loss. You only pay capital gains tax on $500 instead of $2,000.
Step 3: Stay invested. Immediately (or within a safe window), you buy SCHB, another broad US market ETF that is very similar to VTI but not “substantially identical.” You are still fully exposed to the stock market.
The math: If your gains are short-term (held less than a year) and you are in the 22% ordinary income bracket, a $1,500 loss saves you $330 in taxes. That is real money you keep. Long-term capital gains, on assets held over a year, are taxed at lower rates: 0%, 15%, or 20% depending on your income.
Before you sell anything, use our Stock Gain Calculator to figure out your exact gain or loss on any position. It takes 30 seconds and makes sure you are selling the right lots.
The Wash-Sale Rule: What It Is and Why It Matters
Here is the catch. The IRS knows this trick. They have a rule that prevents you from selling a security at a loss and immediately buying it back just to get the tax benefit. That rule is called the wash-sale rule.
The rule: If you sell a security at a loss and buy a “substantially identical” security within 30 days before or after the sale, the IRS disallows the loss. That is a 61-day window total (30 days before, the sale day, 30 days after).
What counts as substantially identical? The IRS has not given a precise definition, but generally it means the exact same security or something extremely close to it. For example, selling VTI and buying VTI again within 30 days triggers the rule.
But here is the key insight for index fund investors: you can sell one fund and buy a different fund that tracks a similar but not identical index. The two funds just cannot be functionally the same product from the same issuer tracking the exact same index.
Safe ETF swap examples:
- VTI (Vanguard Total Stock Market) → SCHB (Schwab US Broad Market)
- SPY (S&P 500, State Street) → IVV (S&P 500, iShares), though this one is debated since both track the same index; proceed carefully
- VOO (Vanguard S&P 500) → SCHX (Schwab US Large Cap): different index, generally safe
- VOO → FXAIX (Fidelity S&P 500): same index, different issuer — debated, same situation as SPY → IVV above. Proceed carefully.
- QQQ (Nasdaq-100, Invesco) → QQQM (Nasdaq-100, Invesco): same issuer, same index, likely NOT safe
- VXUS (Vanguard Intl) → IXUS (iShares Intl) or SCHF (Schwab Intl)
The general principle: different issuer, similar-but-not-identical index = generally safe. When in doubt, consult a tax professional. The IRS can disallow the loss and add a penalty if they determine the transaction was a wash sale.
For more detail on the wash-sale rule, see IRS Publication 550, which covers investment income and expenses including this rule.
Tax-Loss Harvesting with Crypto
Here is where it gets interesting for crypto investors. As of 2026, the wash-sale rule does NOT apply to cryptocurrency. That is because the IRS currently classifies crypto as property, not a security. The wash-sale rule only applies to securities.
What does that mean in practice? You can sell Bitcoin at a loss, buy it back immediately the same day, and still claim the tax loss. No 30-day waiting period. No swap required. You keep your position and get the tax benefit at the same time.
This is a genuine advantage that crypto has over stocks and ETFs for tax purposes. Some investors specifically hold crypto in taxable accounts because of this flexibility.
A few things to note:
- Congress has discussed extending wash-sale rules to crypto, but as of 2026, it has not happened. This could change.
- Every crypto trade is still a taxable event. Selling at a loss locks in that loss, which you can use against other gains.
- Keep detailed records of every transaction: purchase date, cost basis, sale date, and proceeds.
If you want to start trading crypto and take advantage of this tax flexibility, you need an exchange that is easy to use and does not require a mountain of paperwork to get started.
Affiliate link, we may earn a commission at no cost to you.
Want to start trading crypto without KYC? Sign up at Bitunix, no identity verification required.
How Much Can You Deduct?
Capital losses first offset capital gains dollar for dollar. If you have $3,000 in gains and $3,000 in losses, they cancel out completely. You owe nothing in capital gains tax.
But what if your losses are bigger than your gains? Here is where the $3,000 rule comes in.
The $3,000 annual cap: If your capital losses exceed your capital gains, you can deduct up to $3,000 of the remaining net loss against your ordinary income per year. So if you have $5,000 in net losses and no gains, you can reduce your taxable income by $3,000 this year.
Capital loss carryover: The remaining $2,000 does not disappear. It carries forward to future tax years. You can use it to offset gains in 2027, 2028, and so on, indefinitely, until it is all used up.
This carryover is one of the most valuable parts of tax-loss harvesting. If you harvest big losses during a market downturn (like 2022 or 2025), you can build up a loss carryover that shields your future gains for years.
Short-term vs long-term matters: Short-term losses (on assets held less than a year) first offset short-term gains, which are taxed at your ordinary income rate. Long-term losses first offset long-term gains. The order matters for calculating your actual tax savings. Short-term gains are taxed more heavily, so offsetting them has a higher dollar impact.
When Tax-Loss Harvesting Makes Sense (and When It Doesn’t)
Tax-loss harvesting is not right for everyone or every situation. Here is how to think about it.
It makes the most sense when:
- You are in a higher tax bracket (22% or above). The higher your rate, the more each dollar of loss is worth.
- You have realized capital gains this year that need offsetting.
- The loss is significant enough to justify the transaction. Harvesting a $50 loss is rarely worth the time.
- You have a long investment horizon. You will likely be reinvesting the proceeds for decades.
- You are building toward financial independence and want to maximize after-tax growth. Our FIRE Calculator can show you how much faster you reach your number when you keep more of your returns.
If you are building wealth through regular investing, pair tax-loss harvesting with a consistent contribution strategy. Our DCA Calculator can show you how steady contributions grow over time.
It makes less sense when:
- You are in the 0% capital gains bracket (single filers under roughly $48,000 income in 2025). If you owe no gains tax, there is nothing to offset.
- The loss is tiny and the transaction costs eat into the benefit.
- You plan to sell the replacement ETF within 30 days, which could trigger another wash-sale issue.
- You are close to retirement and planning to do Roth conversions. The interaction between harvested losses and conversion income can get complicated. Talk to a tax advisor.
Tax-loss harvesting is a long-term optimization tool, not a get-rich-quick move. For investors on the FIRE path, it is part of a broader tax efficiency strategy that includes asset location, Roth conversions, and minimizing turnover. If you have not mapped out your coast FIRE number yet, our Coast FIRE Calculator is a good place to start thinking about timeline and portfolio size.
Frequently Asked Questions
Can you tax-loss harvest in an IRA?
No. Tax-loss harvesting only works in taxable brokerage accounts. In a traditional IRA or Roth IRA, you do not pay capital gains tax on trades inside the account, so there are no gains to offset. Losses inside an IRA are not deductible. The strategy only applies to taxable accounts where each sale is a reportable event.
What counts as a capital loss?
A capital loss is the difference between what you paid for an investment (your cost basis) and what you sold it for, when the sale price is lower. For example, if you bought 10 shares at $100 each ($1,000 total) and sold them for $800, you have a $200 capital loss. The loss is only “realized” when you actually sell. A paper loss (where the value dropped but you have not sold) does not count for tax purposes.
Does tax-loss harvesting hurt long-term returns?
Done correctly, no. The key is reinvesting the proceeds into a similar investment immediately. Your market exposure stays the same, so your long-term returns should be essentially identical. The one caveat is that when you eventually sell the replacement ETF, your cost basis will be lower (because you bought it after a drop), which means a larger gain at that future sale. Tax-loss harvesting does not eliminate taxes; it defers them. But deferring taxes is still valuable because that money keeps compounding in the meantime. The longer you defer, the bigger the benefit.
How often should I tax-loss harvest?
Many investors do a once-a-year pass in November or December, before the tax year closes. But market drops can happen any time, so some investors check quarterly or after significant market downturns. Automated platforms (like robo-advisors) do this daily. For a manual DIY investor, a quarterly check is reasonable. Do not over-trade just to harvest small losses; the transaction costs and complexity may not be worth it.
Start Putting Tax-Loss Harvesting to Work
Tax-loss harvesting is one of the few strategies that lets you profit from a down market without giving up your position. It requires a bit of planning, knowledge of the wash-sale rule, and attention to your overall tax picture, but for a DIY investor in a taxable account, it is well worth learning.
Before your next trade, use our Stock Gain Calculator to see exactly what your gain or loss looks like. And if you are building toward financial independence, check out our FIRE Calculator to see how keeping more of your returns can accelerate your timeline.
The market will have down years. The question is whether you let those losses just sit there, or put them to work.
