Many retirees think selling appreciated stock will automatically trigger a tax bill, but for people with the right income mix, a little-known federal rate can change the outcome completely. The answer depends on a stacking order that can catch even careful taxpayers off guard.
Imagine a retired couple in their late 60s who own a brokerage account filled with shares bought years ago and need money for a new roof. They may assume a sale means sending a check to the IRS, yet for many retirees, the federal tax on that gain is actually zero.
That is because of the 0% federal rate, the lowest rate on long-term capital gains. Retirees with modest taxable income are often in the best position to benefit from it. Here is how the rule works, who can use it and the details that can eliminate the advantage.
How the 0% Stock-Gain Rate Works
A capital gain is the profit from a sale: the amount received minus the cost basis, usually what was originally paid. If the stock was held for one year or less, the profit is short-term and taxed like wages. If it was held longer than a year, it becomes a long-term gain and qualifies for lower rates.
The rule appears in 26 U.S.C. § 1(h)(1)(B), which taxes long-term gains at 0% as long as they remain under a taxable-income limit. Taxable income is what is left after deductions. In tax year 2026, the standard deduction is $32,200 for joint filers and $16,100 for single taxpayers.
The order matters. Ordinary income such as pensions, IRA withdrawals, interest and taxable Social Security is stacked first. Long-term gains are added on top. Any portion of the gain that fits under the 0% ceiling is tax-free. Any amount above that threshold is taxed at 15% under § 1(h)(1)(C).
The IRS adjusts the threshold for inflation each year and sets different limits for single, joint and head-of-household filers. For 2026, the 0% capital gains rate applies to taxable income up to $49,450 for single filers, $98,900 for married couples filing jointly and $66,200 for head-of-household filers. Married taxpayers filing separately have a $49,450 limit. Income above the 0% cutoff may be taxed at 15%, before reaching the higher 20% capital gains bracket.
Who Benefits Most From the 0% Bracket
Retirees in lower-income years tend to gain the most. The period between a last paycheck and the start of Social Security, a pension or required minimum distributions can leave taxable income unusually low. Couples relying on cash savings or Roth accounts often have the most space under the limit, and that same window can also be a low-cost time for Roth conversions.
Many older households hold enough stock to make this strategy useful. Federal Reserve data for 2026 Q2 show that households headed by people ages 55 to 69 hold 39.3% of U.S. household stock and mutual fund shares outside workplace retirement plans, while those age 70 and older hold 40.5%. However, only taxable brokerage accounts qualify. Money withdrawn from a tax-deferred retirement account is taxed as ordinary income regardless of how the investments performed inside it.
Older taxpayers may also benefit from the senior deduction created by the One, Big, Beautiful Bill, which reduces taxable income and can leave more room for capital gains.
Gain Harvesting: Resetting Cost Basis
Gain harvesting means intentionally selling appreciated shares during a year when the 0% rate applies and then buying them back. The investor ends up holding the same asset, but the cost basis resets to the higher purchase price, which can reduce the taxable gain later.
The wash-sale rule applies only to losses. Under 26 U.S.C. § 1091(a), a loss deduction is denied if substantially identical stock is bought within 30 days before or after the sale. Gains are not covered, so a buyer can repurchase immediately.
Four Ways a Tax-Free Sale Can Still Create a Bill
More Social Security May Become Taxable
Capital gains are included in the IRS formula for taxing Social Security. Half of your benefits is added to other income, and the total is compared with a base amount. In 2025, that base amount was $25,000 for single taxpayers and $32,000 for joint taxpayers. Once income exceeds the threshold, as much as 85% of benefits can become taxable under IRS Publication 915. Those newly taxable benefits count as ordinary income, which can push part of the gain above the 0% level.
Medicare Premiums Can Rise at IRMAA Thresholds
IRMAA is an income-based surcharge that higher-income Medicare beneficiaries pay on top of their premiums. It is based on the tax return filed two years earlier. The standard Part B premium in 2026 is $202.90 a month. Single taxpayers above $109,000 and married couples filing jointly above $218,000 pay at least $284.10, plus a Part D surcharge that starts at $14.50. These are cliffs, meaning crossing a threshold by even one dollar raises the premium for the entire year.
State Taxes May Still Apply
The 0% rate is federal only. Most states with an income tax treat capital gains as ordinary income. States without a broad income tax, such as Florida and Texas, avoid that issue. Washington does not tax wages, but it imposes its own tax on certain large capital gains, so checking with a CPA in your home state is wise.
Too Large a Sale Can Spill Into the 15% Bracket
If the gain goes beyond the limit, the excess is taxed at 15%. Only the amount above the line is hit at that rate; the rest remains taxed at 0%.
Check the Math Before Year-End
The 0% bracket requires planning. It works best when ordinary income is low, and you also need to consider the impact on Social Security taxation, Medicare premiums and state taxes. Before December 31, run a projection in tax software if available, and size the sale so it stays under the income limit and below any IRMAA threshold. A CPA or fiduciary tax advisor can verify the numbers before you trade.
More from Digilifetrends
Primerica Household Budget Index Shows Slight Drop in Middle-Income Purchasing Power as Fuel Costs Climb
The latest Primerica Household Budget Index™ (HBI™), which measures how inflation and wage trends affect middle-income families' ability to pay for everyday necessities, was…
1 min read · Updated 2026-10-29Planning Ahead for Holiday Spending
SIOUX FALLS, S.D. (KELO) - U.S. household spending often climbs during certain stretches of the year, and the holidays are one of them. Even though the season is still a little…
2 min read · Updated 2026-10-29How seniors can plan for the cost of aging
Why a home equity loan can serve as a source of extra cash when you need it. As the weather cools and the leaves begin to fall, that roof repair you meant to tackle over the…
1 min read · Updated 2026-10-29