Login Create Free Account

Tax-Loss Harvesting: Turning Investment Losses into Tax Savings

By Eric Etu, Founder, AlwaysOnTax.com · Last updated

What is Tax-Loss Harvesting?

Tax-loss harvesting is the practice of deliberately selling investments at a loss to realize a capital loss, then using that loss to offset capital gains elsewhere in your portfolio — or carrying the loss forward to offset gains in future years. The result is a lower tax bill while maintaining roughly the same investment exposure by buying a similar (but not identical) security.

It’s a tax strategy that has been used for decades. Some robo-advisors built entire businesses around automating it. Yet most individual investors don’t do it, either because they don’t understand it, they find it complicated to track, or they have an emotional aversion to “selling losers.”

For high-income earners — especially those with large capital gains from equity compensation, stock sales, or bonuses — tax-loss harvesting can save thousands of dollars per year.

How It Works: The Basic Mechanics

Here’s the straightforward version:

  1. You sell a losing position. You own 100 shares of Stock A that you bought for $10,000 but is now worth $8,000. You sell, realizing the $2,000 capital loss.

  2. You offset gains. That $2,000 loss can offset $2,000 of capital gains elsewhere in your portfolio (from other stock sales, mutual fund distributions, etc.). If you have $5,000 in capital gains that year, the loss reduces your taxable gain to $3,000.

  3. You maintain exposure. To keep your portfolio aligned with your original strategy, you buy a similar (but not identical) investment — perhaps a competitor in the same sector, or a different fund tracking the same index. You’re out of the original position for wash sale purposes, but your portfolio allocation stays roughly the same.

  4. You carry forward unused losses. If your losses exceed your gains in a given year, you can carry the unused loss forward indefinitely to offset future gains.

The Wash Sale Rule: An Important Constraint

The main limitation on tax-loss harvesting is the wash sale rule. If you sell a security at a loss, you cannot buy that same security (or a “substantially identical” one) within 30 days before or after the sale, or the loss is disallowed for tax purposes.

This rule prevents you from harvesting a loss on Stock A and immediately buying Stock A again — which would give you the tax benefit while maintaining 100% of your exposure.

Understanding wash sale rules is critical to harvesting effectively. We cover this in detail in a separate guide.

Capital Gains: Short-Term vs. Long-Term

Losses can offset gains at the same rate — short-term losses offset short-term gains; long-term losses offset long-term gains. Long-term losses can also offset short-term gains (which is valuable because short-term gains are taxed at higher rates). Understanding whether your harvested loss is short-term or long-term matters for optimizing which gains it offsets.

When Tax-Loss Harvesting Adds Value: Coordination with Your Broader Tax Plan

Tax-loss harvesting isn’t equally valuable every year. It’s most powerful when coordinated with your overall tax situation.

High-gain years. If you have a large capital gain from selling company stock, exercising equity options, or receiving a bonus, harvesting losses that year directly reduces your tax bill on those gains. Consider a worst-case scenario: a short-term capital gain in the 37% federal tax bracket, plus another 3.8% from the Net Investment Income Tax (NIIT), means you could pay more than 40% of that gain in taxes (and for retirees, this could be even worse as it may impact Social Security taxation and Medicare premiums). It would be advantageous to offset that gain in that high-income year, especially if you expect your tax bracket to be lower next year.

Income management. Realized losses reduce your net capital gains, which can lower your Adjusted Gross Income (AGI) and Modified Adjusted Gross Income (MAGI). This can help in several ways:

  • Reducing exposure to NIIT if your MAGI is near the threshold
  • Lowering IRMAA (Medicare surcharges) if you’re near-retiree or in retirement
  • Improving financial aid eligibility if you have a college-bound child

Timing coordination. The value of a loss depends on your tax bracket that year. A loss realized in a high-income year is worth more than the same loss in a lower-income year. Harvesting should ideally align with years when you have substantial gains or high income.

Annual limit on capital losses. While you may be able to offset most or all of your capital gains by harvesting losses, if your losses exceed your gains in a particular tax year, you can only claim a maximum of $3k in losses this year. You can carryforward the remaining capital losses to future tax years (claiming up to $3k in losses each year). Many taxpayers manage this math closely, by only capturing gains and losses that approximately offset one another - to avoid these carryforwards.

Practical Considerations: Why Most People Don’t Do This

Emotional friction. Selling a losing position feels like “locking in” the loss. Psychologically, many investors would rather hold and hope for a recovery. But from a tax perspective, realizing the loss and maintaining exposure through a similar security is often the better choice.

Tracking complexity. If you harvest losses throughout the year, you need to track every sale, realize date, and replacement purchase to avoid wash sale violations. Miss one, and your loss gets disallowed. Most individuals don’t have systems to track this reliably.

ETFs vs. individual stocks. The rise of low-cost ETFs has simplified investing, but it’s made tax-loss harvesting harder. When you own one broad-market ETF instead of individual stocks, you have fewer “losers” to harvest. Selling the entire ETF position triggers a wash sale for 30 days, locking you out of that asset class. For passive investors, the simplicity of ETFs outweighs the lost harvesting flexibility. But for high-income earners with large capital gains, a more active approach — holding some individual positions or sector-specific funds — may create more harvesting opportunities.

The Takeaway

Tax-loss harvesting is an often underused strategy for reducing capital gains taxes, especially valuable in high-gain years or when you’re managing your broader tax situation. The mechanics are simple: realize losses, offset gains, maintain exposure through similar securities. The main constraint is the wash sale rule, which prevents you from buying the same security within 30 days. The strategy works best when coordinated with your overall tax picture — high-income years, large capital gains, or situations where lower AGI/MAGI helps with NIIT, Medicare surcharges, or other tax issues. Tracking is the main practical challenge — getting it wrong can disallow losses you thought you’d harvested.

This guide is for educational purposes only and does not constitute tax, legal, or investment advice. Tax outcomes depend on your individual circumstances and may change based on future legislation or IRS guidance. AlwaysOnTax does not address state or local tax planning. Consult a qualified tax professional before acting on any strategy discussed here.