Early retirees reviewing tax-gain harvesting and investment paperwork at home
| |

Tax-Gain Harvesting: How Early Retirees Can Use 0% Capital Gains Years

This article is for education only, not tax advice. Tax rules change, and your state, income, health insurance, and retirement accounts can change the answer. Check with a qualified tax professional before realizing a large gain.

Tax-gain harvesting is the quiet cousin of tax-loss harvesting. Instead of selling an investment at a loss to reduce taxes, you intentionally sell an appreciated investment in a year when your long-term capital gains rate may be 0%. Then you can often buy the same fund back right away, reset your cost basis higher, and lower future taxes.

For early retirees, sabbatical takers, new business owners, and anyone with a temporarily low-income year, this can be a powerful move. The goal is not to trade more. The goal is to use a low tax bracket while it is available.

What Is Tax-Gain Harvesting?

Tax-gain harvesting means selling an investment that has gone up in value on purpose. If you qualify for the 0% federal long-term capital gains bracket, some or all of that gain may be taxed at 0% federally. After the sale, many investors immediately rebuy the same investment, which creates a new, higher cost basis.

That higher basis matters later. If you bought an index fund for $40,000 and it is now worth $70,000, you have a $30,000 unrealized gain. If you can realize that gain at a 0% federal rate, your new basis may become $70,000. A future sale at $90,000 would have only $20,000 of gain instead of $50,000.

The key word is long-term. The favorable 0%, 15%, and 20% capital gains rates generally apply to assets held for more than one year. Short-term gains are taxed as ordinary income, which usually makes tax-gain harvesting much less attractive.

Why Early Retirees Care

Tax-gain harvesting is most useful when your taxable income drops for a year or two. That can happen after you leave a full-time job but before Social Security, pensions, required minimum distributions, or a new business income stream begin.

Many FIRE plans have a gap year pattern. You may have a taxable brokerage account, a Roth conversion ladder, some cash, and a few quiet years before traditional retirement income starts. Those years can create room inside the 0% long-term capital gains bracket. If you ignore that room, it disappears when the tax year ends.

This is why tax-gain harvesting fits naturally beside retirement planning tools like the FIRE Calculator, the Coast FIRE Calculator, and the sequence of returns risk planning process. Your withdrawal plan is not only about how much to sell. It is also about which account to use and when to recognize income.

2026 Federal Long-Term Capital Gains Brackets

For the 2026 tax year, long-term capital gains are taxed federally at 0%, 15%, or 20% based on taxable income. Taxable income is after deductions, not the same as gross income. That detail is important because the standard deduction can create more room than people expect.

Filing status0% long-term capital gains range for 2026 taxable income
Single$0 to $49,450
Married filing jointly$0 to $98,900
Head of household$0 to $66,200
Married filing separately$0 to $49,450
These are 2026 federal long-term capital gains thresholds for taxable income. State taxes, ordinary income, deductions, and investment income surtaxes can change the final result.

A married couple with $60,000 of taxable income before harvesting does not automatically get $98,900 of tax-free gains. The 0% bracket stacks on top of ordinary income. In simple terms, if the 0% threshold is $98,900 and taxable income before gains is $60,000, there may be about $38,900 of room before long-term gains start landing in the 15% bracket.

The IRS explains the general treatment of capital gains and losses in Topic No. 409, and deeper investment tax rules are covered in Publication 550. Use current-year IRS figures when you run the numbers, because thresholds can change with inflation.

How a Tax-Gain Harvest Works

  1. Find appreciated investments in a taxable brokerage account.
  2. Confirm the shares have been held longer than one year.
  3. Estimate taxable income before the sale.
  4. Calculate how much room remains in the 0% long-term capital gains bracket.
  5. Sell only enough shares to fill the intended bracket space.
  6. Rebuy the same investment if it still fits your plan.
  7. Save records showing the sale price, repurchase price, and new basis.

Unlike tax-loss harvesting, there is no wash-sale rule for gains. If you sell VTI, VOO, or another index fund at a gain, you can generally buy it back right away. The wash-sale rule is aimed at losses, not gains. That is one reason tax-gain harvesting can be cleaner than tax-loss harvesting.

Still, do not let the tax tail wag the investing plan. If you are using broad index funds, keep your allocation steady. If you are reviewing how index funds fit into your portfolio, start with how to invest in index funds before turning tax moves into a yearly habit.

Example: The Early Retirement Gap Year

Imagine a married couple filing jointly in 2026. They left full-time work in late 2025. In 2026, they expect $35,000 of ordinary taxable income after deductions from part-time consulting and interest. They hold taxable brokerage shares with $80,000 of unrealized long-term gains.

The 0% long-term capital gains threshold for married filing jointly is $98,900 of taxable income. If their taxable income before gains is $35,000, they may have about $63,900 of room before long-term capital gains move into the 15% bracket. They could sell enough shares to realize up to that amount, then rebuy the same fund and reset basis higher.

That does not mean they should harvest the full amount. They still need to check state taxes, Affordable Care Act subsidies, other investment income, Roth conversions, child tax credits, and future income. A smaller harvest may be smarter if it preserves another benefit.

Tax-Gain Harvesting vs Tax-Loss Harvesting

StrategyWhat you sellMain goalBest timing
Tax-gain harvestingInvestments with gainsReset basis higher while using the 0% long-term gains bracketLow-income years, early retirement, sabbaticals
Tax-loss harvestingInvestments with lossesOffset gains and possibly up to $3,000 of ordinary incomeMarket downturns, portfolio rebalancing, taxable account cleanup

Both strategies belong in a taxable account playbook, but they solve opposite problems. Tax-loss harvesting is useful when markets are down and you want to capture a loss without leaving the market. Tax-gain harvesting is useful when markets are up and your income is low enough to recognize gains cheaply.

If you want to estimate the gain before selling, use the Stock Gain Calculator. If you are still building the portfolio, the Dollar Cost Averaging Calculator can show how repeated purchases create multiple tax lots over time.

The ACA Subsidy Trap

For early retirees who buy health insurance through the ACA marketplace, tax-gain harvesting can be dangerous if it pushes income too high. Marketplace subsidies are based on household income. A harvest that saves federal capital gains tax could still reduce health insurance subsidies by more than the tax savings.

This is one of the biggest reasons to plan before selling. If you are using marketplace coverage, check the income estimate rules at HealthCare.gov and model the subsidy impact before you harvest gains. For some households, the best tax move is to leave the gains unrealized and keep income lower.

Other Risks to Check First

  • State taxes: Your state may tax capital gains even when the federal rate is 0%.
  • Roth conversions: Filling the 0% gains bracket may leave less room for a planned Roth conversion.
  • Net investment income tax: Higher-income investors may owe an extra 3.8% surtax, although most 0% bracket harvesters are below that range.
  • Social Security taxation: Retirees already receiving benefits need to check how extra income affects taxable benefits.
  • Medicare IRMAA: Older retirees should watch income thresholds that can raise Medicare premiums.
  • Financial aid and credits: Extra income can affect college aid, tax credits, and other income-based benefits.

When Not to Harvest Gains

Do not harvest gains just because the rate looks low. It may be a bad move if you need to keep income low for ACA subsidies, you live in a high-tax state, you plan a large Roth conversion, or your shares are close to qualifying for long-term treatment but are not there yet.

It can also be unnecessary if you plan to donate appreciated shares, leave assets to heirs, or sell gradually over many years. Donating appreciated shares can avoid capital gains tax while creating a charitable deduction if you itemize. Inherited assets may receive a step-up in basis under current rules, which can make lifetime harvesting less valuable for some estate plans.

A Simple Year-End Checklist

  1. Estimate total ordinary income for the year.
  2. Estimate deductions and taxable income.
  3. List unrealized long-term gains in your taxable account.
  4. Check ACA, state tax, Roth conversion, and credit impacts.
  5. Decide the maximum gain you are comfortable realizing.
  6. Harvest in pieces if you are unsure, instead of selling too much at once.
  7. Save trade confirmations and updated cost basis records.

Bottom Line

Tax-gain harvesting is not about beating the market. It is about using a low-income year wisely. If you can realize long-term gains at a 0% federal rate, reset your cost basis, and avoid losing other benefits, the move can lower future taxes without changing your investment plan.

The best candidates are early retirees, people between jobs, sabbatical takers, and households with unusually low taxable income. The worst candidates are people who only look at the federal capital gains rate and forget the rest of the tax return. Run the numbers, check the side effects, and treat the 0% bracket as valuable space that should be used carefully.

Frequently Asked Questions

Is tax-gain harvesting legal?

Yes. Selling an appreciated investment and paying the required tax is legal. If your federal long-term capital gains rate is 0%, the federal tax on that portion of the gain may be zero. You still need accurate records and should check state rules.

Can I buy the same fund back right away?

For gains, generally yes. The wash-sale rule applies to losses, not gains. If you sell at a gain, many investors rebuy the same ETF or mutual fund immediately to keep their allocation unchanged.

Does tax-gain harvesting work in an IRA or 401k?

No. The strategy is for taxable brokerage accounts. Trades inside traditional IRAs, Roth IRAs, and 401k plans do not create current taxable capital gains in the same way.

What is the biggest mistake?

The biggest mistake is filling the 0% capital gains bracket without checking other income-based rules. ACA subsidies, state taxes, Roth conversions, Social Security taxation, and Medicare premiums can all change the real answer.

Similar Posts