You’ve spent decades saving. Now you’re starting to spend, and a new question shows up: when you sell an investment, what does the tax bill look like? This article walks through capital gains in retirement, the difference between short-term and long-term gains, the 2026 tax rates, and why the type of account you hold matters more than almost anything else.

The short answer

A capital gain is the profit you make when you sell something for more than you paid for it. If you bought a stock for $10,000 and sold it for $15,000, your capital gain is $5,000.

Here’s the part most people miss. Capital gains generally get their special tax treatment in taxable accounts, such as a regular brokerage account. Inside a traditional IRA, a 401(k), or a Roth, capital gains don’t work the way you’d expect. We’ll get to why.

What a capital gain actually is

Think of it in two pieces. There’s your basis (what you paid, including any reinvested dividends) and your sale price (what you got when you sold). The gain is the difference.

You only owe tax on a gain when you sell. That moment is called “realizing” the gain. As long as you hold the investment, the gain is on paper only, and the IRS leaves it alone. Linda can watch her shares climb for fifteen years and owe nothing until the day she sells.

That single fact gives retirees more control than they often realize. You decide when to sell, which means you have some say over when the tax is due.

Short-term vs. long-term gains

How long you held the investment decides which rate you pay.

A short-term gain comes from something you owned for one year or less. It’s taxed as ordinary income, at the same rates as your pension, your IRA withdrawals, or a paycheck.

A long-term gain comes from something you owned for more than one year. It gets its own, lower set of rates. For most retirees, that difference is the whole ballgame. Holding an investment for at least a year and a day before selling can drop the tax rate on the profit by a wide margin.

So if you’re close to that one-year mark, it’s often worth waiting the extra few days. Same investment, lower tax.


Plan Your Retirement With the Best Financial Planning Software I’ve Found

Get a two week FREE trial of Boldin (formerly NewRetirement) personal financial planning software that Geoff uses. if you decide to keep it, then it’s only $12/mo (billed annually) – use our affiliate link: https://Go.Boldin.com/Schmidt to see if it’s for you.


The 2026 long-term capital gains rates

Long-term gains are taxed at one of three rates in 2026: 0%, 15%, or 20%. Which one you pay depends on your taxable income for the year, not just on the size of the gain.

For single filers in 2026:

  • 0% on taxable income up to $49,450
  • 15% from $49,451 to $545,500
  • 20% above $545,500

For married couples filing jointly in 2026:

  • 0% on taxable income up to $98,900
  • 15% from $98,901 to $613,700
  • 20% above $613,700

Yes, you read the first line right. A real 0% rate exists, and a lot of retirees land in it without knowing. More on that shortly.

One more layer for higher earners: a 3.8% Net Investment Income Tax can apply to investment income when modified adjusted gross income exceeds $200,000 for single filers or $250,000 for married couples filing jointly. Those thresholds are not adjusted for inflation, so they catch more people over time.

The three types of accounts (and where gains live)

This is the heart of it. You can own the exact same fund in three different accounts and get three completely different tax results. The account is the rulebook.

The taxable account (your brokerage)

A taxable brokerage account is a regular investment account, the kind you open without any retirement label attached. This is the main place where capital gains rules actually apply.

Sell a stock here at a profit, and you have a capital gain that lands on your tax return that year. Hold it more than a year, and you get those friendly long-term rates. The interest and dividends it pays are also taxable each year, even if you reinvest them.

The trade-off is flexibility. There’s no age limit, no required withdrawal, and no penalty for taking your money out whenever you want.

The tax-deferred account (traditional IRA and 401(k))

A traditional IRA or 401(k) is “tax-deferred,” which means you got a tax break when the money went in, and you pay tax when it comes out.

Here’s the surprise: inside these accounts, capital gains rates don’t exist. You can buy and sell all day and owe nothing on the trades. But when you withdraw money in retirement, every dollar is taxed as ordinary income, no matter whether the growth came from dividends, interest, or a giant long-term gain. The lower capital gains rates simply don’t apply.

These accounts also come with Required Minimum Distributions, or RMDs, which are mandatory withdrawals that currently begin at age 73 for many retirees, with the starting age moving to 75 for younger retirees under current law. The IRS lets the money grow untaxed for decades, then wants its share.

The tax-free account (Roth)

A Roth IRA or Roth 401(k) is the mirror image. You pay tax on the money before it goes in, and then qualified withdrawals in retirement are completely tax-free.

That means no tax on the gains, no tax on the withdrawals, and (for a Roth IRA) no required withdrawals during your lifetime. In general, once the qualified-withdrawal rules are met, including the age 59½ rule and the applicable five-year rule, the growth is yours to keep. A $50,000 long-term gain inside a Roth costs you exactly nothing.

Why capital gains sit squarely in the taxable account

Put the three accounts side by side and the pattern is clear. Only the taxable account uses the capital gains system at all.

In a traditional IRA or 401(k), gains are eventually taxed as ordinary income, often a higher rate. In a Roth, gains aren’t taxed at all. So when financial folks talk about “capital gains,” they’re really talking about your taxable account, usually a brokerage account.

This matters for a habit called asset location, which simply means choosing which account holds which investment. Many retirees keep investments they plan to hold for a long time, the ones likely to grow and be sold later, in the taxable account, so they can use those low long-term rates and a feature we’ll cover at the end. Investments that throw off a lot of taxable income each year sometimes fit better inside the tax-sheltered accounts. There’s no single right answer, and the trade-offs depend on your full picture, which is exactly the kind of question worth modeling before you act.

The 0% bracket: a real opportunity for retirees

Remember that 0% rate? Retirement is often the best time of life to use it, because your income may dip in the years after you stop working but before Social Security and RMDs ramp up.

Here’s how the math works. Your long-term gains stack on top of your other taxable income. As long as the total stays under the 0% ceiling ($98,900 for a married couple in 2026), the gains in that zone are taxed at zero.

The following figures are a hypothetical illustration. Say Tom and Linda are both 66, retired, and file jointly. In 2026 their taxable income, after deductions, is about $50,000. They own a stock fund with a $30,000 long-term gain they’d like to harvest. Add the gain to their income ($50,000 + $30,000 = $80,000) and they’re still under the $98,900 line. The result: they pay 0% federal tax on the entire $30,000 gain. And if they went slightly over the line, only the amount above the line would move into the 15% bracket; the gain below the line would still qualify for 0%.

Used on purpose, year after year, this can let a retiree reset the basis on investments and pull profit off the table without a federal tax bill. It takes planning, and it’s easy to overshoot the line by accident, but the opportunity is real.

The hidden cost: how gains ripple into other bills

A capital gain doesn’t just trigger its own tax. It raises your income for the year, and several retirement costs are tied to your income. This is where a sale can cost more than the capital gains rate alone suggests.

Two ripple effects catch retirees off guard:

More of your Social Security gets taxed. Up to 85% of your benefits can become taxable depending on your total income. A large gain can push more of your benefit into the taxable zone.

Your Medicare premiums can jump. Medicare uses your income from two years earlier to set Part B and Part D premiums. Earn above certain thresholds and you pay a surcharge called IRMAA (the Income-Related Monthly Adjustment Amount). A one-time gain in 2026 can raise your Medicare premiums in 2028.

None of this means you should avoid selling. It means the timing and size of a sale deserve a look at the whole board, not just the capital gains line. The interaction between investment sales, Social Security, taxes, and Medicare is genuinely complicated, and it’s the sort of thing that rewards either careful modeling or a sit-down with someone who does this for a living. Getting unbiased guidance on the Medicare piece in particular can save you from an avoidable premium surcharge.

One more thing that helps your heirs: the step-up in basis

Here’s a rule that makes the taxable account more attractive than it first appears, especially for what you leave behind.

When you die, the investments in your taxable account generally receive a stepped-up basis. That means the basis resets to the value on the date of death. If you bought a stock for $20,000 and it’s worth $120,000 when you pass, your heirs’ basis becomes $120,000. If they sell it right away, the $100,000 of growth you built over the years is never taxed as a capital gain.

This is a feature of taxable accounts. A traditional IRA or 401(k) does not get a step-up; heirs pay ordinary income tax as they draw it down. A Roth passes income-tax-free but follows its own withdrawal timeline. The step-up is one reason some retirees choose to hold appreciated investments rather than sell them late in life.

Putting it together

The single idea to carry with you: capital gains generally get capital gains treatment only in a taxable account, such as a regular brokerage account, and that account comes with real advantages in retirement, the low long-term rates, the possible 0% bracket, and the step-up for your heirs.

So before you sell anything sizable, ask three questions. Which account is it in? Have I held it more than a year? And what will this gain do to my total income for the year, including my Social Security and Medicare? Answer those, and you’ll make a far better decision than someone who only looks at the share price.

If you have a low-income year coming up, it may be worth running the numbers on the 0% bracket before December. The window doesn’t last forever, and once the year closes, the chance is gone.


This article is educational and general in nature. It is not personalized financial, tax, or legal advice.


Note Boldin is an affiliate relationship of Holy Schmidt!. This means if you purchase a product or use their service, we earn a small commission. This does not increase your cost.


Geoff Schmidt

View all posts

Add comment

Your email address will not be published. Required fields are marked *