The 0% Capital Gains Bracket: How Some Retirees Sell Stock and Owe Nothing Federally
Most retirees assume selling appreciated stock means owing the IRS, but a little-known federal rate changes the math entirely for people with the right income picture. Whether you qualify comes down to a stacking order that trips up even careful…
This post may contain links from our sponsors and affiliates, and Flywheel Publishing may receive compensation for actions taken through them.
Picture a retired couple in their late 60s with a brokerage account full of stock they bought decades ago who need cash for a new roof and figure selling means writing a check to the IRS. For many retired people, the federal tax on that sale comes to zero.
That’s because of a rate most investors never see on their own return: 0%. It’s the lowest federal rate on long-term capital gains, and retired people with modest taxable income are best placed to use it. Below is how it works, who qualifies and the fine print that can wipe out the benefit.
How a 0% Rate on Stock Gains Works
A capital gain is your profit on a sale: the price you get minus your cost basis, which is usually what you paid. If you held the stock one year or less, the gain is short-term and taxed like wages, but if you held it more than a year, it’s a long-term gain and qualifies for lower rates.
The rule sits in 26 U.S.C. § 1(h)(1)(B), which taxes long-term gains at 0% as long as they fit under a taxable-income ceiling. Taxable income is what’s left after deductions. In tax year 2026, the standard deduction is $32,200 for joint returns and $16,100 for single taxpayers.
The key is combining. Ordinary income such as pensions, IRA withdrawals, interest and taxable Social Security fills the bottom of the stack first. Long-term gains go on top. Any part of the gain that lands under the 0% limit is tax-free (0% capital gain). Anything above it is taxed at 15% under § 1(h)(1)(C).
The IRS raises the limit for inflation every year and sets separate amounts for single, joint and head-of-household taxpayers. For 2026, 0% capital gain tax 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. Married individuals filing separately have a $49,450 threshold. Any portion of taxable income that exceeds the applicable 0% threshold may be taxed at 15%, subject to the higher 20% capital gains rate threshold.
Who Gets the Most From the 0% Bracket
Retired people in low-income years get the most out of it. The gap between your last paycheck and the start of Social Security, a pension or required retirement withdrawals (RMDs, the withdrawals the law forces from traditional IRAs and 401(k)s) can leave taxable income unusually low. Couples living on cash savings or Roth money have the most room under the limit (that same quiet window is also when Roth conversions are cheapest, which we sized up in a free guide here).
Plenty of older households own the stock to do this. Households headed by people ages 55 to 69 hold 39.3% of U.S. household stock and mutual fund shares held outside workplace retirement plans. Those 70 and older hold 40.5%, according to Federal Reserve data for 2026 Q2. Only taxable brokerage accounts qualify, though. Money pulled from a tax-deferred retirement account is ordinary income no matter what the investments inside it earned.
Older taxpayers can also use the senior deduction added by the One, Big, Beautiful Bill. It lowers taxable income and leaves more room for gains.
Gain Harvesting: Reset Your Cost Basis for Free
Gain harvesting means selling appreciated shares on purpose in a 0% year and buying them right back. You end up holding the same investment. Your cost basis resets to the higher price, so the taxable gain is smaller when you sell later.
The wash-sale rule covers losses only. 26 U.S.C. § 1091(a) blocks a loss deduction when you buy substantially identical stock within 30 days before or after the sale. Gains aren’t covered, so you can buy back right away.
Four Traps That Can Turn a Tax-Free Sale Into a Bill
More of Your Social Security Becomes Taxable
Capital gains count in the IRS test for taxing Social Security. One-half of your benefits is added to all your other income, and the total is compared with a base amount. In 2025, it was $25,000 for single taxpayers and $32,000 for joint taxpayers. Go past it and up to 85% of benefits can become taxable, according to IRS Publication 915. The newly taxable benefits count as ordinary income, which can push part of your gain over the 0% line.
Medicare Premiums Jump at IRMAA Cliffs
IRMAA is an income-based surcharge that higher-income Medicare participants pay on top of their premiums. It’s based on the tax return you filed two years earlier. The standard Part B premium in 2026 is $202.90 a month. Single taxpayers above $109,000 and couples filing jointly above $218,000 pay at least $284.10, plus a Part D surcharge that starts at $14.50. These are cliffs: going one dollar over a level raises the premium for the whole year.
Your State May Still Tax the Gain
The 0% rate is federal only. Most states with an income tax treat capital gains as ordinary income. States with no broad income tax, such as Florida and Texas, skip this problem. Washington, which doesn’t tax wages, has its own tax on certain large capital gains so speaking with a CPA in your home state is helpful.
Selling Too Much Spills Into the 15% Rate
Go past the limit and the extra gain is taxed at 15%. Just the amount above the line pays that rate. The rest of the gain stays at 0%.
Run the Numbers Before the Year Ends
The 0% bracket takes some planning. It works best when your ordinary income is low. You also need to know how a sale will affect your Social Security taxes, your Medicare premiums and your state return. Run a projection in tax software (if available) before December 31, and size your sale to stay under the limit and below the IRMAA level. A CPA or fiduciary tax advisor can check the math before you place the trade.
Contact [email protected] for any questions or corrections.







