Careerquiz · Independent Financial JournalismEditorial standards

Tax Loss Harvesting: How to Use Investment Losses to Lower Your Tax Bill

If you're managing a taxable brokerage account, you've likely seen the impact of capital gains tax year after year. But what if you could turn your losing investments into a tax advantage? That's the core idea behind tax loss harvesting. When used correctly, this strategy can reduce your taxable income, improve your after-tax investment returns, and position your portfolio for the long term. In this guide, we'll break down what tax loss harvesting is, how to put it into practice with examples, and the critical rules you need to follow to avoid costly mistakes.

What Is Tax Loss Harvesting?

Tax loss harvesting is the practice of selling investments that have declined in value and replacing them with similar (but not substantially identical) investments to realize a capital loss for tax purposes.

When you sell an asset for less than you paid, you generate a realized capital loss. The tax code lets you use those losses to offset capital gains—and if your losses exceed your gains, you can also offset up to $3,000 of ordinary income each year (or $1,500 if married filing separately). Any leftover losses carry forward to future tax years indefinitely.

For example, if you have $10,000 in realized capital gains and also sell a losing stock for a $4,000 loss, your net capital gain becomes only $6,000. That reduces your tax bill immediately. If you have no capital gains, those losses directly reduce your taxable ordinary income, which can be even more valuable because ordinary income rates are typically higher than capital gains rates.

The primary benefit is not to avoid taxes entirely but to defer them and manage them more strategically over time. By realizing losses now, you lower your tax liability early, giving you more money to reinvest for growth.

How Tax Loss Harvesting Works with an Example

Let your portfolio do the math. Here's a simple scenario to show how tax loss harvesting works in practice:

  • January: You buy 100 shares of Company A for $50 per share ($5,000).
  • December: The shares have dropped to $30 per share ($3,000). You decide to sell and realize a $2,000 capital loss.
  • December (same day): You use the proceeds to buy a similar but not substantially identical fund, like an S&P 500 ETF (if Company A isn't in the index) or a different ETF tracking the same index, to maintain market exposure without violating the wash-sale rule.

Now, when you file your taxes:

  • If you already realized $2,000 in short-term gains elsewhere that year, the loss cancels them out.
  • If you have no other gains, the $2,000 loss directly reduces your ordinary income up to the $3,000 cap.

Let's extend this with a bigger example:

  • You have $12,000 in short-term capital gains (taxed at your ordinary income rate).
  • You also sell a losing mutual fund position and realize a $9,000 loss.
  • The net taxable gain becomes $3,000 ($12,000 – $9,000). Your tax savings at a 24% ordinary income rate would be $2,160.

Even better, if you harvest losses in a year with no gains, the IRS allows you to use up to $3,000 to offset earned income. If you're in the 22% bracket, that's a $660 savings. If your loss is larger than $3,000, the leftover $6,000 carries forward, providing a $1,320 benefit in future tax years if the same brackets apply.

Benefits and Strategic Uses Beyond Taxes

Tax loss harvesting isn't just about lowering your tax bill—it can also help you rebalance and improve your portfolio's after-tax health.

Key Advantages:

  • Lower current-year tax liability – Offset capital gains or reduce ordinary income up to the annual limit.
  • Carryforward potential – Unused losses don't expire; you can carry them forward to offset future gains or income indefinitely.
  • Portfolio rebalancing – Selling losers gives you a natural opportunity to sell and reinvest, allowing you to adjust your asset allocation while capturing those losses.
  • Avoiding tax-loss disallowance on reinvestment – As long as you respect the wash-sale rule, you can exit a losing position and immediately move into a different investment, maintaining desired market exposure.
  • Potential state tax benefits – Many states follow federal rules, but some have different treatment of capital losses. In states with high income tax, harvesting losses can reduce both state and federal tax.

Strategic investors often combine tax loss harvesting with year-end tax planning. Review your portfolio in December, calculate your net realized gains, and look for unrealized losses to generate gains you can offset. This is especially helpful in years when you are selling winners to rebalance or raise cash.

Limitations and Rules You Must Know

The single most important rule to remember is the wash-sale rule, as defined by the IRS in Section 1091. If you sell a security at a loss and buy a *substantially identical* security within 30 days before or after the sale, the loss is disallowed, and you can't claim it on this year's tax return. That rule exists to prevent investors from creating artificial tax losses while keeping the same investment position.

What counts as "substantially identical" is nuanced. It clearly includes the same stock, but it also includes certain options or contracts. For example, selling shares of a mutual fund and immediately buying the same mutual fund is a wash. However, selling one ETF that tracks the S&P 500 and buying another that tracks the same index but is issued by a different company is generally not considered a wash sale (for most exchange-traded funds, because they are separate securities), but you should consult an advisor for your situation.

Other Important Considerations:

  • Retirement accounts – Tax losses harvested inside an IRA or 401(k) are not recognized, because those accounts are already tax-advantaged.
  • Transaction costs – Frequent harvesting may generate commissions and spreads that eat into your tax savings. With no-commission brokers, this is less of an issue, but tracking costs still matters.
  • Capital gain terms – Offset short-term gains (taxed at ordinary income rates) before long-term gains because they are more valuable to offset. Losses are applied first to gains of the same type, but the IRS has ordering rules.
  • Tax-loss carryforward tracking – If you carry a loss forward, you must keep records. Form 1040 Schedule D and the Capital Loss Carryover worksheet help you track unused losses.
  • Beware of over-harvesting – Selling large portions of your portfolio each year could trigger complex tax situations and potentially increase your state tax if you have offset differences.

Most brokers offer wash-sale tracking tools, but be careful: each account is often treated separately. You can accidentally create a wash sale across accounts—say, selling in your taxable account while buying an identical security in your IRA within 30 days. That can permanently disallow the loss if the replacement purchase is inside an IRA because you don't receive a new cost basis there.

Bottom Line

Tax loss harvesting can be a powerful component of a tax-smart investment strategy, particularly for investors in high tax brackets or those with meaningful taxable brokerage accounts. The ability to offset capital gains and up to $3,000 of ordinary income each year can lower your tax bill and provide more money to compound for the future.

However, it's not a year-round hobby. The most effective approach is to review your portfolio at least annually—ideally in December—and pair harvesting with rebalancing. Always respect the wash-sale rule and keep thorough records of your realized losses and carryforwards.

A financial advisor or tax professional can help you customize the strategy to your specific situation, especially if you have complex holdings, multiple accounts, or significant unrealized gains. By understanding both the benefits and limitations, you'll be better positioned to make decisions that support your long-term wealth building.

Frequently Asked Questions

What is the $3,000 limit in tax loss harvesting?

The $3,000 limit is the maximum amount of capital losses that can be used to offset ordinary income (such as wages) in a single tax year for single filers or married couples filing jointly. Any excess losses carry forward to future years.

How long is the wash-sale period in tax loss harvesting?

The wash-sale period is 61 days: 30 days before the sale, the day of the sale, and 30 days after the sale. If you purchase a substantially identical security within that window, the IRS will disallow the loss.

Can I tax loss harvest in my retirement account?

No. Retirement accounts like 401(k)s and traditional IRAs are generally exempt from capital gains taxes, so losses inside them do not create tax benefits. Tax loss harvesting only applies to taxable brokerage accounts.

References

Learn moreHow to File Taxes: A Step-by-Step Guide for the 2024 Tax YearTaxesNext Article→