S&P 500 7,184.19 ↓ 0.23%Dow Jones 50,307.24 ↑ 0.58%Nasdaq 23,564.03 ↓ 0.71%BTC $58,213 ↓ 3.1%ETH $1,632 ↓ 3.6%EUR/USD 1.0935Inflation 3.5% YoYLive market dataS&P 500 7,184.19 ↓ 0.23%Dow Jones 50,307.24 ↑ 0.58%Nasdaq 23,564.03 ↓ 0.71%BTC $58,213 ↓ 3.1%ETH $1,632 ↓ 3.6%EUR/USD 1.0935Inflation 3.5% YoYLive market data

Tax-Gain Harvesting: The 0% Capital Gains Bracket Retirees Overlook

For years you tried not to trigger a tax bill by selling winners. In certain retirement years the smart move flips: sell appreciated investments on purpose, pay nothing in federal tax, and reset your cost basis. Here is how the 0% long-term capital gains bracket actually works in 2026.
Tax-Gain Harvesting: The 0% Capital Gains Bracket Retirees Overlook

Key takeaways

  • Long-term capital gains are taxed at 0% federally as long as 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 in 2026.
  • Your ordinary income fills the bracket first; long-term gains stack on top, so only the room between your ordinary taxable income and the 0% ceiling can be harvested at 0%.
  • Tax-gain harvesting means selling an appreciated long-term investment in a low-income year, paying zero federal tax, and rebuying it to reset your cost basis higher so future gains are smaller.
  • The wash-sale rule applies to losses, not gains, so there is no waiting period to buy back a position you sold for a gain.
  • The strategy works best in the gap years after you stop working but before required distributions and full Social Security fill the bracket on their own.
  • Realizing gains raises your income, which can touch Social Security taxation, Medicare IRMAA surcharges, marketplace subsidies, state tax, and the 3.8% surtax, so size each harvest to fit the 0% room.
Send this guide

It goes to your followers on the network you pick.

Most people spend their working years trying hard not to sell investments that have gone up. Selling a winner usually means a tax bill, so the instinct is to leave it alone. That is why it catches a lot of new retirees off guard when a planner suggests the opposite. In certain years, selling an appreciated investment on purpose, paying nothing in federal tax, and buying it right back can be one of the smartest quiet moves on the board.

The move has a name. It is called tax-gain harvesting, and it lives inside a corner of the tax code that resets every January. The engine behind it is the 0% long-term capital gains bracket, a real rate that applies to real people, not a loophole and not a trick. If your taxable income for the year lands below a certain line, the federal tax on your long-term gains is literally zero. The window is widest in the years right after you stop working, which happens to be exactly when most people assume there is nothing clever left to do.

This guide walks through what that bracket is, how gains stack on top of your other income, the 2026 numbers, a plain hypothetical couple, and the traps that can quietly swallow the savings if you are not watching. None of this is tax advice for your specific return, and nobody here is your accountant. Think of it as a map so the conversation with your own tax professional goes faster.

What tax-gain harvesting actually means

Tax-loss harvesting is the famous cousin. That is when you sell something at a loss to offset gains elsewhere and trim your tax bill. Tax-gain harvesting is the mirror image. You deliberately sell an investment that has grown, recognize the gain in a low-income year so it is taxed at 0%, and then, if you still want to own it, buy it back. You walk away owning the same thing, except now your cost basis has been reset to today's higher price.

Why would anyone want a higher basis? Because basis is the number the government subtracts from your future sale price to figure out how much gain you owe tax on. A share bought long ago for $20 that is now worth $100 carries an $80 built-in gain. If you sell it at 0% this year and rebuy it at $100, your new basis is $100. The old $80 of gain has been permanently wiped off the books at no federal cost, and only growth above $100 will ever be taxed from here. You have spent a cheap year to erase an expensive future problem.

The key word in all of this is long-term. The Internal Revenue Service draws a bright line at the one-year mark. As the agency puts it in its own guidance, "if you hold the asset for more than one year before you dispose of it, your capital gain or loss is long-term," and if you hold it one year or less it is short-term, taxed at ordinary income rates (IRS Topic No. 409). The 0% rate only exists for long-term gains. A stock you bought eleven months ago does not qualify. One you have held for a decade does.

The number that makes it possible

The whole strategy rests on one threshold. For the 2026 tax year, a married couple filing jointly pays 0% on long-term capital gains as long as their total taxable income, including the gain, stays at or below $98,900. For single filers the line is $49,450. Above those points the rate steps up to 15%, and only well into the hundreds of thousands does it reach 20% (IRS Revenue Procedure 2025-32; Tax Foundation).

Notice the phrase "taxable income." That is not your gross pay or your total withdrawals. It is what is left after your standard deduction or itemized deductions come off. For 2026 the standard deduction is $32,200 for a married couple filing jointly and $16,100 for a single filer, and people who are 65 or older get an extra amount on top, $1,650 per spouse for a married couple or $2,050 for someone single (IRS inflation adjustments for 2026). Those deductions push the real-world income you can have while still qualifying higher than the raw threshold suggests, which is a big part of why this works so well for retirees.

How gains stack on top of your income

Here is the mechanic that trips people up, so it is worth slowing down. Your ordinary income fills the bracket first. Wages, pension payments, interest, taxable retirement account withdrawals, and the taxable slice of Social Security all count as ordinary income, and they pile in at the bottom. Your long-term capital gains then sit on top of that stack. Only the room left between your ordinary taxable income and the 0% ceiling is available to be filled with gains at the 0% rate.

Picture the 0% ceiling as the rim of a glass. Ordinary income pours in first. Whatever space is left before the rim is how much in long-term gains you can pour on top before any of it spills into the 15% band. If your ordinary taxable income already sits above the ceiling, there is no 0% room at all, and every dollar of long-term gain is taxed at 15% or more. If your ordinary income is low, the glass has plenty of room, and that room is the opportunity.

Gains can also straddle the line. If you have a little 0% room left and you realize a large gain, the part that fits under the ceiling is taxed at 0% and the part that pokes above it is taxed at 15%. The brackets are not all-or-nothing. That is why careful retirees often realize just enough gain to fill the room and stop, rather than selling everything at once and spilling a big chunk into the taxable band.

The 2026 brackets, side by side

These are taxable-income thresholds, meaning the gain is included in the figure. The rates themselves (0%, 15%, 20%) did not change for 2026; only the income lines moved up for inflation.

A few footnotes the brackets above do not show. A separate 3.8% Net Investment Income Tax can apply once modified adjusted gross income passes $200,000 for a single filer or $250,000 for a married couple filing jointly, which is far above the 0% zone but worth knowing if a large gain pushes you up there. And a handful of assets break the normal pattern entirely. The IRS notes that gains on collectibles and the taxable part of certain small business stock can be taxed at a maximum 28% rate, and depreciated real estate can carry a 25% rate on part of the gain (IRS Topic No. 409). Those are the exceptions, not the rule for an ordinary fund or stock position.

A hypothetical couple in the sweet spot

Let us make this concrete with a made-up example. The numbers below are hypothetical, not a forecast and not advice, just arithmetic to show the shape of the thing.

Say Dale and Marie are both 66, recently retired, and living on a modest pension plus some interest, about $50,000 of ordinary income before deductions. They file jointly. Their 2026 standard deduction is $32,200 plus the $1,650 age-65 addition for each of them, which is $3,300, for a total of $35,500. Subtract that from their $50,000 and their ordinary taxable income is $14,500.

The 0% long-term gains ceiling for a joint filer in 2026 is $98,900 of taxable income. Dale and Marie have only used $14,500 of that with ordinary income, which leaves $84,400 of headroom. That means they could sell long-term investments and realize up to $84,400 of gains this year, and the federal tax on those gains would be zero. Not reduced. Zero.

They do not have to touch a penny of it if they do not want to. But if they have an old fund with a big embedded gain, this is the year to reset part of it. They might realize, say, $84,000 of gain, pay nothing federally, and immediately rebuy the same fund. Their basis resets upward, and a future sale in a higher-income year, maybe once required minimum distributions and full Social Security kick in, will owe tax on far less. They have used a cheap year to defuse an expensive one.

Why retirees sit in the perfect window

This strategy is not just for retirees, but retirees are often the people with the most room to use it. There is frequently a stretch of low-income years that planners informally call the gap years. These run from the day the paycheck stops to the day larger mandatory income sources switch on. During that window a household might be living partly on cash or on a taxable brokerage account, delaying Social Security, and not yet taking required minimum distributions. Taxable income can be genuinely low for a few years in a row.

That low-income stretch is prime territory. The same room that lets someone do a Roth conversion at a low tax rate also lets them realize capital gains at 0%. In fact the two strategies compete for the same space in the bracket, so it is worth deciding which one earns its keep in a given year. A conversion moves money into a tax-free Roth account for later; a 0% gain harvest resets basis in a taxable account now. Neither is automatically better. The right call depends on the rest of your picture, which is a good thing to map out alongside your broader plan for which accounts to tap first.

Once required minimum distributions begin and Social Security is flowing at full size, ordinary income tends to fill the bracket all on its own, and the 0% room shrinks or disappears. The gap years are a limited-time offer. People who notice them and use them deliberately can quietly save real money. People who do not simply carry their embedded gains forward into years when selling costs 15% or more.

Resetting the basis, and the rule that does not get in the way

Tax-loss harvesting has a famous obstacle called the wash-sale rule. It disallows a loss if you buy back the same or a nearly identical security within 30 days. Here is the friendly surprise: that rule applies to losses, not to gains. When you are harvesting a gain, there is no waiting period. You can sell the appreciated shares and buy them back the same day, and the reset basis stands. You stay invested the whole time, which matters if you did not want to be out of the market.

What the reset does and does not do is worth being honest about. It erases the old built-in gain at a 0% federal cost and sets a fresh, higher basis. It does not make future growth tax-free; anything the position gains after the rebuy is still a taxable gain down the road. And it only helps for the shares you actually sell and repurchase. The table below compares, in round hypothetical numbers, what Dale and Marie's $84,400 of gain could cost if realized in their low-income year versus a later high-income year.

The gap in that table is the entire point. The same sale, the same dollars of gain, taxed at 0% in one year and at 15% in another. Timing is the whole strategy. There is no secret product and nothing to buy; there is only the calendar and your own taxable income.

One more way to see why the reset matters: whatever you own after the rebuy keeps growing, and that future growth is the only part that will be taxed when you eventually sell. The calculator below is a plain illustration of how a position might grow over a stretch of years. Picture it as the fund Dale and Marie rebought right after their harvest. Everything the position earns above their fresh basis becomes a future gain, which is exactly why clearing out the old built-in gain at 0% is worth the effort while the room exists. Slide the numbers to match a position you actually own and watch how fast the future gain, the part you cannot erase for free, stacks up.

The step-by-step, in plain order

If you want to see whether there is any 0% room in a given year, the process follows a simple sequence. Work it with your tax preparer or tax software before you click sell, because the gain you realize becomes part of the very income that decides your bracket.

One practical note on timing: this is usually a late-in-the-year exercise, around November or December, once you have a clear read on your income for the year. Realize a gain in January and you are guessing at your full-year income; wait until the fall and you can measure the room precisely before you fill it. Waiting too long into late December, though, risks missing the settlement window, so give yourself a cushion.

The traps that can quietly erase the savings

Here is where good intentions go sideways. Realizing a gain raises your income for the year, and several other parts of the system watch your income closely. A move that saves you federal capital gains tax can trigger a bigger cost somewhere else if you are not careful.

None of these should scare you off. They are simply reminders that income is connected. The cleanest harvests are modest ones that fill the 0% room and stop, keeping your total income low enough that these other tripwires stay quiet.

Who this is not really for

Tax-gain harvesting only helps if you have appreciated investments sitting in a regular taxable brokerage account. Gains inside a traditional 401(k) or IRA do not work this way at all; money coming out of those accounts is taxed as ordinary income regardless of how it grew, so there is nothing to harvest at 0%. Roth accounts already grow tax-free, so there is no gain to reset. The strategy is specifically a taxable-account tool.

It also does nothing for you if your income already fills the bracket. A household with a large pension, full Social Security, and required distributions may have no 0% room in any year, in which case the honest answer is that this lever is not available and energy is better spent elsewhere. And if realizing a gain would push you past a subsidy cliff or a Medicare surcharge line by more than the tax you would save, the harvest can cost more than it returns. The point is not to harvest every year on principle. It is to notice the low-income years when the room exists and use them on purpose.

The bottom line

For a working lifetime, the lesson is to avoid selling winners because of the tax. Retirement can flip that lesson on its head for a few valuable years. When your taxable income dips below the 0% ceiling, selling appreciated long-term investments, paying nothing in federal tax, and resetting your basis is a legitimate and underused move. It is written plainly into the rate tables; there is no gray area to it.

The catch is that it rewards attention. The room has to be measured each year, the gain has to be long-term, and the ripple effects on Social Security, Medicare, marketplace subsidies, and state tax have to be checked before you sell. Run the numbers with a tax professional, keep the harvest sized to the room, and treat the gap years as the limited window they are. Done carefully, it is one of the few times the tax code quietly hands retirees a zero and means it.

Your earning years are the engine

Retirement math is career math in disguise.

Contribution rates matter, but the salary they multiply against matters more. Whether you are mid-career or planning a second act, RealWorldCareers shows which work fits your brain so your strongest earning years are actually your strongest.

Find the career your brain was built for
RealWorldCareers is built by our parent company, Advanced Learning Academy. Same family, same standards.

Questions people ask

Is the 0% capital gains rate real or a loophole?

It is a real, published federal tax rate, not a loophole. The IRS taxes long-term capital gains at 0%, 15%, or 20% depending on your taxable income and filing status. For 2026 the 0% rate applies up to $98,900 of taxable income for joint filers and $49,450 for single filers, per IRS Revenue Procedure 2025-32.

Do I have to sell everything to use this?

No. You choose how much gain to realize. Most people fill only the room between their ordinary taxable income and the 0% ceiling, then stop. Gains that spill above the ceiling are taxed at 15%, so there is usually no reason to realize more than fits in the 0% band.

Can I buy the investment back right away?

For a gain, yes. The wash-sale rule, which can disallow a loss when you repurchase within 30 days, applies only to losses. When you harvest a gain there is no waiting period, so you can sell and rebuy the same day and keep your reset basis.

Does this work inside my 401(k) or IRA?

No. Tax-gain harvesting only applies to a regular taxable brokerage account. Withdrawals from a traditional 401(k) or IRA are taxed as ordinary income regardless of how the money grew, and Roth accounts already grow tax-free, so there is no long-term gain to harvest at 0% in either.

Will realizing a gain raise my Medicare premiums or Social Security tax?

It can. A larger gain raises your income for the year, which can increase the taxable portion of your Social Security benefit and, two years later, your Medicare Part B and Part D premiums through the IRMAA surcharge. Check these effects before harvesting a large amount, because they can exceed the federal tax you save.

Is the 0% rate also free at the state level?

Not necessarily. The 0% rate is a federal rate. Many states tax capital gains as ordinary income and have no matching 0% band, so a sale that costs nothing federally may still owe state tax. A few states have no income tax, which removes that concern.

Just so you know: DollarFlourish is an educational publisher, not a financial, tax, or investment advisor. Numbers and rates change. Verify anything important with a licensed professional before acting on it. Some links on this site may earn us a commission at no cost to you. See how we review.
Send this guide
DollarFlourish Editorial
Data & Research Desk

The DollarFlourish Money Research Team builds the site's calculators and data rankings and writes its research-driven guides. Every figure we publish is traced to a primary source, the Bureau of Labor Statistics, Census Bureau, IRS, Social Security Administration, and Federal Reserve, and dated so you can check it yourself.

Reviewed for accuracy by Timothy E. Parker · Updated 2026-11-25 · Editorial & corrections policy

The Flourish Letter

One smart money idea each week, charts included. Join free and get the printable 2026 Money Calendar in your welcome email.