Tax gain harvesting paperwork: tax forms, pen and folder on a desk for planning 2026 capital gains

Tax Gain Harvesting vs. Tax Loss Harvesting: Which One Fits Your 2026 Bracket

A single filer can realize $49,450 of long-term capital gains in 2026 and owe the IRS exactly nothing on them. For married couples filing jointly, the number is $98,900 — both figures straight out of Revenue Procedure 2025-32, the IRS release that set the 2026 inflation adjustments.

Almost every investor knows the mirror-image move: sell a loser, bank the loss, cut your tax bill. Far fewer know that selling a winner can be the smarter trade in a low-income year. This guide compares tax gain harvesting and tax loss harvesting side by side — what each one does to your cost basis, the exact 2026 income thresholds that decide which is available to you, the five situations where each wins, and the ways tax gain harvesting quietly backfires.

This article is part of our Tax Strategy Guide — a comprehensive overview of the topic with related deep dives.

Tax Gain Harvesting vs. Tax Loss Harvesting: The Core Difference

Both strategies do the same mechanical thing — sell a taxable holding, then buy something back. What differs is the direction of the trade and what it does to your cost basis.

Loss harvesting lowers this year’s tax bill and lowers your cost basis, because the replacement shares you buy carry a lower basis than the ones you sold. Gain harvesting raises this year’s tax bill (often to zero) and raises your cost basis, shrinking the taxable gain you will eventually report. One is a deferral. The other is a permanent erasure — if you thread the bracket correctly.

  Tax loss harvesting Tax gain harvesting
You sell A position below your basis A position above your basis, held 1+ year
Effect on basis Resets lower Resets higher
Tax this year Offsets gains, then up to $3,000 of ordinary income $0 if taxable income stays under the zero-rate ceiling
Wash sale rule Applies — 30 days before and after Does not apply; repurchase immediately
Best year to use it A high-income year A low-income year
Nature of the benefit Deferral, usually Permanent, if executed at 0%

The asymmetry that makes gain harvesting worth knowing is buried in the wash sale definition. IRS Topic No. 409 describes a wash sale as selling stock or securities at a loss and buying substantially identical securities within 30 days before or after the sale. Sell at a gain and none of that machinery engages — you can repurchase the same fund the same minute. If you want the full mechanics of what does and does not trigger the rule on the loss side, we walked through it in our case study of an investor who accidentally triggered a wash sale.

Who Actually Lands in the 0% Bracket in 2026

The zero rate is not measured against your salary. It is measured against your taxable income — after your standard or itemized deduction — with the long-term gain stacked on top of your ordinary income. Here are the 2026 thresholds, per Rev. Proc. 2025-32:

Filing status 0% rate up to (taxable income) 2026 standard deduction Approx. gross income ceiling
Single $49,450 $16,100 $65,550
Married filing jointly $98,900 $32,200 $131,100
Head of household $66,200 $24,150 $90,350
Married filing separately $49,450 $16,100 $65,550

That last column is the number people miss. A married couple can gross $131,100 in 2026 — wages plus harvested gains combined — and still sit at the top of the zero-rate band if they take the standard deduction and have no other adjustments. That is not a poverty-line household. Above the line, the 15% rate then runs all the way to $545,500 of taxable income for single filers and $613,700 for joint filers before the 20% rate appears.

One detail decides the whole calculation: gains stack on top of ordinary income, and only the slice of gain that fits under the ceiling gets the 0% rate. A single filer with $40,000 of taxable ordinary income who harvests a $20,000 gain does not get $20,000 tax-free. She gets $9,450 at 0% and the remaining $10,550 at 15%. This is a scalpel, not a switch — you harvest up to the line and stop.

When Tax Loss Harvesting Is the Better Move

Loss harvesting is the right tool when your marginal rate today is higher than the rate you expect later. Three concrete cases:

You have realized gains to offset. Losses net against gains dollar for dollar — short-term against short-term first, then long-term against long-term, then across categories.

You want the ordinary-income deduction. Per Topic No. 409, net capital losses reduce ordinary income by up to $3,000 per year ($1,500 if married filing separately), with the excess carried forward indefinitely. At a 22% marginal rate, that $3,000 is worth $660 a year, every year, until the carryforward runs out.

You are in a peak earning year. A loss claimed against a 24% or 32% marginal rate and eventually repaid as a 15% long-term gain in retirement is genuine rate arbitrage, not just a deferral.

The strategy has real limits at small account sizes, where a $40 tax saving gets eaten by a bid-ask spread and a tracking-error mismatch in the replacement fund — we ran that math in our breakdown of whether tax loss harvesting is worth it on a small portfolio. And if you are weighing losses against a Roth conversion in the same year, the two strategies compete for the same bracket space; our comparison of which one to run first covers the sequencing.

When Tax Gain Harvesting Is the Better Move

Tax gain harvesting only pays when you have a genuinely low-income year and you expect higher rates later. Here is the arithmetic for a single filer with $30,000 of taxable ordinary income holding a $60,000 position with a $20,000 cost basis:

Action Gain realized now Federal tax now New cost basis Tax later at 15% on a $60,000 sale
Do nothing $0 $0 $20,000 $6,000
Harvest up to the line $19,450 $0 $39,450 $3,083

Same position, same eventual sale, roughly $2,900 less federal tax — and the cost of capturing it was a sell order and an immediate buy order. Because no wash sale rule applies to gains, market exposure never breaks; the investor owns the same fund at 10:31 that she owned at 10:30.

Three profiles where this shows up naturally: the sabbatical or between-jobs year, when wage income collapses but the brokerage account does not; the early-retirement gap years before Social Security and required distributions begin; and the graduate-school or startup year spent living off savings. In all three, the taxpayer has assets and very little ordinary income — the exact shape the zero-rate bracket rewards.

Worth noting who this even applies to. Some 58% of U.S. families held stock in some form as of the Federal Reserve’s 2022 Survey of Consumer Finances, but most of that sits inside 401(k)s and IRAs, where harvesting does nothing at all. This is a taxable brokerage strategy. If your equities all live in tax-advantaged accounts, start instead with which assets belong where, which we covered in our look at asset location strategy.

Curious what a higher cost basis is worth after another 20 years of compounding?

Try Our Investment Growth Calculator →

The Decision Rule: Five Situations, Five Answers

Skip the philosophy and match your year to the row:

  1. Peak earning year, portfolio down. Harvest losses. Bank the carryforward and spend it against gains in a future high-rate year.
  2. Sabbatical or job gap, portfolio up. Harvest gains up to the zero-rate ceiling. This is the textbook case.
  3. Early retiree, pre-Social-Security. Model gain harvesting against a Roth conversion — both consume the same low-bracket space, and you usually cannot max out both.
  4. Steady mid-career income, mixed portfolio. Harvest losses opportunistically and ignore gain harvesting, because you are already above the ceiling.
  5. Low income, but the position is short-term. Wait. Gains on holdings owned a year or less are taxed as ordinary income and never qualify for the 0% rate.

One sequencing note trips people up constantly: capital losses, including carryforwards from prior years, must offset realized gains before anything else. If you are carrying a $15,000 loss forward, harvesting a $15,000 gain simply burns the carryforward and delivers no basis-reset benefit at all. Run in that order, the two strategies cancel each other out.

Five Ways Tax Gain Harvesting Quietly Backfires

The federal 0% rate is real. The all-in cost of realizing the gain often is not zero.

1. State tax. Most states tax long-term gains as ordinary income at their regular rates, per the Tax Foundation’s 2026 state rate data. A 5% state rate turns a free $20,000 harvest into a $1,000 bill — real money paid today for a benefit collected years from now.

2. AGI-linked benefits. Realized gains raise adjusted gross income even when the federal tax on them is $0. That can shrink an ACA premium tax credit, push more of your Social Security benefits into taxable territory, or knock you out of the Saver’s Credit, which turns on tight income limits we detailed in our walkthrough of the 2026 Saver’s Credit thresholds.

3. The 3.8% surtax at the other end. The net investment income tax applies to investment income above modified AGI of $200,000 single and $250,000 joint, and per IRS Topic No. 559 those thresholds are not indexed for inflation. Investors near the line sometimes realize gains deliberately in earlier years to keep future realizations under it.

4. Qualified dividends. Selling and repurchasing around an ex-dividend date can break the holding-period test that makes dividends qualified, converting a 0% or 15% dividend into ordinary income. Fund-level tax treatment has its own quirks, covered in our comparison of ETF and mutual fund tax efficiency.

5. Custodial accounts. Harvesting inside a child’s account runs into the kiddie tax; for 2026 the amount used to reduce a child’s net unearned income is $1,350, above which the parents’ rates can apply.

A note from Chris

I harvested gains for the first time during a year when I stepped back from full-time software work, mostly because I had read about the strategy and wanted to see whether the mechanics were as clean as the forums claimed. They were: sell, buy back thirty seconds later, done. What surprised me was the modeling, not the trade. My state took a cut that made a third of the free harvest not free, and I spent an evening in a tax estimator discovering that stacking gains on top of ordinary income behaves nothing like the mental model I had been carrying around. The automation-minded part of me now keeps a small spreadsheet that computes the remaining zero-rate room each December. It is a boring file. It has also made every December decision since take about four minutes.

Tax Gain Harvesting FAQ

Can I buy the same fund back immediately after harvesting a gain?
Yes. The wash sale rule in IRS Topic No. 409 applies only to securities sold at a loss, so there is no 30-day waiting period after a gain sale. Your market exposure stays continuous.

Does tax gain harvesting work in a 401(k) or IRA?
No. Sales inside tax-advantaged accounts do not create taxable capital gains, so there is no basis to reset and nothing to harvest. The strategy only applies to taxable brokerage accounts.

How much can I harvest at 0% in 2026?
Enough gain to bring your total taxable income — ordinary income plus the gain — up to $49,450 for single filers, $66,200 for heads of household, or $98,900 for married couples filing jointly. Any gain above that line is taxed at 15%.

Is it better to harvest gains or do a Roth conversion?
They compete for the same bracket space, so run both scenarios before choosing. Conversions generally win when you expect large required minimum distributions later; gain harvesting wins when most of your wealth sits in a taxable brokerage account with big embedded gains.

What happens if I miscalculate and go over the threshold?
The excess gain is taxed at 15%, not at some retroactive penalty rate, so the damage is bounded. Because the rules reward precision, harvesting in December — after most of the year’s income is known — is far safer than harvesting in March.

Photo by Kelly Sikkema on
Unsplash

Chris Steve

Written by Chris Steve

Chris Steve is a software engineer with a deep interest in personal finance, behavioral economics, and AI. He started Money & Planet to share clear, research-backed money guides — the kind that explain the math instead of pushing products. His writing focuses on long-term wealth building, the psychology behind spending and investing decisions, and the practical tools regular people can use to make smarter financial choices.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *