How much tax will I pay on capital gains in retirement?

Short answer

For 2026, long-term gains (on investments held more than a year) and qualified dividends are taxed at 0% while your taxable income, gain included, stays at or below $49,450 single, $98,900 married filing jointly or $66,200 head of household. Above that the rate is 15%, and 20% only above $545,500 single or $613,700 married. Because many retirees have less income than when they worked, a lot of their gains fall in the 0% slice.

Example
A married couple, both 65 or over, with $60,000 a year of pension, IRA and taxable Social Security income, sells shares with a $40,000 gain. Their deductions are $47,500, so their taxable income is $52,500 and the whole gain is taxed at $0 federal tax. They could take about $46,400 more gain in 2026 before any of it is taxed.
What to do first
Add up your other income for the year (pensions, 401(k) and IRA withdrawals, the taxable part of Social Security, interest) and the gain you expect from selling. Put them in the calculator below.
The catch
A big gain can make more of your Social Security taxable and can raise your Medicare premiums two years later. State tax is extra in most states.

WisePlan Wealth is an on-device retirement spending planner for iPhone, Mac and Android (private, no account; your data stays on your device) that finds the most you can afford to spend across your Go-Go, Slo-Go and No-Go years. It is not a financial advisor or tax filer, and it does not calculate your tax bill or calculate or claim tax credits.

Capital gains tax calculator for retirees (US, 2026)

Your 2026 tax return
Two only if married filing jointly
Pensions, IRA, taxable Social Security, interest
Sale price minus what you paid, held over a year
Rough 2026 federal tax on your gain
$0

$40,000Gain taxed at 0%
$0Gain taxed at 15%
$0Gain taxed at 20%
$46,400More gain you could take at 0% this year

Runs in your browser. Nothing is saved or sent. Uses only the numbers you enter.

Instead of checking whether your plan works with a budget you had in mind, see how much you can actually afford to spend from your 401(k), IRA, Roth and taxable savings, tuned for your Go-Go, Slo-Go and No-Go years

A rough federal estimate, not tax advice. It does not include state tax or file anything for you.

2026 long-term capital gains rates
RateSingleMarried filing jointlyHead of household
0%Up to $49,450Up to $98,900Up to $66,200
15%$49,451 to $545,500$98,901 to $613,700$66,201 to $579,600
20%Over $545,500Over $613,700Over $579,600

Amounts are taxable income (after deductions), gain included, from IRS Revenue Procedure 2025-32. Short-term gains (held a year or less) are taxed like wages instead.

Assumptions / what this calculator does not do
  • It uses the 2026 standard deduction ($16,100 single, $32,200 married filing jointly, $24,150 head of household), the extra $2,050 (unmarried) or $1,650 (married) for each person 65 or over, and the 2025 to 2028 extra deduction of up to $6,000 for each person 65 or over, which shrinks by 6% of income over $75,000 ($150,000 married filing jointly). It does not handle itemized deductions.
  • Deductions come off your other income first. Your gain is then stacked on top of that taxable income to see how much falls at 0%, 15% and 20%.
  • “Other income” must be the taxable amount. Enter only the taxable part of your Social Security. The calculator does not work out how a gain can make more of your Social Security taxable, so the real tax can be higher. More: tax on Social Security.
  • It adds the 3.8% net investment income tax when your income is over $200,000 single or head of household, or $250,000 married filing jointly, counting only the gain you enter as investment income.
  • It does not include state tax, short-term gains, losses you could use against gains, collectibles, home sales (see the home sale exclusion calculator), or the Medicare income surcharge (IRMAA).
  • Qualified dividends are taxed at the same rates; you can add them to the gain box for a rough idea.
Sources
FAQ
How much tax will I pay on capital gains in retirement?
It depends on your other taxable income. For 2026, long-term gains (on investments held more than a year) are taxed at 0% while your taxable income, including the gain, stays at or below $49,450 single, $98,900 married filing jointly or $66,200 head of household. Above that they are taxed at 15%, and 20% above $545,500 single or $613,700 married filing jointly. Many retirees with modest other income pay 0% on some or all of their gains.
What is the 0% capital gains bracket for 2026?
The IRS says the 0% rate applies to long-term gains and qualified dividends up to taxable income of $49,450 for single filers, $98,900 for married couples filing jointly and $66,200 for heads of household in 2026. Taxable income means income after the standard deduction, so a married couple both 65 or over can have about $146,000 of income before their gains reach the 15% rate.
How does my other income change the tax on my gains?
Gains are counted on top of your other taxable income, such as pensions, 401(k) and IRA withdrawals, the taxable part of Social Security and interest. Each extra dollar of other income uses up a dollar of the 0% slice. Example: a married couple, both 65 or over, with $60,000 of other income can take a $40,000 long-term gain and pay $0 federal tax on it, and could take about $46,400 more at 0%.
Can selling investments make my Social Security taxable?
Yes, it can. Capital gains count in the income the IRS uses to decide how much of your Social Security is taxable, so a large gain can make more of your benefits taxable, and it can also raise your Medicare Part B and Part D premiums two years later (IRMAA). This calculator does not work those out. More: tax on Social Security and IRMAA.
What is the 3.8% net investment income tax?
It is an extra 3.8% federal tax on investment income, including capital gains, when your modified adjusted gross income is over $200,000 single or head of household, or $250,000 married filing jointly. These amounts are set in law and are not raised for inflation. It applies to the smaller of your investment income or the amount you are over the line.
Does WisePlan work out my capital gains tax?
No. WisePlan Wealth is an on-device retirement spending planner. You type in your 401(k), IRA, Roth and taxable savings, and it finds the most you can afford to spend each year across your Go-Go, Slo-Go and No-Go years. It does not file taxes, calculate your tax bill, or calculate or claim tax credits. Use this page’s calculator for a rough idea, and check the IRS or a tax professional for your own return.
Full guide

How much tax will I pay on capital gains in retirement? This guide explains, in plain words, how long-term capital gains are taxed once you stop working, and how to use low-income years well. Related: tax in retirement (US), 401(k) withdrawal tax and retirement withdrawal order.

1. Long-term and short-term gains

A capital gain is what you get when you sell an investment for more than you paid. If you held it more than one year, it is a long-term gain and gets the lower 0%, 15% and 20% rates. If you held it one year or less, it is short-term and is taxed like wages. Gains inside a 401(k), IRA or Roth IRA are not taxed when you sell; this page is about a regular taxable brokerage account.

2. Why retirees often pay 0%

The 0% rate applies until your taxable income, gain included, reaches $49,450 single or $98,900 married filing jointly in 2026. Taxable income is your income after the standard deduction. A married couple both 65 or over gets $35,500 of standard deduction plus up to $12,000 of extra senior deduction, so they can have roughly $146,000 of income in total before any gain is taxed at 15%.

3. Your other income comes first

The IRS counts your gains on top of your other taxable income. A pension, a 401(k) or IRA withdrawal or the taxable part of Social Security fills the bottom of the brackets first, and the gain fills what is left. So the same $40,000 gain can be taxed at 0% for one couple and partly at 15% for a couple with more pension income.

4. Low-income years are a chance to take gains

The years after you stop work and before Social Security, a pension and required minimum distributions start are often your lowest-income years. Some people sell investments with large gains in those years, at 0%, and buy them back right away to reset what they paid (the wash-sale rule applies only to losses, not gains). Others use the same room for Roth conversions instead. Both use up the same low brackets, so it is a choice, not both for free. More: retiring before Social Security.

5. Watch Social Security and Medicare

A gain is added to the income the IRS uses to decide how much of your Social Security is taxed, so a gain taxed at 0% can still raise your tax bill by making more of your benefits taxable. Higher income can also raise your Medicare Part B and Part D premiums two years later. More: tax on Social Security and IRMAA.

6. The 3.8% extra tax and state tax

If your modified adjusted gross income is over $200,000 single or $250,000 married filing jointly, a 3.8% net investment income tax is added on your gains. Most states also tax capital gains as regular income; a few have no income tax at all. More: tax in retirement (US).

See how much you can actually afford to spend

Instead of checking whether your plan works with a budget you had in mind, see how much you can actually afford to spend. WisePlan Wealth finds the most you can spend each year across your Go-Go, Slo-Go and No-Go years, using your 401(k), IRA, Roth and taxable savings plus the Social Security and pension amounts you type in, all on your device. It does not file taxes, calculate your tax bill, or calculate or claim tax credits. Get WisePlan Wealth. Free to start. No account. Data stays on your device.

Related guides

This is general information, not financial, tax or investment advice. The calculator is a rough federal estimate. Tax rules can change; check the IRS for your own situation. Page dated October 26, 2026.

🇨🇦 In Canada? See non-registered accounts in retirement.