VIDEO

Tax-Gain Harvesting: The Retirement Tax Strategy Most People Overlook

Can You Sell a Winning Investment and Owe No Federal Capital Gains Tax?

Most investors know the idea behind tax-loss harvesting: you sell an investment that's down and use the loss to help reduce your tax bill. There's another strategy that does almost the exact opposite. You intentionally sell an investment that's up, create a capital gain on purpose, and potentially pay zero federal tax on that gain.

It's called tax-gain harvesting, and retirement can create one of the best opportunities to use it. Intentionally creating a taxable gain can sound backwards. But there are certain years in retirement when realizing gains today could potentially reduce the taxes you pay later. In this video, we walk through how it works, a simplified example, and what to check before you use it.

Quick answer: Tax-gain harvesting means intentionally selling an appreciated investment in a taxable brokerage account that you've held for more than a year, when some or all of the gain could qualify for the 0% federal long-term capital gains rate. For 2026, that range extends up to $98,900 of taxable income for married couples filing jointly and $49,450 for single filers. Realizing gains can affect other parts of your tax picture, so it's important to evaluate the broader impact before acting.

If tax-loss harvesting is new to you, you may find our video on how tax-loss harvesting can help reduce your tax bill helpful as a starting point.

What Is Tax-Gain Harvesting?

Tax-gain harvesting is a tax planning strategy that involves intentionally realizing investment gains in a taxable account during a year when those gains may qualify for a lower federal tax rate, potentially as low as 0%.

Say you bought an investment years ago for $50,000, and today it's worth $100,000. You have a $50,000 unrealized gain. Most investors look at that and think, "I don't want to sell it. I'll owe capital gains tax." But that isn't necessarily true.

As long as you've held the investment for more than a year, that gain is taxed at long-term capital gains rates, and those have their own tax brackets. Depending on your taxable income, some of those gains could potentially fall into the 0% federal rate. For 2026, that 0% range extends up to $98,900 of taxable income for a married couple filing jointly, and $49,450 for a single filer.

Key insight: Your other taxable income uses up that space first. Then your long-term capital gains, along with any qualified dividends, stack on top. And the holding period matters: the gain has to be long term, which means you've held the investment for more than a year.

The 0% thresholds shown are 2026 federal figures and adjust annually. Consult your tax advisor about your situation.

Why Can Retirement Create an Opportunity?

This can become especially interesting in the first few years after you retire. Maybe your paycheck is gone. You haven't started Social Security yet. Your pension hasn't started. And required minimum distributions haven't begun.

That can create a temporary window where your taxable income is lower than it was while you were working, and potentially lower than it will be later in retirement.

Most people think about using those years for Roth conversions, and that's absolutely something worth evaluating. If you're weighing that, see our guide to Roth conversion timing, taxes, and retirement strategy. But Roth conversions aren't the only way to take advantage of a lower-income year. You may also have an opportunity sitting in your taxable investment account.

An Example: Using Space in the 0% Range

Let's say you're retired and married filing jointly. After deductions, you have $60,000 of taxable income, including any dividends, before realizing any additional long-term capital gains. The top of the 0% range for 2026 is $98,900. So in a simplified example, you have roughly $38,900 of room left in that 0% range.

Now say you own an investment you have held for more than a year worth $80,000, but your cost basis is only $50,000. If you sell it, you've created a $30,000 long-term capital gain. In this simplified scenario, that entire $30,000 could potentially fall within the 0% federal capital gains range.

So you just intentionally realized a $30,000 profit with potentially zero federal capital gains tax. That's tax-gain harvesting.

Illustrative example only. The figures are hypothetical and use 2026 federal thresholds. Actual results depend on your taxable income, filing status, and other circumstances. Consult your tax advisor.

Can You Buy the Investment Back After Harvesting a Gain?

You may not even want to get out of that investment. You might still like it. With tax-gain harvesting, you can potentially sell the investment, realize the gain, and then buy it again. The wash-sale rule only applies to losses, so you can buy it right back.

Why would you do that? Because the new purchase generally establishes a new, higher cost basis. The new shares start a new holding period, meaning you'll generally need to hold them for more than one year for future gains to qualify as long term. In our example, the original basis was $50,000, the value today is $80,000, and the gain harvested is $30,000. The new investment has a basis of about $80,000.

Simplified example. Actual transaction values may vary. Consult your tax advisor.

Why Does the Higher Cost Basis Matter?

Imagine that investment eventually grows to $120,000. If you had kept the original $50,000 basis, you'd be sitting on a $70,000 gain. But if you harvested the $30,000 gain and reset your basis to around $80,000, your future unrealized gain would be closer to $40,000.

And that $30,000 of gain was potentially taxed at 0%, and it's done. If you'd waited, it might have been taxed at 15% or more down the road. That's the real benefit.

Why this matters: The benefit isn't that an investment's growth goes untaxed. It's that part of the gain was potentially taxed at 0% now instead of at a higher rate later.

Don't Just Fill the 0% Bracket

Here's where people can get too aggressive. Just because you can realize a gain at 0% doesn't automatically mean you should use every dollar of that available space.

Capital gains can interact with other parts of your tax picture, even when the federal capital gains tax rate is 0%. They can make more of your Social Security benefits taxable and potentially increase future Medicare premiums through the Income-Related Monthly Adjustment Amount (IRMAA), which generally uses income from two years earlier. If you're under 65 and buying health insurance through the marketplace, realizing gains could shrink your premium subsidy, or eliminate it entirely. Your state may tax the gain even when the federal rate is 0%. And if you plan to leave this investment to your heirs, the step-up in basis at death may make harvesting less valuable. For more on the first of those, see our video on why your Social Security may be taxed more than you expect.

And there's another big decision: maybe that available tax space would be better used for a Roth conversion. The taxable portion of a Roth conversion increases your ordinary income, which can reduce the amount of long-term capital gains that qualify for the 0% rate. That's why it's important to evaluate both strategies together rather than independently.

The real question: It isn't, "How much gain can I realize at 0%?" It's, "What's the best use of my lower tax brackets this year?"

The Bigger Picture: Recognizing Gains on Purpose

Most people spend decades trying to defer taxes for as long as possible. But retirement can flip that thinking around. Sometimes recognizing income or gains during a low-tax year can put you in a better position for the years ahead. The key is doing it on purpose.

Planning takeaway: Before harvesting gains, look at your taxable income for the year, how much room you have in the 0% range, and how a gain could affect Social Security taxation, Medicare premiums, health insurance subsidies, and state taxes. Compare it with other uses of a low-tax year, like a Roth conversion, and review the plan with your financial advisor and tax professional.

Coordinating gains, Roth conversions, and the rest of your income is an important part of retirement tax planning.

Frequently Asked Questions About Tax-Gain Harvesting in Retirement

What is tax-gain harvesting?

Tax-gain harvesting is the practice of intentionally selling an appreciated investment in a taxable brokerage account and realizing the gain in a year when some or all of that gain could be taxed at the 0% federal long-term capital gains rate. It's almost the opposite of tax-loss harvesting. You can potentially sell, realize the gain, and buy the investment back, which generally establishes a new, higher cost basis.

What are the income limits for the 0% capital gains tax rate in 2026?

For 2026, long-term capital gains can be taxed at 0% federally to the extent your total taxable income, including the gain, stays at or below $98,900 for a married couple filing jointly or $49,450 for a single filer. Your other taxable income uses up that space first, and then your long-term gains, along with any qualified dividends, stack on top. The thresholds adjust annually, and the investment generally has to be held for more than a year to qualify as long term.

When can tax-gain harvesting make sense in retirement?

It can be especially interesting in the first few years after you retire, when your paycheck is gone but Social Security, a pension, or required minimum distributions haven't started yet. That can create a temporary window where your taxable income is lower than it was while you were working, and potentially lower than it will be later in retirement. Roth conversions are one way to use a lower-income year, and realizing gains in a taxable account may be another.

Can you buy the investment back after harvesting a gain?

Potentially, yes. The wash-sale rule only applies to losses, so selling an investment at a gain and buying it back doesn't trigger it. The new purchase generally establishes a new, higher cost basis. The new shares start a new holding period, meaning you'll generally need to hold them for more than one year for future gains to qualify as long term.

Why does a higher cost basis matter?

A higher cost basis means a smaller future gain. In a simplified example, if an investment with a $50,000 basis grows to $120,000, the unrealized gain is $70,000. If you harvested a $30,000 gain and reset the basis to about $80,000, the future unrealized gain would be closer to $40,000. The $30,000 of gain that was potentially taxed at 0% is done, while it might have been taxed at 15% or more later.

What else can realizing a capital gain affect?

Capital gains can interact with other parts of your tax picture, even when the federal capital gains tax rate is 0%. They can make more of your Social Security benefits taxable and potentially increase future Medicare premiums through the Income-Related Monthly Adjustment Amount (IRMAA), which generally uses income from two years earlier. If you're under 65 and buying health insurance through the marketplace, realizing gains could shrink your premium subsidy or eliminate it entirely. Your state may also tax the gain even when the federal rate is 0%. These effects depend on your individual circumstances, so it's worth reviewing them before you harvest.

Should you use your 0% bracket for tax-gain harvesting or a Roth conversion?

It depends on your situation. The taxable portion of a Roth conversion increases ordinary income and can reduce the space available for gains at the 0% rate. Both strategies can make use of lower tax brackets in a low-income year, so the real question isn't how much gain you can realize at 0%. It's what the best use of your lower tax brackets is this year. A financial advisor and tax professional can help you compare the options.

Does tax-gain harvesting still make sense if you plan to leave the investment to heirs?

It may make less sense. If you plan to leave an investment to your heirs, the step-up in basis at death may make harvesting less valuable, since inherited investments generally receive a cost basis adjustment to fair market value at death, subject to applicable tax rules. For appreciated investments, this can reduce or eliminate the taxable gain attributable to appreciation during the original owner's lifetime. It's worth weighing that against the other reasons you might harvest a gain, and reviewing it with your tax professional.

Want a Clear Picture of Your Retirement Readiness?

Take our free Retirement Readiness Assessment. It takes less than a minute and helps you identify potential gaps in your retirement plan across income, investments, taxes, healthcare, and overall planning.

Start the Assessment

Investment advice is offered through Bayntree Wealth Advisors, LLC, an SEC-registered investment adviser. Insurance and annuity products are offered separately through Bayntree Planning Group, LLC. Bayntree does not provide, and no statement contained herein shall constitute, tax or legal advice. You should consult a tax or legal professional on any such matters. Opinions expressed herein are solely those of Bayntree Wealth Advisors. All content is for informational purposes only and is not intended to provide the basis for any financial decisions.

As Featured In

The Wall Street Journal Logo in Bayntree Wealth Advisors Blue, Scottsdale, Arizona.
Forbes Logo in Bayntree Wealth Advisors Blue, Scottsdale, Arizona.
CNBC Logo in Bayntree Wealth Advisors Blue, Scottsdale, Arizona.
The Washington Post Logo in Bayntree Wealth Advisors Blue, Scottsdale, Arizona.
Yahoo Finance Logo in Bayntree Wealth Advisors Blue, Scottsdale, Arizona.
MarketWatch Logo in Bayntree Wealth Advisors Blue, Scottsdale, Arizona.
Taxes
Retirement Planning