What Is Tax Loss Harvesting and How Is It Calculated?

August 15, 2026
Nischay Rawal, CPA, EA
August 15, 2026
Read Time:
24 minutes
Nischay Rawal
Managing Partner
Read Time:
24 minutes

‍Tax loss harvesting is the practice of selling an investment that has dropped below what you paid for it, turning a paper loss into a realized loss that offsets taxable gains elsewhere in your portfolio. Realized losses offset realized gains dollar for dollar with no annual limit. Once gains are exhausted, up to $3,000 of remaining loss reduces ordinary income each year, and anything beyond that carries forward indefinitely.

The sections below cover how the mechanic runs, who actually benefits, the netting order that determines your real dollar savings, the annual limits, the wash sale rule and the trap that destroys a loss permanently, how digital assets are treated differently, when to act, what the strategy saves, how to report it, and the costs that make it the wrong move in certain years.

Key Takeaways

  • Harvested losses offset capital gains dollar for dollar with no annual cap.
  • Losses beyond your gains reduce ordinary income by up to $3,000 per year, or $1,500 for married filing separately.
  • Unused losses carry forward indefinitely and never expire.
  • The wash sale rule disallows the loss if you buy a substantially identical security within 30 days before or after the sale.
  • Repurchasing inside an IRA after a taxable-account loss destroys the loss permanently, with no basis adjustment to recover it later.
  • Harvesting defers tax rather than eliminating it, because reinvesting at a lower price resets your cost basis downward.

What Is Tax Loss Harvesting?

Tax loss harvesting is a deliberate strategy of selling investments that have declined in value so the loss becomes realized and available to offset taxable gains. The strategy exists because the tax code treats paper losses and realized losses completely differently. A position down 30% that you still hold produces no tax benefit at all, and the same position sold produces a deduction.

The counterintuitive part is that harvesting does not require giving up your investment position. After selling the losing holding, you reinvest the proceeds in a similar but not identical security, which keeps your market exposure roughly intact while the loss becomes usable. The portfolio stays where you want it and the tax bill drops.

Losses are available on more than stocks. Bonds, exchange-traded funds, mutual funds, and digital assets all produce harvestable losses when sold below cost basis, and fixed income harvesting is common enough that institutional managers run it systematically alongside equity.

Can You Explain Tax-Loss Harvesting in Simple Terms?

In simple terms, tax loss harvesting means selling a loser to cancel out the tax on a winner. If you sold one stock for a $20,000 profit and another has dropped $20,000 below what you paid, selling the second one wipes out the tax on the first.

The loss has to be real to count. You cannot claim a deduction on a position you still hold and hope will recover, and you cannot sell and immediately buy the identical security back, which is the restriction the wash sale rule enforces.

How Does Tax Loss Harvesting Work?

Tax loss harvesting works by identifying positions trading below cost basis, selling them to realize the loss, reinvesting the proceeds in a similar holding, and applying the realized loss against gains on your tax return. Each step has a specific requirement attached.

Identification starts with cost basis rather than with recent performance. A position that fell 15% this quarter may still sit above what you paid for it three years ago, in which case there is no loss to harvest. Your broker's unrealized gain and loss report, not the price chart, is the document that matters.

Reinvestment is where most of the judgment sits. Selling a technology fund and buying a different technology fund from another provider generally preserves exposure without triggering the wash sale rule, while selling a stock and buying the same stock back three days later disallows the loss entirely. The replacement has to be similar in exposure and different in identity.

Application happens at filing. The realized loss flows onto your return, nets against your gains under a specific ordering rule, and reduces what you owe. The benefit arrives months after the trade, which is why harvesting decisions made in December are so frequently rushed.

Who Benefits Most From Tax Loss Harvesting?

Investors with realized capital gains, taxable brokerage accounts, and high marginal tax rates benefit most from tax loss harvesting. The strategy delivers nothing without gains to offset or income to reduce, which is the condition most often overlooked before someone starts selling.

Four situations produce outsized value. Investors sitting on short-term gains benefit most, since the maximum federal rate on short-term gains reaches 40.8% including the surtax compared with 23.8% on long-term gains. Owners of concentrated positions who need to diversify benefit, because harvested losses absorb the gains that diversification triggers. Anyone rebalancing a portfolio after a strong year benefits. So does anyone facing a one-time liquidity event.

Founders and early employees sit squarely in the third category. A concentrated equity position that has grown for years cannot be unwound without realizing substantial gain, and systematic loss harvesting elsewhere in the portfolio is one of the few tools that reduces the cost of diversifying. We work through this sequencing regularly with startup founders approaching or following a liquidity event.

Coordinating harvesting across multiple accounts, entities, and family members is where the strategy stops being a brokerage feature and becomes a planning function. Households with trusts, joint accounts, and separately managed portfolios frequently harvest in one place while inadvertently triggering wash sales in another, which is a core reason integrated family office oversight produces measurably better outcomes than account-by-account management.

Your state of residence changes the arithmetic more than most investors expect. A harvested loss in Florida produces federal savings only, since the state imposes no personal income tax, while the same loss in a high-tax state reduces two layers of liability and is therefore worth more per dollar.

How Is Tax Loss Harvesting Calculated?

Tax loss harvesting is calculated by netting losses against gains within each holding-period category first, then across categories, and finally against ordinary income up to the annual limit. That ordering is fixed by the tax code and it determines your actual dollar benefit more than the size of the loss does.

  1. Separate every transaction into short-term and long-term. Positions held one year or less are short-term; positions held more than one year are long-term.
  2. Net short-term losses against short-term gains. This produces either a net short-term gain or a net short-term loss.
  3. Net long-term losses against long-term gains. This produces either a net long-term gain or a net long-term loss.
  4. Cross the two categories. A net loss in one category offsets a net gain in the other, which is the step that produces your overall net capital gain or loss.
  5. Apply up to $3,000 against ordinary income. If the result is an overall net loss, up to $3,000 reduces ordinary income for the year, or $1,500 for married taxpayers filing separately.
  6. Carry the remainder forward. Any loss beyond the $3,000 allowance rolls into next year and retains its short-term or long-term character.

Step four is the one that quietly decides how much a loss is worth. Because short-term gains face a maximum federal rate of 40.8% including the surtax while long-term gains top out at 23.8%, a loss absorbed by a short-term gain saves roughly 17 cents more per dollar than the identical loss absorbed by a long-term gain. Harvesting short-term losses in a year with short-term gains is worth considerably more than the raw loss figure suggests.

Character carries forward with the loss. A long-term loss carried into next year arrives as a long-term loss and nets against long-term gains first, which means a carryforward built from long-term positions cannot be aimed at next year's short-term gains until the long-term category is exhausted.

How Much Can You Write Off With Tax-Loss Harvesting?

You can write off an unlimited amount of harvested losses against capital gains, plus up to $3,000 per year against ordinary income, with everything beyond that carried forward indefinitely. The unlimited portion is the part most investors underestimate.

What the loss can reachAnnual limitOrder appliedGains in the same holding-period categoryNo limitFirstGains in the opposite categoryNo limitSecondCapital gain distributions from mutual funds and ETFsNo limitTreated as long-term gainsOrdinary income, including wages and business profit$3,000 per year ($1,500 married filing separately)ThirdQualified dividendsNot directly offsetDividends are income, not capital gainsFuture tax yearsNo limit, no expirationCarried forward with original character

Sources: IRS, Topic No. 409, Capital Gains and Losses; Internal Revenue Code Sections 1211 and 1212 (annual limitation and carryover rules).

Timing the harvest against the gain matters as much as the amount. Losses realized in a year with no gains fall straight to the $3,000 allowance, while the same losses realized in a year with a large gain absorb the entire gain first. Coordinating a planned sale with a planned harvest inside the same tax year is basic tax planning and it routinely changes the result by five figures.

Can You Write Off More Than $3000 in Stock Losses?

You can write off more than $3,000 in stock losses when you have capital gains to offset, because the $3,000 cap applies only to the portion of loss deducted against ordinary income. An investor with $60,000 of realized gains and $70,000 of harvested losses uses $60,000 against the gains without limit, deducts $3,000 against ordinary income, and carries $7,000 forward.

The $3,000 figure has stood unchanged since 1978 and carries no inflation adjustment. A limit that represented meaningful relief nearly five decades ago now covers a small fraction of the losses a typical taxable portfolio generates in a down year, which is why carryforwards accumulate so easily.

How Many Years Can You Write Off Stock Losses?

You can write off stock losses for as many years as it takes to use them, because capital loss carryforwards never expire for individual taxpayers. A $45,000 net loss with no future gains would take fifteen years to absorb at $3,000 per year, and the balance remains available that entire time.

Gains accelerate the timeline dramatically. That same $45,000 carryforward disappears in a single year if the investor realizes $45,000 of gains, which is why carryforwards are worth tracking as an asset rather than treating as a consolation prize. Losses do not survive the taxpayer, however, so an unused balance generally does not transfer to heirs.

Does Tax Loss Harvesting Reduce Taxable Income?

Tax loss harvesting reduces taxable income, but only by up to $3,000 per year directly, with the larger benefit coming from eliminating tax on capital gains rather than from reducing income. The distinction between offsetting a gain and reducing income is where most confusion about this strategy originates.

Offsetting a gain removes an item from the return entirely. Reducing income shrinks a figure that was already there. Both lower your tax bill, but the first has no annual ceiling and the second is capped at $3,000, so an investor focused on the income reduction is looking at the smaller half of the benefit.

Can Tax Loss Harvesting Offset Ordinary Income?

Tax loss harvesting can offset up to $3,000 of ordinary income per year, or $1,500 for married taxpayers filing separately, after all capital gains have been absorbed. Ordinary income here includes wages, self-employment profit, interest, rental income, and retirement distributions.

That $3,000 is worth more to a high earner than the number suggests, since it comes off income taxed at the marginal rate. A taxpayer in the 35% bracket saves $1,050 from the allowance alone, and repeating that across several carryforward years compounds into real money.

Can Tax Loss Harvesting Offset Dividends?

Tax loss harvesting cannot directly offset qualified dividends, because dividends are income rather than capital gains even though they are taxed at capital gains rates. The netting rules apply to gains and losses from asset sales, and a dividend is neither.

Two exceptions soften that answer. Capital gain distributions from mutual funds and exchange-traded funds are treated as long-term capital gains, not as dividends, so harvested losses offset them fully. Non-qualified dividends are ordinary income, which means they fall within the $3,000 allowance alongside wages.

What Is the Wash Sale Rule?

The wash sale rule disallows a capital loss when you acquire a substantially identical security within 30 days before or after the sale that produced the loss. Section 1091 of the tax code creates a 61-day window centered on the sale date, and buying inside that window at either end triggers it.

The rule exists to stop exactly the maneuver it sounds like. Without it, an investor could sell every losing position on December 31, buy everything back on January 2, and manufacture deductions while never changing their portfolio for a single day.

The window reaches backward as well as forward, which surprises people. Buying additional shares on November 20 and then selling the original lot at a loss on December 5 triggers the rule just as surely as buying back afterward, and automatic dividend reinvestment inside the window does the same thing without anyone deciding to do anything.

What Counts as a Substantially Identical Security?

A substantially identical security is one that is essentially the same investment, most clearly the same stock, the same bond, or the same fund purchased through any account you control. The IRS has never published a comprehensive definition, which leaves a judgment zone that practitioners navigate case by case.

Some boundaries are settled. Shares of two different companies in the same industry are not substantially identical. Two index funds tracking different indexes from different providers are generally treated as distinct, even when their holdings overlap heavily. Two share classes of the same fund almost certainly are identical. Selling an S&P 500 fund and buying a different S&P 500 fund tracking the identical index sits in genuinely uncertain territory that careful investors avoid.

What Happens if You Trigger a Wash Sale?

If you trigger a wash sale, the loss is disallowed for the current year and added to the cost basis of the replacement security, which defers the benefit rather than destroying it. The higher basis reduces your eventual gain when the replacement is finally sold outside a wash sale window.

One version of the mistake destroys the loss permanently. Selling a security at a loss in a taxable account and repurchasing a substantially identical security inside an IRA disallows the loss with no basis adjustment anywhere, according to IRS Revenue Ruling 2008-5. The IRA has no taxable basis to increase, so the deduction simply vanishes. This is the single most expensive error in the entire strategy, and it happens most often through automatic retirement contributions that nobody thought to check against a taxable-account sale.

Wash sales also cross accounts and spouses. The rule applies across every account you control, at every brokerage, and a purchase by a spouse counts as your own for this purpose. A broker reports wash sales only within the account it holds, so an investor with three brokerages receives three incomplete pictures and has to reconcile them personally.

Does the Wash Sale Rule Apply to Cryptocurrency?

Everything above assumes you are harvesting securities. Digital assets follow a different path, and the difference is significant enough to warrant its own section before the discussion returns to timing.

The wash sale rule does not currently apply to direct sales of cryptocurrency, because Section 1091 covers stocks and securities and the IRS classifies digital assets as property. Under the law as it stands, an investor can sell a token at a loss and repurchase it the same day while keeping the deduction, which is impossible with a stock.

The exemption has a hard boundary. Crypto exchange-traded funds and shares in crypto-related companies are securities, and the wash sale rule applies to them in full. Selling a spot bitcoin ETF at a loss and repurchasing it within the window disallows the loss exactly as it would for any other fund.

This position is current law rather than settled policy. Congress has proposed extending wash sale treatment to digital assets repeatedly since 2021, and none of those proposals has passed. Most have been drafted to apply prospectively from a future date rather than retroactively, but building a multi-year strategy on the assumption that the window stays open is a risk rather than a plan.

Documentation carries more weight here than anywhere else in the strategy. Reconstructing basis across multiple exchanges, wallets, and transfer histories is the bulk of the work in a crypto tax engagement, and a harvested loss that cannot be substantiated is a deduction waiting to be reversed.

When Should You Do Tax Loss Harvesting?

You should harvest losses whenever a position falls meaningfully below cost basis and you have gains to offset, rather than waiting for December. Losses available in March frequently disappear by year end when the market recovers, and an investor who only looks once a year captures a fraction of what the portfolio actually offered.

  • During market drawdowns. Volatility creates the opportunities, and the dispersion inside a rising market often produces harvestable losses even in a strong quarter.
  • Alongside a planned gain. Selling a business, exercising options, or unwinding a concentrated position all create gains that a coordinated harvest can absorb in the same tax year.
  • When rebalancing. Portfolio rebalancing forces sales anyway, which makes it a natural moment to select lots deliberately rather than accept the broker's default.
  • Before December 31. The sale has to occur by year end to count for that tax year, and waiting until the final week leaves no room for settlement problems or wash sale conflicts.
  • Not in a year with no gains and low income. A loss harvested with nothing to offset yields only the $3,000 allowance against income already taxed at a low rate.
  • Not when you sit in the 0% long-term capital gains bracket. Offsetting a gain that carries no tax spends a loss for nothing, and preserving it for a higher-rate year is worth more.

The last two bullets are the ones investors skip. Harvesting is not automatically correct, and a loss used against untaxed or lightly taxed gains is a permanently wasted asset. Weighing the current-year benefit against the value of preserving the loss is exactly the judgment call that belongs in a year-end planning conversation rather than in a brokerage app.

Households with several accounts need someone watching all of them at once. A harvest executed in a joint brokerage account can be undone by an automatic purchase in a spouse's retirement account the same week, and only coordinated wealth coordination across the whole balance sheet catches that before it happens. We have this conversation with Miami investors most often in November, when there is still time to fix something.

How Much Does Tax Loss Harvesting Save?

Tax loss harvesting saves an amount equal to the harvested loss multiplied by the tax rate that would have applied to the offset gain. A $25,000 harvested loss produces $10,200 of savings against income taxed at a 41% combined rate, or $6,000 against a 24% rate, according to a worked illustration published by Mellon Investments.

That illustration starts from a straightforward scenario. A $100,000 position falling 25% to a market value of $75,000 creates an unrealized loss of $25,000, and selling it converts that figure into a realized loss available to offset gains anywhere in the portfolio.

Measured across whole portfolios rather than single positions, the benefit is meaningful but bounded. Research published in the Financial Analysts Journal places tax alpha, the after-tax excess return attributable to tax management, at roughly 1% to 2% annually for equity portfolios and about 0.3% for fixed income. That is a real improvement compounding over decades rather than a dramatic one in any single year.

The aggregate scale gives a sense of how much is available in practice. Parametric Portfolio Associates reported harvesting more than $1.5 billion in equity losses across roughly 235,000 trades during the third quarter of 2025, representing more than $540 million of potential tax benefit, alongside more than $84 million in fixed income losses across roughly 101,000 trades.

Individual results turn heavily on marginal rate and gain profile. Professionals with volatile, concentrated, and heavily taxed income see the largest absolute savings, which is why systematic harvesting is a standing item for the athletes and entertainers we work with rather than an occasional December exercise.

How Do You Report Harvested Losses?

You report harvested losses on Form 8949 and carry the totals to Schedule D of your Form 1040. Form 8949 lists each sale with acquisition date, sale date, proceeds, and cost basis, and Schedule D nets the categories and produces the final figure.

Your broker supplies the raw data on Form 1099-B and files a copy with the IRS. Wash sales the broker detects inside its own account appear with a specific adjustment code, and the disallowed amount is shown separately so it can be added to the replacement's basis. Sales the broker does not see, including transfers in from another firm, arrive without basis and become your responsibility to substantiate.

Lot selection deserves attention before the trade rather than after. Specific identification lets you designate exactly which shares to sell, which is how you target the highest-basis lot and maximize the harvested loss. Most brokers default to first-in-first-out, which frequently sells the oldest and lowest-basis shares and produces a smaller loss than the investor intended. The election has to be made at the time of sale.

Mismatches between broker reporting and your return draw automated attention. When the IRS receives proceeds figures it cannot match to your Schedule D, the matching program generates a CP2000 notice proposing tax on the full sale price as though there were no basis at all, which turns a legitimate loss into a proposed liability.

Responding with documentation usually resolves it entirely. Taxpayers holding a notice about securities transactions should read the deadline before anything else, and we provide IRS representation for those already in that position.

What Is the Downside of Tax-Loss Harvesting?

The main downside of tax loss harvesting is that it defers tax rather than eliminating it, because reinvesting at a lower price resets your cost basis downward and enlarges the eventual gain. Selling a position at $75,000 and buying a replacement at the same price gives you a $75,000 basis where you previously had $100,000, so a recovery to $100,000 now carries a $25,000 taxable gain.

Deferral still has real value. Paying later rather than now leaves capital invested and compounding, and a loss harvested against a short-term gain today while the future gain is long-term converts a 40.8% liability into a 23.8% one. The strategy is defensible on those grounds without pretending the tax disappeared.

Several other costs accumulate quietly. Transaction costs and bid-ask spreads erode the benefit on small harvests. Replacement securities introduce tracking error, since a similar fund is not the same fund and the difference in performance can exceed the tax saved. Frequent harvesting produces a portfolio full of low-basis lots that become progressively harder to sell without triggering gains.

Recordkeeping is the underrated burden. Every harvest creates a new lot with its own basis and holding period, wash sale adjustments have to be tracked across accounts the broker cannot see, and errors surface years later. Anyone who has spent a season answering IRS notices about basis discrepancies understands why the documentation discipline matters as much as the trade.

Is Tax Loss Harvesting Worth It?

Tax loss harvesting is worth it for investors with material realized gains, taxable accounts, and high marginal rates, and it is worth considerably less for everyone else. The honest answer is conditional, and the conditions are checkable before you sell anything.

Three questions settle it. Do you have realized gains this year or expect them soon? Is your marginal rate high enough that the offset is meaningful? Can you replace the position without materially changing your exposure? Three yes answers make harvesting clearly worthwhile. A no on the first question usually means waiting produces a better outcome than acting.

Scale matters as well. Harvesting $800 of loss in an account with no gains produces perhaps $250 of benefit against ordinary income, which rarely justifies the transaction costs and the recordkeeping that follow. The same discipline applied across a substantial portfolio during a volatile year produces something worth the effort. Setting that threshold, and monitoring for it year round, is part of the ongoing financial oversight we provide for households with meaningful taxable holdings.

Is It Worth Claiming Stock Losses on Taxes?

It is always worth claiming stock losses you have already realized, because an unclaimed loss provides no benefit and cannot be recovered later. The question of whether to harvest a new loss is a judgment call; the question of whether to report a loss you already took is not.

Reporting is also mandatory rather than optional. Every sale appears on your broker's Form 1099-B and is filed with the IRS whether you report it or not, so omitting a losing trade both forfeits the deduction and creates a mismatch. Reporting the loss is simultaneously the compliant answer and the profitable one.

Frequently Asked Questions

Is Tax Loss Harvesting Legal?

Tax loss harvesting is entirely legal and is an ordinary application of the capital loss rules written into the tax code. Congress created the netting provisions, the $3,000 allowance, and the carryforward deliberately, and it added the wash sale rule to define the boundary. Staying outside that 61-day window keeps the strategy squarely within the rules.

Can You Harvest Losses on Bonds?

You can harvest losses on bonds and bond funds exactly as you can on stocks. A bond trading below its cost basis, most commonly after a rise in interest rates, produces a realized loss when sold. Replacements are typically selected to match credit quality, yield, and maturity so the portfolio's income profile stays intact while the loss becomes usable.

Does Tax Loss Harvesting Work in a Retirement Account?

Tax loss harvesting does not work in a retirement account, because gains and losses inside a 401(k), IRA, or Roth IRA have no current tax consequence. There is no gain to offset and no loss to deduct. Retirement accounts matter to this strategy only as a hazard, since a purchase inside one can trigger a wash sale that permanently disallows a loss taken in a taxable account.

Can You Harvest Losses and Gains in the Same Year?

You can harvest losses and gains in the same year, and pairing them deliberately is usually the point. Realizing a gain you wanted to take anyway while harvesting an offsetting loss lets you rebalance, diversify, or raise cash with little or no tax cost. The two transactions need to fall in the same tax year to net against each other.

What Is Tax Gain Harvesting?

Tax gain harvesting is the opposite strategy, deliberately realizing gains in a year when they are taxed at 0% in order to reset cost basis higher. An investor whose taxable income falls inside the 0% long-term capital gains bracket can sell an appreciated position, pay nothing, and immediately repurchase it, since the wash sale rule applies only to losses. The higher basis reduces tax on a future sale.

Wrapping It Up

Tax loss harvesting is a timing tool rather than a tax eraser. It moves liability into the future, converts high-rate short-term exposure into lower-rate long-term exposure, and builds a carryforward that never expires. What it does not do is create value where there are no gains to offset, and an investor harvesting in a year with nothing to absorb the loss is spending an asset for very little in return.

The mechanics reward preparation. Knowing your netting order, watching the 61-day window across every account you and your spouse control, selecting lots deliberately rather than accepting a broker default, and checking whether this is even the right year all happen before the sale, not after.

Getting the sequencing right across a full balance sheet is where most of the value sits, and it looks different for a founder with concentrated stock than for a retiree drawing down a diversified portfolio. Our Miami practice works through these decisions with investors and business owners across the country. The advisors at NR CPAs & Business Advisors hold CPA and Enrolled Agent credentials and handle the planning and the filing together. If you are weighing a harvest, reconciling a wash sale, or trying to work out what a carryforward is actually worth to you, we are glad to talk it through in a consultation.

‍

Want tax & accounting tips & insights?Sign up for our newsletter.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.