Skip to main content
Tax-Loss Harvesting

What is tax-gain harvesting and when should you use it?

Pomegra Learn

What is tax-gain harvesting and when should you use it?

Most investors focus exclusively on tax-loss harvesting—selling losing positions to generate deductions. But the mirror image, tax-gain harvesting, is equally powerful and often overlooked. Tax-gain harvesting means intentionally selling appreciated positions and realizing long-term capital gains at a time when doing so creates minimal tax burden. You pay tax today, but you reset your cost basis to the current (higher) price, eliminating future tax liability on that appreciation. In certain circumstances—low-income years, periods when you're in a lower bracket than expected, or when benefiting from the 0% long-term capital-gains rate—harvesting gains can be far more valuable than harvesting losses.

Quick definition: Tax-gain harvesting is the deliberate realization of long-term capital gains during a period of low tax bracket or low taxable income, allowing you to reset cost basis and reduce future tax liability.

Key takeaways

  • Tax-gain harvesting is most attractive when you can realize gains at 0% federal tax rate or lower marginal rates than you expect later
  • Harvesting gains works best during gap years (sabbaticals, retirement transitions, low-income periods)
  • Long-term capital gains receive favorable rates; harvesting short-term gains is rarely optimal
  • Harvesting gains is especially valuable for positions that are likely to appreciate significantly in the future
  • Coordinating gain harvesting with loss harvesting creates a comprehensive tax-optimization strategy

The mechanic: Paying tax today to save more tomorrow

Here's the core principle: you have an appreciated stock with a $40,000 cost basis and a current value of $100,000. You'll eventually sell it or pass it to heirs. If you hold until death, your heirs receive a step-up in basis: they can sell at $100,000 basis with no gain to them. But if you sell while alive and reinvest, you realize a $60,000 gain today, pay taxes, and reset your basis to $100,000. Any future appreciation beyond that is a fresh, untaxed gain.

The question is: at what rate does it make sense to pay tax today?

If you're in a 20% marginal capital-gains rate and expect to be in a 20% rate forever, harvesting makes no difference—you pay the same tax whether you harvest now or later. But if you're in a 0% rate bracket (for example, a single filer with income below $47,025 in 2024) and you expect to be in a 15% or 20% bracket in the future, harvesting is incredibly valuable.

Example: You have $50,000 in long-term capital gains from an appreciated tech stock. You're normally in the 22% federal ordinary-income bracket, which pairs with a 15% long-term capital-gains rate. But this year you took a sabbatical and your income is only $30,000, placing you in the 12% ordinary-income bracket and the 0% long-term capital-gains bracket. You can realize the entire $50,000 gain at 0% federal tax. You pay nothing now. You reinvest the $50,000, reset your cost basis, and any future appreciation is fresh. Years later when you're back to normal income, that reset saves you significant taxes. You've essentially converted taxable future gains into tax-free current gains.

The 0% capital-gains rate and income thresholds

The long-term capital-gains brackets are tied to ordinary-income brackets but operate as separate tiers. For 2024–2025, a single filer with income up to approximately $47,025 qualifies for the 0% long-term capital-gains rate. The next tier (15% rate) extends to roughly $518,900. Above that is 20%. Married filing jointly, the 0% threshold is approximately $94,050, and the 15% threshold extends to roughly $583,750.

These thresholds present opportunities for strategic gain harvesting. If you have $30,000 of ordinary income and the 0% bracket allows $47,025, you have $17,025 of "room" in the 0% bracket. You can realize $17,025 of long-term gains completely tax-free, then reinvest. You've accomplished a cost-basis reset on part of your portfolio at no tax cost.

The thresholds are adjusted annually for inflation, so the exact numbers move each year. Monitoring your expected income for the year and comparing it to the capital-gains thresholds is a key practice.

Comparing expected future tax rates

Gain harvesting becomes attractive when you're confident your future tax rate will be higher. This is easiest to predict in structured circumstances:

Retirement transitions. An executive takes early retirement at 55, ages out of the high-earning window. For five years before claiming Social Security or retirement distributions (which would increase taxable income), the executive is in a lower bracket. Harvesting gains during those five years resets cost basis while in a favorable rate. Once income climbs again from retirement distributions, the reset prevents those future gains from being taxed at higher rates.

Sabbaticals and career breaks. A freelancer or business owner takes a year off. Income drops to near zero. This is a prime window for realizing gains at the 0% rate or the lowest brackets. The entire year's capital-gains capacity is available for harvesting.

Temporary income disruption. A spouse stops working to raise children, eliminating a large income stream. The couple's combined income is lower. This window—lasting years—is ideal for gain harvesting at lower rates. Once the spouse returns to work, income climbs and gain harvesting becomes costlier.

Stock option exercises and restricted stock vesting. An employee receives a large one-time equity award (options vesting, RSUs settling). This year's income is elevated. Years without such events return to lower income. Deferring gain harvesting to non-event years maximizes efficiency.

Tax-gain harvesting versus cost-step-up planning

Cost-step-up planning—holding positions until death to benefit from the step-up in basis for heirs—is often presented as the alternative to harvesting gains. And it's true: if you hold an appreciated position until death, your heirs inherit at current value (no tax to them on future appreciation). But this strategy has downsides.

First, you've deferred all taxes to your heirs, who inherit a large unrealized-gain position. If they sell immediately, the gains are gone and they're not taxed, but if they hold and later sell, they pay tax on any subsequent appreciation. Second, the step-up benefit applies only to positions held at death. Positions you've already sold offer no step-up. So if you've already realized $200,000 of gains over your lifetime, you can't go back and claim step-up treatment; those taxes were already paid.

Tax-gain harvesting attacks this differently: you harvest select positions during low-income years, resetting bases on winners likely to appreciate further. You pay modest tax now but avoid much larger taxes later. Positions you don't harvest can still benefit from step-up at death. The strategy combines both approaches: harvest the most likely winners during low-income years, hold the others for step-up.

Interaction with tax-loss harvesting

A sophisticated investor combines both strategies. In a down market, harvest losses from underwater positions. In a low-income year, harvest gains from your strongest performers. The losses offset current and future gains; the harvested gains lock in cost-basis resets. Over a full market cycle, this two-pronged approach captures tax alpha from both sides of the spectrum.

One rule: don't use current-year harvested losses to offset current-year gains you've intentionally realized for basis-reset purposes. That defeats the point. If you harvest gains to reset basis, realize them at a rate that doesn't require offsets. Conversely, use harvested losses to offset other gains—gains you're forced to realize (mutual fund distributions, real estate sales) or to reduce ordinary income.

A practical workflow: early in the year, identify which positions are most likely to appreciate over the next 5–10 years. Those are candidates for gain harvesting during low-income years. Separately, identify underwater positions eligible for loss harvesting. Execute loss harvesting opportunistically (when losses meet thresholds). Execute gain harvesting strategically (during identified low-income years or low-bracket windows).

Real-world examples

Robert is a 62-year-old executive earning $250,000 annually. He plans to retire at 65. His portfolio holds several positions with massive unrealized gains: a $200,000 cost basis in a position now worth $800,000 (tech stock), and a $50,000 cost basis in a position now worth $180,000 (real estate fund). At his current 37% federal bracket (plus state), capital-gains taxes at 20% eat significantly into returns.

Robert's strategy: in year 1 of retirement (age 65, before claiming Social Security or distributions), his income drops to $0 from wages. He realizes $40,000 of long-term gains (staying in the 0% bracket) from the tech stock, paying no federal tax. The next year, still in low income, he realizes another $40,000. Over five years of low-income retirement transition, he harvests $200,000 of gains at 0%, resetting the cost basis of the tech stock from $200,000 to $800,000. Future appreciation on that stock, from $800,000 upward, avoids 20% capital-gains tax through the reset. If the stock grows to $1.2 million over 10 years, Robert has avoided tax on $400,000 of appreciation—a savings of $80,000 in federal taxes alone. He still pays tax on the $200,000 realized in early retirement (0% rate = $0 tax), netting huge long-term efficiency.

Sarah is a freelance consultant with highly variable income. This year (low-income year), she earned only $25,000 from consulting. She has a portfolio with $150,000 of long-term capital gains spread across several positions. She harvests $47,000 of gains (the amount that fits in the 0% bracket, roughly $47,025 threshold for single filers). Federal tax: $0. She reinvests the proceeds, resetting the basis on those positions. In future high-income years, when she earns $150,000+ from consulting, any gains she realizes are taxed at 15% or 20%, not 0%. But the positions she harvested now have reset bases, so future gains on them are minimized. Over 20 years, this single low-income year's harvesting saves tens of thousands in taxes.

Common mistakes

Harvesting gains without a specific low-income year in mind. Realizing gains at your normal 15% or 20% bracket just to reset basis offers minimal benefit, especially if you're in a strong financial position. Harvesting is most valuable when you're genuinely in a low bracket or have room in the 0% tier. Don't harvest gains at a 20% rate just to reset basis; you'll likely pay more in current tax than you save from future resets.

Forgetting state capital-gains taxes. Federal long-term capital-gains rates are favorable (0%, 15%, or 20%), but states add their own taxes. California's top state rate is 13.3%; New York's is 10.9%. Harvesting gains in a high-state-tax state might trigger 30%+ total tax, making the current cost very steep. High earners in high-tax states should weight this heavily; harvesting in retirement (when living in Florida or Texas, with no state income tax) becomes far more attractive.

Over-harvesting and clustering in one year. Realizing $100,000 of gains in a single low-income year might trigger Medicare premium surcharges (Income-Related Monthly Adjustment Amounts, or IRMAA) if you're near retirement, or phase out tax credits like the Earned Income Credit. Spread gain harvesting across multiple years if possible. If one $100,000 harvest is unavoidable, model the consequences carefully.

Failing to account for Net Investment Income Tax (NIIT). Taxpayers with Modified Adjusted Gross Income (MAGI) above certain thresholds (roughly $200,000 for single filers, $250,000 for married filing jointly) owe an additional 3.8% Net Investment Income Tax on capital gains. Harvesting gains can trigger or increase NIIT exposure. Model this before executing large harvests.

Confusing tax-gain harvesting with buy-low rebalancing. The two are different. Rebalancing means selling overweight asset classes to buy underweight ones (maintaining your allocation). Tax-gain harvesting means selling winners specifically to reset basis, with reinvestment in similar assets for tax purposes. They can overlap (harvest a winner that's also overweight), but they're distinct strategies.

FAQ

Can I harvest gains in my taxable account and immediately buy them back in my IRA?

No. The wash-sale rule doesn't apply to gains, but in-kind transfers between account types are generally not permissible, and there's no cost-basis benefit in a tax-advantaged account anyway. Gains realized in a taxable account must be reinvested in the taxable account for the basis-reset benefit.

Is it ever good to harvest short-term gains?

Rarely. Short-term capital gains are taxed as ordinary income—at rates up to 37%, depending on bracket. Unless you're using short-term losses to offset them, harvesting short-term gains is usually inefficient. Focus gain harvesting on long-term gains (held >1 year), which benefit from the preferential rates.

What if I harvest gains but the market crashes before I can reinvest?

The tax is locked in at the time of sale; market movement afterward doesn't matter. You've paid tax on the original gain. If the stock crashes before you can reinvest, you've captured your profit and avoided the decline. If it rallies further, reinvestment at the higher price is fine because your cost basis is reset. This is another reason to harvest gains when you have strong conviction that the position will appreciate further—the reset is valuable if growth continues.

Does harvesting gains make sense if I plan to leave the position to my heirs?

It depends. If you expect the position to appreciate substantially before your death, harvesting during a low-income year and resetting the basis can be worthwhile—your heirs inherit at the reset basis, and you've saved taxes on the appreciation between now and death. If you expect minimal additional growth, the step-up at death might be sufficient. Model both scenarios.

Can I harvest gains for positions I want to hold long-term?

Absolutely. That's the core idea: sell appreciated positions specifically to reset basis, then reinvest in similar or identical securities. You maintain your economic exposure while improving your tax situation.

Summary

Tax-gain harvesting is the strategic realization of long-term capital gains during low-income years or when gains qualify for the 0% long-term capital-gains rate. By paying tax today at favorable rates, you reset your cost basis to the current price, eliminating future tax on prior appreciation. This strategy is most valuable during predictable low-income periods—sabbaticals, retirement transitions, or years with interrupted income—and complements loss harvesting as part of a comprehensive tax-optimization approach. The key is matching harvesting timing to your specific tax situation and expected future rates; harvesting gains at unfavorable rates usually doesn't pay.

Next

Harvesting in a Down Market: Opportunities and Risks