Every December, Wall Street talks about selling losing investments to capture a tax break. That can be useful. But for many retirees, the more valuable move is on the profit side.
You can sell stock for a gain and owe the IRS nothing on that profit. Not a lower rate. Zero.
I’m a CPA, I spent 10 years as a Wall Street investment advisor, and I’ve been investing in stocks for 45 years. This is one of the most overlooked tax breaks I know, largely because people misunderstand who can use it.
You have until the end of the year to use it for the current tax year. Here are six rules that matter.
1. The key number is taxable income, not total income
Long-term gains are taxed at one of three federal rates: 0%, 15% or 20%. Which one applies depends on your taxable income.
The 0% rate applies up to certain taxable income limits, including $98,900 for married couples filing jointly and $49,450 for single filers, according to the IRS. Heads of household can qualify up to $66,200.
The important word is taxable. That is what remains after deductions, not your gross income. Many people miss that detail and assume the break is out of reach when it may not be.
2. A retired couple can still have plenty of room
Consider a married couple, both age 65 or older, who have not yet started Social Security and live on $60,000 a year from a pension and IRA withdrawals.
Their deductions come first. The standard deduction for a joint return is $32,200, plus $1,650 for each spouse who is 65 or older. That totals $35,500.
Then there is the senior deduction: $6,000 per person age 65 or older, or $12,000 for a couple, available for several years and allowed whether or not you itemize.
All together, their deductions add up to $47,500. Subtract that from $60,000, and their taxable income is only $12,500.
That leaves $86,400 of space under the 0% threshold. They could realize that much in long-term stock gains and pay no federal tax on those gains. They would still owe ordinary income tax on the $12,500, but the gains themselves would be tax-free.
In other words, they could have $146,400 of income and still owe nothing on the gains. That is more profit than their pension and IRA money alone, and the gain portion would escape federal tax.
3. Going over the limit is not a catastrophe
Capital gains are added on top of your other income. Wages, pension income and IRA withdrawals fill up your taxable income first, and gains stack above them.
That means the more ordinary income you have, the less room is left for gains to fit under the 0% line. That squeeze is part of why some retirees miss the opportunity.
Still, crossing the line does not make all of the gain taxable. Only the amount above the threshold is taxed at 15%.
For example, if you are single, under 65, and earn a $40,000 salary, your taxable income after the standard deduction would be $23,900. That would leave $25,550 of room. If you sold $30,550 of long-term gains, only $5,000 would spill over the line. The tax on the gain would be $750, not $4,583.
So do not avoid selling just because you fear going over the limit. A small overshoot usually means a small tax bill, not a disaster.
Quick reality check: if your financial guidance is coming from random online influencers, you may be taking a dangerous gamble. I have been a CPA since 1981 and writing about money since before the internet existed. Sign up for the free Money Talks Newsletter and get advice that has stood the test of time.
4. You can sell and buy the same investment again
You do not have to give up a stock or fund you like in order to use this strategy. You can sell it, realize the gain at 0%, and buy it back.
The one catch is that the holding period resets. The new shares must be held for more than a year before they qualify as long-term again.
Many investors know about the wash-sale rule and assume it blocks this move. It does not.
The IRS says a wash sale happens when you sell at a loss and then buy the same or substantially identical investment within 30 days before or after the sale. In that case, the loss is disallowed. A sale at a gain is not affected by that rule.
The result is a higher cost basis. In general, your basis is what you paid, according to the IRS, so buying back at today’s price resets it.
If a fund you bought for $20,000 is now worth $50,000, you could realize a $30,000 gain at 0%, repurchase it, and reset your basis to $50,000. If you later sell when you are in the 15% bracket, you would have $30,000 less gain to tax. That is $4,500 you would never owe to the federal government.
5. Only long-term gains in a taxable account qualify
Two conditions must be met. First, you must have held the investment for more than one year. If you held it for a year or less, the gain is short-term and taxed like ordinary wages, according to the IRS. Check the purchase date for each lot before selling.
Second, the strategy only works in a regular taxable brokerage account. Inside a traditional IRA or 401(k), gains are not taxed until money is withdrawn, and those withdrawals are generally taxed as ordinary income. There is no 0% capital-gains rate to use there.
6. Consider the effect on the rest of your return
A gain taxed at 0% still increases your adjusted gross income. The government uses AGI for far more than capital gains taxes. Three items deserve attention:
- The senior deduction. It begins to phase out above $150,000 of modified adjusted gross income for married couples and $75,000 for single filers. In the example above, the couple stays just below that level, so they keep the full $12,000. Lose part of that deduction and your taxable income rises, which can push gains above the 0% line.
- Social Security. If you receive benefits, part of them becomes taxable once your combined income exceeds $32,000 on a joint return, and as much as 85% can be taxed at higher income levels, according to the Social Security Administration. Because AGI is part of that formula, a capital gain can make more of your benefits taxable.
- Medicare. Higher-income beneficiaries pay Part B and Part D surcharges based on the tax return from two years earlier, the SSA says. For the current tax year, those charges begin above $218,000 for couples and $109,000 for singles, according to the Centers for Medicare & Medicaid Services. A gain this year could affect premiums two years later, even though the exact threshold for that future year is not yet set.
Also remember that 0% is only the federal rate. Your state may still tax the gain, so review state rules before selling.
Run the numbers before year-end
My guess is that most people never do this math. They assume their income is too high or they worry about the wash-sale rule. In many cases, both assumptions are wrong.
You can check it yourself. Pull out your latest return, estimate your current-year income and apply the deductions above to see how much room you have under the threshold.
Make sure each holding passes the one-year test in rule 5. If you use tax software, enter estimates and run a scenario before making a trade.
If you are 60 or older, the IRS Tax Counseling for the Elderly program can prepare your return for free once filing season opens, and a volunteer can help confirm that the gain is reported correctly.
Where I would not do it alone is in a year when you are juggling Social Security, a Roth conversion, required withdrawals and a large gain all at once. That is when mistakes become expensive, and paying a professional can be worth it. If that sounds like your situation, seek out a financial advisor.
This tax break is especially useful in the years after retirement but before required withdrawals begin, when income is often at its lowest. And the opportunity does not disappear after this year; the following year’s numbers are already in place.
But the room available under this year’s limit goes away when the year ends. Use it, or lose it.
More from Digilifetrends
She Wants to Invest $400,000 in an Annuity to Avoid Market Swings. Using Pretax IRA Money Instead of After-Tax Savings Would Make Another $12,240 of Her Social Security Taxable
An advisor guides an older couple through critical financial and estate planning decisions, such as asset protection for long-term care.
4 min read · Published 2026-11-29Savvy Senior: Should you convert a traditional IRA to a Roth IRA?
Dear Savvy Senior,
3 min read · Published 2026-11-29