Retired Couple With $1.4 Million Pays $0 Tax on a $52,000 Stock Gain. The Window Closes Dec. 31

A retired couple sitting on $52,000 in stock gains assumes they owe the IRS a cut. Their CPA says they owe nothing, and the legal mechanism behind that claim has a hard expiration date most retirees never see coming.

Published September 22, 2026, 9:36pm ET · 4 min read

This post may contain links from our sponsors and affiliates, and Flywheel Publishing may receive compensation for actions taken through them.

A smiling older woman with grey hair and an older man with a grey beard high-five across a white desk. On the desk are a silver laptop, a calculator, and white papers. The couple appears happy and engaged in financial planning in a bright living room setting.
A couple celebrates their financial planning success, reflecting the benefits of maximizing deductions for IRA withdrawals in 2026. © Senior couple sitting at the table with laptop and bills giving high five each other calculating finances or taxes at home. Elderly retired man and woman rejoicing income and profit on pension. (Shutterstock.com) by Studio Romantic

Picture a couple in their late 60s. He retired at 66, she at 64. Between them 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 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, 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 the same 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 and repeatable every calendar year 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 numbers 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.

Run the couple in this scenario through the math. Roughly $46,000 of their 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 realize the entire $52,000 gain at a 0% federal rate.

The stacking mechanic matters here. Long-term gains sit on top of ordinary income when determining 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 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 this year cannot double up next year at the 0% rate; the 2026 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. First, the Social Security Administration officially confirmed on October 14, 2026, that the 2027 COLA will be 3.6%, adding about $75 per month to the average retirement check. Higher benefits mean higher taxable ordinary income next year, which shrinks the room available under the 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 period 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: 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: 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

  1. 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. Waiting until Christmas week leaves no room to adjust.
  2. 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.
  3. 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 in the same year is generally not possible.

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 article has been updated to reflect the correct 2026 0% long-term capital gains ceiling of $98,900 for married joint filers (the article previously cited the 2025 figure of $96,700), the revised gross income shelter calculation of approximately $131,100, and the Social Security Administration’s officially confirmed 2027 COLA of 3.6%, announced October 14, 2026.

Contact [email protected] for any questions or corrections.

Jake FitzGerald

Jake has been been working in financial media for almost 15 years. He focuses on all things personal finance for 24/7 Wall St. with high hopes to educate and entertain. Most recently, Jake spent 12 years working various roles at The Motley Fool. He started copy editing fool.com content, worked on premium and marketing campaigns, and helped launch The Ascent, a personal finance brand.

His work has been featured on platforms like MSN, Yahoo Finance, USA Today, and more. He's written about credit cards, social security, ETFs, savings accounts, and just about anything else you can imagine when thinking about money. Jake love to cook, play golf, and tell people he's never had a cavity. (It's true!)

All articles →