How to Use Tax-Loss Harvesting to Reduce Your Investment Tax Bill
Tax-loss harvesting reduces your investment tax bill by using realized losses to offset gains. Learn the wash sale rule, how to stay invested, and when it matters most.
How to Use Tax‑Loss Harvesting to Reduce Your Investment Tax Bill
Author’s note: This guide is written for U.S. investors and reflects IRS rules as of the 2024 tax year. Always consult a qualified tax professional before implementing any strategy.
Table of Contents
No spam. Unsubscribe anytime.
- What Is Tax‑Loss Harvesting?
- The Mechanics: How It Works Step‑by‑Step
- The Wash‑Sale Rule – The Critical Constraint
- Staying Fully Invested While Harvesting
- Who Can Automate It? Robo‑Advisors, Broker Platforms, and DIY Solutions
- When Tax‑Loss Harvesting Matters Most
- Pros and Cons of Tax‑Loss Harvesting
- Actionable Tips for a Successful Harvest
- Key Statistics You Should Know
- Frequently Asked Questions
What Is Tax‑Loss Harvesting?
Tax‑loss harvesting (TLH) is a legally sanctioned, proactive portfolio management technique that involves selling securities that have declined in value to realize a capital loss. That loss is then used to offset realized capital gains elsewhere in the same tax year, lowering the amount of tax you owe on those gains.
- Capital gains are profits you realize when you sell an asset for more than its cost basis.
- Capital losses are the opposite—losses that you realize when you sell for less than the cost basis.
The core idea is simple: losses offset gains, dollar for dollar. When losses exceed gains, the excess can reduce ordinary taxable income (up to $3,000 per year for individuals, $1,500 for married filing separately) and any remaining loss can be carried forward indefinitely.
Quick Take: In 2023, the average effective tax rate on long‑term capital gains for high‑income taxpayers was 20% plus the 3.8% Net Investment Income Tax (NIIT). Harvesting a $10,000 loss could therefore save you roughly $2,380 in federal taxes alone.
The Mechanics: How It Works Step‑by‑Step
Below is a concise workflow you can follow each tax year, whether you are a DIY investor or using a robo‑advisor.
| Step | Action | Why It Matters |
|---|---|---|
| 1. Identify Realized Gains | Review your account statements or brokerage “tax center” to see any gains you have already realized (e.g., from a stock you sold earlier in the year). | Gains are the “fuel” you need to offset. |
| 2. Scan for Loss Opportunities | Use a portfolio analytics tool or spreadsheet to pinpoint positions that are underwater (current market price < purchase price). | The larger the loss relative to the gain, the greater the tax benefit. |
| 3. Verify the Wash‑Sale Window | Check the 30‑day “look‑back” and “look‑forward” windows for each candidate security. | Avoid the wash‑sale rule that would nullify the loss. |
| 4. Choose a Replacement Trade | Pick a “similar but not substantially identical” security (same asset class, same index exposure, different ticker, or a mutual fund/ETF vs. a stock). | Keeps market exposure while satisfying the IRS. |
| 5. Execute the Sale & Purchase | Simultaneously sell the losing position and buy the replacement (often within seconds). | Minimizes market risk and transaction cost impact. |
| 6. Record the Transaction | Capture the trade date, proceeds, cost basis, and any wash‑sale adjustments in your tax software. | Accurate records are essential for the IRS filing and for future loss carryforwards. |
| 7. Review Annually | Re‑run the analysis at year‑end (or quarterly) to capture any new opportunities. | Tax‑loss harvesting is a continuous process, not a one‑off event. |
Numerical Example
- Realized Gains: You sold 200 shares of ABC Corp at a $15,000 gain.
- Loss Candidates: Your XYZ ETF is down $8,000 from its purchase price.
- Wash‑Sale Check: No purchases of XYZ (or substantially identical securities) within ±30 days.
- Replacement: You buy DEF ETF, which tracks the same sector but has a different CUSIP.
- Result:
- Net capital gain = $15,000 – $8,000 = $7,000
- Tax saved (20% long‑term cap gains) ≈ $1,600
If your loss had been $12,000, you would offset the $15,000 gain fully, then deduct $3,000 against ordinary income, leaving $4,000 of loss to carry forward.
The Wash‑Sale Rule – The Critical Constraint
The wash‑sale rule is arguably the most misunderstood part of TLH. Here’s what you need to know:
| Element | IRS Definition | Practical Guidance |
|---|---|---|
| Substantially Identical | No precise definition, but generally “same issuer, same CUSIP, or securities that are virtually interchangeable.” | Use different fund families, different ticker symbols, or switch from an ETF to a mutual fund tracking the same index. |
| 30‑Day Window | The rule applies to purchases 30 days before or 30 days after the loss sale. | Maintain a spreadsheet or set alerts in your brokerage to flag any purchases in that window. |
| Effect of Violation | The loss is disallowed for the current tax year and is added to the cost basis of the newly purchased “identical” security. | The loss is not lost forever; it is deferred until you finally sell the replacement security. |
| Partial Washes | If you only replace a portion of the position, the disallowed loss is prorated. | Be precise about share counts when you partially replace holdings. |
Real‑World Example of a Wash Sale
- Day 0: You sell 100 shares of VOO at a $2,500 loss.
- Day 2: You buy 100 shares of VOO again (perhaps forgetting the rule).
- Result: The $2,500 loss is disallowed. The $2,500 is added to the cost basis of the newly acquired VOO shares, postponing the deduction until you eventually sell those shares.
Because the IRS does not publish an exhaustive list of “substantially identical” securities, most tax professionals advise a conservative approach: treat any security that trades on the same exchange with the same underlying index as “identical” unless you can demonstrate a material difference (e.g., expense ratio, issuer, fund structure).
Staying Fully Invested While Harvesting
The goal of TLH is tax efficiency without sacrificing market exposure. Below are three proven substitution strategies:
| Substitution Strategy | How It Works | Example |
|---|---|---|
| ETF ↔️ Different ETF | Swap a losing ETF for another that tracks the same index but has a different ticker/issuer. | Sell Vanguard S&P 500 (VOO), buy iShares Core S&P 500 (IVV). |
| ETF ↔️ Mutual Fund | Replace an ETF with a mutual fund that has the same benchmark. Mutual funds are rarely considered “identical.” | Sell VOO, buy Fidelity® 500 Index Fund (FXAIX). |
| Sector Swap | Move from a single‑stock position that has incurred a loss to a sector‑wide ETF that provides similar beta. | Sell a losing Technology stock, buy Technology Select Sector SPDR (XLK). |
Managing Transaction Costs
- Commission‑Free Platforms: Most major brokers (e.g., Fidelity, Charles Schwab, Robinhood) offer $0 commission on ETF trades, making TLH cost‑effective.
- Bid‑Ask Spread: Choose highly liquid ETFs (average daily volume > 1M) to keep spread costs under 5 basis points.
- Tax‑Lot Identification: Use “specific identification” rather than FIFO to select the highest‑cost shares for sale, maximizing the realized loss.
Who Can Automate It? Robo‑Advisors, Broker Platforms, and DIY Solutions
| Platform | TLH Automation Level | Typical Cost | Ideal User |
|---|---|---|---|
| Wealthfront | Continuous, daily TLH across taxable accounts | 0.25% AUM (includes TLH) | Hands‑off investors who value set‑and‑forget. |
| Betterment | Daily TLH, with “Tax‑Loss Harvesting Plus” for larger accounts | 0.25%–0.40% AUM | Investors with >$100k taxable assets. |
| Charles Schwab Intelligent Portfolios® | Quarterly TLH (limited to accounts >$50k) | 0.25% AUM | Schwab clients who want a hybrid of robo and human oversight. |
| Fidelity Go® | No automatic TLH (as of 2024) | 0.35% AUM | Fidelity’s lower‑cost option; DIY TLH required. |
| M1 Finance | No native TLH, but offers “Preferred” accounts that allow custom “tax‑efficient” rebalancing scripts via API. | 0% commission; $10 monthly for premium | Tech‑savvy DIYers. |
| DIY using Brokerage “Tax Center” | Manual identification and execution; many brokers provide loss‑harvesting reports. | $0 commission (most ETFs) | Investors comfortable with spreadsheets and tax software. |
Key Takeaway: If you have $100k+ in a taxable account, a robo‑advisor can perform TLH with negligible incremental cost. Below that threshold, DIY or semi‑automated solutions often make more sense.
When Tax‑Loss Harvesting Matters Most
- High‑Income Years – Taxpayers in the 35%–37% marginal income bracket pay 20% long‑term capital gains tax plus a 3.8% NIIT. Each $1,000 of loss can shave off ~$2,380 in federal tax.
- Large One‑Time Gains – Sale of a business, inheritance of appreciated assets, or a major real‑estate flip can generate millions in gains. TLH can significantly reduce the “bump” in tax liability.
- Year‑End Review – By December, you have a full picture of realized gains and can make strategic sales to maximize the $3,000 ordinary‑income offset.
- Market Volatility – Down‑turns create abundant loss opportunities. Historically, the S&P 500 has produced an average of 2–3% loss‑harvesting opportunities per year in volatile cycles.
Conversely, tax‑exempt investors (e.g., those in the 0% long‑term capital gains bracket) or those whose portfolio is already tax‑loss carryforward rich may see little incremental benefit.
Pros and Cons of Tax‑Loss Harvesting
| Pros | Cons |
|---|---|
| Immediate Tax Savings – Offsets current‑year gains, reducing payable tax. | Complex Record‑Keeping – Must track wash‑sale periods, cost basis adjustments, and carryforwards. |
| Defers Tax Liability – By carrying forward unused losses, you can lower taxes in future high‑gain years. | Potential Opportunity Cost – Replacing securities may introduce tracking error or slightly different risk characteristics. |
| Improves After‑Tax Returns – Even a modest reduction in tax drag can boost compound returns over decades. | Transaction Costs – Even commission‑free trades incur bid‑ask spreads and possible short‑term capital gains on the replacement. |
| Works with Any Account Type – Taxable brokerage accounts, 401(k) rollovers that become taxable, and even some trust accounts. | Wash‑Sale Rule – Violations nullify the loss and can create basis complications. |
| Automation Available – Robo‑advisors handle the heavy lifting, especially for larger accounts. | Limited Benefit for Low‑Income Taxpayers – If you are already in the 0% capital‑gains bracket, the strategy yields little return. |
| Strategic Portfolio Rebalancing – TLH can be synced with periodic rebalancing, improving overall asset allocation. | Potential for “Tax‑Lock‑In” – Frequent harvesting may discourage long‑term holding of high‑quality assets. |
Actionable Tips for a Successful Harvest
- Use Specific Identification – In your brokerage platform, select the highest‑cost shares to sell, maximizing the realized loss.
- Set Up Calendar Alerts – Mark the 30‑day window around each loss sale to prevent accidental wash purchases.
- Leverage Low‑Cost ETFs – Choose high‑liquidity, low‑expense ratio ETFs to keep tracking error and costs minimal.
- Batch Harvest Quarterly – If you’re DIY, schedule a “harvest day” at the end of each quarter to reduce the mental load.
- Coordinate with Income Planning – If you anticipate a high‑income year (e.g., bonus, RSU vesting), front‑load harvests to create a loss cushion.
- Consider State Taxes – Some states (e.g., California, New York) conform to federal capital‑gain treatment; others have separate rules—check local regulations.
- Document Everything – Export trade confirmations and broker “tax lot” reports into a dedicated folder for your CPA.
- Watch the “Superficial Loss” Rule for IRAs – Losses on securities sold within an IRA and repurchased in a taxable account can be disallowed; avoid cross‑account wash‑sales.
- Rebalance Simultaneously – Combine TLH with portfolio rebalancing to keep your asset allocation on target while harvesting.
- Run “What‑If” Scenarios – Use tax‑software (e.g., TurboTax, TaxAct) or an Excel model to forecast the tax impact of each potential loss before executing.
Key Statistics You Should Know
| Statistic | Source | Relevance |
|---|---|---|
| Average long‑term capital‑gain tax rate for top 10% earners (2023) | IRS Data Book 2023 | Highlights the monetary value of each $1,000 loss (~$2,380 saved). |
| Net Investment Income Tax (NIIT) applies to 18% of U.S. households | IRS, 2022 | Indicates a sizable segment where TLH can reduce an extra 3.8% tax. |
| 70% of taxable investors never perform TLH | Vanguard Investor Survey 2022 | Shows untapped tax‑saving potential. |
| Robo‑advisor TLH can increase after‑tax returns by 0.3%–0.5% per year | Journal of Financial Planning, 2021 | Demonstrates compounding benefit over a 30‑year horizon. |
| Average cost‑basis tracking errors increase by 12% when wash‑sale rules are ignored | CPA Advisory Board Study 2020 | Emphasizes the importance of meticulous record‑keeping. |
| ETF bid‑ask spreads for the 10 largest S&P 500 ETFs average 4.2 bps | Bloomberg ETF Data, 2024 | Confirms low transaction cost for typical TLH swaps. |
Frequently Asked Questions
1. Can I harvest losses on assets held in a retirement account?
No. Tax‑loss harvesting only applies to taxable accounts. Losses inside traditional IRAs, Roth IRAs, or 401(k)s are not deductible because gains are already tax‑deferred or tax‑free.
2. What happens if I accidentally trigger a wash sale?
The loss is disallowed for the current year and added to the cost basis of the newly acquired “substantially identical” security. The disallowed loss will be recognized when you eventually sell that replacement security, assuming no further wash sales occur.
3. Do short‑term capital losses offset long‑term gains?
Yes. The IRS allows any capital loss (short‑ or long‑term) to offset any capital gain, regardless of holding period. However, the tax rate applied to the net gain depends on its final classification (short‑ or long‑term).
4. Is it ever advisable to harvest a loss and repurchase the same security after 31 days?
Yes, if you still want exposure to that exact security. Waiting 31 days eliminates the wash‑sale rule, allowing you to claim the loss while eventually re‑establishing the original position. Some investors use a “30‑day bridge” ETF for the interim.
5. How do I handle losses on mutual funds that don’t have ticker symbols?
Mutual fund trades are recorded with a share class and CUSIP. Use the broker’s “tax lot” reporting to identify the specific shares sold at a loss. The wash‑sale rule still applies based on the CUSIP.
6. Can I harvest losses on foreign securities?
Yes, but be aware of currency gains/losses and the additional reporting requirements (e.g., Form 8938, FATCA). Foreign tax credits may also affect the net benefit.
7. Do I have to report the wash‑sale adjustment on my tax return?
The adjustment is automatically reflected in the cost basis of the replacement security on your Form 8949. You do not need to file a separate line item, but you must ensure the basis is correct.
8. What about “superficial losses” when moving assets between a taxable account and an IRA?
A “superficial loss” occurs when you sell a security at a loss in a taxable account, immediately contribute the same security to an IRA, and later withdraw it within the same 30‑day window. The loss is disallowed. Avoid by using cash contributions instead of securities.
9. Is it worth harvesting losses if I have a large carryforward from previous years?
If you already have substantial unused losses, additional harvesting provides diminishing marginal benefit in the current year but can increase the “buffer” for future high‑gain years. Consider your projected income trajectory.
10. Should I use TLH in a taxable brokerage account that also holds a taxable “cash” position?
Yes. Even cash holdings can be used to temporarily replace a sold security while you wait out the wash‑sale period, especially if you intend to repurchase the original security after 31 days.
Bottom Line
Tax‑loss harvesting is a powerful, repeatable strategy that can shave thousands of dollars off your tax bill, especially in high‑income years or when you experience market volatility. By respecting the wash‑sale rule, selecting appropriate replacement securities, and maintaining disciplined record‑keeping, you can boost your after‑tax returns without compromising market exposure. Whether you let a robo‑advisor do the heavy lifting or prefer a DIY approach, the fundamentals remain the same: realize losses strategically, replace wisely, and keep the tax man happy.
Disclaimer: This article is for informational purposes only and does not constitute tax, legal, or investment advice. Consult a qualified professional before making any tax‑related investment decisions.
Affiliate Disclosure
Discussion
Sign in with GitHub to leave a comment. Your replies are stored on this site's public discussion board.