When Does Capital-Gain Harvesting Help a Retiree?

Ross Marino |

Your paycheck has stopped, but Social Security or required minimum distributions have not fully begun. The taxable account holds investments that have grown, and this year’s income appears lower than the years on either side. You may have an unusual opportunity: sell an appreciated investment now, recognize the gain deliberately, and immediately reinvest so the money remains invested with a higher cost basis.

That move is often called capital-gain harvesting. A low tax rate can make it attractive, but the federal capital-gain bracket is only the first test. The gain becomes part of a tax return that may also affect Social Security taxation, Medicare premiums, state tax, charitable plans, and the value of preserving an unrealized gain for a possible future basis adjustment.

What does harvesting a gain actually change?

In a taxable account, gain generally equals sale proceeds minus adjusted basis. Selling converts some unrealized appreciation into a realized gain. If you buy the investment again, the new purchase generally starts with a new basis, so a later sale may expose less appreciation to tax. Unlike tax-loss harvesting, this intentionally accelerates income, not an attempt to capture a deduction.[1]

Long-term gains can fall into 0%, 15%, or 20% federal rate bands, depending on taxable income and filing status. The bands stack on top of other taxable income. A retiree may therefore have only part of a proposed gain taxed at 0%, while the rest crosses into the next rate. Short-term gains are generally taxed as ordinary income, so you must verify the holding period before the sale.[2]

Why is the visible capital-gain rate not the full cost?

A realized gain can increase adjusted gross income even when its federal capital-gain rate is 0%. That higher income may cause more Social Security benefits to become taxable. Depending on filing status and combined income, up to 85% of benefits can be included in taxable income.[3]

For a Medicare beneficiary, the gain may also raise modified adjusted gross income used for income-related Part B and Part D premiums. Social Security generally uses tax information from two years earlier, and the surcharges operate in tiers. Crossing a tier by a small amount can therefore create a later premium cost that is not visible in the capital-gain rate alone.[4] State treatment can add another cost because states do not all tax gains in the same way.

One sale can land in several places

Realized gain enters this year’s income picture

Capital-gain band
Current federal tax

Adjusted gross income
Social Security taxation

Medicare lookback
Later Part B and D premiums

The useful amount ends before the weakest threshold is crossed—not necessarily when the 0% band is full.

Dovetail Principle: Timing Can Change Which Options Remain

A favorable tax year is a temporary opening, not an instruction to fill every available bracket. Realizing part of a gain now may create a higher basis and make a future sale easier. Waiting may preserve charitable or estate-planning value. The timing decision should protect the options the retiree is most likely to need.

When can a higher basis improve future flexibility?

Harvesting may help when a future sale is likely. A retiree may want to reduce a concentrated holding, fund several years of spending, rebalance gradually, or prepare an account for simpler management. Realizing a measured gain in a lower-income year can shift some tax forward while reducing the gain attached to later sales. The value comes from the expected use of the asset, not from the satisfaction of “filling” a bracket.

Available basis matters. Specific-lot identification may allow the retiree to choose shares with the gain that fits the year rather than selling every share proportionally. Check brokerage records before trading because basis errors can change the result.[5]

When might preserving the unrealized gain be more valuable?

If the shares may be donated, selling first can discard an important advantage. A direct gift of eligible long-term appreciated securities to a capable charity may avoid recognition of the embedded gain while potentially supporting a charitable deduction, subject to the applicable rules.[6] Harvesting shares already intended for charity can create tax without improving the charitable result.

Estate plans create a different comparison. Property inherited from a decedent generally receives a basis tied to fair market value at death under current rules, with important exceptions and state-law details.[7] If an appreciated position is likely to be held for life, paying tax now to raise basis may be less useful than preserving the possibility of that later adjustment. The future is uncertain, so this is a probability-and-purpose question—not a promise that current law or ownership will remain unchanged.

How should you choose the amount and year?

Begin with the return before the proposed sale: expected ordinary income, Social Security, dividends, interest, deductions, realized gains and losses, and any other discretionary income. Then model several gain amounts. For each one, show federal capital-gain tax, the portion of Social Security included in taxable income, possible net investment income tax, the later IRMAA tier, and state tax. Compare that total with the expected cost of selling later.

Next, assign the shares a likely future job. Shares expected to fund spending or diversification deserve a different comparison from shares intended for charity or heirs. Confirm the lots and holding periods, then decide whether to realize none, part, or all of the contemplated gain. Capital-gain harvesting helps when the current total cost is acceptable and the higher basis creates flexibility the retiree is likely to use. The selected year should serve that future decision, not merely display an open bracket.

Related Reading: Which Years Matter Most for Retirement Tax Planning? places gain realization inside the changing income seasons of retirement.

About the author

Ross Marino, CFP®, CeFT®, is the Founder & CEO of Dovetail Financial and creator of Human-First Financial Guidance®. He helps people nearing or living in retirement connect their lives and wealth so that financial decisions become clearer, more personal, and easier to navigate.

Search another retirement question

Describe the question or enter a few topic words. You do not need to know the exact article title.

 

Notes

  1. Charles Schwab, Capital Gains Tax Rates: Short-Term vs. Long-Term Rules.
  2. Internal Revenue Service, Topic no. 409, Capital gains and losses.
  3. AARP, Are Social Security Benefits Taxable?.
  4. Centers for Medicare & Medicaid Services, 2026 Medicare Parts A & B Premiums and Deductibles.
  5. Fidelity Investments, Capital gains and cost basis.
  6. Fidelity Charitable, Donating Stock to Charity.
  7. J.P. Morgan Wealth Management, What is the step-up in basis?.

Disclosure

This content is provided by Dovetail Financial Group LLC (“Dovetail Financial”) for informational and educational purposes only. It is not intended as, and should not be construed as, individualized investment, tax, legal, or accounting advice; a recommendation to buy or sell any security; or a recommendation to adopt any investment strategy. Because each person’s situation is unique, readers should consult their own financial, tax, and legal professionals before taking action based on this content. Information contained herein is believed to be reliable, but its accuracy or completeness is not guaranteed. Any opinions expressed are current as of the date of publication and are subject to change without notice. All investing involves risk, including the possible loss of principal. Asset allocation and diversification do not guarantee profits or protect against losses in declining markets. Past performance is not a guarantee of future results. Dovetail Financial Group LLC is a registered investment adviser. Registration does not imply a certain level of skill or training. Additional information about Dovetail Financial Group LLC, including Form ADV Part 2A and Form CRS, is available at adviserinfo.sec.gov. © 2026 Dovetail Financial Group LLC. All rights reserved.