BlogTax planning

Tax-Gain Harvesting: Using the 0% Capital Gains Bracket on Purpose

Long-term capital gains are taxed at 0% for couples with taxable income up to $98,900 in 2026 ($49,450 single). Selling winners and buying them back resets your cost basis at no tax cost. Who has room, how to size it, and the traps that make 0% cost more.

Key takeaways

  • In 2026, long-term gains and qualified dividends are taxed at 0% while taxable income stays at or below $98,900 married filing jointly or $49,450 single.
  • Selling and immediately rebuying resets your cost basis higher; the wash-sale rule applies only to losses, not gains.
  • Early retirees, career-break years and business owners with a down year are the usual candidates.
  • Watch the side effects: ACA premium credits, taxation of Social Security, Medicare surcharges two years later and the reset holding period.

Short answer: If your taxable income will be at or below $98,900 this year (married filing jointly) or $49,450 (single), long-term capital gains that fit under that line are taxed at 0% federal. Selling appreciated investments and buying them right back raises your cost basis for free, so a later sale owes less tax. Unlike tax-loss harvesting, there's no wash-sale rule to wait out. The trade has to happen by December 31.

Sources, checked November 2026: IRS Topic 409 (capital gains and losses), IRS 2026 inflation adjustments and IRS Publication 550.

Most people hear about tax-loss harvesting, selling losers to bank a deduction. Its quieter cousin works in the other direction. In a low-income year you sell winners on purpose, pay nothing, and walk away with the same investments and a higher basis. It sounds too easy. In the right year, it mostly is.

How does the 0% rate actually work?

Capital gains sit on top of your other income. The tax code fills your taxable income from the bottom with ordinary income first (wages, IRA withdrawals, interest), then stacks long-term gains and qualified dividends on top. Whatever part of the gains lands below the 0% line is taxed at 0%. Whatever lands above it is taxed at 15%.

2026 long-term capital gains rateSingle (taxable income)Married filing jointly (taxable income)
0%Up to $49,450Up to $98,900
15%Up to $545,500Up to $613,700
20%Above $545,500Above $613,700

Those are taxable income figures, after the standard deduction ($32,200 for a married couple in 2026, more if you're 65 or older). So a couple can have well over $98,900 of total income and still have room. Florida has no state income tax, so for residents, 0% federal really is 0%.

Who has room in the 0% bracket?

Anyone with a low-income year and money in a taxable brokerage account. In practice, it's usually one of these:

  • Early retirees living on savings in the years before Social Security and required minimum distributions.
  • A gap year: a sabbatical, a layoff, a year between jobs, a new parent staying home.
  • Business owners with a down year, or a first year after selling the business when income resets.
  • Couples where one spouse has retired and the other works part time.

It does nothing inside an IRA or 401(k). Gains there aren't taxed when realized anyway.

How much can you harvest?

Take a hypothetical couple, both 60, retired this year. They'll draw $40,000 from an IRA and receive $20,000 of qualified dividends from their taxable account. No Social Security yet.

  • Ordinary income: $40,000 minus the $32,200 standard deduction leaves $7,800 of taxable ordinary income, taxed at 10%, so $780.
  • Add the $20,000 of dividends: taxable income is $27,800, and the dividends are taxed at 0%.
  • Room left under the line: $98,900 minus $27,800 is $71,100.

They can sell positions with up to $71,100 of long-term gains, buy them straight back and owe nothing more. If those same gains were realized years later at 15%, the tax would be about $10,665. Do this for several low years in a row and a large share of a taxable portfolio's gains can be washed out before Social Security and required minimum distributions fill the brackets for good.

Leave yourself a cushion. Dividends and fund distributions land in December, and a few hundred dollars over the line only costs 15% on the excess, but it's easier to estimate conservatively and do a little more next year.

What makes 0% cost more than 0%?

The gain isn't taxed, but it still counts as income for everything else that keys off income. Check these before you sell:

  • ACA premium credits. If you buy health insurance on the marketplace, harvested gains raise the income your credit is based on. With the enhanced credits gone for 2026, the cliff at 400% of the poverty line is back (about $84,600 for a couple buying 2026 coverage), and crossing it can cost the entire credit. For many early retirees this is the binding limit, not the 0% line.
  • Social Security taxation. Once you're collecting, capital gains count toward the income that decides how much of your benefit is taxed. A "0%" gain can drag up to 85 cents of benefit per dollar into taxable income, which is taxed at your ordinary rate.
  • Medicare surcharges. If you're 63 or older, this year's income sets your Medicare premiums two years from now. See IRMAA brackets.
  • Roth conversions compete for the same space. Converted dollars are ordinary income and push gains out of the 0% bracket. In many years, conversions are the better use of a low bracket. Our Roth conversion strategy post walks through how we size them, and the two usually get planned together.
  • The holding period restarts. The shares you buy back are new lots. Sell them within a year and the gain is short-term, taxed as ordinary income.

When isn't it worth doing?

When you'll never sell. Assets held until death get a step-up in basis anyway, so harvesting gains on stock you plan to leave to your kids buys nothing. The same goes for shares you plan to give to charity, which avoids the gain entirely and gives you a deduction for the full value.

It's also not worth it if the room is tiny and the account charges trading costs, or if harvesting means selling a fund you'd like to replace anyway. Then just sell it and buy what you actually want.

How do you do it?

Sell the specific lots with the largest gains per dollar, using specific lot identification rather than average cost if your custodian allows it. Buy back the same investment the same day so you're never out of the market. Make sure the sale's trade date is on or before December 31. Then keep a record of the new basis, because your custodian will report it, and you want to know it's right.

Where we come in

We do this as part of tax planning, not as a one-off trade: we project the year's income in November, decide how much of the low bracket goes to Roth conversions and how much to gains, check the ACA, Social Security and Medicare effects, and place the trades before year end. We don't prepare or file returns; we plan them. See tax planning and investment management.

Frequently asked questions

Does the wash-sale rule apply to gains?

No. The wash-sale rule only disallows losses when you buy back a substantially identical investment within 30 days. You can sell at a gain and repurchase the same day.

Do qualified dividends use up the 0% bracket?

Yes. Qualified dividends are taxed like long-term gains and stack on top of ordinary income, so they fill the 0% space before any gains you harvest.

Is the 0% bracket based on taxable income or total income?

Taxable income, after the standard or itemized deduction. A married couple taking the 2026 standard deduction can have $131,100 of total income (if it's all long-term gains and qualified dividends) and stay within the 0% rate.

What's the deadline for tax-gain harvesting?

December 31. For stock and fund sales, the gain counts in the year of the trade date, even if the sale settles in January.

This article is general education, not individualized advice, and it is not tax, legal, or accounting advice. Figures reflect federal law for the year stated and can change. Valerio Wealth Management does not prepare or file tax returns. Speak with a qualified professional about your own situation before acting.

In this article

Want this applied to your own numbers? A 30-minute introductory call is the first step.

See if you’re a fit