Quick Answer: What is tax gain harvesting?

Tax gain harvesting is an investment strategy where you, as the investor, deliberately sell appreciated securities to realize capital gains that are paired against capital losses or absorbed within lower tax brackets. This execution permanently steps up the asset’s cost basis to current market value, protecting future portfolio growth from higher capital gains taxes.

Key Takeaways

  • Tax gain harvesting allows high earners to rebalance concentrated stock positions tax-neutrally by pairing realized gains directly against capital losses.
     
  • Pairing realized gains against capital losses absorbs the gain to neutralize immediate exposure to the top 20% federal capital gains rate and the 3.8% Net Investment Income Tax (NIIT).
     
  • Realizing capital gains during lower-income transition years permanently steps up your asset cost basis, and these basis resets apply cleanly in taxable brokerage accounts without triggering wash-sale restrictions.

 

The standard tax guidance for capital gains is to harvest losses for a $3,000 write-off against your salary. 

But if you’re a high earner, that statutory deduction only saves you about a thousand dollars. 

Your real exposure is the 23.8%+ federal capital gains and Net Investment Income Tax (NIIT) waiting when you sell. 

And that’s where tax gain harvesting changes the equation. 

Instead of trickling small deductions over decades, you can deploy capital losses as an immediate tax shield, letting you trim concentrated shares and reset your cost basis.

If you’re wondering, “What is tax gain harvesting? Let me break it down for you. 

 

What is tax gain harvesting and how does it work?

Tax gain harvesting is a portfolio move where you sell appreciated investments to lock in capital gains on purpose. You match those realized gains dollar-for-dollar against realized capital losses (or absorb them inside lower tax brackets) to reset the cost basis of an asset. And you rebalance concentrated equity positions without creating an immediate tax bill. 

The benefit is, as an investor, you spend all of December hunting for losses because you dread owing the IRS.

But realized gains don’t have to trigger a tax bill if you pair them with matching losses.

How tax gain harvesting works

1. Spot the trapped equity. 

You hold concentrated shares with heavy paper gains (think long-held founder stock or vested RSUs). If you sell them outright, the tax bill won’t be pretty. So, you hold onto them year after year, letting single-stock risk build up in your account.

2. Realize matching losses across your accounts. 

When market dips pull down specific tax lots, you sell those positions to trigger capital losses. Every dollar of realized capital loss wipes out a dollar of realized capital gain, and they cancel out to zero. 

Coordinate with your Orange County CPA or custodian to make sure trades are executed using Specific Identification (SpecID) rather than default FIFO, locking in the exact tax lots intended for the offset. (I’m happy to be that person for you.)

3. Reset the basis and redeploy the cash. 

You put that money right back to work in a broad index fund or a replacement asset. This move cuts your company stock risk while establishing a brand-new, higher baseline cost basis. But the real win is permanent: that past growth disappears from your future tax ledger for good.

Consider this Orange County tech director holding $150,000 of appreciated company shares with an original cost basis of $50,000, representing a $100,000 unrealized gain. In a separate taxable account, they also hold $100,000 in unrealized losses from a volatile sector fund acquired during a prior market peak.

  • Without gain harvesting, the director hesitates to sell the concentrated shares to avoid triggering an immediate $23,800 federal tax hit (20% capital gains + 3.8% NIIT). Meanwhile, the $100,000 paper loss sits idle.
     
  • With gain harvesting, by realizing the $100,000 loss and simultaneously selling the $100,000 gain, the two transactions offset to $0 on Schedule D. The proceeds are immediately redeployed into a broad index fund. The single-stock concentration risk is eliminated, a new $150,000 cost basis is established, and the portfolio avoids $23,800 in federal capital tax drag.

 

Tax gain harvesting rules to keep in mind

The IRS netting order matters. 
Short-term losses must offset short-term gains (taxed up to 37%) first, and long-term offsets long-term (taxed up to 23.8% with the NIIT). When I review portfolio reports, my priority is auditing holding periods before trades are placed so you don’t accidentally burn a high-value short-term loss on a lower-taxed long-term gain.

Wash-sale rules only penalize losses.
 If you sell losing shares to create a tax offset, you must wait 31 days (or pivot into a sector ETF) before rebuying that company to claim the deduction. But if you are harvesting gains during a low-income year, the wash-sale rule does not apply. You can sell appreciated stock at a low tax rate and buy it right back two minutes later to reset your basis.

 

Tax gain harvesting vs tax loss harvesting

If you’re a corporate executive or tech professional with serious equity comp, tax loss harvesting advice isn’t quite sufficient, for a couple main reasons:

  • In the 37% federal tax bracket, writing off the statutory maximum of $3,000 against ordinary salary produces roughly $1,110 in tax savings. For someone managing six- or seven-figure equity compensation packages, a $1,100 reduction doesn’t move the needle. Treating capital losses as an annual tax coupon undervalues their utility.
     
  • As a high earner, you don’t have an ordinary income problem that a $3,000 deduction can fix. Liquidating outsized positions in individual tech stocks (such as NVDA or MSFT) triggers the top 20% long-term capital gains rate and the mandatory 3.8% Net Investment Income Tax (NIIT), along with state income taxes that can push the marginal capital tax drag past 30% to 37%.

Instead of trickling small losses against your salary over decades, strategic tax gain harvesting puts those losses to work right away. You deploy them as a tax shield to trim concentrated stock positions and diversify without handing 25% or more of the proceeds to the IRS.

 

When should you use tax gain harvesting?

Tax gain harvesting makes the most sense during windows when your ordinary W-2 income temporarily drops, like:

  • Taking a mid-career sabbatical or extended parental leave
     
  • Transitioning between corporate roles or consulting contracts
     
  • Leaving Big Tech to join an early-stage startup with modest initial cash compensation
     
  • Early retirement before collecting pensions or Social Security

These transitional years open a rare tax arbitrage window where the math temporarily flips in your favor.

If you hold highly appreciated tech shares with a very low cost basis, realizing those gains during a low-income year locks in preferential long-term capital gains rates (0% or 15% instead of the top 20%). Even if you owe some tax, paying 15% today permanently resets your basis higher, protecting that capital from 23.8%+ rates when your income rebounds later.

On top of that, the 30-day wash-sale rule only applies to capital losses. If you want to keep holding your core shares (like NVDA or AAPL), you can sell the position to harvest the gain at a low rate and repurchase the exact same shares right away. You don’t have to wait 31 days or hold a proxy ETF. You can instantly reset your basis higher without ever leaving the stock.

Something to watch out for here…

Because capital gains flow directly into your Adjusted Gross Income (AGI), harvesting gains expands your MAGI dollar-for-dollar. When harvesting gains inside a low-income transition year without matching losses, trades must be precisely modeled to absorb lower 0% or 15% brackets without unintentionally crossing the statutory $200,000 (single) or $250,000 (MFJ) Net Investment Income Tax thresholds.

 

Final thoughts

Auditing specific tax lots and modeling bracket thresholds takes time. Starting in November gives us the time we need to pull your year-to-date gain and loss reports and build a strategy that trims your concentrated stock risk tax-neutrally.

Grab a spot on my calendar, and let’s model your portfolio before the market closes for the year.

calendly.com/tom-ameritax/new-meeting

 

FAQs

“When is the ideal time for tax gain harvesting?”

The ideal time for tax gain harvesting is during lower-income gap years or during tax years when you hold substantial realized capital losses. Tech professionals and corporate executives utilize this strategy during mid-career sabbaticals or early retirement before mandatory distributions begin. These transitional periods lower your overall taxable income enough to keep your long-term capital gains inside the 0% or 15% federal brackets. Realizing gains in these windows permanently steps up your cost basis before your compensation climbs back into top-tier tax brackets.

“What is tax gain harvesting’s main benefit?”

The main benefit of tax gain harvesting is permanently raising the cost basis of your investments to protect future portfolio growth. This strategy eliminates accumulated paper gains that would otherwise face top capital gains rates and the 3.8% Net Investment Income Tax. It allows Costa Mesa investors to unwind concentrated equity holdings like tech RSUs and redeploy capital into broad index funds. Because the wash-sale rule doesn’t penalize realized gains, you can repurchase the exact same shares immediately to lock in that higher tax foundation.

“Are there risks associated with tax gain harvesting?”

The main risk of tax gain harvesting is pushing your annual income into a higher tax bracket or triggering surcharges. Realizing large capital gains increases your adjusted gross income, which can expose your portfolio to the 3.8% Net Investment Income Tax or cause the phaseout of state deductions. Miscalculating your holding periods can also cause short-term gains to be taxed at ordinary income rates up to 37%. You need to accurately model your total annual income across all revenue sources before executing sales to prevent an unexpected tax obligation.

“What types of investment accounts are best for tax gain harvesting?”

Tax gain harvesting functions exclusively in taxable brokerage accounts, like individual accounts and taxable trusts. These accounts generate Form 1099-B at year-end, meaning every sale directly impacts your annual capital gains calculations on Schedule D. Custodial accounts and corporate brokerage accounts also use this method to manage asset basis. Tax-deferred vehicles like 401(k) plans and IRAs don’t get any benefit from gain harvesting because trades inside those accounts don’t generate taxable capital gains.

“Can tax gain harvesting help reduce capital gains taxes on stock sales?”

Yes, tax gain harvesting reduces future capital gains taxes by resetting your cost basis to current market value. Realizing gains in years when your ordinary income falls into lower brackets allows you to lock in capital gains rates as low as 0% or 15%. When you repurchase the position or reallocate the funds, your new cost basis reflects that higher purchase price. Any future sale only assesses taxes on growth that occurs after this reset, eliminating tax on all previous growth.

“How much can I save on taxes by using tax gain harvesting?”

You might save between 15% and 37% or more in combined federal and state taxes depending on your income bracket and state of residence. For high earners with concentrated equity, offsetting realized gains with losses neutralizes the 20% federal capital gains rate and the 3.8% Net Investment Income Tax. In states with high income taxes, like California or New York, this strategy prevents an extra double-digit state tax drag. On a $100,000 harvested gain, a taxpayer in the top bracket could save upwards of $23,800 in federal liabilities alone.