Tax Gain Harvesting: The 0% Bracket Guide (2026)

Tax Gain Harvesting: The 0% Bracket Guide (2026)

Can tax-gain harvesting actually save you money on taxes? In the right low-income year it can, though the honest version is that it is a basis-reset tool, not free money. In a taxable account you realize long-term gains while they still fall inside the 0% long-term capital gains bracket, then you may repurchase the same shares to reset cost basis higher (Source: IRS Topic 409; IRS Revenue Procedure 2025-32).

Last reviewed: August 2026 | Written and reviewed by Craig Wear, CFP®, founder of Q3 Advisors

Yes, in the right year. Tax-gain harvesting means selling appreciated positions to realize long-term gains while your taxable income leaves room in the 0% long-term capital gains bracket, which reaches $98,900 for joint filers in 2026. Gains that fit inside that band are taxed at 0%, and because no wash-sale rule applies to gains, you can repurchase at once to reset basis higher (Source: IRS Revenue Procedure 2025-32; IRS Topic 409).

Can tax-gain harvesting actually save you money on taxes?

Tax-gain harvesting can save you money, but the benefit is a lower future tax bill rather than cash back today. When your taxable income leaves room in the 0% long-term bracket, realizing gains there costs no federal tax on that slice and resets your basis higher, so a later sale reports a smaller gain. The value is basis and rate positioning, not a giveaway (Source: IRS Topic 409; IRS Revenue Procedure 2025-32).

Talk With Craig Wear's Team

Craig has helped IRA millionaires save over $1 million each in unnecessary taxes. Find out if a Roth conversion strategy fits your retirement, with no sales pressure and no product pitch.

The reason the “free money” framing is misleading is that the room is capped and the gains you realize still count as income. Push past the 0% ceiling and the next dollars are taxed at 15%, and the added income can lift Medicare and other MAGI-linked costs. This is the mirror image of tax-loss harvesting, which banks losses in high-income, volatile years.

How tax-gain harvesting works: the mechanism

Tax-gain harvesting works through a short, ordered process in 2026: estimate the room left below the 0% long-term bracket ceiling, realize long-term gains that fit inside it, and optionally repurchase to reset basis. Because no wash-sale rule applies to gains, the repurchase can happen the same day. Each step uses ordinary Internal Revenue Code rules, not a special election (Source: IRS Topic 409; IRS Publication 550).

  1. Estimate your 2026 taxable income and subtract it from the 0% long-term bracket ceiling ($98,900 married filing jointly, $49,450 single) to find your remaining room.
  2. Identify long-term appreciated positions held in taxable accounts.
  3. Sell enough to realize gains that fit within the 0% room, so that slice is taxed at 0%.
  4. Optionally repurchase the same shares immediately, since no wash-sale rule applies to gains, to reset cost basis higher.
  5. Recheck MAGI-driven effects (IRMAA, ACA credits, Social Security taxation, and the net investment income tax) before you finalize the trade.

Filling the 0% long-term capital gains bracket

Long-term gains stack on top of your ordinary taxable income, and only the portion that lands below the 0% ceiling is taxed at 0%. In 2026 that ceiling is $98,900 of total taxable income for joint filers and $49,450 for single filers (Source: IRS Revenue Procedure 2025-32). The standard deduction, $32,200 joint or $16,100 single, shelters ordinary income first and widens the room you have.

Resetting your cost basis higher

When you realize a gain and repurchase, your new lot carries a higher cost basis, so a future sale measures a smaller gain. Unlike a loss harvest, which lowers basis and defers tax, a gain harvest raises basis after applying the 0% rate now. That combination can reduce the taxable gain a later high-income year would otherwise report on the same shares (Source: IRS Topic 409; IRS Publication 550).

No wash-sale rule on gains

The wash-sale rule under Internal Revenue Code Section 1091 disallows losses on a repurchase within 30 days, but it covers losses only, so it does not touch a gain harvest. You can sell an appreciated position and buy it back the same day without losing the basis reset. That is one reason gain harvesting is mechanically simpler to execute than loss harvesting (Source: IRC 1091; IRS Publication 550).

How much can it really help? A 2026 worked example

The realistic benefit depends on how much 0% room you have. Consider a hypothetical married couple filing jointly in 2026 with $40,000 of taxable income after the standard deduction. The 0% long-term bracket reaches $98,900, so about $58,900 of long-term gains can be realized within the 0% band. This illustration shows the mechanics; it is not a promise of results (Source: IRS Revenue Procedure 2025-32).

Step (2026, married filing jointly) Amount
Taxable income after the standard deduction $40,000
0% long-term capital gains ceiling $98,900
Room remaining in the 0% band $58,900
Long-term gains realized within that room $58,900
Federal rate applied to those gains 0%
Cost basis reset upward by $58,900

The point of that $58,900 is not cash back this year; it is a higher basis carried forward. If the same shares are sold in a later, higher-income year, the reported gain is smaller because the basis was stepped up at a 0% rate. Realize more than the $58,900 room, though, and the excess is taxed at 15% and can raise MAGI-linked costs such as Medicare surcharges.

The catches that shrink or erase the benefit

Three catches can shrink or erase the benefit of tax-gain harvesting: the 0% bracket has a hard ceiling, the realized gains raise modified adjusted gross income, and it only works in taxable accounts. Any one of them can turn a tidy basis reset into an unexpected surcharge, so each is worth checking before you sell (Source: IRS Topic 409; IRS Publication 550).

The 0% bracket has a hard ceiling

The 0% long-term rate applies only up to the ceiling, and gains are not prorated once you cross it. Every dollar of long-term gain above $98,900 of taxable income (joint) is taxed at 15%, and short-term gains never qualify for the 0% rate at all. Estimating income accurately before you sell keeps a harvest from spilling into the 15% band by accident (Source: IRS Revenue Procedure 2025-32).

Realized gains still raise your MAGI

Even taxed at 0%, harvested gains count in modified adjusted gross income, which drives Medicare surcharges, the net investment income tax, Affordable Care Act credits, and the taxable share of Social Security. A harvest that looks free federally can still trip a two-year Medicare lookback or shrink a premium credit, so the MAGI math often matters more than the 0% headline (Source: IRS Topic 409; SSA POMS HI 01101.020).

It only works in taxable brokerage accounts, not your IRA or 401(k)

Tax-gain harvesting only works in taxable brokerage accounts, because those are the only accounts where selling triggers a taxable gain and where cost basis matters. Inside a traditional 401(k), traditional IRA, or Roth IRA, gains are not tracked at the lot level, so realizing one there does nothing for basis and cannot use the 0% rate. This mirrors why loss harvesting also lives only in taxable accounts (Source: IRS Topic 409; IRS Publication 550).

When is tax-gain harvesting worth it, and when isn’t it?

Tax-gain harvesting tends to be worth considering in low-income years, retirement gap years before Social Security and required minimum distributions, and years with a temporary income dip. It is rarely useful once your taxable income already fills the 0% bracket, because the gains would then be taxed at 15% or more. The comparison below shows why gain and loss harvesting rarely fit the same year (Source: IRS Revenue Procedure 2025-32).

In a low-income gap year, realizing gains at 0% and resetting basis upward can be more useful than banking a loss you do not need. In a high-income, volatile year the loss version usually earns its place instead, which is why many households run them in different years rather than together.

Feature Tax-gain harvesting Tax-loss harvesting
Goal Realize long-term gains at the 0% rate and reset basis higher Realize losses to offset gains and up to $3,000 of ordinary income
Fits Low-income years (0% bracket, retirement gap years) High-income, high-bracket, volatile years
Wash-sale rule (IRC 1091) Does not apply (the rule covers losses only) Applies: no substantially identical buy within 30 days
Effect on cost basis Raises basis Lowers basis (much of the benefit is deferral)
Account type Taxable brokerage only Taxable brokerage only

Second-order effects to model first: IRMAA, NIIT, ACA subsidies, Social Security, and state tax

Before you harvest gains, model the second-order effects, because every dollar you realize lifts modified adjusted gross income (MAGI). A harvest that pays 0% federally can still move Medicare surcharges, the net investment income tax, ACA premium credits, and the taxable share of Social Security. These interactions are where the planning care sits, and most simple explainers skip them (Source: IRS Topic 409; SSA POMS HI 01101.020).

  • IRMAA cliffs. Medicare’s income-related monthly adjustment amount is a cliff, not a phase-in: one dollar over a tier raises the whole surcharge, with a two-year lookback. In 2026 the surcharge starts above $109,000 MAGI (single) or $218,000 (joint), on top of the $202.90 base Part B premium. Realizing gains can quietly push a household over a tier (Source: SSA POMS HI 01101.020, 2026).
  • Net investment income tax. The 3.8% net investment income tax (NIIT) applies to investment income above $200,000 MAGI (single) or $250,000 (joint) in 2026. Harvested gains are investment income, so a large gain harvest can create or enlarge NIIT exposure, the opposite of what a loss harvest does.
  • ACA subsidies and Social Security. Higher MAGI can shrink Affordable Care Act premium tax credits and raise the share of Social Security benefits that is taxable (up to 85%). Because gain harvesting adds income, it works against these thresholds, which is why it usually belongs in years when income is already low.
  • State tax. Most states tax capital gains as ordinary income and do not mirror the federal 0% bracket. A gain harvest that costs nothing federally can still create a state bill, so state rules should be checked directly before selling.

How it fits a retirement-tax plan with Roth conversions

Tax-gain harvesting competes with Roth conversions for the same low-bracket space, so the two are best modeled together. A Roth conversion adds fully to ordinary income and can push gains out of the 0% band, while a gain harvest can fill room a conversion would otherwise use. In low-income gap years, many households weigh which move earns the limited space (Source: IRS Topic 409; IRS Publication 590-B).

In retirement, the sequencing usually runs through the gap years between retiring and required minimum distributions. Because required minimum distributions begin at age 73 (age 75 for those born in 1960 or later, first affecting 2035) and push ordinary income up, the 0% room tends to close once they start. Deciding how much to convert and how much gain to harvest often depends on the same bracket ceiling.

Work with Q3 Advisors

Q3 Advisors is a registered investment adviser focused on retirement tax planning. This page is educational and is not advice; consult a qualified professional.

Contact us

Frequently asked questions

What is tax-gain harvesting?

Tax-gain harvesting is selling appreciated investments in a taxable account to realize long-term gains while they fall inside the 0% long-term capital gains bracket, then optionally repurchasing to reset cost basis higher. Because no wash-sale rule applies to gains, the repurchase can happen immediately. It is a basis-reset tool for low-income years, not a way to avoid tax on gains that exceed the 0% room (Source: IRS Topic 409; IRS Revenue Procedure 2025-32).

Does tax-gain harvesting really save money, or just move it?

It mainly lowers a future tax bill rather than returning cash today. Gains realized inside the 0% band carry no federal tax on that slice, and the higher basis means a later sale reports a smaller gain. The benefit is limited to your 0% room, and any gains above the ceiling are taxed at 15% or more (Source: IRS Revenue Procedure 2025-32; IRS Topic 409).

Is there a wash-sale rule for tax-gain harvesting?

No. The wash-sale rule under Internal Revenue Code Section 1091 disallows losses on a repurchase within 30 days, but it covers losses only, not gains. You can sell an appreciated position and buy it back the same day without losing the basis reset, which makes gain harvesting mechanically simpler than loss harvesting (Source: IRC 1091; IRS Publication 550).

Who can benefit from tax-gain harvesting?

Investors in low-income years with appreciated positions in taxable accounts can benefit, including retirees in the gap years before Social Security and required minimum distributions begin. In 2026 the 0% long-term bracket reaches $98,900 of taxable income for joint filers and $49,450 for single filers. Once income already fills that bracket, harvested gains are taxed at 15% or more (Source: IRS Revenue Procedure 2025-32).

Can you do tax-gain harvesting in an IRA or 401(k)?

No. Tax-gain harvesting only works in taxable brokerage accounts, where selling triggers a taxable gain and cost basis is tracked. Inside a traditional 401(k), traditional IRA, or Roth IRA, gains are not tracked at the lot level, so realizing one there does nothing for basis and cannot use the 0% rate (Source: IRS Topic 409; IRS Publication 550).

Does realizing gains at 0% affect IRMAA or Social Security?

Yes. Even taxed at 0%, harvested gains count in modified adjusted gross income, which drives Medicare IRMAA surcharges (above $109,000 single or $218,000 joint in 2026), the net investment income tax, ACA credits, and the taxable share of Social Security. A harvest that looks free federally can still raise these costs, so model MAGI before selling (Source: SSA POMS HI 01101.020; IRS Topic 409).

Sources

IRS Topic No. 409, Capital Gains and Losses: https://www.irs.gov/taxtopics/tc409
IRS Publication 550, Investment Income and Expenses (wash sales, cost basis): https://www.irs.gov/publications/p550
Internal Revenue Code Section 1091 (wash sales, losses only): https://www.law.cornell.edu/uscode/text/26/1091
IRS Revenue Procedure 2025-32 (2026 capital gains rate thresholds and standard deduction): https://www.irs.gov/pub/irs-drop/rp-25-32.pdf
IRS Publication 590-B (distributions from IRAs, required minimum distributions): https://www.irs.gov/publications/p590b
SSA POMS HI 01101.020 (2026 Medicare Part B IRMAA): https://secure.ssa.gov/poms.nsf/lnx/0601101020

About the author

Craig Wear, CFP®, is the founder of Q3 Advisors, a registered investment adviser focused on retirement tax planning, including capital gains timing, Roth conversion strategy, and Medicare and Social Security tax coordination.

Disclaimer

This article is provided by Q3 Advisors for educational and informational purposes only. It is not tax, legal, or investment advice, and it is not a recommendation to buy, sell, or hold any security or to adopt any strategy. Registration as an investment adviser does not imply a certain level of skill or training. Tax rules change and apply differently to each person’s circumstances; consult a qualified tax or financial professional before acting. Additional information about Q3 Advisors is available in our Form ADV.

Craig Wear Craig Wear
Helping IRA Millionaires save $1 million (or more) in unnecessary taxes

Is a Roth Conversion Right for You?

Get a personalized strategy from the firm that’s saved clients $9 billion in projected taxes

  • 2,400+ families guided through conversions
  • $9B in tax avoidance
  • Built for $1M+ IRAs

no obligation. 45-minute consultation