Tax-gain harvesting means selling appreciated investments in a taxable brokerage account during a year when your income is low enough to land in the 0% long-term capital gains bracket, then optionally buying the same investment right back, so you lock in a higher cost basis without owing any federal tax on the gain. For 2026, that bracket covers taxable income up to $49,450 for single filers and $98,900 for married couples filing jointly. If you're in a gap year, an early retirement, between jobs, or just had a lighter income year than usual, you may be able to realize real investment gains completely tax-free at the federal level.
What Taxable Income Actually Qualifies for the 0% Bracket in 2026?
Taxable income under $49,450 if you're single, or under $98,900 if you're married filing jointly (head of household cuts off at $66,200). That's taxable income, not gross income, and the gap between the two is usually your standard deduction. The 2026 standard deduction is $16,100 for single filers and $32,200 for married couples, so in practice a single filer taking the standard deduction can earn up to roughly $65,550 in gross income and still land in the 0% capital gains bracket, and a married couple can earn up to roughly $131,100. Ordinary income (wages, interest, retirement withdrawals) fills the bracket from the bottom first, and your long-term capital gains stack on top of it, so the math always starts with what you already earn, not with the gain itself.
How Much Could You Actually Harvest Tax-Free?
Whatever room is left between your taxable ordinary income and the threshold. Here's the real math for two realistic situations:
- Single filer, $30,000 in wages for the year (a sabbatical, a layoff, or a part-time year): taxable ordinary income after the $16,100 standard deduction is $13,900. Room left under the $49,450 threshold: $35,550. That's $35,550 of long-term gains they can realize this year at 0% federal tax.
- Married couple, $70,000 in combined income (one spouse not working, or early in retirement before Social Security starts): taxable ordinary income after the $32,200 joint standard deduction is $37,800. Room left under the $98,900 threshold: $61,100 in gains at 0% federal tax.
Harvest even $1 more in gains than that remaining room and you don't lose the whole benefit, only the portion of the gain that spills over into the 15% bracket gets taxed at 15%, so overshooting slightly is a rounding error, not a cliff.
Does the Wash Sale Rule Apply to Tax-Gain Harvesting?
No. The wash sale rule only disallows losses, not gains, so there's nothing stopping you from selling a position and buying it right back the same day. That's the opposite of tax-loss harvesting, where you have to wait 31 days before repurchasing the same security or a "substantially identical" one or the loss gets disallowed. See our breakdown of tax-loss harvesting and the wash sale rule for how that side of the strategy works. With gains, you can sell and rebuy instantly, the only real risk is the price moving against you in the seconds or minutes between the two trades.
What's the Real Benefit, the 0% Tax Today or the Higher Cost Basis Tomorrow?
The cost basis reset, more than the tax bill itself. If you don't need the cash, the real payoff isn't "free money" today, it's that your newly repurchased shares now have a higher cost basis, which means a smaller taxable gain (and a smaller tax bill) whenever you eventually sell for real in a higher-income year. A share bought at $40 and harvested back up to $100 has $60 less in built-in gain hanging over it than if you'd never touched it. The new shares also restart the one-year clock for long-term treatment, so wait at least a year before selling them again, or you'll owe short-term rates on any further gain.
What Are the Real Risks and Trade-Offs?
- State tax usually still applies. Most states tax capital gains as ordinary income with no 0% carve-out, so you may owe state tax on a gain that's completely free at the federal level. Check your own state's rules before assuming this is tax-free all around.
- It can push you past other income-based cliffs. Realizing a gain raises your modified AGI, which can affect ACA marketplace subsidy eligibility, the taxability of Social Security benefits, or Medicare IRMAA surcharges two years later if you're near those thresholds. Run the numbers on your full picture, not just the capital gains bracket, before harvesting a large amount.
- The 3.8% Net Investment Income Tax is a separate threshold. It kicks in at $200,000 (single) or $250,000 (joint) modified AGI, and those thresholds aren't inflation-adjusted. Most people harvesting at the 0% capital gains bracket have income well below this, but it's worth knowing if other income this year is unusually high.
- Only long-term gains qualify. You need to have held the position for more than one year. Short-term gains are taxed as ordinary income regardless of your bracket.
- It doesn't work inside a 401(k) or IRA. This only applies to a taxable brokerage account, since tax-advantaged accounts don't have capital gains tax to harvest around in the first place.
Who Should Actually Consider This?
Anyone with a genuinely low-income year and real unrealized gains sitting in a taxable account: early retirees bridging the years before Social Security or RMDs start, someone between jobs or on a sabbatical, a grad student, a business owner coming off a loss year, or anyone pursuing Coast FIRE living on a lighter income by design. It's a one-year window that resets every year based on that year's actual income, so it's worth checking every single year you have a lower-income stretch, not just once.
If you want the other half of this picture, our guide to short-term vs. long-term capital gains tax covers the brackets themselves in more depth. And if your actual situation involves losses instead of gains this year, tax-loss harvesting is the mirror-image strategy worth checking first.
—
Spicy Investing
