What Are the Tax Consequences of Selling Investments in Retirement?

September 24, 2026

By Guerra Wealth Advisors

Category: Investment Management

Selling an investment during retirement can feel very different from selling one while you are working.

You may no longer be receiving a regular paycheck, but that does not mean investment sales are automatically tax free. In fact, the timing and amount of an investment sale can affect your taxable income, capital gains taxes, Medicare costs, and even how much of your other retirement income is taxed.

That is why understanding what are the tax consequences of selling investments in retirement is an important part of creating a retirement income strategy.

The good news is that you do not necessarily have to avoid selling investments simply because you are concerned about taxes. The goal is to understand what you own, how it will be taxed when sold, and how the sale fits into the rest of your financial picture.

How Are Investments Taxed When You Sell Them?

The tax consequences of selling investments depend largely on the type of account holding the investment and how much the investment has increased in value.

For example, if you purchased an investment for $50,000 and later sell it for $80,000, the $30,000 increase is generally a capital gain in a taxable investment account.

Your taxable gain is generally based on your proceeds from the sale minus your cost basis, although the actual calculation can be more complicated depending on the investment and transaction history.

The tax treatment can also depend on how long you owned the investment.

Short Term vs. Long Term Capital Gains

Investments held for one year or less are generally subject to short term capital gains treatment, while investments held for more than one year may qualify for long term capital gains treatment.

Long term capital gains can receive preferential federal tax treatment compared with ordinary income, depending on your taxable income.

This distinction matters during retirement because you may have more flexibility over when you sell investments.

Instead of simply selling whatever you need whenever you need it, you can potentially coordinate investment sales with other sources of retirement income.

Selling Investments Can Increase Your Taxable Income

One of the biggest considerations when selling investments in retirement is that a large taxable investment sale can increase your income for the year.

That does not necessarily mean the entire amount you receive from selling the investment is taxable.

If you sell an investment for $100,000 but your cost basis is $60,000, the taxable capital gain may be approximately $40,000 rather than the full $100,000, assuming no other adjustments apply.

However, that $40,000 gain can still have an impact on your overall tax picture.

Your taxable income may already include:

  • Social Security benefits
  • Pension income
  • Required minimum distributions
  • IRA withdrawals
  • Interest and dividends
  • Other investment income

Adding a large capital gain on top of those sources can change your marginal tax situation.

This is one reason we encourage retirees to look at investment sales as part of the larger retirement income plan rather than treating each transaction as an isolated decision.

At Guerra Wealth Advisors, we can help you periodically review how investment sales fit alongside your retirement income, taxes, and long term goals.

How Your Investment Account Affects Your Taxes

Not every retirement account is taxed the same way when you sell an investment.

The account where the investment is held can make a significant difference.

Taxable Investment Accounts

With a taxable brokerage account, selling an investment can create a capital gain or capital loss.

The amount of the gain generally depends on your cost basis and selling price.

For example, purchasing an investment for $40,000 and selling it for $70,000 could create a $30,000 capital gain.

This is why keeping track of your cost basis is so important.

Traditional IRAs and Other Tax Deferred Accounts

Traditional retirement accounts work differently.

If you sell an investment inside a traditional IRA, the sale itself generally does not create a separate capital gains tax bill. Instead, withdrawals from the account are generally subject to ordinary income tax, subject to the applicable rules.

That means selling an investment inside the account and withdrawing money from the account are two different tax events.

This distinction can be useful when thinking about how to generate retirement income.

Roth Accounts

Qualified withdrawals from Roth accounts can generally be tax free.

Because of this, Roth assets can potentially provide valuable flexibility when managing taxable income during retirement.

The key is understanding the rules that apply to qualified distributions and how Roth assets fit into your overall retirement strategy.

Could Selling Investments Affect Medicare Costs?

There is another potential consequence that retirees sometimes overlook.

A large increase in income can affect Medicare related costs for some individuals.

Medicare Part B and Part D premiums can be affected by your modified adjusted gross income from a prior tax year. Certain higher income retirees may therefore pay additional amounts through the Income Related Monthly Adjustment Amount, commonly called IRMAA.

A large investment sale does not automatically mean you will owe higher Medicare premiums, but it can contribute to the income calculation that determines those premiums.

That makes the timing of an investment sale particularly important.

A decision that appears to save money in one area could have consequences elsewhere in your retirement plan.

Can Capital Losses Help Offset Investment Gains?

Selling investments in retirement is not always about generating gains.

You may also have investments that have declined in value.

When appropriate, realizing an investment loss can potentially help offset capital gains, subject to tax rules and limitations.

This is sometimes referred to as tax loss harvesting.

For retirees, the strategy needs to be considered carefully because the investment decision should not be driven by taxes alone.

You still need to consider:

  • Your overall investment strategy
  • Your risk tolerance
  • Your need for retirement income
  • Your desired asset allocation
  • The potential tax benefit
  • The rules surrounding repurchasing investments

Tax planning and investment planning should work together rather than operate separately.

When Should You Sell Investments in Retirement?

There is no universal age or month that is automatically the right time to sell an investment.

Instead, the timing may depend on what else is happening in your financial life.

For example, you may want to consider whether you are:

  • Taking larger retirement withdrawals
  • Beginning Social Security
  • Starting required minimum distributions
  • Completing Roth conversions
  • Experiencing an unusually low income year
  • Planning a large purchase
  • Rebalancing your portfolio
  • Managing gains and losses across different investments

This is where periodic tax planning can become especially valuable.

Your tax situation can change considerably throughout retirement. A strategy that made sense at age 62 may not make sense at age 72 after required minimum distributions begin.

We believe retirement planning should evolve with you. At Guerra Wealth Advisors, our goal is to periodically review your investments, income sources, taxes, and long term objectives so your decisions continue working together.

What Should You Consider Before Selling an Investment?

Before selling a significant investment in retirement, consider looking at the transaction from several angles.

Start With Your Cost Basis

Determine how much of the sale could represent a taxable gain rather than assuming the entire proceeds are taxable.

Look at Your Other Income

Consider your Social Security, pension, retirement account withdrawals, dividends, interest, and other income for the year.

Consider the Timing

Selling an investment this year versus next year could produce different tax consequences depending on your expected income in each year.

Review the Rest of Your Portfolio

A sale may also affect your asset allocation, diversification, and future income potential.

Think Beyond Federal Income Taxes

Your state tax situation, Medicare premiums, and other factors can also matter.

Why Retirement Tax Planning Should Be Ongoing

The answer to what are the tax consequences of selling investments in retirement is rarely as simple as looking at the capital gains tax rate.

The real question is how an investment sale fits into everything else happening in your financial life.

A retirement income strategy may involve taxable accounts, traditional retirement accounts, Roth accounts, Social Security, required minimum distributions, and other income sources. Coordinating these pieces can help you make more informed decisions about when and how to sell investments.

That is why we recommend reviewing your strategy periodically rather than waiting until a major financial decision is already in front of you.

At Guerra Wealth Advisors, we can help you evaluate investment sales alongside retirement income and tax planning so you can understand the potential consequences before making a significant move.

The goal is not simply to minimize taxes at all costs. It is to understand the tradeoffs and make decisions that support the retirement you are building.

The Tax Bill Is Only Part of the Decision

Selling an investment in retirement can create a tax liability, but the tax itself should not automatically determine whether you sell.

Sometimes paying a tax today may make sense if it helps you accomplish a larger financial objective. Other times, changing the timing or amount of a sale may help manage your taxable income.

The important part is knowing what you are potentially triggering before you make the transaction.

And there is one more piece of the puzzle many retirees overlook: the order in which you draw from your different retirement accounts can change your tax picture significantly over time.

That is where a coordinated retirement income strategy can become especially important. If you’d like to meet with a Wealth Advisor to go over your options, set up a free introductory meeting by clicking here.

More Timely Financial Wisdom

Estate Planning Details Families Often Miss

Estate planning is about much more than deciding who receives your assets. A thoughtful estate plan can help make your…

READ ARTICLE

Financial Frights That Haunt Retirement

Retirement is supposed to be the part of life where you can enjoy what you have worked so hard to…

READ ARTICLE

Can I Retire Early Without Penalty on My Retirement Accounts?

Retiring before age 59½ can sound complicated if most of your savings is sitting inside a 401(k), IRA, or other…

READ ARTICLE