Capital gains tax in retirement is often lower than retirees expect, because long-term gains and qualified dividends are taxed on a separate 0%, 15%, or 20% schedule tied to total taxable income, and a low-income year can push some gains into the 0% band. What raises the real cost is not the headline rate but the surtax, Medicare, and Social Security cliffs a gain can trip. This guide quantifies those interactions using exact 2026 figures.
In 2026, a retiree can hold taxable income up to the “maximum zero rate amount” and pay 0% federal tax on long-term capital gains: $49,450 single and $98,900 married filing jointly (Source: IRS Rev. Proc. 2025-32). There is no special over-65 exemption; the same 0/15/20% rates apply at every age. A large gain can also trigger the 3.8% surtax, higher Medicare premiums, and more taxable Social Security.
How is capital gains tax different once you are retired?
Capital gains tax in retirement runs on a separate rate schedule from wages, pensions, and IRA withdrawals. Long-term gains and qualified dividends are taxed at 0%, 15%, or 20% based on total taxable income, while ordinary income keeps the 10% to 37% rates (Source: IRS Topic no. 409, 2025). Retirement changes the income mix, not the rules, and lower-income years can drop gains into the 0% band.
Talk With Craig Wear's Team
Craig has helped IRA millionaires save over $1 million each in unnecessary taxes. Find out if a Roth conversion strategy fits your retirement, with no sales pressure and no product pitch.
Income stacks in a set order. Ordinary income (pensions, traditional withdrawals, the taxable part of Social Security) fills the lower brackets first, then long-term gains stack on top, and where that stack lands decides whether a gain is taxed at 0%, 15%, or 20%. That is why a retiree with the same portfolio can pay very different rates from one year to the next. Two categories sit outside this structure: collectibles carry a 28% maximum rate, and unrecaptured section 1250 gain a 25% maximum (Source: IRS Topic no. 409, 2025).
Do you pay capital gains tax after age 65?
Yes. There is no special capital gains exemption for people over age 65, and the same 0/15/20% long-term schedule applies at every age (Source: IRS Topic no. 409, 2025). Turning 65 does not lower your rate. What can change is taxable income: in a low-income year, gains that stay below the 2026 zero-rate ceiling ($49,450 single, $98,900 joint) can still be taxed at 0%.
Age 65 does bring two deductions that raise the income floor before gains are taxed. For 2026, filers 65 or older add $1,650 per spouse to the standard deduction ($2,050 if single and not a surviving spouse), and a temporary OBBBA senior deduction of $6,000 per eligible person 65+ applies for tax years 2025 through 2028 (Source: IRS Rev. Proc. 2025-32; IRS newsroom, One Big Beautiful Bill Act).
What are the 2026 capital gains brackets by filing status?
For 2026, long-term capital gains and qualified dividends are taxed at 0% up to the maximum zero rate amount, 15% up to the maximum 15% rate amount, and 20% above it (Source: IRS Rev. Proc. 2025-32). The exact ceilings depend on filing status. The table below lists the 2026 taxable-income thresholds published in Rev. Proc. 2025-32.
| Filing status (2026) | 0% up to (taxable income) | 15% up to | 20% above |
|---|---|---|---|
| Single | $49,450 | $545,500 | $545,500 |
| Married filing jointly / surviving spouse | $98,900 | $613,700 | $613,700 |
| Head of household | $66,200 | $579,600 | $579,600 |
| Married filing separately | $49,450 | $306,850 | $306,850 |
| Estates and trusts | $3,300 | $16,250 | $16,250 |
These thresholds are indexed for inflation each year, so the figures rise annually (Source: IRS Rev. Proc. 2025-32). The numbers above are 2026 values; confirm the current tax year against the cited IRS materials before relying on any bracket table.
Short-term vs long-term gains: what is the difference?
The difference is the holding period, and it changes the tax rate sharply. A long-term gain comes from an asset held more than one year and qualifies for the 0/15/20% rates. A short-term gain comes from an asset held one year or less and is taxed as ordinary income at 10% to 37% (Source: IRS Topic no. 409, 2025; Rev. Proc. 2025-32). The same sale can cost far more if it crosses the one-year line too early.
| Feature | Short-term gain | Long-term gain |
|---|---|---|
| Holding period | One year or less | More than one year |
| 2026 tax rate | Ordinary income: 10% to 37% | 0%, 15%, or 20% |
| Qualifies for 0% band | No | Yes |
| Counts toward the surtax | Yes | Yes |
For a retiree, holding an appreciated position past the one-year mark moves a sale from ordinary rates to the long-term schedule, so waiting a few weeks near that mark can change the rate on the whole gain.
Are gains inside my 401(k) or IRA taxed the same way?
No. Capital gains rates apply only to assets sold in a taxable brokerage account. Inside a 401(k), 403(b), or traditional IRA, selling investments triggers no capital gains tax within the account; the distributions you later include in income are taxed as ordinary income at 10% to 37%, whatever the underlying gains were (Source: IRS Pub 590-B, 2025). Roth IRA qualified distributions are tax-free entirely.
A Roth distribution qualifies if it is made after the five-year period beginning with your first Roth contribution year and after age 59 and a half, or due to disability, death, or a first home up to $10,000 lifetime (Source: IRS Pub 590-B, 2025). The practical result: a stock fund held for decades inside a traditional 401(k) gets no long-term capital gains treatment on withdrawal, but the same fund in a taxable account can, and in a low-income year part of that gain may land at 0%.
What is the step-up in basis, and should I hold or sell?
A step-up in basis resets an inherited asset’s cost basis to its fair market value on the date of death, so the built-in unrealized gain generally is not taxed to the heirs if they sell near that value (Source: IRS Pub 590-B, 2025). That makes the hold-versus-sell choice real: selling now realizes the gain at today’s rate, while holding may pass a stepped-up basis to heirs and erase the gain for them.
The tradeoff runs both ways. Holding a concentrated position for a future step-up carries market risk, while gains realized in a 0% year cost nothing federally today. Whether to harvest a gain now or hold for a basis reset depends on your bracket, your heirs, and your need for the cash.
What is the 0% window, and how does capital gains harvesting work before RMDs start?
The 0% window is the stretch of low-income years between leaving work and starting required minimum distributions at age 73, when a retiree’s taxable income can sit far below the 0% ceiling. In 2026, a married couple can hold taxable income up to $98,900 and pay 0% on long-term gains (Source: IRS Rev. Proc. 2025-32). Realizing gains inside that space is called capital gains harvesting.
Capital gains harvesting means selling appreciated assets in a low-income year so the gain falls inside the 0% band, then optionally repurchasing to reset a higher cost basis. Because the wash-sale rule applies to losses and not to gains, an immediate repurchase after a gain sale is allowed (Source: IRS Topic no. 409, 2025). Deductions set the floor before the 0% ceiling applies: for 2026 the standard deduction is $32,200 for joint filers and $16,100 for single filers, plus $1,650 per spouse age 65 or older, and the OBBBA senior deduction of $6,000 per eligible person 65+ runs through 2028 (Source: IRS Rev. Proc. 2025-32; IRS newsroom).
A worked example: fitting gains into the 0% bucket
Consider a hypothetical married couple, both age 68, in tax year 2026, before required minimum distributions begin. This example illustrates how gains stack on ordinary income and is not a projection of any individual result. Their income stacks in the following order:
- Pension: $30,000
- Taxable portion of Social Security: assume $10,000 counted as taxable
- Subtotal ordinary income: $40,000
- Less 2026 standard deduction ($32,200) plus two age-65 additions ($3,300): deductions of $35,500
- Taxable ordinary income: about $4,500
With roughly $4,500 of taxable ordinary income, the couple sits far below the $98,900 joint zero-rate ceiling. The remaining room, about $94,400, is space in which long-term gains could be realized and stacked on top at a 0% federal rate; gains above $98,900 begin to be taxed at 15% (Source: IRS Rev. Proc. 2025-32). Once required minimum distributions begin at 73, that ordinary income fills the same space and shrinks the room for 0% gains, which is why the pre-73 years are often called a planning window.
What does a gain really cost? NIIT, IRMAA, and the Social Security tax torpedo
The true cost of a gain can exceed its 0/15/20% rate because three separate cliffs stack on top. A large gain can add the 3.8% net investment income tax, raise Medicare premiums two years later through IRMAA, and make more of your Social Security benefits taxable (Sources: IRS Topic no. 559; Medicare.gov; 26 U.S.C. section 86). None of these three thresholds are inflation-indexed, so they catch more retirees each year.
| Layer on a long-term gain (2026) | Trigger | Effect on the gain’s cost |
|---|---|---|
| Base long-term rate | Taxable income bracket | 0%, 15%, or 20% |
| Net investment income tax (NIIT) | MAGI over $200,000 single / $250,000 joint | Adds 3.8%: top effective rate 18.8% or 23.8% |
| IRMAA Medicare surcharge | MAGI over $109,000 single / $218,000 joint (two-year lookback) | Higher Part B and Part D premiums for a full year |
| Social Security taxation | Combined income over $25,000 single / $32,000 joint | Up to 50%, then 85%, of benefits become taxable |
The net investment income tax adds 3.8% on the lesser of net investment income or the amount your MAGI exceeds $200,000 (single or head of household), $250,000 (joint), or $125,000 (married filing separately) (Source: IRS Topic no. 559). Capital gains are net investment income, so the top effective rate reaches 18.8% (15% plus 3.8%) or 23.8% (20% plus 3.8%). For detail, see the Q3 Advisors net investment income tax 2026 reference.
IRMAA is the income-related monthly adjustment amount added to Medicare Part B and Part D, based on the MAGI from your tax return two years earlier (Source: Medicare.gov, CMS). The 2026 standard Part B premium is $202.90 per month, and IRMAA applies above $109,000 MAGI (single) or $218,000 (joint). Because it works in tiers, a gain that pushes MAGI a single dollar past a tier can raise premiums for the whole year, and the two-year lag means a gain realized at 63 can raise premiums at 65.
The Social Security tax torpedo is the third layer. Under IRC section 86, up to 50% of benefits become taxable once “combined income” exceeds $25,000 single ($32,000 joint), and up to 85% above $34,000 single ($44,000 joint) (Source: 26 U.S.C. section 86). A capital gain raises the income used in that formula, so it can indirectly increase the tax on your benefits. Because all three thresholds interact, a modest-looking gain can cost well above its stated rate once these cliffs are added together.
How do I coordinate gains with RMDs, Roth conversions, and withdrawal order?
Coordinating gains means sequencing them against the income that competes for the same low brackets. Required minimum distributions begin at age 73 for those born 1951 to 1959 and age 75 for those born in 1960 or later, so the earliest age-75 RMD year is 2035 (Source: IRS RMD FAQs, SECURE 2.0). Once RMDs start, that ordinary income fills the lower brackets first and shrinks the room for 0% gains.
The missed-RMD excise tax is 25%, reduced to 10% if corrected in time (Source: IRS RMD FAQs). See the Q3 Advisors required minimum distributions 2026 guide for the current mechanics.
Low-income years before 73 are also when many retirees weigh a Roth conversion. A conversion is uncapped, is taxed as ordinary income in the conversion year, is irreversible, and must be completed by December 31 (an RMD itself cannot be converted). It is not net investment income, but it adds to taxable income and competes with the same space you might use for 0% gains. The Q3 Advisors guides on how much to convert to Roth and the Roth conversion deadline cover the timing.
Withdrawal sequencing is the order accounts are tapped, commonly taxable first, then tax-deferred, then Roth, though the order that minimizes lifetime tax depends on each household’s brackets, RMDs, IRMAA position, and Social Security. Qualified charitable distributions (QCDs) let those 70 and a half or older send money directly from an IRA (not a 401(k)) to charity, satisfying part of an RMD without adding to taxable income (Source: IRS RMD FAQs).
Tax-loss harvesting and the home-sale exclusion
Two rules can shrink a retiree’s capital gains bill directly. Capital losses offset capital gains dollar for dollar, and if losses exceed gains, up to $3,000 of net loss can be deducted against ordinary income each year, with the rest carried forward (Source: IRS Topic no. 409, 2025). Selling losers to offset realized gains is tax-loss harvesting, and the wash-sale rule disallows the loss if you buy a substantially identical security within 30 days.
Selling a primary home can qualify for a large exclusion. A single filer may exclude up to $250,000 of gain and a married couple up to $500,000, generally if the home was owned and used as a main residence for at least two of the five years before the sale (Source: IRS Topic no. 409, 2025). Gain above the exclusion is taxed as a long-term capital gain and can itself count toward the NIIT and IRMAA thresholds above.
Are capital gains taxes different by state?
Yes. The 0/15/20% schedule described here is federal only, and states set their own rules. Many states tax capital gains as ordinary income, some apply a separate rate, and several levy no broad state income tax at all. Your state of residence in the year of the sale can meaningfully change the total tax, so it is a real planning factor.
Because state treatment varies and can change, confirm the current rules with your state tax authority or a tax professional before realizing a large gain.
Work with Q3 Advisors
Q3 Advisors is a registered investment adviser focused on retirement tax planning. This page is educational and is not advice; consult a qualified professional.
Frequently asked questions
These answers summarize how federal long-term capital gains rules generally apply in retirement, using 2026 figures from the cited IRS sources. They cover the age-65 question, the 0% income ceilings by filing status, Social Security interactions, and the senior deduction. The responses are educational, not personalized advice, and state rules can differ, so confirm your own situation with a qualified professional.
Do you pay capital gains tax after age 65?
Yes. The same 0/15/20% long-term capital gains schedule applies at every age, and there is no special over-65 capital gains exemption (Source: IRS Topic no. 409, 2025). What can change after 65 is taxable income. In a low-income year, gains that fall below the 2026 zero-rate ceiling ($49,450 single, $98,900 joint) can be taxed at 0% (Source: IRS Rev. Proc. 2025-32).
How can I avoid capital gains tax in retirement?
Approaches the rules allow include realizing long-term gains in a year when taxable income stays under the 0% ceiling, offsetting gains with capital losses, using the up-to-$500,000 home-sale exclusion, holding appreciated assets for a step-up in basis at death, and donating appreciated shares (Source: IRS Topic no. 409, 2025). This is educational information, not a recommendation for any individual.
At what income level do you not pay capital gains tax?
For 2026, long-term gains are taxed at 0% when total taxable income stays at or below the maximum zero rate amount: $49,450 for single filers, $98,900 for married filing jointly, and $66,200 for head of household (Source: IRS Rev. Proc. 2025-32). Gains stack on top of ordinary income, so all other income counts toward reaching that ceiling.
Do retirees have to pay capital gains tax?
Retirees pay capital gains tax on assets sold in taxable accounts, at the same 0/15/20% long-term rates as everyone else (Source: IRS Topic no. 409, 2025). Retirement itself grants no exemption. But because many retirees have lower taxable income, part or all of a long-term gain can fall in the 0% band, and gains inside 401(k)s and IRAs are taxed as ordinary income on withdrawal, not as capital gains.
Does capital gains count as income against Social Security?
Capital gains do not reduce your Social Security benefit, but they can make more of it taxable. Under IRC section 86, a gain raises the “combined income” used to tax benefits, so up to 50% of benefits become taxable above $25,000 single ($32,000 joint) and up to 85% above $34,000 single ($44,000 joint) (Source: 26 U.S.C. section 86). These thresholds are not inflation-indexed.
Is there a capital gains exemption for seniors?
No. There is no capital gains exemption based on age; seniors pay the same 0/15/20% long-term rates as any other filer (Source: IRS Topic no. 409, 2025). Filers 65 and older do get a larger standard deduction and, for 2025 through 2028, the OBBBA senior deduction of $6,000 per eligible person, which can lower taxable income and help keep gains in the 0% band (Source: IRS Rev. Proc. 2025-32).
How much can a retired couple make without paying capital gains tax?
For 2026, a married couple filing jointly can have taxable income up to $98,900 and pay 0% on long-term capital gains (Source: IRS Rev. Proc. 2025-32). Because taxable income is after deductions, a couple both age 65 or older subtract a $32,200 standard deduction plus $3,300 in age additions first, so their gross income can be meaningfully higher before any long-term gain is taxed.