When Can You Pay 0% Capital Gains Tax on Investments?

By Max Novak, MBA, CFP®  ·  November 2026

You can pay 0% federal tax on long-term capital gains when your total taxable income, including those gains, stays at or below a set threshold. For 2026, that's $98,900 for married couples filing jointly and $49,450 for single filers.

That makes a taxable brokerage account more flexible than many people realize. In a lower-income year, such as the first years of retirement, you may be able to sell appreciated investments and owe no federal capital gains tax. Deliberately realizing gains in a favorable year is often called tax-gain harvesting.


When do long-term capital gains qualify for the 0% rate?

When you sell an investment, only the gain is taxed, not the full sale proceeds. The gain is what you receive minus your adjusted cost basis, which is generally what you paid plus reinvested dividends and certain adjustments. Gains on stocks, ETFs, and mutual funds held more than one year in a taxable account are long-term and qualify for the lower capital gains rates (IRS Topic 409). Selling investments inside an IRA or 401(k) doesn't create a capital gains tax bill. The 0% capital gains bracket applies to investments held in taxable accounts.

2026 filing status 0% rate applies to taxable income up to
Married filing jointly$98,900
Head of household$66,200
Single$49,450
Married filing separately$49,450

Source: IRS Revenue Procedure 2025-32.

These are thresholds for your total taxable income, not separate allowances for gains. Taxable income is income after deductions, which is different from adjusted gross income (AGI). Ordinary income, such as wages, interest, pensions, and IRA withdrawals, fills the lower portion first. Qualified dividends and long-term gains then stack on top and use whatever 0% room remains.

Going over the threshold doesn't make all your gains taxable. Only the portion above the available 0% room is taxed at the next rate, generally 15%.

How much could a married couple realize at 0%?

Both hypothetical couples are under 65, married filing jointly in 2026, and take the standard deduction. Assume no qualified dividends, existing gains or losses, or other adjustments.

Calculation for 2026Couple with $40,000 of other incomeCouple with no other income
0% long-term capital gains taxable-income ceiling$98,900$98,900
Add: standard deduction+$32,200+$32,200
Total income before deductions that fits within this example$131,100$131,100
Subtract: other income−$40,000$0
Additional long-term gains available at 0% federally$91,100$131,100

Start with the 0% taxable-income ceiling, add your deduction, and subtract your other income. In these simplified examples, that leaves the amount of additional long-term gains each couple could realize without federal capital gains tax. Qualified dividends, existing gains and losses, and other tax adjustments can change the calculation. Ordinary income may still be subject to federal income tax.

Here's how the first couple could create that gain:

Investment saleAmount
Sale proceeds$150,000
Adjusted cost basis$58,900
Long-term capital gain$91,100
Federal capital gains tax in this example$0

Only the $91,100 gain is included in income, not the full $150,000 of sale proceeds. State taxes and effects on benefits such as ACA premium assistance still need to be considered.

When can realizing gains help your retirement plan?

Some investors hold appreciated investments to avoid a capital gains tax bill, without realizing that some or all of those gains could qualify for a 0% federal rate. A low-income year can change that math. We use this strategy with clients to:

  • Diversify concentrated positions in individual stocks with large embedded gains.
  • Move from higher-cost or tax-inefficient mutual funds into investments that better fit their plan.
  • Rebalance toward their target allocation.
  • Fund retirement spending while coordinating taxes and, before Medicare, ACA premium assistance.

Other costs and planning considerations

While the federal capital gains rate can be 0%, there are other potential costs and planning considerations to be aware of.

  • State income taxes. Your state may tax capital gains even when the federal rate is 0%. State tax treatment varies.
  • ACA premium assistance. Gains count toward the modified adjusted gross income (MAGI) used for Marketplace premium tax credits, even when taxed at 0% federally. That can reduce or eliminate assistance.
  • Social Security and Medicare. Gains can increase how much of your Social Security is taxable (IRS Publication 915). They can also raise future Medicare premiums, which are based on income from two years earlier (SSA).
  • Roth conversions. Conversions compete for the same income room, so the two decisions should be weighed together.
  • Capital-loss carryforwards. Existing losses offset gains first, so realized gains don't always use your 0% room the way you'd expect.

The goal is to compare the total planning consequences, not to fill the bracket automatically.

What should you review before selling?

Start with a year-end tax projection. Confirm each holding has been held more than one year, check its adjusted basis, and add up your other income, including qualified dividends. Mutual funds often pay capital gain distributions in December, and those use the same room.

We begin reviewing these opportunities during the year and finalize amounts near year-end, when the full-year picture is clearer and there's still time to trade. Above all, the sale should serve your investment goals: diversification, cost, and the right allocation for your plan.


Thinking about selling appreciated investments?

We'd be glad to help you coordinate investment and retirement tax decisions. Book a free 30-minute intro call.

Book a free intro call

This article is for general educational purposes only and is not personalized financial, tax, legal, or investment advice. The example is hypothetical and simplified, and it does not represent an actual client or outcome. Figures reflect 2026 federal tax rules and may change. Consult a tax professional about your situation. Advisory services are offered through Core Planning LLC, a Registered Investment Advisor. For additional disclosures, please visit corepln.com/disclosures.

Next
Next

2027 Retirement Contribution Limits: 401(k), IRA, HSA & Catch-Up Contributions