0% Capital Gains in Retirement: Up to $96,700 Free
Yes — long-term capital gains can be completely tax-free in retirement, but only up to a ceiling. For 2026 the 0% federal long-term capital gains bracket runs all the way up to $96,700 of taxable income married filing jointly ($48,350 single). The catch most retirees miss: your RMDs, pension, and the taxable portion of Social Security fill that bracket FIRST. Whatever room is left between your ordinary taxable income and $96,700 is the amount of long-term gain you can harvest at a 0% federal rate. Go one dollar over and only the excess is taxed at 15% — but that dollar can also drag more Social Security into tax and push you past an IRMAA cliff.
Margaret and Tom Whitfield, both 68, married filing jointly, retired in Asheville, North Carolina. They have $1.9M in a brokerage account holding low-basis index funds, $400K in a traditional IRA, and they have not yet claimed Social Security (they are waiting until 70). Their only 2026 income is $32,000 of qualified dividends and interest plus a small $14,000 pension. Their question is the one millions of retirees are typing into Google right now: are capital gains tax-free in retirement, and how much can I sell this year without paying the IRS a dime?
The answer is a number. In 2026, a married couple keeps a 0% federal long-term capital gains rate on every dollar of gain until their taxable income exceeds $96,700 (IRC §1(h); IRS Rev. Proc. 2025-32). For Margaret and Tom, after the $31,500 MFJ standard deduction, their $46,000 of ordinary income becomes about $14,500 of taxable income. That leaves roughly $82,200 of room under the $96,700 ceiling — meaning they can realize about $82,200 of long-term gain this year and owe $0 in federal capital gains tax. Done annually, that resets their cost basis higher every year and quietly erases hundreds of thousands of dollars of embedded gain over a decade. Here is exactly how the stacking math works, and the three traps that can turn a free harvest into a tax bill.
The 0% long-term capital gains bracket: the actual 2026 numbers
Long-term capital gains (assets held more than one year) are taxed on their own rate schedule under IRC §1(h), separate from ordinary income. There are three brackets — 0%, 15%, and 20% — and the breakpoints are based on your total taxable income, gains included.
| Taxable income (single) | Taxable income (MFJ) | LTCG rate |
|---|---|---|
| $0 – $48,350 | $0 – $96,700 | 0% |
| $48,351 – $533,400 | $96,701 – $600,050 | 15% |
| $533,401+ | $600,051+ | 20% |
Two things make this far more generous than it looks on paper. First, the breakpoints are measured after the standard deduction. In 2026 the standard deduction is $15,750 single / $31,500 MFJ, so a married couple can take in roughly $128,200 of gross income (ordinary plus gains) and still land their taxable income at the $96,700 ceiling. Second, the 0% rate is genuinely zero — not deferred, not a credit, not a phase-in. Every dollar of long-term gain that fits under the ceiling escapes federal capital gains tax permanently.
How retirement income “stacks” the bracket — ordinary income goes first
This is the single concept that determines your answer, and it is where most do-it-yourself retirees go wrong. The tax code stacks ordinary income at the bottom of the bracket and piles long-term gains on top. Your gains do not get the 0% rate just because gains are “low-taxed” — they get 0% only on the portion that lands in the 0% band after your ordinary income has already filled the bottom.
For a retiree, the ordinary income filling that bottom layer is, in order:
- Pension and annuity income — fully ordinary, no preferential rate.
- Required minimum distributions (RMDs) from traditional IRAs and 401(k)s — ordinary income, mandatory at age 73 if you were born 1951–1959, or age 75 if born 1960 or later (SECURE 2.0 Act §107). At 73 the divisor is 26.5, roughly 3.77% of the prior year-end balance (IRS Pub. 590-B, Table III).
- The taxable portion of Social Security — up to 85% of benefits once your combined income climbs (IRC §86; thresholds below).
- Interest, non-qualified dividends, and ordinary short-term gains.
Only after all of that is your 0% headroom defined. The formula is simple:
0% gain headroom = $96,700 (MFJ ceiling) − your taxable ordinary income.
Qualified dividends, by the way, ride the same LTCG schedule — they stack with long-term gains on top of ordinary income, so a dividend-heavy retiree has less harvesting room than the headline ceiling suggests.
Worked example: a MFJ retiree fills the bracket to the dollar
Return to Margaret and Tom, but make it concrete with a couple who is already taking RMDs — the more common case. Meet Dolores and Frank Ramirez, both 74, MFJ, retired in Tampa, Florida (no state income tax). Their 2026 income:
- Combined RMDs from traditional IRAs: $38,000
- Social Security benefits: $46,000 gross (of which a portion is taxable)
- Interest and non-qualified dividends: $6,000
Their question: how much appreciated stock can they sell at 0% in 2026? Here is the stack.
| Step | Amount |
|---|---|
| RMDs (ordinary) | $38,000 |
| Interest & non-qualified dividends (ordinary) | $6,000 |
| Taxable Social Security (est. ~85% of $46,000) | $39,100 |
| Gross ordinary income | $83,100 |
| Less 2026 MFJ standard deduction | −$31,500 |
| Taxable ordinary income | $51,600 |
| 0% LTCG ceiling (MFJ) | $96,700 |
| 0% gain headroom | $45,100 |
| Federal tax on a $45,100 long-term gain | $0 |
| Florida state income tax | $0 (no state income tax) |
Dolores and Frank can realize $45,100 of long-term gain in 2026 at a 0% federal rate. If those shares had a $20,000 cost basis and a $65,100 market value, the entire $45,100 gain is harvested free, and they immediately rebuy — resetting their basis to $65,100. Next year, that block starts fresh, so future appreciation is measured from the higher number. Over a 10-year window, a couple in this position can move several hundred thousand dollars of embedded gain through the 0% bracket without ever writing a check to the IRS.
Notice how much the taxable Social Security ate into the room. Their RMDs and side income alone are only $44,000; it is the $39,100 of taxable Social Security that pushed their ordinary income to $51,600 and cut the headroom from a theoretical $80,000+ down to $45,100. That interaction is exactly where the strategy gets dangerous.
The cliff: what one dollar over $96,700 actually costs
People hear “cliff” and panic. For the gain itself, it is not a true cliff — it is a clean breakpoint. If Dolores and Frank realize $50,100 of gain instead of $45,100, they are $5,000 over the ceiling. Only that $5,000 excess is taxed at 15% = $750. The first $45,100 still rides at 0%. The gains schedule is marginal, not all-or-nothing.
The genuine cliffs are the collateral ones triggered by the higher income, and they punch above their weight:
- The Social Security tax torpedo (IRC §86). Capital gains raise your “combined income” (AGI + tax-exempt interest + half of Social Security). Once MFJ combined income passes $44,000, up to 85% of benefits is taxable. A large harvest can drag more of your benefit into tax, so a $10,000 gain can create $8,500 of extra taxable Social Security on top — an effective marginal rate far higher than the 15% sticker.
- The IRMAA Medicare surcharge cliff. IRMAA is a true cliff, not marginal. 2026 Part B + Part D surcharges kick in once MFJ MAGI exceeds $206,000 (based on your 2024 MAGI, two years back; CMS sets the tiers under SSA §1839(i)). Crossing it by $1 moves both spouses from the $185/month Part B base to the $259/month tier — an added $74/month for Part B plus a $13.70/month Part D surcharge, roughly $1,050/year of extra premiums per spouse. A gain harvest that nudges you over a tier costs far more than the 15% on the gain.
- The 3.8% Net Investment Income Tax (IRC §1411). NIIT applies on the lesser of net investment income or MAGI over $250,000 MFJ. Not a concern for most 0%-bracket retirees, but a large one-time harvest can breach it.
What most people miss: the standard deduction doubles your effective room
The most common mistake is reading “$96,700” as a gross-income limit. It is not. It is a taxable-income limit, measured after your standard deduction. That distinction is worth real money.
For a MFJ couple, the $31,500 standard deduction means your true gross-income capacity before gains start getting taxed is closer to $128,200. And there is a second age-related boost most retirees forget: each spouse 65 or older gets an additional standard deduction of $1,250 (MFJ) on top of the base (IRS Rev. Proc. 2025-32). For a couple where both are 65+ that is another $2,500 of room — pushing the practical gross ceiling to roughly $130,700.
The second thing people miss: qualified dividends are not free room. They are taxed on the LTCG schedule and stack right alongside your harvested gains. A retiree pulling $20,000 of qualified dividends from a taxable account has already consumed $20,000 of the 0% capital-gains band before selling a single share. Count dividends in your stacking math, not just RMDs and Social Security.
The third miss: the 0% rate has no wash-sale problem on gains. The wash-sale rule under IRC §1091 disallows losses when you rebuy within 30 days. It says nothing about gains. You can sell an appreciated fund and rebuy it the same afternoon, locking in the higher basis with zero waiting period. This is what makes annual gain-harvesting a repeatable machine rather than a one-time trick.
The window timing problem: your 60s are the golden years
The widest 0% headroom usually exists in the gap years — after you retire but before Social Security and RMDs start. In your early-to-mid 60s, if you have delayed Social Security to 70 and are not yet at RMD age, your ordinary income can be near zero. That means almost the entire $96,700 ceiling is open for harvesting.
Once RMDs begin at 73 or 75 and Social Security is flowing, ordinary income crowds the bracket and the headroom shrinks — exactly what happened to Dolores and Frank. The strategic implication: the years between retirement and your first RMD are the most valuable harvesting window you will ever have. A couple retiring at 62 who delays Social Security to 70 has roughly an 8-to-11-year runway to move low-basis assets through the 0% bracket while their ordinary income is suppressed. Those same years are also the prime window for partial Roth conversions — you have to choose which use of the bracket space is worth more in your situation.
Step-by-step: calculating your own 0% harvest for 2026
- Total your ordinary income: pension + RMDs + taxable Social Security + interest + non-qualified dividends + any earned income.
- Subtract your standard deduction ($31,500 MFJ / $15,750 single, plus the 65+ additional amount). The result is your taxable ordinary income.
- Subtract that from the ceiling ($96,700 MFJ / $48,350 single). That is your gross 0% headroom.
- Subtract any qualified dividends you will receive — they fill the LTCG band before your harvested gains.
- Stress-test the side effects: will the gain push more Social Security into tax (combined income over $44,000 MFJ)? Will your 2026 MAGI threaten the $206,000 MFJ IRMAA tier two years out? If yes, harvest less.
- Sell exactly that amount of long-term gain, then rebuy immediately to reset basis. Keep brokerage confirmations and a year-end tax projection in your file.
Single filers and surviving spouses: the ceiling is cut in half
The 0% ceiling for a single filer is $48,350 — exactly half the MFJ figure. This matters enormously for a surviving spouse. The year after a spouse dies, the survivor typically files MFJ once more (if eligible) but then drops to single-filer brackets, with the ceiling and standard deduction roughly halved while income often barely changes. A widow with the same RMDs and Social Security can find her 0% headroom evaporate entirely, pushing once-free gains into the 15% band and frequently triggering higher IRMAA. If one spouse is in poor health, front-loading gain harvesting while MFJ status and the $96,700 ceiling still apply is one of the highest-value moves available.
The decision lever
The number you act on is your 0% headroom = $96,700 (MFJ ceiling) minus your taxable ordinary income, adjusted down for qualified dividends and stress-tested against the Social Security and IRMAA thresholds. Run that calculation in the fourth quarter, after you know your RMDs and Social Security for the year but before December 31 — capital gains are realized on the trade date, so the harvest must settle inside the tax year. Sell exactly up to the headroom, rebuy to reset your basis, and repeat every year you have room. The lever is not whether gains are tax-free in retirement; they are, up to the ceiling. The lever is how precisely you fill the bracket to the dollar without tipping the income that triggers the Social Security torpedo or an IRMAA tier. Get that number right and you can move six figures of embedded gain through the 0% bracket over your retirement at a federal cost of zero.
Join the 2026 tax newsletter
Decision checklists + key 2026 federal/state numbers. Free, one click.
Frequently asked
Long-term capital gains are taxed at 0% federally as long as your total taxable income stays at or below $96,700 MFJ ($48,350 single) in 2026 under IRC §1(h). Your ordinary income (RMDs, pension, taxable Social Security) counts first; only the gain that fits under the ceiling is tax-free. Anything above is taxed at 15%.
For 2026 the 0% long-term capital gains bracket covers taxable income up to $48,350 single and $96,700 MFJ (IRC §1(h), IRS Rev. Proc. 2025-32). Because the standard deduction is $15,750 single / $31,500 MFJ, a married couple can have roughly $128,200 of gross income and still keep gains in the 0% band if structured carefully.
Yes. RMDs (required at 73 if born 1951-1959, age 75 if born 1960+ under SECURE 2.0 §107) are ordinary income that stacks at the bottom of the bracket. Up to 85% of Social Security is taxable once MFJ combined income tops $44,000. Both fill the bracket before gains, shrinking your 0% headroom dollar for dollar.
Subtract your ordinary taxable income from the $96,700 MFJ ceiling ($48,350 single). A couple with $60,000 of taxable ordinary income has $36,700 of 0% headroom, so they can realize $36,700 of long-term gain at a 0% federal rate. The gain itself counts as taxable income, so it fills the remaining room exactly to the ceiling.
It is not a full cliff for the gains themselves — only the gain dollars above $96,700 MFJ are taxed at 15% (IRC §1(h)). A couple $5,000 over pays 15% on $5,000 = $750. The real danger is the side effects: the extra income can make more Social Security taxable and can push 2026 MAGI past the $206,000 MFJ IRMAA tier.
It can. Capital gains raise your provisional (combined) income, and once MFJ combined income passes $44,000, up to 85% of Social Security becomes taxable (IRC §86). Harvesting a large gain can pull more of your benefit into tax — the 'tax torpedo' — even while the gain itself sits in the 0% bracket.
Yes. Selling appreciated shares in the 0% bracket and immediately rebuying resets your basis to the new higher price at no federal tax cost — there is no wash-sale rule on gains (IRC §1091 applies only to losses). Next year's gain is measured from the stepped-up basis, locking in tax-free appreciation each year you have 0% headroom.
Related guides
Retirement Income Planning Services
The 0% gain-harvesting decision is one piece of a full retirement-income withdrawal sequence. See how RMD timing, Roth conversions, and bracket-filling fit together across the decade between retirement and your first RMD.
Learn Hub
Browse our decision-stage tax and retirement guides, including the capital-gains and Social Security clusters that surround this 0%-bracket strategy.
Gradual Stock Sale in the 0% Capital Gains Bracket: Harvesting Each Year
The accumulation-phase sibling to this page: how a worker or early retiree with a concentrated position sells a slice each year inside the 0% bracket to unwind it without tax. This page is the retiree income-stacking version.
When to Take Social Security: 62, 67, or 70
Delaying Social Security to 70 not only grows your benefit 8% per year but also leaves a wider 0%-gains window in your 60s before benefits and RMDs crowd the bracket. The claiming decision directly sets your harvesting runway.
The Social Security 85% Tax Trap at $44K Combined Income
Why gain-harvesting can backfire: realized gains raise combined income and can push up to 85% of your Social Security into taxable territory. Read this before you harvest a large gain in a year you collect benefits.
Join the Life Money USA newsletter
Decision checklists, 2026 federal + state numbers, and our glossary. One click, free.
Join the newsletter