A couple sat across from me a few years back, coffee in hand, genuinely proud of themselves. They had just retired early at 60, their investment portfolio had grown beautifully over decades, and they were ready to start living on it. Then I showed them something that made one of them set down her mug and say, "Wait... we can sell stock, pay nothing in taxes, and just buy it right back?"
Yes. That is exactly what tax-gain harvesting is. And for the right people in the right year, it might be one of the most powerful moves in the retirement playbook.
So What Exactly Is Tax-Gain Harvesting?
Most people have heard of tax-loss harvesting, the strategy of selling investments at a loss to offset gains and reduce your tax bill. Tax-gain harvesting flips that idea on its head. Instead of harvesting losses, you deliberately sell appreciated investments to realize the gain, but you do it in a year when your income is low enough that the federal capital gains tax rate on that gain is exactly 0%.
Then, here is the part that makes people put down their coffee: you immediately buy the same investment back. You have now "reset" your cost basis at the higher price. Future gains will be smaller. Future taxes will be lower. And you paid nothing to do it.
This is not a loophole or a gray area. It is a straightforward, IRS-sanctioned outcome of how the tax code is written. And thanks to the One Big Beautiful Bill Act (OBBBA), signed in 2025, which extended and made permanent the Tax Cuts and Jobs Act (TCJA) rates, this is not a strategy that is going to disappear on you. The favorable capital gains brackets are now permanent law with no sunset provisions on the horizon.
What Are the Actual Income Limits for the 0% Rate in 2026?
Let me give you the real numbers.
For 2026, a married couple filing jointly can realize long-term capital gains at a 0% federal tax rate as long as their taxable income stays at or below $98,900 (Source: Fidelity, June 2026). For single filers, that ceiling is $49,450 of taxable income (Source: Indie Tax Stack, June 2026).
Now here is where it gets even more interesting. Taxable income is calculated after your deductions. The 2026 standard deduction is $32,200 for married couples filing jointly and $16,100 for single filers (Source: Intuit, June 2026). When you stack the standard deduction on top of the 0% threshold, the math gets generous fast.
A married couple filing jointly can have up to $131,100 in gross income and still owe zero federal capital gains tax on their long-term gains. That is the $98,900 taxable income ceiling, plus the $32,200 standard deduction working in their favor (Source: GTA Accounting Group, May 2026).
For single filers, doing the same math, the gross income ceiling comes in right around $65,550.
Those are not small numbers. For an early retiree living on a modest combination of portfolio withdrawals, part-time income, and maybe some rental income, this window is absolutely reachable.
"But Wait, Won't the Wash-Sale Rule Stop Me From Buying Back Right Away?"
This is the most common question I get when I walk clients through this strategy, and it is a completely understandable one. The wash-sale rule says that if you sell an investment at a loss and buy it back within 30 days, the IRS disallows that loss for tax purposes. It is designed to prevent people from manufacturing fake losses on paper.
But here is the critical distinction: the wash-sale rule only applies to losses. It does not apply to gains.
When you are tax-gain harvesting, you are selling at a gain. There is no 30-day waiting period. No restriction on what you buy next. You could sell your index fund in the morning and repurchase the exact same fund in the afternoon, and the IRS has no objection (Source: Randa CPAs, December 2025). Your cost basis resets to the higher purchase price, and you move forward.
I always make sure clients understand this distinction clearly, because confusing the two can lead to either missed opportunities or unnecessary waiting periods that serve no purpose.
Who Is This Strategy Actually Built For?
I want to be honest with you here. Tax-gain harvesting is not something most working professionals in their 40s or early 50s can typically use, simply because their earned income is too high. If you are bringing home $200,000 a year in salary, you are already above the 0% threshold before a single dollar of investment gain enters the picture.
This strategy shines brightest during what I call the "gap years." Those are the years between when someone stops working and when Social Security or Required Minimum Distributions kick in. In those years, income can drop dramatically, and that is when the 0% bracket becomes accessible.
I had a client a few years back who retired at 62 with a well-funded taxable brokerage account and a substantial amount of unrealized gains built up over 25 years. His Social Security had not started yet, and his spouse was still working part-time. Together their gross income was sitting around $95,000. When I showed him that we could systematically harvest a portion of those long-term gains every year at 0%, he could not believe he had never heard of this before. Over the next several years, we reset a meaningful portion of his cost basis at zero tax cost. When he eventually does sell those positions in retirement, the taxable gain will be a fraction of what it would have been.
How Does a Roth 401(k) Fit Into This Picture?
If you are already engineering a low-income year to take advantage of the 0% capital gains rate, that same low-income environment creates another opportunity: converting pre-tax dollars to Roth or maximizing Roth contributions.
Here is something that surprises a lot of people. A Roth 401(k) has no income limits for contributions, unlike a Roth IRA, which phases out for higher earners. So even if your income is normally too high for a Roth IRA, a Roth 401(k) is always available to you. And under SECURE 2.0, Roth 401(k) accounts no longer require you to take Required Minimum Distributions during your lifetime. That is a significant change that makes Roth 401(k)s far more powerful for long-term, tax-free compounding.
If you are in a low-income year and harvesting gains at 0%, you may also have room in your tax bracket to do a Roth conversion or boost Roth 401(k) contributions before year-end. The two strategies can work together. You are essentially using one low-income year to do double duty: step up your taxable account cost basis and shift more money into a vehicle that will never be taxed again.
What Are the Guardrails I Need to Know?
A few important reminders as you think through this:
It has to be long-term. The 0% rate only applies to long-term capital gains, meaning you must have held the asset for more than one year before selling. Short-term gains are taxed as ordinary income, which would potentially push you out of the 0% bracket entirely.
Other income counts. Social Security income, rental income, part-time work, pension payments, and Roth conversion amounts all factor into the equation. This is not a strategy you sketch out on a napkin. You need to model the full year carefully.
State taxes are a separate conversation. The 0% rate is a federal rate. Some states tax capital gains as ordinary income regardless of the federal treatment. If you live in a state with a capital gains tax, that needs to be part of your analysis.
Timing matters. I have seen people come to me in December and say they want to do this. Sometimes we can still make it work, but year-end is stressful. The best tax-gain harvesting plans are built in January or February, when you have the full year ahead of you to manage income carefully.
I had another client, a single woman who had taken early retirement at 59 after a long career in healthcare. She had a large brokerage account full of appreciated positions she was almost afraid to touch because she assumed any sale would trigger a big tax bill. When we ran the numbers together and she saw that she could harvest up to $65,550 in gross income at the 0% rate as a single filer, she literally laughed out loud. "I have been sitting on this for years," she said, "because I was scared of the taxes."
Fear of a tax bill that does not actually exist is one of the most expensive mistakes I see. The tax code, when understood and used properly, can be remarkably generous.
If you think you might be in or approaching one of those low-income gap years, I would love to walk through the numbers with you. Every situation is different, but the right strategy built at the right time can make a real difference in how much of your own money you actually get to keep.
Feel free to reach out at BryonT@WRAnderson.com or 281-974-1965 to have a conversation. There is no obligation, and sometimes the best thing we can do together is just look at the math.
Cetera Advisors LLC exclusively provides investment products and services through its representatives. Although Cetera does not provide tax or legal advice, or supervise tax, accounting or legal services, Cetera representatives may offer these services through their independent outside business. This information is not intended as tax or legal advice. Please consult a qualified tax professional for guidance specific to your situation.