Selling Investments in Retirement? How Retirees Are Using Capital Gains Timing to Keep Tens of Thousands Out of the IRS's Reach
Photo: Retired_Picnic_at_Otford_Lookout_(6748299401).jpg: Alex Proimos from Sydney, Australia derivative work: Danapit, CC BY 2.0, via Wikimedia Commons
Retirement changes everything about your tax situation — and for most Americans, that change is more favorable than they realize. When a paycheck disappears and earned income drops to zero, so does a significant portion of the income that was pushing capital gains into higher tax brackets. The result is a planning opportunity that many retirees miss entirely: a window during which long-term investment gains may be taxed at dramatically lower rates, or in some cases, not at all.
Capital gains taxes are among the most misunderstood elements of the federal tax code. Many investors assume they will simply owe a flat rate on any profit from selling an asset. In reality, the rate you pay depends heavily on your total taxable income for the year, your filing status, and how long you held the asset. Getting this right — particularly in the years immediately surrounding retirement — can mean the difference between a tax bill in the tens of thousands and a bill close to zero.
Understanding the Three Capital Gains Brackets
For assets held longer than one year, the IRS applies long-term capital gains rates rather than ordinary income rates. In 2024, those rates fall into three tiers based on taxable income:
- 0 percent for single filers with taxable income up to $47,025 and married couples filing jointly up to $94,050
- 15 percent for single filers between $47,026 and $518,900 and joint filers between $94,051 and $583,750
- 20 percent for income above those upper thresholds
Note that these brackets apply to taxable income — the figure after subtracting the standard deduction or itemized deductions — not to gross income. For a married couple taking the 2024 standard deduction of $29,200, that means their gross income can reach roughly $123,250 before a single dollar of long-term capital gain is taxed at all.
For retirees living primarily on Social Security, modest pension income, and portfolio withdrawals, staying within that zero-percent bracket for at least a portion of each year is an achievable and highly rewarding goal.
The Retirement Income Transition: Why the Window Opens
Consider a couple who earned a combined $180,000 annually during their working years. After retiring at age 63, their income drops to approximately $38,000 in Social Security benefits (of which perhaps $32,300 is taxable at the 85 percent inclusion rate) and $12,000 from a small pension — a total taxable income of roughly $44,300 before deductions.
After applying the standard deduction, their taxable income falls to approximately $15,100. That leaves nearly $79,000 of space in the zero-percent capital gains bracket before they would owe a single dollar in federal capital gains tax.
If this couple had been holding appreciated stock or mutual fund shares for years — positions with substantial unrealized gains — they now have an extraordinary opportunity to realize those gains at no federal tax cost. Selling $79,000 worth of gains in a single year, or spreading the sales across multiple years, could permanently eliminate a tax liability that would have cost them $11,850 or more at the 15 percent rate.
Spreading Sales Across Tax Years: The Multi-Year Harvest Strategy
One of the most effective approaches for retirees with large unrealized gains is to spread asset sales deliberately across multiple tax years, staying within the zero-percent bracket each year rather than selling everything at once and potentially crossing into the 15 percent tier.
Take a retiree who holds $300,000 in appreciated index fund shares with a cost basis of $90,000 — meaning $210,000 in unrealized long-term gains. Selling the entire position in a single year would likely push a significant portion of those gains into the 15 percent bracket, generating a tax bill of $20,000 or more.
By contrast, selling one-third of the position each year over three years — carefully monitoring total taxable income each December — the retiree may be able to realize the full $210,000 in gains while remaining within the zero-percent bracket throughout. The federal tax bill: zero.
This requires careful coordination with other income sources. Required minimum distributions, Social Security benefits, part-time consulting income, and interest from savings accounts all count toward taxable income and affect how much room remains in the zero-percent bracket for capital gains.
Medicare Surcharges and the IRMAA Factor
Retirees must account for one additional complication that is easy to overlook: the Income-Related Monthly Adjustment Amount, commonly known as IRMAA. Medicare Part B and Part D premiums increase significantly for individuals whose modified adjusted gross income exceeds $103,000 (single) or $206,000 (joint) in 2024. These surcharges are based on income from two years prior, meaning a large capital gain realized today can increase Medicare costs in 2026.
For a married couple, crossing the first IRMAA threshold adds approximately $838 per person annually to Medicare premiums — a real cost that must be factored into any capital gains timing analysis. In some cases, it may be more advantageous to spread sales across additional years to avoid triggering these surcharges, even if doing so means accepting a modest capital gains tax rate on a portion of the proceeds.
Roth Conversions and Capital Gains: Coordinating Two Strategies
Many retirees pursue Roth IRA conversions during the same low-income years when capital gains harvesting is most advantageous. Both strategies compete for space in the same income brackets, and pursuing both simultaneously without careful coordination can push total income well past the zero-percent threshold.
The general principle is to prioritize whichever strategy produces the greatest long-term benefit for your specific portfolio. In most cases, Roth conversions offer slightly different advantages — eliminating future required minimum distributions and providing tax-free income later in retirement — and the two strategies must be balanced rather than maximized simultaneously.
A coordinated approach might involve realizing $40,000 in capital gains while converting $30,000 from a traditional IRA to a Roth in the same year, keeping total taxable income below the relevant thresholds for both capital gains rates and IRMAA surcharges.
Practical Steps Before Year-End
For retirees and near-retirees approaching the end of the 2024 tax year, several actions are worth considering before December 31:
- Estimate your 2024 taxable income as precisely as possible, including all Social Security inclusions, pension income, RMDs, and investment distributions.
- Calculate remaining bracket space within the zero-percent capital gains tier.
- Identify your most appreciated long-term holdings and determine which, if sold, would produce gains that fit within the available space.
- Consider harvesting losses in taxable accounts to offset any gains that exceed the zero-percent threshold.
- Project 2025 income to assess whether deferring additional sales to the new year is strategically preferable.
At RyanTax Pro, we work with retirees and near-retirees each fall to conduct exactly this kind of year-end planning analysis. The capital gains tax brackets are not passive features of the tax code — they are levers that, with proper timing and coordination, can be used to permanently reduce the tax burden on a lifetime of investment growth. The retirees who benefit most are those who plan proactively rather than waiting until April to discover what they owe.