A retiree can sell investments that have grown substantially and still owe nothing in federal capital gains tax. Many people assume every profitable stock sale creates a tax bill, but the federal tax code includes a 0% capital gains bracket that can make some investment profits tax-free.
The opportunity comes with conditions. Selling investments at the wrong time can increase taxes on Social Security benefits or even affect future Medicare premiums.
Understanding how the 0% bracket works can help retirees make smarter decisions about selling stocks, raising cash, and managing retirement income.
The 0% Capital Gains Bracket Is Real, and the 2026 Limits May Surprise You

The IRS taxes most long-term investment profits at three federal rates: 0%, 15%, and 20%. The rate depends largely on taxable income and filing status, not simply on how much money someone has invested.
For the 2026 tax year, a married couple filing jointly can have taxable income of up to $98,900 and still qualify for the 0% rate on eligible long-term capital gains. Single filers have a lower threshold of $49,450, while heads of household have a threshold of $66,200.
2026 Federal Long-Term Capital Gains Tax Brackets
| Filing Status | 0% Rate Applies Through | 15% Rate Applies Through |
|---|---|---|
| Single | $49,450 | $545,500 |
| Married filing jointly | $98,900 | $613,700 |
| Head of household | $66,200 | $579,600 |
| Married filing separately | $49,450 | $306,850 |
Source: IRS Revenue Procedure 2025-32. Thresholds apply to taxable income for tax year 2026, generally reported on returns filed in 2027.
These figures do not mean every married couple can sell $98,900 of stock profits without paying taxes. Other taxable income uses part of the bracket, leaving less room for gains taxed at 0%.
The important distinction is that the 0% bracket applies to qualifying gains within the income limit. When income exceeds that limit, only the portion of eligible gains above the threshold generally moves into the 15% bracket.
The IRS Taxes Investment Profits, Not the Entire Amount You Withdraw

One of the biggest misunderstandings about capital gains involves the difference between selling investments and earning profits. A retiree might sell $100,000 worth of stock without having $100,000 of taxable capital gains.
Consider a hypothetical investor who originally purchased shares for $70,000 and later sold them for $100,000. Assuming there are no additional basis adjustments or selling costs, the investment profit is $30,000.
The original $70,000 represents the investor’s cost basis, which is generally not taxed again when the shares are sold. Only the $30,000 gain enters the capital gains calculation.
This distinction matters because retirees sometimes sell large investment positions to fund living expenses. The amount reaching their bank account may be much higher than the amount counted as a taxable gain.
However, investment profits must meet the required holding period to qualify for favorable long-term capital gains rates. Most investments must be held for more than one year before being sold to qualify.
Why Ordinary Retirement Income Gets Counted First

Capital gains do not receive their own separate income allowance. The IRS generally stacks eligible long-term capital gains on top of taxable ordinary income when determining which capital gains rate applies.
Ordinary income can include taxable pension payments, traditional IRA withdrawals, interest, and the taxable portion of Social Security benefits. These amounts can occupy part or all of the income space available below the 0% capital gains ceiling.
Suppose a retired married couple has $60,000 in taxable ordinary income after applicable deductions. For 2026, their remaining room in the 0% capital gains bracket would be $38,900.
If they realize $30,000 of eligible long-term gains, their total taxable income becomes $90,000. Because that amount remains below the $98,900 ceiling, all $30,000 of those gains can receive the 0% federal rate.
The couple may still owe ordinary income tax on their other taxable income. The favorable result applies specifically to their qualifying capital gains.
How Different Retirement Income Levels Affect Capital Gains Taxes
The following hypothetical examples illustrate how the brackets work. Ordinary taxable income is assumed to have already been calculated after deductions and any taxable Social Security adjustments, with no other gains, qualified dividends, or special-rate items.
| Scenario | Long-Term Gains | Federal Tax on Gains |
|---|---|---|
| Single, $30,000 ordinary taxable income | $10,000 | $0 |
| Single, $30,000 ordinary taxable income | $25,000 | $832.50 |
| Joint filers, $55,000 ordinary taxable income | $40,000 | $0 |
| Joint filers, $55,000 ordinary taxable income | $50,000 | $915 |
In the second example, the single retiree has $19,450 of room remaining in the 0% bracket. The remaining $5,550 of gains falls into the 15% bracket, creating $832.50 in federal capital gains tax.
These simplified calculations demonstrate why two retirees selling investments with similar profits may receive very different tax bills. Their other income can make the difference between paying nothing and paying hundreds or thousands of dollars.
Retirement Deductions Can Create Additional Room for Tax-Free Gains

Another important factor is that capital gains brackets are based on taxable income rather than adjusted gross income. Taxable income is generally calculated after subtracting applicable deductions.
For 2026, the basic standard deduction is $16,100 for single filers and $32,200 for married couples filing jointly. Eligible taxpayers age 65 or older can receive an additional standard deduction of $2,050 for unmarried filers or $1,650 per qualifying married spouse.
A temporary enhanced deduction also applies to eligible taxpayers age 65 and older for tax years 2025 through 2028. It can provide an additional $6,000 per qualifying individual, although income limitations and other eligibility requirements apply.
How 2026 Deductions Can Help Retirees
| Filing Situation | Standard Deduction, Including Age Adjustment | Potential Enhanced Senior Deduction |
|---|---|---|
| Single, under 65 | $16,100 | $0 |
| Single, 65 or older | $18,150 | Up to $6,000 |
| Married filing jointly, one spouse 65+ | $33,850 | Up to $6,000 |
| Married filing jointly, both spouses 65+ | $35,500 | Up to $12,000 |
Assumes neither spouse is blind, the standard deduction is claimed, and other eligibility rules are met. Enhanced senior deductions begin to phase out above $75,000 in modified adjusted gross income for single filers and $150,000 for joint filers.
For an eligible married couple with both spouses at least 65, the combined potential deduction can reach $47,500 in 2026. That includes the basic standard deduction, the age-related additions, and the enhanced deduction.
These deductions can reduce taxable income and create more space for gains taxed at 0%. However, realizing additional gains can increase modified adjusted gross income and reduce the enhanced senior deduction once its phaseout begins.
The practical lesson is that deductions help determine how much of an investment profit may receive favorable treatment. Retirees should calculate their actual eligible deductions rather than assuming they qualify for the maximum.
Some Retirees Have a Valuable Window Before Social Security and Required Withdrawals

The years immediately after leaving work can create an unusual tax-planning opportunity. A retiree may no longer receive wages but might not yet collect Social Security or be required to withdraw money from traditional retirement accounts.
During this period, taxable ordinary income can be considerably lower than it was during working years. Lower ordinary income may leave more space for selling appreciated investments at the 0% capital gains rate.
For example, imagine a hypothetical couple who retires at 63 and pays living expenses partly from existing cash reserves. With no employment income and relatively modest taxable retirement withdrawals, they may have room to realize long-term investment gains at little or no federal capital gains tax.
Several years later, Social Security benefits and required minimum distributions could increase their taxable income. Those additional income sources may reduce or eliminate their remaining 0% capital gains capacity.
This does not mean retirees should automatically delay Social Security or withdraw less from retirement accounts. Those decisions depend on longevity expectations, spending needs, investment risk, tax rates, and other household circumstances.
The opportunity is simply worth evaluating before income patterns change. A low-income retirement year may offer tax choices that become less attractive later.
Capital Gains Can Make More of Your Social Security Taxable

The 0% capital gains bracket contains a complication that many retirees do not expect. A gain can qualify for the 0% federal capital gains rate while still increasing the amount of Social Security benefits subject to ordinary income tax.
The IRS uses a measure commonly called combined or provisional income to determine whether Social Security benefits become taxable. It generally includes adjusted gross income, tax-exempt interest, and one-half of annual Social Security benefits.
For single filers, the first major threshold is $25,000, with another at $34,000. For married couples filing jointly, the corresponding thresholds are $32,000 and $44,000.
Once the relevant income limits are crossed, a portion of Social Security benefits may become taxable. At higher combined-income levels, up to 85% of benefits can be included in taxable income.
That does not mean Social Security benefits face an 85% tax rate. It means as much as 85% of the benefit amount may become subject to regular income tax.
Consider a hypothetical married couple receiving $40,000 in annual Social Security benefits. Half of those benefits, or $20,000, enters the initial combined-income calculation.
If they also have $15,000 of other income, their combined income starts at $35,000. Realizing another $20,000 of capital gains can raise that figure to $55,000.
The additional gains may make a greater portion of their Social Security benefits taxable. Even if the investment profits receive a 0% capital gains rate, the couple could still pay more federal income tax because of the change in Social Security taxation.
This is why the tax consequences of a profitable sale should be measured across the entire return. Looking only at the capital gains rate can produce an incomplete estimate.
A 0% Capital Gains Sale Can Still Affect Medicare Premiums
Medicare premiums introduce another potential cost. Some Medicare beneficiaries pay income-related monthly adjustment amounts, commonly called IRMAA, on top of their usual Part B and Part D premiums.
These adjustments are generally based on modified adjusted gross income from tax returns filed about two years earlier. Capital gains are included in that calculation, even when they qualify for the 0% federal capital gains rate.
For 2026 Medicare premiums, the first IRMAA threshold is above $109,000 for most individual filers and above $218,000 for joint filers. These thresholds are based generally on income reported for tax year 2024.
A capital gain realized during 2026 could therefore influence Medicare premiums in 2028 under the normal two-year lookback. The actual 2028 IRMAA thresholds and premium amounts must be checked once they become available.
The difference between capital gains brackets and Medicare calculations is important. Capital gains tax is generally calculated using taxable income, while Medicare IRMAA uses a version of modified adjusted gross income.
A retiree may reduce taxable income through deductions without receiving the same reduction in Medicare’s income calculation. This makes it possible for a sale to receive favorable capital gains treatment while still affecting future premiums.
Not every retiree faces this problem. Households whose income remains below the applicable IRMAA thresholds will generally avoid the additional premiums, but larger investment sales deserve closer review.
The Strategy Some Retirees Use Is Called Tax-Gain Harvesting

Tax-gain harvesting involves intentionally selling appreciated investments during a year when the resulting profits may be taxed at a favorable rate. The goal is often to recognize gains while federal capital gains taxes are low, rather than waiting until a future year with higher income.
Consider a hypothetical retiree who bought shares for $30,000 and now holds investments worth $55,000. The position has an unrealized gain of $25,000.
If the retiree has enough available room in the 0% bracket, selling the shares could produce no federal long-term capital gains tax on that profit. The investor could then choose to reinvest the proceeds, assuming the investment still fits the portfolio.
If the investor repurchases the shares for $55,000, the new purchase generally establishes a cost basis of $55,000. This can reduce the taxable gain associated with a later sale compared with continuing to hold shares with the original $30,000 basis.
Tax-gain harvesting differs from tax-loss harvesting. The wash-sale rule that can disallow losses on repurchased investments generally does not apply when an investor sells for a gain and buys the same investment again.
However, selling and repurchasing investments can create transaction costs, temporary market exposure changes, and other consequences. The gain must also be considered in Social Security, Medicare, state tax, and deduction calculations.
Tax-gain harvesting is most useful when it serves a broader portfolio or tax plan. Realizing gains merely because the federal rate appears to be zero is not always worthwhile.
Not Every Investment Profit Qualifies for the 0% Rate
The phrase capital gains can cover several types of investment profits, but the favorable federal rates do not apply equally to all of them. Retirees should identify what they are selling before assuming the transaction qualifies.
Short-Term Gains Are Treated Differently
Profits from most investments held for one year or less are short-term capital gains. These gains are generally taxed at ordinary income tax rates rather than the favorable long-term capital gains rates.
A retiree who sells stock after holding it for 10 months may face a different federal tax result than someone who sells the same investment after holding it for more than one year. The holding period is therefore an important part of deciding when to sell.
Qualified Dividends Share the Favorable Brackets
Certain stock dividends also qualify for the 0%, 15%, or 20% federal rates. These are called qualified dividends, and they must meet specific IRS requirements.
Qualified dividends and eligible long-term gains generally share the same preferential rate bands. A retiree receiving substantial qualified dividends may have less remaining space for additional gains at 0%.
Collectibles and Some Property Gains Have Special Rules
Gains from collectibles, including certain art and coins, may face a maximum federal tax rate of 28%. Certain gains related to depreciation on real estate can face a maximum rate of 25%.
These special categories require separate calculations. Investors should not assume that every asset held for more than a year automatically receives the standard 0% long-term capital gains rate.
Selling Investments Inside an IRA Is Not the Same Thing

The account holding an investment can change its tax treatment just as much as the investment itself. Stocks held in a taxable brokerage account are generally treated differently from stocks held inside a traditional IRA or Roth IRA.
Selling appreciated shares inside a traditional IRA generally does not create an immediately taxable capital gain. Instead, withdrawals from the account are usually subject to ordinary income tax, except to the extent they represent nontaxable amounts.
A qualified Roth IRA distribution, by contrast, is generally free from federal income tax. The special 0% capital gains bracket is not what creates that result.
This distinction matters for retirees who hold similar investments across several account types. Choosing which account to draw from can influence taxes, future required distributions, and the amount of taxable income remaining in a given year.
Selling Your Main Home Follows a Different Tax Rule

Home sales can also produce capital gains, but the IRS provides a separate exclusion for eligible homeowners. This exclusion can make a substantial portion of the profit on a primary residence tax-free.
Generally, qualifying single homeowners may exclude up to $250,000 of gain. Married couples filing jointly may qualify to exclude up to $500,000 when the relevant requirements are met.
The rules usually require meeting ownership and residence tests involving at least two years during the five-year period before the sale. Additional restrictions and exceptions can apply, including situations involving rental or business use.
A retiree selling a longtime family home should examine the primary residence exclusion before applying ordinary capital gains calculations. The exclusion and the 0% capital gains bracket are different provisions, and their benefits should not be confused.
Five Capital Gains Myths That Can Cost Retirees Money
The favorable tax treatment of long-term gains creates several misunderstandings. These beliefs can affect decisions about selling investments, taking withdrawals, and estimating retirement taxes.
| Common Belief | Reality | Better Approach |
|---|---|---|
| Every profitable stock sale creates a tax bill | Eligible gains can receive a 0% federal rate | Calculate taxable income first |
| The full stock sale amount is taxable | Generally, only the gain is taxable | Check adjusted cost basis |
| Being retired automatically qualifies someone | Age alone does not determine the rate | Review income and filing status |
| A 0% federal rate means no other consequences | State taxes and benefit-related costs may apply | Check the full financial impact |
| All investments held for a year qualify | Most assets require more than one year, and exceptions exist | Confirm holding period and asset type |
The most costly mistake may be assuming that a 0% federal capital gains tax rate means the transaction has no financial consequences. A sale can affect other tax calculations, even when the gains themselves are not taxed federally.
A second mistake is failing to consider what might happen in future years. Selling investments at a low tax rate today can be useful, but the decision should also fit the retiree’s income needs and long-term investment plan.
