Tax Strategies

Tax Gain Harvesting: Selling at the 0% Capital Gains Rate

Last updated: October 25, 2026 · Applies to the 2026 tax year (returns filed in 2027)

If your taxable income is low enough, long-term capital gains are taxed at 0%. Tax gain harvesting uses that bracket on purpose: you sell investments with gains, pay no federal tax, and buy them right back. You stay invested, but your cost basis resets higher, so future sales owe less tax. It’s especially useful for retirees, early retirees, people between jobs and anyone in a low-income year.

Key takeaways

  • In 2026, long-term gains are taxed at 0% up to $49,450 of taxable income for single filers and $98,900 for married couples filing jointly.
  • The limit applies to taxable income including the gain, after the standard deduction ($16,100 single, $32,200 joint).
  • The wash sale rule doesn’t apply to gains, so you can buy back immediately.
  • Only gains above the threshold are taxed at 15%; there’s no cliff.
  • Higher AGI can affect health insurance subsidies, Medicare premiums, Social Security taxation and state tax.

How much room you have

SingleMarried filing jointly
Top of the 0% bracket (taxable income)$49,450$98,900
Standard deduction$16,100$32,200
Maximum gross income with all gains at 0%About $65,550About $131,100
Before other deductions such as the additional deduction for age 65+ or the new senior deduction.

Your room is the 0% threshold minus your other taxable income: wages, pensions, IRA withdrawals, the taxable part of Social Security, interest, ordinary dividends and short-term gains. Qualified dividends also use up room, because they share the same brackets.

Worked example

Tom and Linda are retired and file jointly. Their pension and IRA withdrawals total $92,200. After the $32,200 standard deduction, their taxable income is $60,000. They hold an index fund in a taxable account bought for $50,000, now worth $88,900.

  • Room in the 0% bracket: $98,900 − $60,000 = $38,900.
  • In December, they sell the whole fund for $88,900, realizing a $38,900 long-term gain. Federal tax: $0.
  • The same day, they buy the fund back for $88,900. Their new basis is $88,900.
  • If they later sell in a year when they’re in the 15% bracket, they’ve avoided 15% × $38,900 = $5,835 of tax.
  • Had they realized $48,900 instead, only the extra $10,000 would be taxed at 15%: $1,500.

Step by step

  1. Estimate your taxable income for the year, ideally in late November or December when most income is known.
  2. Calculate your room: the 0% threshold minus your taxable income without the harvested gain.
  3. Pick long-term lots with the largest gains per dollar sold. Short-term gains are taxed as ordinary income and don’t qualify.
  4. Sell and buy back the same or a similar investment. No 30-day wait is needed for gains.
  5. Keep records of the new, higher basis and the new purchase date. The holding period restarts.

Side effects to check first

  • ACA premium tax credits: a higher AGI can reduce or eliminate marketplace health insurance subsidies.
  • Medicare premiums (IRMAA): income two years earlier sets Part B and D surcharges.
  • Social Security: extra income can make more of your benefits taxable, which can turn a 0% gain into an effective tax.
  • Senior deduction: the new $6,000 deduction for people 65 and over phases out as income rises.
  • State tax: most states tax capital gains as ordinary income, so the gain may not be free at the state level.

If you have losses to use, harvesting gains in the same year wastes them, because losses offset the 0% gains first. See tax-loss harvesting and the year-end tax checklist.

Frequently asked questions

Does selling and buying back trigger the wash sale rule?

No. The wash sale rule only applies to losses.

Does it work for crypto?

Yes. Long-term crypto gains use the same 0%, 15% and 20% brackets.

Will I owe the 3.8% net investment income tax?

Not if you’re in the 0% bracket. The 3.8% tax only applies above $200,000 of modified AGI (single) or $250,000 (joint).

Sources

This article is for educational purposes only and is not tax, legal or investment advice. Tax rules depend on your individual situation; consult a qualified tax professional before filing.