Skip to main content
My ETF
tax planning7 min readCould save you $2,500+/year in taxes

Tax-Gain Harvesting: The Opposite Strategy

Everyone talks about harvesting losses. The opposite move, selling winners on purpose, can be just as powerful when your income is low enough to hit the 0% capital gains rate.

Alex Harrington··Updated June 21, 2026
TL;DR7 min read

Don't have time? Here's what you need to know:

  • 1Tax-gain harvesting sells appreciated assets in a low-income year to realize gains at the 0% long-term rate and reset cost basis higher.
  • 2Unlike loss harvesting, it is not subject to the wash-sale rule, so you can rebuy the same ETF immediately.
  • 3It works only when taxable income sits in the 0% long-term bracket, common for early retirees in gap years, students, and people between jobs.
  • 4Harvest only up to the top of the 0% bracket and watch secondary effects like state tax, ACA subsidies, and Social Security taxation.

Selling Winners on Purpose: The Idea Behind Gain Harvesting

Tax-loss harvesting, selling losers to bank a deductible loss, is well known. Tax-gain harvesting is its mirror image and gets far less attention: in the right year, you deliberately sell appreciated investments to realize a gain you will not be taxed on, then immediately buy back in. The point is not to raise cash. It is to pay 0% federal tax on the gain and reset your cost basis higher, so that future gains start from a fresh, elevated baseline.

The whole strategy hinges on the 0% long-term capital gains bracket. Long-term gains, on assets held more than a year, are taxed at 0%, 15%, or 20% depending on your taxable income, and the lowest tier is genuinely zero. If your taxable income for the year falls within that 0% band, you can realize a meaningful amount of long-term gain and owe no federal capital-gains tax on it. Harvesting those gains turns an idle low-income year into a permanent tax saving.

The Years When Gain Harvesting Shines

This strategy only works when your taxable income is low enough to sit in the 0% long-term bracket, so it tends to appear in specific life windows. Early retirees in the gap years between leaving work and starting Social Security or Required Minimum Distributions often have unusually low taxable income. So do people taking a sabbatical, returning to school, between jobs, starting a business that is not yet profitable, or in the early career years before income climbs.

There is also a generational angle. Parents or grandparents in low-income years, and recent graduates with modest earnings, may have room in the 0% bracket. Even a partly employed year can leave a slice of the 0% band unused. The key discipline is to look at your projected taxable income, identify how much room remains below the top of the 0% bracket, and harvest gains up to that ceiling, not beyond it.

Tip: Harvest gains only up to the top of the 0% bracket. Realize one dollar too many and that excess gain spills into the 15% rate, so leave a buffer for any year-end dividends and interest that also count as income.

Gain Harvesting vs Loss Harvesting: Opposite Tools

These two strategies serve opposite situations, and confusing them is costly. Tax-loss harvesting is for years when you have gains to offset or want to deduct up to $3,000 of ordinary income, and it is constrained by the wash-sale rule, which disallows the loss if you buy a substantially identical security within 30 days. Tax-gain harvesting is for low-income years, locks in the 0% rate, and crucially is not subject to the wash-sale rule, because the wash-sale rule only applies to losses.

That last point is the quiet superpower of gain harvesting. Because no wash-sale restriction applies, you can sell an ETF to realize the gain and buy the exact same ETF back the same day. There is no 30-day wait and no need to find a similar-but-different fund. You end up holding the identical position, but with a higher cost basis and a 0% tax cost on the gain you just captured.

Tax-loss harvestingTax-gain harvesting
Best year to use itHigh-income / years with gainsLow-income year (0% bracket)
What you sellLosers (below basis)Winners (above basis)
Wash-sale rule applies?Yes (30-day rule on losses)No (only applies to losses)
Can rebuy same fund immediately?NoYes
Main benefitOffset gains + up to $3,000 income0% tax on gain, reset basis higher

Ready to invest? Open an IBKR account in 10 minutes and get free stock. $0 commissions on US ETFs • Fractional shares from $1 • 150+ global markets.

How a Reset in Basis Pays Off Later

Suppose you hold a broad-market ETF you bought years ago for $20,000 that is now worth $30,000, giving you a $10,000 unrealized gain. In a year when your taxable income leaves room in the 0% bracket, you sell, realize the $10,000 gain at 0% federal tax, and immediately rebuy the same ETF at $30,000. Your cost basis is now $30,000 instead of $20,000. If you later sell at, say, $40,000 in a higher-income year, your taxable gain is only $10,000 rather than $20,000, because you already washed out the first $10,000 tax-free.

The benefit is permanent and compounds across multiple low-income years. Each year you have room, you can lift another slice of gains out of your portfolio at no federal cost and step the basis up again. Done consistently during a string of low-income years, gain harvesting can quietly erase a large fraction of the future tax that would otherwise be owed on a long-held, deeply appreciated index fund position.

Important: Watch state taxes and secondary effects. Some states tax capital gains as ordinary income, so a federally 0% gain may still owe state tax, and a larger AGI can affect ACA premium subsidies or other income-tested benefits.

Executing It Without Tripping a Hidden Tax

Run the numbers before you sell. Project your full taxable income for the year, including dividends and interest, find the top of the 0% long-term bracket for your filing status, and harvest only up to the gap between them. Confirm the holdings you sell are genuinely long-term, held more than a year, because short-term gains are taxed at ordinary rates and ruin the math entirely.

Then watch the ripple effects. Realizing gains raises your AGI, which can reduce health-insurance subsidies, increase the taxable portion of Social Security, or push you toward income-tested thresholds. None of these necessarily kills the strategy, but they can shrink the benefit, so they belong in the calculation. Because the interaction of brackets, state rules, and benefit cliffs is genuinely intricate, this is a strategy worth modeling carefully or reviewing with a tax professional before you pull the trigger.

Want the full framework? This 2-hour ETF course teaches you exactly how to pick, buy, and hold profitable ETFs — from zero to confident investor. Under $15.

Frequently Asked Questions

Does the wash-sale rule stop me from rebuying the same ETF after gain harvesting?

No. The wash-sale rule only applies to losses, so it does not affect tax-gain harvesting at all. You can sell an appreciated ETF to realize the gain and buy the exact same ETF back the same day, ending up with an identical position but a higher cost basis.

Who actually qualifies for the 0% capital gains rate?

Anyone whose taxable income for the year falls within the 0% long-term capital gains bracket for their filing status. This commonly includes early retirees in their gap years, people on sabbatical or between jobs, students, and those in low-earning years. The exact income ceiling changes annually, so check the current figure for your filing status.

Is there a limit on how much gain I can harvest at 0%?

There's no fixed dollar cap, but there's an effective ceiling: only the portion of long-term gain that keeps your taxable income within the 0% bracket is taxed at 0%. Any gain above that top edge spills into the 15% rate, so you harvest up to the top of the bracket and stop.

Could harvesting gains hurt me even if the federal rate is 0%?

Possibly. Realizing gains raises your AGI, which can reduce ACA health-insurance subsidies, increase how much of your Social Security is taxable, or trip income-tested thresholds, and some states tax the gain even when the federal rate is 0%. Model these effects before harvesting.

Further Reading

Free Tools

AH

Alex Harrington

CFA Level II Candidate, Finance & Economics

Alex Harrington is an independent ETF researcher and personal finance writer with over 8 years of experience analyzing exchange-traded funds. A CFA Level II candidate with a background in economics, Alex has reviewed 800+ ETFs and helped thousands of beginners build their first investment portfolios through clear, jargon-free education.

Our methodology →

This content is for educational purposes only and does not constitute financial advice. Past performance does not guarantee future results. Consult a licensed financial advisor before making investment decisions.

Related Articles