Somewhere in a taxable brokerage account right now, there are positions sitting at a loss. Not catastrophic losses — just holdings that have slipped below their purchase price in a down quarter, a volatile sector rotation, or a broader market dip. Most investors glance at those red numbers and feel vaguely bad. Sophisticated investors see an opportunity.
That opportunity is tax-loss harvesting: the deliberate practice of selling investments at a loss to generate a tax deduction that can be used to offset capital gains — and in some cases, ordinary income. Done correctly, it doesn't require changing your investment thesis. It doesn't require permanently abandoning a position. It just requires knowing the rules, following the calendar, and acting with purpose.
What Tax-Loss Harvesting Actually Is
The term sounds technical, but the concept is straightforward. When you sell a security for less than you paid for it, you realize a capital loss. The IRS allows you to use that realized loss to offset realized capital gains from other investments in the same tax year. If your losses exceed your gains, you can deduct up to $3,000 of the excess against ordinary income annually — and carry the remainder forward indefinitely to future tax years.
The key word is realized. A paper loss — where a stock is down but you haven't sold — gives you nothing. Only by actually selling do you crystallize the loss into something the IRS recognizes. This is what makes the strategy both powerful and action-dependent: it requires you to act before December 31st each year.
"The goal isn't to lose money. It's to strategically recognize losses you already have on paper — and then put that recognition to work against the tax bill you were going to owe anyway."
— WealthEdge Tax Strategy DeskShort-Term vs. Long-Term Losses: Why It Matters
Capital gains and losses are classified by holding period. Positions held for one year or less produce short-term gains or losses, taxed at your ordinary income rate (up to 37% federally in 2025). Positions held for more than one year produce long-term gains or losses, taxed at preferential rates of 0%, 15%, or 20% depending on your income.
The netting rules matter here. Short-term losses must first offset short-term gains, and long-term losses must first offset long-term gains. Only if one category has a net excess does it cross over to offset the other. This means a short-term loss is particularly valuable — it offsets income that would otherwise be taxed at your highest marginal rate.
The Mechanics: A Step-by-Step Walkthrough
Understanding the concept is one thing. Executing it without mistakes is another. Here is how the process works in practice.
Step 1: Identify Positions With Unrealized Losses
Log into your taxable brokerage account and look at your cost basis. Most brokers (Fidelity, Schwab, Vanguard, TD Ameritrade) will display your unrealized gain or loss for each position directly. Focus on positions with meaningful losses — harvesting a $200 loss rarely justifies the transaction cost and record-keeping overhead, but a $4,000 or $14,000 unrealized loss is worth acting on.
Step 2: Sell the Position
Execute the sale before December 31st for the loss to count in the current tax year. The settlement date doesn't need to fall before year-end in most cases — the trade date controls when a gain or loss is recognized for tax purposes.
Step 3: Reinvest Immediately — But Carefully
This is where most investors either waste the opportunity or walk into the wash-sale trap. The goal of tax-loss harvesting isn't to exit the market — it's to stay invested while capturing the tax benefit. That means reinvesting the proceeds immediately, but not back into the same security or a "substantially identical" one for at least 30 days.
Harvesting in a Taxable Portfolio
Suppose you bought 100 shares of a broad technology ETF at $420/share in January. By October, it's trading at $347. You also realized $9,000 in gains from selling a position in a healthcare company earlier in the year.
Here's how harvesting plays out:
You immediately reinvest in a similar-but-not-identical ETF tracking the same sector to maintain market exposure while the 30-day window clears.
The Wash-Sale Rule: The Most Dangerous Trap
The IRS isn't naive. It anticipated that investors might sell a position purely for the tax loss and immediately repurchase it. To prevent this, it enacted Section 1091 of the Internal Revenue Code — commonly known as the wash-sale rule.
The rule states: if you sell a security at a loss and buy a "substantially identical" security within 30 days before or after that sale, the loss is disallowed. Not deferred — disallowed for the year. The disallowed loss is added to the cost basis of the new position, but the immediate tax benefit is gone.
The 30-day wash-sale window runs 61 days total — 30 days before the sale, the sale date itself, and 30 days after. Buying the same security back on day 28 after selling triggers the rule. Mark your calendar.
What Counts as "Substantially Identical"?
The IRS has never published an exhaustive definition, which creates genuine ambiguity — and real opportunity. What is clear:
- Selling Apple shares and immediately buying Apple shares is a wash sale. Obviously.
- Selling a Vanguard S&P 500 ETF (VOO) and immediately buying the iShares S&P 500 ETF (IVV) is a gray area that most tax professionals consider not a wash sale — they track the same index but are different funds from different issuers.
- Selling a fund and buying the same fund — even a mutual fund exchanged for the ETF equivalent from the same provider — likely triggers the rule.
- Bonds are generally easier to navigate because two corporate bonds from the same issuer with different maturities or coupon rates are typically not considered substantially identical.
The safest strategy: if you sell a broad market ETF, replace it with an ETF that tracks a similar-but-different index. For example, swap a Total Stock Market fund for an S&P 500 fund, or exchange an S&P 500 ETF for a Russell 1000 ETF. Same economic exposure, no wash sale.
Smart Replacement Security Pairs
- Vanguard Total Stock Market (VTI) → Replace with iShares Core S&P Total US Stock Market (ITOT) or Schwab US Broad Market (SCHB)
- Vanguard S&P 500 (VOO) → Replace with iShares Core S&P 500 (IVV) or SPDR S&P 500 (SPY)
- Vanguard Total International (VXUS) → Replace with iShares Core MSCI Total International (IXUS)
- Individual sector ETF → Replace with a competing issuer's version of the same sector (e.g., XLK → VGT)
Always consult a tax advisor for individual situations. The substantially-identical question can depend on facts specific to each case.
When Tax-Loss Harvesting Makes Financial Sense
The strategy is not universally beneficial. Several factors determine whether harvesting a particular loss is actually worth executing:
Your Current Marginal Tax Rate
Harvesting is most valuable when you're in a high tax bracket. If you're in the 0% long-term capital gains bracket (taxable income under ~$94,050 for married filers in 2025), you have no capital gains tax to offset — harvesting provides no current-year benefit, though future carryforward may still matter.
Whether You Have Gains to Offset
A harvested loss that simply gets carried forward to offset future gains still has value — but that value is discounted by time. If you have current-year realized gains to offset, the benefit is immediate and certain. Prioritize harvesting in years when you have taken profits elsewhere in the portfolio.
Transaction Costs and Bid-Ask Spreads
Commission-free trading has largely eliminated one barrier. But for thinly traded securities, the bid-ask spread can eat into the value of a small harvested loss. As a general rule, the tax value of the loss should exceed all transaction friction by a comfortable margin before proceeding.
The Reset of Your Cost Basis
When you sell to harvest a loss and repurchase a replacement security, you're resetting your cost basis lower. This means any future gains in the replacement position will be larger — and taxed accordingly. You're not eliminating tax liability; you're deferring it. The benefit comes from the time value of that deferral, which is real and meaningful over a multi-decade holding period.
Accounts Where Harvesting Works — and Where It Doesn't
Tax-loss harvesting only applies to taxable brokerage accounts. In tax-advantaged accounts — 401(k), IRA, Roth IRA, HSA — gains and losses have no current-year tax consequences. Selling a losing position inside an IRA generates no deductible loss. The strategy is irrelevant in those vehicles.
This also means your cost basis management matters most in your taxable account. Choose the specific identification accounting method (rather than FIFO — first in, first out) so you can select exactly which tax lots to sell when harvesting. Most brokers allow this when you specify it at the time of the trade.
Set your default cost basis method to Specific ID / SpecID in your taxable brokerage account settings. This lets you harvest the highest-cost tax lots first, maximizing the realized loss and giving you more flexibility than FIFO would allow.
Building a Year-Round Harvesting System
Reactive harvesting — selling in December because you just realized it's almost year-end — is better than nothing, but it leaves money on the table. Proactive investors build a system that captures opportunities throughout the year.
Set Threshold-Based Alerts
Most brokerage platforms let you set alerts when a position moves by a specified dollar amount or percentage. Consider setting an alert when a position shows an unrealized loss of 5% or greater from your cost basis — not to panic-sell, but to evaluate whether harvesting makes sense given your current tax situation.
Review Quarterly, Not Just Annually
Q1 sell-offs, mid-year corrections, and sector rotations all create harvesting opportunities that will have vanished by December if markets recover. A quarterly calendar review of unrealized losses ensures you capture these windows as they appear rather than looking back at what might have been.
Coordinate Across Your Entire Household
If you and a spouse file jointly and both maintain taxable accounts at separate brokers, coordinate. A loss harvested in one account can offset gains realized in the other. Also be aware that the wash-sale rule applies across all your accounts — including IRAs. If you sell a stock at a loss in your taxable account and your spouse holds the same stock in their IRA and it gets purchased there within the 61-day window, your loss may be disallowed.
Automated Harvesting: Robo-Advisors and What They Actually Do
Several digital wealth management platforms — Betterment, Wealthfront, and Schwab Intelligent Portfolios Premium among them — offer automated tax-loss harvesting as a feature. These systems monitor your portfolio daily and execute harvests when losses exceed a predefined threshold, immediately reinvesting in pre-approved replacement securities.
The appeal is real: daily monitoring is more effective than quarterly human review, and automation removes the behavioral inertia that prevents many investors from pulling the trigger on a tax move. Research from these platforms suggests automated harvesting can add 0.50% to 1.50% in after-tax alpha annually for taxable investors — though results depend heavily on market volatility, account size, and the investor's tax situation.
The Limitations of Automation
Automated harvesting works best with diversified, ETF-based portfolios at scale. It's less effective for concentrated positions, individual stocks, or portfolios with significant embedded gains (where harvesting replacement securities back into the original would trigger gains). It also doesn't integrate with the rest of your financial life — your accountant's judgment about whether to harvest in a specific year, given your income trajectory or upcoming liquidity events, is something no algorithm can fully replicate.
Common Mistakes That Negate the Benefit
Beyond the wash-sale rule, several other mistakes routinely undermine otherwise sound harvesting strategies:
- Failing to track the 61-day window precisely. Setting a calendar reminder on the day of sale for 31 days later is not sufficient. Count from the date of sale, including weekends.
- Harvesting in a low-income year. If you're in the 0% long-term gains bracket, harvesting creates a carry-forward loss at zero immediate benefit. Wait for a higher-income year if you can plan ahead.
- Ignoring state taxes. Most states conform to federal capital gains rules, but some don't. California, for example, taxes all capital gains as ordinary income — which actually makes harvesting more valuable there, not less.
- Selling appreciated securities to "realize gains before harvesting losses." Unless you have another strategic reason, generating gains simply to consume harvested losses is tax-inefficient.
- Letting the tax tail wag the investment dog. Don't hold a fundamentally broken business because you don't want to realize a gain. Tax efficiency should optimize your strategy, not override it.
The Bottom Line
Tax-loss harvesting is one of the few tools in investing that requires no market prediction, no special access, and no above-average returns. It works by exploiting the structure of the tax code to defer and reduce the liability that would have accrued anyway — a form of legal arbitrage available to any taxable investor willing to pay attention.
The investors who benefit most are those who build it into their routine: reviewing the portfolio quarterly, maintaining a list of suitable replacement securities, tracking wash-sale windows on a calendar, and coordinating across accounts. It is not a one-time move. It is a practice — one that compounds quietly into meaningful after-tax outperformance over a lifetime of investing.
"In a market where genuine edge is rare, tax alpha is one of the most reliable forms of it — and most investors simply choose not to collect it."