Taxes on selling stock in retirement depend far less on your age than on how much other income you report the same year, because a stock held longer than one year is taxed at a long-term capital-gains rate of 0%, 15%, or 20% set by your total taxable income and filing status (Source: IRS Topic No. 409, 2025). Retiring does not switch on a lower rate or a senior exemption; it changes the income you stack under the gain, and that is the lever you control.
In 2026, a long-term stock gain is taxed at 0% while total taxable income stays at or below $98,900 for married couples filing jointly or $49,450 for single filers, at 15% up to $613,700 (MFJ) or $545,500 (single), and at 20% above those figures (Source: IRS Rev. Proc. 2025-32, 2025). Shares held one year or less are taxed at ordinary rates of 10% to 37%. Ordinary income fills the brackets first, so the 0% room is often smaller than it looks.
How is selling stock taxed in retirement?
Selling stock held longer than one year in a taxable brokerage account produces a long-term capital gain taxed at 0%, 15%, or 20% based on your 2026 taxable income and filing status (Source: IRS Topic No. 409, 2025; IRS Rev. Proc. 2025-32, 2025). Shares held one year or less produce a short-term gain taxed at ordinary rates of 10% to 37%. Retirement does not change these rules; your income mix does.
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.
The rate follows a taxable-income ceiling, not the size of the gain alone. Two retirees can each realize a $40,000 gain and pay very different tax, because one sits inside the 0% band and the other has already pushed past it with pensions or withdrawals.
Account type matters as much as holding period. Selling stock inside a traditional IRA or 401(k) triggers no capital-gains tax; you are taxed later at ordinary rates only when you withdraw, and qualified Roth withdrawals are tax-free. The 0%, 15%, and 20% capital-gains rates apply only to sales in a taxable brokerage account.
The 2026 breakpoints below come from Rev. Proc. 2025-32. Adjusted net capital gain above the 15% figure is taxed at 20%.
| Filing status (2026) | 0% long-term rate up to | 15% rate up to | 20% rate above |
|---|---|---|---|
| Married filing jointly / surviving spouse | $98,900 | $613,700 | $613,700 |
| Head of household | $66,200 | $579,600 | $579,600 |
| Single | $49,450 | $545,500 | $545,500 |
| Married filing separately | $49,450 | $306,850 | $306,850 |
These are taxable-income thresholds, measured after the standard deduction, which for 2026 is $32,200 for joint filers and $16,100 for single filers, before any age-65 addition (Source: IRS Rev. Proc. 2025-32, 2025). That deduction is why a couple can report meaningful gross income and still keep gains inside the 0% band.
Do seniors get a capital-gains break at 65?
No. There is no age-65 exemption from capital-gains tax and no senior capital-gains rate. A 40-year-old and an 80-year-old who each realize the same long-term gain with the same taxable income pay the same 0%, 15%, or 20% (Source: IRS Topic No. 409, 2025). Turning 65 changes deductions, not the capital-gains rate schedule.
Two 2026 provisions do reduce a senior’s taxable income, which can indirectly keep more of a gain at 0%. The additional standard deduction for taxpayers 65 or older is $2,050 for a single filer and $1,650 per qualifying spouse (Source: IRS Rev. Proc. 2025-32, 2025). Separately, the OBBBA senior deduction (P.L. 119-21) allows $6,000 per person age 65 or older for tax years 2025 through 2028. Neither exempts the gain itself.
Why does your other income decide your capital-gains rate?
Ordinary income is stacked first, then long-term gains are layered on top, so your pensions, withdrawals, and required distributions consume the 0% and 15% bands before your stock sale ever reaches them (Source: Instructions for Schedule D (Form 1040), 2025). This bracket-stacking rule is the single mechanic that explains why realizing gains costs little for one retiree and much more for another with the same portfolio.
Traditional IRA and 401(k) withdrawals, required minimum distributions, pension payments, and Roth conversions are all ordinary income. Each dollar raises the floor from which your capital gain is measured, shrinking the space that would otherwise tax gains at 0%. The table below shows how the same $30,000 long-term gain moves between the 0% and 15% bands for a 2026 married couple filing jointly as ordinary taxable income rises toward the $98,900 ceiling.
| Ordinary taxable income | 0% room remaining to $98,900 | $30,000 gain taxed at 0% | Portion taxed at 15% |
|---|---|---|---|
| $40,000 | $58,900 | $30,000 | $0 |
| $80,000 | $18,900 | $18,900 | $11,100 |
| $98,900 | $0 | $0 | $30,000 |
Figures use the 2026 joint 0% ceiling of $98,900 (Source: IRS Rev. Proc. 2025-32, 2025) and are illustrative, not tax advice. They show the ordering rule, not a projection of any individual result.
How can a retiree pay 0% on capital gains?
A retiree can pay 0% on a long-term gain by realizing it in a year when total taxable income leaves room inside the 0% band, at or below $98,900 (MFJ) or $49,450 (single) for 2026 (Source: IRS Rev. Proc. 2025-32, 2025). This is called gain harvesting. The widest room usually appears in low-income early-retirement years, after work income stops but before Social Security and required minimum distributions begin.
Selling and immediately repurchasing the same shares can also reset the cost basis higher, because the wash-sale rule restricts losses, not gains, which may lower the taxable gain on a future sale. One general framework some retirees and advisers use to estimate available 0% room is outlined below. It illustrates the mechanics and is not a recommendation:
- Project total ordinary taxable income for the year (IRA and pension withdrawals, RMDs, interest, and any Roth conversion), after the standard deduction.
- Subtract that figure from the 2026 filing-status ceiling ($98,900 MFJ or $49,450 single) to find remaining 0% room (Source: IRS Rev. Proc. 2025-32, 2025).
- Identify long-term lots (held more than one year) whose gain would fit inside that room.
- Weigh the side effects, because a gain that fits the 0% band can still raise the taxable portion of Social Security, involve the 3.8% surtax, or affect Medicare premiums two years later.
How selling stock can raise the tax on your Social Security benefits
Realizing a stock gain raises adjusted gross income, and higher AGI can make more of your Social Security benefits taxable, up to 85% of them (Source: 26 U.S.C. §86; IRS Topic No. 423, 2025). This effect, commonly called the Social Security tax torpedo, can push the true cost of a gain above its stated capital-gains rate, because the gain taxes itself and drags benefits into tax at the same time.
Under IRC §86, taxability turns on combined income, defined as AGI plus tax-exempt interest plus one-half of benefits. Up to 50% of benefits become taxable above the base amount and up to 85% above the higher amount, shown below for 2026.
| Filing status | Up to 50% taxable above | Up to 85% taxable above |
|---|---|---|
| Married filing jointly | $32,000 | $44,000 |
| Single / head of household | $25,000 | $34,000 |
| Married filing separately (living together) | $0 | $0 |
These §86 thresholds are statutory and have never been indexed for inflation (Source: 26 U.S.C. §86). Because the lines never move, ordinary income growth and one-time gains reach them more easily each year.
The 3.8% net investment income tax on stock sales
The net investment income tax adds 3.8% under IRC §1411 on top of the 15% or 20% capital-gains rate, applied to the lesser of net investment income or the amount by which modified AGI exceeds a fixed threshold (Source: IRS Topic No. 559, 2025). Capital gains count as net investment income, so a large stock sale can trigger it and raise the real rate on the gain.
The 2026 MAGI thresholds are $250,000 for married filing jointly, $200,000 for single or head of household, and $125,000 for married filing separately (Source: IRS, Net Investment Income Tax, 2025). For most retirees with no foreign earned income, MAGI equals regular AGI.
These §1411 thresholds are statutory and are not indexed for inflation (Source: 26 U.S.C. §1411(b)). A retiree whose gain pushes MAGI over the fixed line pays the extra 3.8% on the amount above it, on top of the capital-gains rate. The 2026 figures are detailed on the Q3 Advisors net investment income tax page.
Medicare premiums (IRMAA) and the income you report
A stock gain raises the modified AGI that Medicare uses to set Part B and Part D premiums through the Income-Related Monthly Adjustment Amount (IRMAA), so a single large sale can raise premiums in a later year even after income returns to normal (Source: Centers for Medicare and Medicaid Services, 2026). IRMAA uses a two-year lookback, so a 2026 gain generally sets 2028 premiums.
The standard 2026 Part B premium is $202.90 per month, with IRMAA surcharges beginning above roughly $109,000 in MAGI for a single filer and $218,000 for a joint return (Source: CMS, 2026). Because IRMAA moves in tiers, even a small amount over a tier line raises the premium for the whole year, though a one-time gain lifts premiums for a single year rather than permanently.
Sequencing stock sales around RMDs and Roth conversions
Required minimum distributions are ordinary income and stack under your capital gains the same way a Roth conversion does, so the year RMDs begin often erases the 0% capital-gains room a retiree had before (Source: IRS Retirement Topics on RMDs, 2025). The required beginning age is 73 today, rising to 75 for those born in 1960 or later, whose first age-75 RMD year is 2035 (Source: SECURE 2.0 Act §107; IRS Pub. 590-B, 2025).
Ordinary income and gains compete for the same bracket space, so the order and year each is realized changes the total tax. The low-income years that favor 0% gain harvesting are also the years a Roth conversion can fill bracket space, and the two draw on the same limited room, so doing both in one year may reduce how much of each stays in a low bracket. A general coordination framework some retirees and advisers use is outlined below for illustration; it is not a recommendation:
- Map the pre-RMD, pre-Social Security years, where taxable income is often lowest and 0% room widest, using tools such as a Roth conversion sizing analysis.
- In each year, weigh how much bracket space would be filled by ordinary income versus long-term gains, since one crowds out the other.
- Compare a potential sale against the §86 Social Security thresholds, the §1411 NIIT lines, and Medicare IRMAA tiers, and against the Roth conversion break-even horizon.
- Reassess in the year required minimum distributions begin, because forced ordinary income can close the 0% gain window entirely.
A large realized gain can also create a quarterly estimated-tax obligation, since capital gains carry no automatic withholding. The sibling guide on estimated taxes in retirement covers how a big sale can change your payment schedule.
Which shares to sell: holding period and cost basis
Which shares you sell matters because the holding period sets the rate and the cost basis sets the taxable gain. Long-term treatment, with its 0%, 15%, or 20% rates, requires holding shares more than one year; shares held one year or less are taxed at ordinary rates of 10% to 37% (Source: IRS Topic No. 409, 2025). Choosing high-basis, long-held lots can cut the reported gain substantially.
Two other tools reduce the gain that reaches tax. Tax-loss harvesting sells losing positions to offset gains dollar for dollar, and donating appreciated shares to charity, or leaving them to heirs who receive a stepped-up basis at death, can avoid the gain entirely. Highly appreciated employer stock in a workplace plan may also follow a separate net unrealized appreciation rule, taxing part of the value at long-term rates. Lot selection depends on each taxpayer’s basis, holding period, and other income, so results vary.
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
Do you pay capital gains tax in retirement?
Often yes, but not always. Selling stock held more than one year in a taxable account produces a long-term capital gain taxed at 0%, 15%, or 20% based on 2026 taxable income and filing status (Source: IRS Topic No. 409, 2025). A gain that keeps total taxable income at or below $98,900 for joint filers, or $49,450 for single filers, can be taxed at 0% (Source: IRS Rev. Proc. 2025-32, 2025).
Do seniors have to pay capital gains tax?
Yes. There is no senior exemption and no special capital-gains rate for older taxpayers. Seniors pay the same 0%, 15%, or 20% long-term rates as everyone else, set by taxable income and filing status (Source: IRS Topic No. 409, 2025). Age-related deductions, such as the 2026 additional standard deduction of $2,050 (single), can lower taxable income but do not exempt the gain.
How do I avoid capital gains tax in retirement?
You cannot avoid the tax by age, but you can often reduce it. Common educational approaches include holding shares more than one year for long-term rates, realizing gains in low-income years within the 0% band, harvesting losses to offset gains, donating appreciated shares, and selling inside an IRA where no capital-gains tax applies (Source: IRS Topic No. 409, 2025). Many investors coordinate these with a tax professional.
At what age do you not have to pay capital gains tax?
There is no age at which capital gains stop being taxed. The 0% long-term rate depends on income, not age: it applies while 2026 taxable income stays at or below $98,900 (MFJ) or $49,450 (single) (Source: IRS Rev. Proc. 2025-32, 2025). A 30-year-old and a 90-year-old with identical income and gains owe identical capital-gains tax.
Does selling stock count as income?
Yes. A realized capital gain is part of taxable income and raises adjusted gross income, even though a long-term gain carries its own 0%, 15%, or 20% rate rather than ordinary rates (Source: IRS Topic No. 409, 2025). Because it lifts AGI, a gain can also affect the taxation of Social Security benefits, the 3.8% NIIT, and Medicare premiums.
Can you offset capital gains with capital losses?
Yes. Capital losses offset capital gains dollar for dollar, and if losses exceed gains, up to $3,000 of net loss can offset ordinary income each year, with the remainder carried forward (Source: IRS Topic No. 409, 2025). This tax-loss harvesting is a common way retirees reduce the tax on a large realized gain in the same year.
This page is provided by Q3 Advisors for general educational and informational purposes only. It is not investment, tax, or legal advice and is not a recommendation to buy, sell, or hold any security or to pursue any strategy. Tax rules change and apply differently to each person; consult a qualified tax or financial professional about your own circumstances. Q3 Advisors is a registered investment adviser; registration does not imply a certain level of skill or training. Additional information is available in its Form ADV.