Back to Blog
Article-specific conceptual hero image for Tax-Loss Harvesting Explained.

Tax-Loss Harvesting Explained

Andrew Izyumov, Founder & CEO at 8FIGURES
By Andrew Izyumov, CFA
Founder of 8FIGURES
Portfolio Allocations
July 9, 2026
12
min read

Tax-loss harvesting is a strategic investment technique where you sell underperforming securities at a loss to offset realized capital gains and a portion of your ordinary income each year. By understanding IRS rules—such as the 30-day wash-sale window and specific netting processes—you can minimize your tax burden and keep more of your money working in the market.

When navigating volatile markets, seasoned investors look for ways to optimize their portfolios beyond simple asset selection. One of the most powerful tools available to individual investors is tax-loss harvesting. By intentionally selling underperforming assets at a loss, you can directly reduce your tax liability, offset realized capital gains, and even lower your taxable ordinary income.

According to Vanguard educational resources, tax-loss harvesting involves selling securities at a loss to offset capital gains in other investments or income. While it cannot turn a bad investment into a good one, it can significantly soften the blow of market downturns by generating valuable tax deductions. However, executing this strategy successfully requires strict adherence to Internal Revenue Service (IRS) regulations, including the complex wash-sale rule and specific netting procedures.

How Tax-Loss Harvesting Offsets Capital Gains and Ordinary Income

When you sell an investment in a taxable brokerage account, the tax consequences depend entirely on whether you made a profit or took a loss relative to your adjusted cost basis. If you sell for more than you paid, you realize a capital gain. If you sell for less, you realize a capital loss.

Tax-loss harvesting allows you to use these realized losses to lower your tax bill in two distinct ways:

  • Offsetting Capital Gains: Your realized capital losses can be used to offset an unlimited amount of realized capital gains in the same tax year. If you made a $10,000 profit from selling one stock but realized a $10,000 loss on another, your net taxable capital gain is reduced to $0.
  • Offsetting Ordinary Income: If your total capital losses exceed your total capital gains for the year, Vanguard tax guidance notes that individuals can reduce their taxable income by up to $3,000 for the year. This deduction is highly valuable because ordinary income tax rates are typically much higher than long-term capital gains tax rates.

For married couples filing separate tax returns, the rules are slightly adjusted. According to Becker Professional Education, the annual capital loss deduction against ordinary income is limited to $1,500 for married individuals filing separately. It is also important to note that these rules differ by entity type; Becker tax analysis notes that corporations are not allowed to offset ordinary income with capital losses. Instead, Becker's corporate tax guide states that corporations can carry capital losses back to each of the three preceding tax years and forward for up to five years.

The IRS Netting Rules: Matching Short-Term and Long-Term Transactions

The IRS does not allow you to arbitrarily apply any loss to any gain. Instead, you must follow a strict, multi-step netting process when filing Schedule D of Form 1040. Capital gains and losses are categorized by how long you held the asset before selling:

  • Short-Term: Assets held for one year or less. Selling an investment owned for less than one year is considered a short-term capital gain and is taxed as ordinary income, up to a 37% rate, as outlined by New York Life.
  • Long-Term: Assets held for more than one year. These are taxed at preferential rates of 0%, 15%, or 20% depending on your taxable income.

When netting your transactions, you must follow these specific steps:

First, you must perform same-category netting. As explained by Becker, short-term losses offset short-term gains, and long-term losses offset long-term gains. This is a critical first step to prevent mixing preferential tax rates prematurely.

Second, you perform cross-category netting if there are remaining balances. According to Instead tax planning strategies, short-term capital losses offset short-term capital gains first, and then any remaining short-term losses offset long-term gains. Conversely, there are limits on the other side of the ledger: Greenbush Financial notes that realized long-term losses can only be used to offset realized long-term capital gains, and cannot offset short-term capital gains.

Third, if you still have a net capital loss after completing all netting steps, you can apply up to $3,000 of that loss to reduce your ordinary income. Best of all, Greenbush Financial points out that investors do not need to itemize deductions to take advantage of the $3,000 capital loss tax deduction, meaning you can claim the standard deduction and still benefit.

Transaction TypeTax Treatment / RatePrimary Netting CompanionSecondary Netting Companion
Short-Term Capital GainOrdinary Income Rates (10% to 37%)Short-Term Capital LossesExcess Long-Term Capital Losses
Long-Term Capital GainPreferential Rates (0%, 15%, or 20%)Long-Term Capital LossesExcess Short-Term Capital Losses
Collectibles Gain28% maximum rateCollectibles LossesOther Capital Losses

The IRS Wash-Sale Rule and the 61-Day Danger Zone

To prevent investors from selling an asset solely to claim a tax write-off and immediately buying it back, the IRS enforces the strict wash-sale rule. According to Vanguard, the IRS wash-sale rule disallows claiming a loss if you buy the same or a substantially identical investment within 30 days before or after the sale.

This creates a total 61-day window where you must exercise extreme caution. As detailed by Firstcard, the wash sale rule danger zone spans a total of 61 days, including 30 days before the sale, the day of the sale, and 30 days after. If you purchase the same or a "substantially identical" security during this period, the tax loss is disallowed for the current tax year.

What happens to your disallowed loss? It is not permanently lost. Instead, Becker explains that disallowed wash sale losses are added to the cost basis of the repurchased security. This effectively defers your tax benefit until you eventually sell the replacement security. Additionally, J.P. Morgan Private Bank notes that when a wash sale occurs, the taxpayer's holding period on the original shares is added to the holding period of the newly acquired shares.

What Counts as "Substantially Identical"?

The IRS does not provide a rigid, exhaustive list of what constitutes a "substantially identical" security, which can make compliance tricky. However, some guidelines have emerged from industry practices:

  • Funds tracking the same index: The IRS has never published a precise, exhaustive definition, so the cautious approach is to avoid buying a near-identical replacement for a fund you just sold at a loss. Many investors instead move into a fund that tracks a different index — for example, swapping an S&P 500 fund for a total-stock-market or Russell 1000 fund — so the new holding is clearly not substantially identical.
  • Different issuers and structures: Securities that differ in meaningful ways, such as bonds with different issuers, maturities, or coupons, are generally easier to treat as not substantially identical, though the line is not always clear-cut.
  • When it is a judgment call: Because “substantially identical” is not defined for every situation, Vanguard’s tax-loss harvesting guidance stresses that the rule turns on whether the replacement is the same or substantially identical, so confirm any planned repurchase with a qualified tax professional before you trade.

Broad Scope and Hidden Traps

The wash-sale rule is incredibly broad and applies across your entire financial footprint. As explained by Plancorp, the wash sale rule applies across your entire portfolio, meaning a sale in one account and a repurchase in another account can trigger it. This includes accounts held at different brokerages, your spouse's accounts, and even tax-advantaged retirement accounts.

Furthermore, J.P. Morgan Private Bank points out that the wash sale rule applies to short sales and transactions in stock or securities, including warrants, convertible preferred stock, and options contracts.

Two common automated traps can easily trigger an accidental wash sale:

  • Dividend Reinvestments: If you have automatic dividend reinvestment (DRIP) enabled on a security you recently sold at a loss, the automatic purchase of fractional shares within the 30-day window can trigger a wash sale. As E*TRADE warns, dividend reinvestment and employee stock plan acquisitions may create a wash sale.
  • Broker Reporting Limits: While your broker is helpful, they cannot see your entire financial picture. E*TRADE notes that brokers are required to track and report wash sales that occur on the same security and within a single account. If you trigger a wash sale across two different brokerages or between a taxable account and an IRA, you must track and report this manually to the IRS.

Carrying Forward Unused Capital Losses Indefinitely

What happens if you have a highly volatile year in the market and realize a massive amount of capital losses, but have no capital gains to offset? The IRS does not require you to forfeit those excess losses.

According to Vanguard, excess capital losses can be carried forward to offset capital gains and income tax in future years. There is no expiration date or lifetime limit on these carryover losses. They will roll over year after year, allowing you to offset future capital gains and deduct up to $3,000 against ordinary income annually until the entire "loss bank" is completely exhausted.

These carried-forward losses retain their original tax character. A short-term capital loss carries forward as a short-term loss, and a long-term capital loss carries forward as a long-term loss, ensuring that the netting rules are applied correctly in future tax years.

When Is Tax-Loss Harvesting Worth It for Everyday Investors?

While tax-loss harvesting is a highly effective tool, it is not a "free lunch." It is primarily a tax-deferral strategy rather than a permanent tax-elimination strategy. When you sell an asset at a loss and buy a replacement asset, you lower your portfolio's overall cost basis. When you eventually sell those replacement assets years down the road, your taxable capital gains will be larger.

To determine if tax-loss harvesting is worth the administrative effort, consider the following decision criteria:

When It Is Highly Beneficial:

  • You are in a high tax bracket: The value of offsetting ordinary income or short-term gains is directly tied to your marginal tax rate. Saving as much as 37% on a $3,000 deduction is far more valuable for high earners than those in lower brackets.
  • You have significant capital gains to offset: If you recently sold a business, real estate, or highly appreciated stock, harvesting losses is an excellent way to neutralize those specific tax liabilities.
  • You want to rebalance your portfolio: It allows you to exit overweight or underperforming sectors and reinvest in your target asset allocation while generating a tax break.
  • You have a long investment horizon: According to Wealthfront research, tax-loss harvesting has very little value if applied over an investment horizon of less than two years, but can be extremely valuable if executed over a long period of time.
  • Tax-Rate Arbitrage: As explained by Wealthfront, tax-loss harvesting can allow investors to offset short-term capital gains today and pay long-term capital gains rates in the future. If you harvest losses while in a high tax bracket today and eventually liquidate those assets in retirement when you are in a lower tax bracket, you successfully execute "tax-rate arbitrage."

When It Is Not Worth Doing:

  • You are in a low tax bracket: For the taxable years beginning in 2025, a capital gains rate of 0% applies if taxable income is less than or equal to $48,350 for single individuals, according to the IRS. Similarly, the IRS states that for taxable years beginning in 2025, a capital gains rate of 0% applies if taxable income is less than or equal to $96,700 for married filing jointly. If your capital gains tax rate is already 0%, harvesting losses to offset those gains provides zero immediate tax savings.
  • The assets are in tax-advantaged accounts: As New York Life points out, tax-loss harvesting cannot be used in most tax-advantaged accounts, such as a 401(k) or IRA. Trades within these accounts do not trigger capital gains taxes, so losses provide no tax benefit.
  • You face high transaction costs: If your brokerage charges high trading fees, or if the bid-ask spread on the replacement asset is wide, the transaction costs can easily wipe out your marginal tax savings.
  • Market-timing risks: According to New York Life, tax-loss harvesting strategies are particularly susceptible to market-timing risks. If you sell an asset to harvest a loss and fail to buy a suitable proxy, or if you get locked out of the market during a sudden rebound because you are waiting out the 30-day wash-sale window, the missed market gains can easily dwarf your tax savings.
ScenarioTax-Loss Harvesting RecommendationPrimary Reason
Taxable Account, High Income BracketHighly RecommendedMaximizes value of $3,000 ordinary income offset and short-term gain reduction.
Taxable Account, 0% Capital Gains BracketNot RecommendedNo immediate tax savings; resets cost basis lower for future sales.
Traditional or Roth IRA / 401(k)Not ApplicableTax-advantaged accounts do not incur capital gains taxes on individual trades.
Cryptocurrency PortfolioHistorically ExemptAccording to Becker, cryptocurrencies have historically been classified as property rather than securities for tax purposes, meaning the wash sale rule has not applied to them.

Maximizing Your Tax Alpha Through Daily Monitoring

For investors who decide that tax-loss harvesting is a fit for their portfolio, the frequency of monitoring can play a major role in the strategy's overall effectiveness. Many traditional advisors only review portfolios for harvesting opportunities at the end of the year. However, market volatility occurs year-round, and waiting until December can mean missing out on significant downturns that occur in the spring or summer.

According to research published by J.P. Morgan Asset Management, reviewing a portfolio daily for tax-loss harvesting opportunities can yield, on average, about 30 basis points of additional annualized tax savings compared to a monthly approach. This extra "tax alpha" is generated by capturing short-lived market dips that recover before a monthly or annual review takes place.

While daily manual monitoring is incredibly tedious and impractical for individual investors, automated portfolio management tools can handle this tracking seamlessly, ensuring you never miss an opportunity to optimize your tax liability.

How 8FIGURES Can Help Optimize Your Portfolio

Tax-loss harvesting is a highly effective but complex strategy. One wrong move—like an accidental dividend reinvestment or buying a substantially identical stock in your spouse's IRA—can trigger the wash-sale rule, disallowing your tax deduction and complicating your tax filing.

At 8FIGURES, we help you inspect your portfolio to identify tax-loss harvesting opportunities while avoiding common pitfalls. Our platform analyzes your taxable brokerage accounts, tracks your cost basis, and helps you identify suitable proxy assets to maintain your market exposure safely. Whether you want to execute the strategy manually or explore automated options, we provide the clarity and data you need to maximize your after-tax returns.


Disclaimer: This article is for educational purposes only and does not constitute formal tax, legal, or investment advice. Tax laws are complex and subject to change. Always consult with a qualified Certified Public Accountant (CPA) or tax professional before executing tax-loss harvesting strategies. 8FIGURES does not guarantee any specific financial or tax outcome.

Related reading

Article-specific conceptual hero image for Tax-Loss Harvesting Explained.
See also

Try it now!

Managing your investments has never been easier!

Link to App Store
QR Code to App Strore
Link to Google Play
QR Code to Google Play
Encrypted
We keep your data safe. Always.
Industry-leading privacy & bank-level security are at the heart of 8FIGURES.