Retired Couple With $1.4 Million Pays $0 Tax on a $52,000 Stock Gain. The Window Closes Dec. 31
This post may contain links from our sponsors and affiliates, and Flywheel Publishing may receive compensation for actions taken through them.
Picture a couple in their late 60s. He retired at 66, she at 64. Together they collect roughly $54,000 a year in Social Security, pull $18,000 from a traditional IRA, and hold a $1.4 million portfolio spread across a taxable brokerage account, IRAs, and a small Roth. Buried in that brokerage account sits about $52,000 in unrealized long-term gains on an S&P 500 index fund they bought a decade ago. Their CPA mentioned they might owe nothing on those gains if they sell before year-end. They are not sure they believe it.
They should. This is one of the cleanest tax opportunities in the entire code, rooted in Section 1(h) of the Internal Revenue Code, and it disappears at midnight on December 31.
Why This Scenario Is More Common Than You Think
Millions of retirees between ages 62 and 73 sit in exactly this window: retired, not yet taking required minimum distributions, drawing Social Security plus modest IRA withdrawals, with embedded gains in taxable accounts built up during the long bull market. Bogleheads forum threads on “0% capital gains harvesting” fill with thousands of posts each autumn for exactly this reason. The strategy is legal, repeatable every calendar year, and available until RMDs or higher spending push income above the threshold.
Numbers That Make This Work
Two figures do the heavy lifting. For 2026, the standard deduction for a married couple filing jointly is $32,200. The 0% long-term capital gains bracket for joint filers runs up to $98,900 in taxable income. Together, those two figures allow a couple to shelter roughly $131,100 of gross income, with up to $98,900 of that coming from long-term gains, and owe zero federal tax on those gains.
There is one more lever that many couples in this scenario overlook. Because both spouses in this example are 65 or older, each qualifies for an additional standard deduction of $1,650 per person. That pushes the couple’s total deduction to $35,500 and widens the available headroom under the 0% ceiling further still. Couples where only one spouse has reached 65 would add $1,650 to the base deduction rather than $3,300.
Run the base scenario through the math. Roughly $46,000 of this couple’s Social Security is taxable once other income is layered in. Add the $18,000 IRA withdrawal and you land near $64,000 of ordinary income before the standard deduction. After subtracting the $32,200 standard deduction, taxable ordinary income falls to about $31,800. That leaves more than $67,000 of headroom under the $98,900 ceiling, comfortably enough to absorb the entire $52,000 gain at a 0% federal rate. If the age-65 add-on applies, the room is wider still.
The stacking mechanic is what makes this work. Long-term gains sit on top of ordinary income when the IRS determines which bracket applies. Any portion of the gain that falls below the $98,900 ceiling is taxed at 0%. Any dollar above it is taxed at 15%. Miss the ceiling by $5,000 and only that $5,000 faces tax, not the full gain.
Why the December 31 Deadline Matters
Capital gains brackets reset every January 1. Unused room does not carry forward. A couple who realizes no gains in 2026 cannot double up next year at the 0% rate; this year’s allotment is simply gone. Financial planners treat this as a hard use-it-or-lose-it event each fall.
Two forces are tightening the window heading into 2027. First, the Social Security Administration confirmed on October 14, 2026, that the 2027 cost-of-living adjustment will be 3.6%, adding about $75 per month to the average retirement check. That is the largest benefit increase in four years, and it means higher taxable ordinary income next year, which shrinks the room available under the 0% gains ceiling. Second, once RMDs kick in at age 73, forced IRA withdrawals often push retirees out of the 0% bracket for good. The years between retirement and RMDs are the prime harvest years, and they double as the most cost-effective window for Roth conversions (we sized up that same gap in a free guide here). There are not many of them.
Two Paths, One Clear Winner
Path one is to harvest the gain, then immediately repurchase the same fund. The wash-sale rule applies only to losses, not gains, so there is no waiting period. The couple resets their cost basis $52,000 higher without owing a dollar of federal tax. If they later need to sell in a higher-income year, the taxable gain will be meaningfully smaller.
Path two is to do nothing and let the gains compound untouched. This makes sense only if the couple plans to hold the shares until death, at which point heirs receive a stepped-up basis and the embedded gain disappears entirely. For most retirees who will eventually draw down the taxable account, holding is the inferior choice. Deferring a 0% tax bill today to lock in a 15% or 18.8% bill later is a losing trade.
What to Do Before Year-End
- Pull a tax projection now, not in December. You need a solid estimate of ordinary income, taxable Social Security, and any dividends before you can know how much gain fits under the ceiling. Mutual funds often distribute capital gains to shareholders in December, and an unexpected distribution can push total income above the 0% threshold without any action on your part. Waiting until Christmas week leaves no room to adjust.
- Watch state taxes separately. The 0% federal rate does not extend to most states. California, for instance, taxes long-term gains as ordinary income. In a high-tax state, the harvest is not entirely free, and the math changes accordingly.
- Coordinate with Roth conversions. Every dollar converted from a traditional IRA to a Roth counts as ordinary income and eats into your capital gains headroom. Maximizing both strategies in the same year is generally not possible without pushing one past its limit.
- Know where you stand on IRMAA. Realized capital gains, even those taxed at 0%, count in full toward the modified adjusted gross income used to determine Medicare Part B and Part D premiums. For 2026, the first IRMAA surcharge threshold for joint filers sits at $218,000 of MAGI, well above the scenario in this article. But couples with higher base income, a pension, or a large Roth conversion in the same year should confirm they will not cross that line before executing a harvest.
The common mistake is assuming a bigger gain means a bigger tax bill and avoiding the sale entirely. Inside the 0% bracket, the tax bill is zero whether you realize $5,000 or $50,000, as long as total taxable income stays under the ceiling. Leaving that room unused is the expensive choice.
Editor’s note: This pass added the senior extra standard deduction ($1,650 per qualifying spouse for filers 65 or older) as a factor that can widen this couple’s harvest window, noted the 2027 COLA as the largest benefit increase in four years, cited IRC Section 1(h) as the statutory basis for the 0% rate, flagged December mutual-fund capital gain distributions as a timing risk, and added a fourth year-end action item covering IRMAA and the $218,000 MFJ threshold.
Contact [email protected] for any questions or corrections.






