What if selling winners could actually cut your future tax bill?
Tax gain harvesting means selling investments that went up during years your income is low enough to pay 0% on long-term gains.
You sell only for the tax break, then buy back the same position—no wash-sale rule for gains—so you keep market exposure and reset your cost basis.
Do it right and you lock in tax-free growth now and pay far less later.
This post shows when to act, a step-by-step checklist, and clear numerical examples.
Core Explanation of Tax Gain Harvesting

Tax gain harvesting means selling investments that have gone up in value during years when your income is low enough to pay zero tax on those gains. You’re not selling because you need money or want to rebalance. You’re selling purely for the tax break. Then you buy the same thing right back. There’s no wash sale problem here because that rule only applies to losses, not gains.
Here’s how it works. Long-term capital gains (from stuff you’ve held over a year) get taxed at 0%, 15%, or 20% based on your income. If your income plus the gains you realize stays under the 0% cutoff, you don’t pay federal tax on those gains. When you harvest in a 0% year, your cost basis resets higher. You buy back at the new price, which shrinks your future taxable gain or sets you up to harvest bigger losses later if things go south.
People do this to dodge the 15% or 20% hit they’d face in higher earning years. It’s basically locking in tax-free growth without changing your investment position. The benefit stacks over time. Raising your basis today can save you hundreds or thousands down the line, especially if the asset keeps climbing or you sell during a year when you’re making more money.
- You realize gains at 0% instead of 15% or 20% later
- Cost basis goes up, cutting future taxable gains
- No wash sale restriction, so you can repurchase right away
- You keep your full market position while banking tax savings
- Bigger loss harvest potential if the market drops later
Ideal Situations for Using Tax Gain Harvesting

This strategy clicks when your income dips below the 0% long-term gains threshold. Those windows don’t last long, so timing matters. You want to squeeze every available dollar of that 0% space before your income jumps again. Miss a low-income year and you’re stuck paying 15% or more on the same gains later.
You’ll see this play out in the gap before Social Security or RMDs kick in, during a sabbatical, in early retirement years, or when you’ve got big deductions dragging your taxable income down. In each case, ordinary income drops but your investments stay put. That’s your opening. You need to nail down your total taxable income pretty accurately and leave yourself breathing room so you don’t accidentally spill into the 15% bracket.
- Early retirement before 70 – You’re living off savings or Roth withdrawals, keeping taxable income low and opening up the 0% window for multiple years.
- Sabbatical or unpaid leave – Income drops temporarily, giving you one clean year to harvest before you’re back at work.
- Year after big capital losses – Realized losses pull your taxable income down, maybe even into the 0% bracket despite some other income.
- Pre-RMD years – The stretch between retirement and age 73 (when RMDs start) usually offers the cleanest shot at 0%.
How Tax Brackets Affect Tax Gain Harvesting

Long-term gains get taxed separately from ordinary income, but they stack on top when figuring out your bracket. Your ordinary income (wages, interest, pensions, Social Security) fills the bottom layer. Capital gains sit on top of that. If the total stays under the 0% line, your gains are taxed at 0%. Cross that line by even a dollar and the overage gets hit at 15%.
For 2023, the 0% bracket goes up to $44,625 for single filers and $89,250 for married filing jointly. Say your ordinary income is $30,000 and you realize $10,000 in long-term gains. Total taxable income hits $40,000, still under the threshold. That whole $10,000 gain? Taxed at 0%. But realize $20,000 in gains instead and your total becomes $50,000. The first $14,625 of gain stays at 0%, but the remaining $5,375 gets taxed at 15%. That’s about $806 in federal tax you didn’t need to pay.
You’ve got to project your income carefully. Know your expected ordinary income, subtract deductions, and calculate what’s left in the 0% bracket. Only then can you figure out how much gain to harvest without tripping into the 15% rate. Overshoot by a few thousand and you’ve blown most of the benefit.
Step-by-Step Process to Perform Tax Gain Harvesting

Tax gain harvesting takes some math and timing. Most people do it near year end once they’ve got a clear read on total income. Go too early and you might misjudge your bracket. Wait too long and you’re cramming decisions into December. The whole process takes maybe an hour if you’ve got organized records.
- Project your total taxable income. Add up wages, interest, dividends, pensions, Social Security, whatever else comes in. Subtract your standard or itemized deduction to get taxable income.
- Calculate remaining 0% room. Take the 0% threshold ($44,625 single, $89,250 married filing jointly for 2023) and subtract your projected taxable income. What’s left is how much long-term gain you can realize tax-free.
- Find appreciated positions held over a year. Check your taxable brokerage account for unrealized long-term gains. Use specific lot ID if you want to pick exactly which shares to sell.
- Pick the amount of gain to realize. Choose positions that fit your 0% room. If you’ve got $15,000 of space, sell enough to realize close to that, not more, or you’ll pay 15% on the excess.
- Sell and immediately buy back the same thing. No wash sale rule for gains, so you can repurchase the identical security same day. This keeps your market exposure intact and resets cost basis to the new purchase price.
- Record the new basis and save documentation. Your brokerage tracks it, but keep your own records too. The higher basis cuts future taxable gains or creates a bigger deductible loss if the asset drops.
Timing matters most when markets are jumpy or income’s uncertain. A late year bonus or unexpected income might kill your 0% room completely. Review your income projection monthly during low-income years so you catch changes early.
Numerical Examples of Tax Gain Harvesting

Example for a Single Filer
A single filer expects $25,000 in taxable income for 2023 after the standard deduction. The 0% threshold is $44,625, leaving $19,625 of room. She’s got shares of a total stock market index fund bought three years ago for $10,000, now worth $30,000. Unrealized gain of $20,000. She sells enough to realize $19,000 in gains, staying just under the line. Total taxable income becomes $44,000 ($25,000 ordinary + $19,000 gain). That entire $19,000 gain gets taxed at 0%, saving her $2,850 in federal tax versus realizing it at 15% in a future higher-income year. She buys back the shares immediately at the new price, resetting cost basis from $10,000 to $29,000.
| Income Component | Amount | Tax Owed |
|---|---|---|
| Ordinary Income | $25,000 | $0 (below standard deduction threshold for tax on ordinary income) |
| Long-Term Gain Realized | $19,000 | $0 (0% bracket) |
| Total Taxable Income | $44,000 | $0 on gains |
Example for Married Filing Jointly
A married couple has $60,000 in taxable income from a small pension and part-time work. The 0% threshold is $89,250, giving them $29,250 of room. They own shares in a growth stock bought five years back with a $50,000 cost basis, now worth $120,000. That’s a $70,000 unrealized gain. They sell shares to realize $29,000 in gains, bringing total taxable income to $89,000. The $29,000 gain is taxed at 0%, saving $4,350 compared to the 15% rate they’d pay later when RMDs start. They repurchase right away, raising cost basis from $50,000 to $79,000. If the stock later drops to $100,000, they can harvest a $21,000 loss instead of the $50,000 loss they’d have with the old basis. That creates a much bigger tax benefit in a future high-income year.
| Income Component | Amount | Tax Owed |
|---|---|---|
| Ordinary Income | $60,000 | Standard tax on ordinary income |
| Long-Term Gain Realized | $29,000 | $0 (0% bracket) |
| Total Taxable Income | $89,000 | $0 on gains |
Comparison: Tax Gain Harvesting vs. Tax-Loss Harvesting

Loss harvesting and gain harvesting do opposite things, but they can work together over the long haul. Loss harvesting sells losers to create losses that offset gains or cut ordinary income by up to $3,000 a year, with unused losses carried forward. You’re trying to shrink your current year tax bill. Gain harvesting takes the other approach. You realize gains on purpose in low-tax years to skip paying higher rates later. The wash sale rule blocks loss harvesting if you buy back the same thing within 30 days. Doesn’t apply to gains, though. You can sell and immediately repurchase without penalty.
The order depends on where your income’s headed. Harvest gains in early retirement or sabbatical years when you’re in the 0% zone. Later, when income climbs from Social Security, pensions, or RMDs, flip to harvesting losses to offset taxable events. String both together and you can pay zero on gains in low-income years, then shelter high-income-year gains with previously banked losses. Doing both in the same tax year rarely makes sense. Realizing a $10,000 gain at 0% and a $10,000 loss in the same year nets you nothing and wastes a loss that could’ve offset future 15% or 20% gains.
- Loss harvesting cuts taxable income now. Gain harvesting cuts taxes later.
- Loss harvesting has a 30-day wash sale rule. Gain harvesting doesn’t.
- Losses offset gains dollar for dollar, then up to $3,000 of ordinary income. Gains just add to taxable income.
- Order matters. Harvest gains in 0% years, losses in 15%+ years for max value.
Risks and Limitations of Tax Gain Harvesting

The biggest risk is blowing past the 0% bracket and triggering the 15% rate on part of your gain. That kills the whole point. You need to nail your income projection, but unexpected bonuses, bigger dividends, or Social Security calculations you got wrong can shove you over the line. Even a small overshoot means paying 15% federal plus possible state tax and Net Investment Income Tax on the excess. Most of the benefit vanishes.
State taxes complicate things. Many states tax capital gains as ordinary income, so your “tax-free” federal gain might still cost you 5% to 13% depending where you live.
- Realizing gains bumps your AGI, which can mess with ACA subsidies, jack up Medicare Part B and D premiums, or phase out credits and deductions.
- Selling appreciated assets cuts off future upside if the investment keeps climbing after you buy back, though the tax savings usually beat this opportunity cost.
- Some brokerages put trading restrictions on mutual funds, like 60-day repurchase windows, forcing you into ETFs or similar funds instead.
- Raising your cost basis gives up the step-up your heirs would get if you held till death. Matters for big estates.
- You need clean records and specific lot ID. Screw up basis tracking and you’ve got tax-reporting headaches or accidental short-term gains.
Smart planning cuts most risks. Model your income conservatively. Factor in state tax. Coordinate with other moves like Roth conversions or charitable distributions. If you’re near a threshold, harvest a bit less to leave yourself some cushion.
Who Should Consider Tax Gain Harvesting

This works best for people with temporarily low income and big unrealized gains sitting in taxable accounts. Early retirees living off Roth withdrawals or savings before Social Security starts are perfect candidates. They often get multiple years in the 0% bracket, letting them harvest huge cumulative gains tax-free. Part-time workers, freelancers with bumpy income, or anyone on sabbatical can win too if they plan it out and confirm income stays under the threshold.
High earners already above the 0% bracket get nothing from this. If your taxable income is $150,000, realizing more gains just pushes you deeper into the 15% or 20% zones. Same deal for retirees already pulling big RMDs, pensions, or Social Security. They usually don’t have the 0% room to make harvesting worth it. The strategy also flops if most of your money’s in tax-deferred accounts like traditional IRAs, since those withdrawals get taxed as ordinary income no matter how long you held the investment.
- Early retirees with low current income – Multiple years at 0% let you harvest repeatedly and rack up serious cumulative savings.
- People in gap years before Social Security or RMDs – Narrow window of low income creates urgency and high value per harvested dollar.
- Part-time or seasonal workers with unused 0% space – Modest W-2 income leaves room to realize tax-free gains without getting fancy.
- Investors expecting income to grow later – Locking in 0% gains now dodges the 15% or 20% rates you’ll face when income climbs.
Final Words
You learned what tax gain harvesting is, how the 0% long-term gains window works, and why timing gains in low-income years can save tax.
We walked through when it helps, how brackets stack, step-by-step actions, numeric examples, comparisons with loss harvesting, and risks to watch.
Use this checklist before you sell, pull your numbers, and run the scenario with your CPA. When done right, tax gain harvesting can lock in lower taxes and raise your future cost basis. It’s a simple habit that pays off over time.
FAQ
Is tax gain harvesting a good idea?
Tax gain harvesting is a good idea when your income temporarily falls into the 0% long-term capital gains bracket, allowing you to reset cost basis without paying taxes and reduce future tax bills.
What is tax gain harvesting?
Tax gain harvesting is a strategy where you intentionally sell appreciated long-term investments while your taxable income is low enough to qualify for the 0% capital gains rate, then repurchase them to lock in a higher cost basis.
Is it wise to do tax-loss harvesting?
Tax-loss harvesting is wise when you have realized gains to offset or want to reduce taxable income by up to $3,000 annually, though you must avoid repurchasing the same asset within 30 days to prevent wash sale violations.
How much capital gains tax do I pay on $100,000 profit?
A $100,000 capital gains profit is taxed at 0%, 15%, or 20% depending on your total taxable income and filing status, with most middle-income earners paying the 15% long-term rate if the gain was held over one year.
When is the best time to perform tax gain harvesting?
The best time to perform tax gain harvesting is during years of low income, such as early retirement, sabbaticals, job transitions, or reduced work hours when you fall within the 0% capital gains bracket.
Can I repurchase the same investment after tax gain harvesting?
You can repurchase the same investment immediately after tax gain harvesting because wash sale rules only apply to losses, not gains, allowing you to maintain your portfolio allocation while resetting your cost basis.
Does tax gain harvesting affect Medicare or ACA subsidies?
Tax gain harvesting can affect ACA premium subsidies and Medicare IRMAA surcharges by increasing your modified adjusted gross income, even if you owe no capital gains tax, so check subsidy thresholds before harvesting gains.
What is the difference between cost basis and capital gains?
Cost basis is what you originally paid for an investment plus adjustments, while capital gains are the profit calculated by subtracting your cost basis from the sale price of the asset.
Do state taxes apply to tax gain harvesting?
State taxes may apply to tax gain harvesting even when federal long-term capital gains are taxed at 0%, since many states tax capital gains as ordinary income with no special preferential rates.
How often should I review opportunities for tax gain harvesting?
You should review tax gain harvesting opportunities annually before year-end or whenever your income drops significantly, allowing you to calculate available room in the 0% capital gains bracket and plan strategic sales.

