Broker Check
How Capital Gains Can Affect Your Taxes in Retirement

How Capital Gains Can Affect Your Taxes in Retirement

November 02, 2026

How Capital Gains Can Affect Your Taxes in Retirement

Retirement often brings changes in how people generate income. Instead of receiving a regular paycheck, retirees may rely on Social Security, pensions, retirement account withdrawals, and investments to support their lifestyles.

One area that deserves attention is capital gains.

Selling an appreciated investment may seem like a straightforward financial decision. However, the resulting capital gain can affect more than the taxes owed on the investment itself.

Depending on your circumstances, capital gains may also influence Social Security taxation, Medicare premiums, and your overall retirement income strategy.

Understanding these connections can help retirees make more informed decisions.

What Are Capital Gains?

A capital gain generally occurs when an investment is sold for more than its adjusted cost basis.

For example, suppose you purchased an investment for $50,000 and later sold it for $80,000.

Assuming no adjustments to the original cost basis, the transaction would generate a $30,000 capital gain.

The amount of tax owed depends on several factors, including how long the investment was held, your taxable income, and your filing status.

Investments held for more than one year generally qualify for long-term capital gains treatment. Investments held for one year or less generally produce short-term gains, which are typically taxed at ordinary income tax rates.

Understanding Long-Term Capital Gains Tax Rates

One potential advantage of long-term capital gains is that they generally receive preferential federal income tax treatment.

For many taxpayers, long-term capital gains are taxed at rates of 0%, 15%, or 20%, depending on taxable income.

However, the applicable rate isn't determined by capital gains alone.

Other taxable income, including pensions, traditional IRA distributions, and the taxable portion of Social Security benefits, can affect how much of a capital gain falls within each tax bracket.

Certain gains may also be subject to additional taxes or special rates.

This is why evaluating an investment sale without considering the rest of your income can lead to unexpected results.

Capital Gains and Social Security Taxes

Many retirees are surprised to learn that their Social Security benefits may be subject to federal income taxes.

The amount of Social Security included in taxable income depends on a calculation involving other income and a portion of Social Security benefits.

Capital gains can increase the income used in this calculation.

As a result, selling an appreciated investment could cause a larger portion of Social Security benefits to become taxable.

This doesn't mean retirees should avoid selling investments.

It means the potential tax consequences should be considered alongside the reasons for making the sale.

Capital Gains Can Affect Medicare Premiums

Another important consideration is Medicare.

Higher-income Medicare beneficiaries may pay additional premiums for Medicare Part B and Part D through the Income-Related Monthly Adjustment Amount, commonly called IRMAA.

IRMAA is generally based on modified adjusted gross income reported on a tax return from two years earlier.

Because realized capital gains generally increase adjusted gross income, selling appreciated investments may contribute to higher Medicare premiums in a future year.

For example, a retiree who realizes a substantial capital gain in 2026 could potentially see an impact on Medicare premiums in 2028, depending on their income and the applicable rules.

A single investment sale may therefore have consequences beyond the year in which the transaction occurs.

The Potential Value of Tax-Loss Harvesting

Not every investment sale generates a gain.

Sometimes investments decline in value, creating an opportunity to realize a capital loss.

Tax-loss harvesting involves selling an investment at a loss, potentially allowing that loss to offset realized capital gains.

For example, suppose a retiree realizes $25,000 in capital gains during the year.

If the retiree also realizes $10,000 in eligible capital losses, those losses may help reduce the net capital gain subject to taxation.

However, tax-loss harvesting requires careful consideration.

Rules such as the wash-sale rule can affect whether a loss is deductible, and investment decisions should not be made solely for tax reasons.

Maintaining an appropriate investment strategy remains important.

Why the Timing of Investment Sales Matters

Retirement income can change significantly from year to year.

Some retirees experience lower-income years after leaving the workforce but before beginning Social Security benefits or Required Minimum Distributions.

Others may experience unusually high-income years because of Roth conversions, property sales, or large retirement account withdrawals.

These changes may create opportunities to evaluate when appreciated investments should be sold.

For example, spreading investment sales across multiple tax years may produce a different tax outcome than realizing all gains in one year.

In some circumstances, retirees with relatively low taxable income may qualify for the 0% federal long-term capital gains rate on a portion of their gains.

However, qualifying for a 0% capital gains rate does not necessarily mean the transaction has no other tax consequences.

The overall financial picture still matters.

Capital Gains and the Net Investment Income Tax

Higher-income retirees may also need to consider the Net Investment Income Tax, commonly referred to as NIIT.

This additional 3.8% federal tax may apply to certain investment income when modified adjusted gross income exceeds applicable thresholds.

Capital gains are among the types of investment income that may be subject to NIIT.

For this reason, an investment sale may need to be evaluated for both regular capital gains taxation and any potential additional tax exposure.

Florida Retirees Have a Unique Consideration

Florida does not impose an individual state income tax.

For retirees living in Florida, this means capital gains generally are not subject to a separate Florida individual income tax.

However, federal capital gains taxes still apply.

Additionally, federal tax rules involving Social Security, Medicare premiums, and investment income remain relevant.

Florida's tax environment can be favorable, but it does not eliminate the need for thoughtful retirement tax planning.

Questions to Consider Before Selling Appreciated Investments

Before selling investments in retirement, it may be helpful to consider several questions:

  • How much of the sale represents a taxable capital gain?

  • Is the gain short-term or long-term?

  • What other income will I report this year?

  • Could the sale affect the taxation of my Social Security benefits?

  • Might the additional income affect future Medicare premiums?

  • Are there investment losses available to offset some of the gains?

  • Would spreading sales across multiple years make sense?

  • How does the sale fit into my overall retirement income and investment strategy?

The answers will vary depending on each retiree's circumstances.

The Bigger Retirement Tax Picture

Capital gains planning should not take place in isolation.

Investment sales can interact with traditional IRA withdrawals, Roth conversions, Social Security benefits, Required Minimum Distributions, and Medicare premiums.

Sometimes realizing a capital gain is the appropriate decision, even when it creates additional taxes.

The objective isn't necessarily to avoid taxes altogether.

Instead, it's to understand the potential consequences of financial decisions and coordinate them with the broader retirement plan.

Final Thoughts

Retirement tax planning involves more than deciding when to withdraw money from retirement accounts.

For retirees with taxable investments, understanding when and how capital gains are realized can also be an important part of managing retirement income.

A well-coordinated approach considers investment needs, taxes, Social Security, Medicare, and long-term financial goals together.

Because these decisions can affect several areas of a retirement plan, reviewing potential investment sales with your financial and tax professionals may help identify considerations that otherwise could be overlooked.

This article is intended for educational purposes only and should not be considered individualized investment, tax, or legal advice. Tax laws and individual circumstances vary. Consult qualified professionals regarding your specific situation.