CPAFIRE

0% Capital Gains Tax-Gain Harvesting Explained

By · Updated

TL;DR: In 2026, long-term capital gains are taxed at 0% federally as long as total taxable income stays at or below $98,900 for joint filers or $49,450 for single filers. Selling appreciated shares and buying them back resets your basis higher for free. No wash sale rule applies to gains.

Educational only, not tax, legal, or investment advice. Examples are illustrations, not predictions. Rules and limits change; verify current figures and talk to a qualified professional about your situation.

Selling and rebuying to pay zero tax: legal, boring, glorious. Tax-gain harvesting is the less famous sibling of tax-loss harvesting. Instead of selling losers to create deductions, you sell winners in a year when the gain is taxed at 0%, then buy them back. Your portfolio looks the same afterwards, but your cost basis is higher, which means less taxable gain when you sell for real later.

Early retirees are the natural audience, because a year with no paycheck often leaves a lot of room in the 0% capital gains band. This guide covers the 2026 thresholds, how gains stack on top of ordinary income, the step-by-step process and the traps that make it less free than it sounds.

CPA Warning Label: The 0% rate is federal only. Your state may tax every dollar of that harvested gain. And the gain still raises your AGI for ACA subsidies and other tests.

The 0% LTCG bracket for 2026

Long-term capital gains (on assets held more than one year) and qualified dividends get their own rate schedule: 0%, 15% and 20%. For 2026, IRS Rev. Proc. 2025-32 sets the top of the 0% band at these levels of taxable income:

Filing status0% rate up to15% rate up to
Married filing jointly / qualifying surviving spouse$98,900$613,700
Head of household$66,200$579,600
Single$49,450$545,500
Married filing separately$49,450$306,850

Taxable income is after deductions. A married couple taking the 2026 standard deduction of $32,200 can therefore have up to $131,100 of total income ($98,900 + $32,200) and still pay 0% on their long-term gains, as long as the ordinary part of that income is small enough. Short-term gains do not qualify; they are taxed as ordinary income.

How gains stack on ordinary income

Ordinary income (wages, IRA withdrawals, Roth conversions, interest, short-term gains) fills the brackets first. Long-term gains and qualified dividends sit on top. Only the portion of gains that falls below the 0% threshold is taxed at 0%; anything above is taxed at 15%.

So the 0% room is: 0% threshold − (ordinary income − deductions), but never less than zero. A couple with $60,000 of IRA withdrawals has ordinary taxable income of $27,800 after the standard deduction, which leaves $71,100 of 0% room for gains. Add a $50,000 Roth conversion and the room shrinks to $21,100. The detailed mechanics are in how capital gains stack.

One subtle point: going over the line does not make all your gains taxable. Only the dollars above the threshold are taxed at 15%. But those extra gain dollars do not raise the tax on your ordinary income either. The stacking order protects ordinary income from gains, not the other way around.

Step-by-step harvesting

  1. Estimate the full year's income in November or December, once you know dividends, interest, any capital gain distributions from funds and planned conversions.
  2. Subtract deductions (standard or itemized) to get projected ordinary taxable income.
  3. Compute the room left under the 0% threshold. Remember that qualified dividends already use some of it.
  4. Leave a cushion of a few thousand dollars for year-end fund distributions and estimation errors.
  5. Pick lots held more than one year with the largest gain per dollar sold. Use specific identification with your broker if possible.
  6. Sell, then rebuy the same fund or a similar one. The new lot gets a basis equal to the purchase price and a new holding period.
  7. Keep records of the trade confirmations and check the 1099-B in January.

Wash sale rule does not apply to gains

The wash sale rule disallows a loss if you buy substantially identical securities within 30 days before or after the sale (IRS Publication 550). It says nothing about gains. You can sell at a gain and repurchase the same shares a minute later, and the gain is fully recognized.

Two practical notes. First, the new shares start a fresh holding period, so selling them within a year would produce short-term gain or loss. Second, if you also have losing lots of the same fund, be careful: selling a loser and buying back within 30 days triggers the wash sale rule for that loss, even if the purchase was part of a gain harvest. Selling only the winning lots avoids this.

State tax wrinkle

Most states with an income tax treat capital gains as ordinary income, with no 0% band. A Californian or New Yorker harvesting $90,000 of gains at a 0% federal rate could owe several thousand dollars to the state. A handful of states have no income tax or do not tax capital gains, where the harvest really is free.

If you plan to move from a high-tax state to a low-tax one, waiting until after the move to harvest is usually smarter (see changing state residency).

Worked example

Illustration. Assumptions: married couple filing jointly, both 52, retired, 2026. Income: $8,000 of qualified dividends and $2,000 of taxable interest. No other income. Standard deduction $32,200. Brokerage account holds a total-market index fund with $150,000 of unrealized long-term gains.

  • Ordinary income: $2,000 interest, fully covered by the deduction. The remaining deduction of $30,200 offsets the dividends and gains next.
  • Room: total income can reach $131,100 ($98,900 + $32,200) with all gains taxed at 0%. Existing income is $10,000, so they can realize about $121,100 of long-term gain.
  • With a $5,000 cushion, they realize $116,000 of gain by selling and immediately rebuying shares.
  • Federal tax: $0. Basis in the fund rises by $116,000.

If they later sell those shares while in the 15% band, they avoid about $17,400 of federal tax (15% of $116,000). Alternatively, the same room could hold a Roth conversion of $121,100, which would cost about $10,000 in federal tax at 10% and 12%. Which is better depends on the size of their IRA, explored in gain harvesting vs conversion.

Side effects and hidden costs

  • ACA premium tax credits. Harvested gains count in MAGI. As of Oct 2026, with the enhanced credits expired, income above 400% of the poverty level gets no credit. A big harvest could cost far more in subsidy than it saves in future tax.
  • Social Security taxation. Gains count in provisional income and can make more of your benefits taxable.
  • IRMAA. At 63 and older, gains count toward Medicare premiums two years later.
  • NIIT. Not usually a concern at these income levels; thresholds start at $250,000 for joint filers.
  • Financial aid. If you have children applying for college aid, realized gains can count as income.

When gain harvesting is not worth it

Harvesting only helps if you would otherwise pay tax on that gain later. It may be pointless if:

  • You expect to hold the shares until death, when heirs would generally receive a basis step-up anyway.
  • You plan to donate the shares to charity, which avoids the gain entirely.
  • You will be in the 0% band in every future year regardless.
  • The trade itself costs money, such as a fund with a redemption fee or a bid-ask spread on a thinly traded holding.

For everyone else, a yearly harvest is one of the few true free lunches in the tax code. Bring a fork.

Common mistakes

  • Forgetting December distributions. Mutual funds often pay capital gain distributions in December, which use 0% room you thought was free.
  • Selling short-term lots. Shares held a year or less produce ordinary income.
  • Using average cost. If your broker defaults to average cost for mutual funds, you cannot choose high-gain lots. Change the method before you sell.
  • Ignoring the deduction already used. Itemizers and people with large ordinary income have less room than they think.
  • Harvesting in a work year. A partial-year paycheck may already fill the 0% band.

FAQ

What is the 0% capital gains threshold for 2026?

Taxable income up to $98,900 for married filing jointly, $66,200 for head of household and $49,450 for single or married filing separately, per IRS Rev. Proc. 2025-32.

Can I buy back the same fund right away?

Yes. The wash sale rule applies only to losses. Buying back immediately after a gain sale is allowed, and the new shares get a fresh basis and holding period.

Do harvested gains affect my ACA subsidy?

Yes. Realized gains count toward modified adjusted gross income, which determines premium tax credit eligibility and amount.

Does gain harvesting work for short-term gains?

No. Short-term gains are taxed as ordinary income at your regular bracket rates. Only assets held more than one year qualify for the 0% rate.

Do I need to report harvested gains?

Yes. The sale appears on your Form 1099-B and is reported on Form 8949 and Schedule D, even though the federal tax is zero.

Sources & fact-check notes

Figures checked October 25, 2026. Rules and limits change; verify with the official source before acting.