MoatScopeMoatScope
← BlogOpen App
StrategyFebruary 26, 2026·3 min read·By Elena Kowalski

What Is Tax-Loss Harvesting? Saving Money on Taxes

Tax-loss harvesting sells losing investments to offset gains. Learn how it works, the rules, and how it can save thousands in annual tax payments.


Tax-loss harvesting is the practice of selling investments at a loss to offset capital gains taxes on your winners — reducing your total tax bill without changing your portfolio's market exposure. Done properly, it's one of the most reliable ways to improve after-tax returns. Studies estimate that systematic tax-loss harvesting can add 0.5-1.5% to annual after-tax returns — a meaningful advantage that compounds over decades.

How Tax-Loss Harvesting Works

Suppose you sold Stock A for a $10,000 gain this year and you hold Stock B at a $7,000 loss. By selling Stock B ("harvesting" the loss), you can offset $7,000 of the $10,000 gain — paying taxes on only $3,000 instead of $10,000. At a 20% long-term capital gains rate, that's $1,400 in tax savings. If you still like Stock B's prospects, you can buy a similar (but not identical) stock to maintain your market exposure.

If your harvested losses exceed your gains, you can deduct up to $3,000 of net losses against ordinary income each year ($1,500 if married filing separately). Any remaining losses carry forward indefinitely — you can use them to offset future gains in subsequent years. This carryforward feature makes harvested losses a long-lived tax asset.

The Wash Sale Rule

The IRS disallows the tax benefit if you buy a "substantially identical" security within 30 days before or after the sale — the wash sale rule. If you sell Stock B to harvest the loss and buy it back within 30 days, the loss is disallowed and added to the cost basis of the repurchased shares instead.

The workaround: buy a similar but not identical replacement. If you sell a specific technology stock at a loss, you can immediately buy a different technology stock or a technology sector ETF — maintaining your sector exposure while complying with the wash sale rule. The replacement doesn't need to be identical; it needs to provide similar market exposure.

MoatScope helps you find stocks that fit this strategy — filtered by moat rating, quality score, and fair value discount.
Try MoatScope →

When to Harvest Losses

Year-end is the most common harvesting period — investors review their portfolios in November and December to identify harvesting opportunities before the tax year closes. But losses can be harvested anytime during the year, and harvesting during sharp market declines (when many positions are temporarily underwater) can be especially productive.

Market-wide sell-offs create the best harvesting opportunities. During the March 2020 COVID crash, investors who harvested losses on temporarily depressed quality stocks — then replaced them with similar holdings — captured significant tax benefits while maintaining their portfolio positioning for the subsequent recovery.

Tax-Loss Harvesting and Quality Investing

Quality investors should harvest losses strategically rather than mechanically. Selling a quality business at a loss just for the tax benefit may cost you more in forgone returns than you save in taxes — especially if the replacement investment is less attractive. The decision should consider both the tax savings and the relative quality of what you're selling versus what you're buying as a replacement.

The ideal harvesting scenario: a quality stock you own has declined due to market-wide selling (not company-specific problems), you harvest the loss, and you replace it with an equally high-quality stock in the same sector that's also been indiscriminately sold. You get the tax benefit while maintaining exposure to quality businesses at depressed prices.

💡 MoatScope helps identify replacement stocks for tax-loss harvesting — finding quality businesses in similar sectors that maintain your portfolio's quality profile while complying with the wash sale rule.
Tags:tax-loss harvestingcapital gainstax strategyinvesting strategyportfolio management

EK
Elena Kowalski
Portfolio Strategy & Risk Management
Elena writes about portfolio construction, risk management, and the strategic decisions that shape long-term investment outcomes. More articles by Elena

Related Posts

Lump Sum vs. Dollar Cost Averaging: Which Is Better?
Strategy · 7 min read
How to Rebalance Your Portfolio (And When to Do It)
Strategy · 3 min read
What Is Sector Rotation? How Market Cycles Work
Strategy · 3 min read

Find stocks that fit this approach

Filter by moat rating, quality score, sector, and valuation. MoatScope makes quality investing systematic across 2,600+ stocks.

Try MoatScope — Free