Search
CoursesStock researchPaper tradingNews
HomeAbout
A desk with a laptop, a calculator and a notebook with a pen

Photo: Unknown author (Unsplash) / Wikimedia Commons (public domain)

0% Capital Gains Tax (2027): How Much Stock You Can Sell Without Paying Federal Tax

Quick answer
  • Long-term gains (assets held more than 1 year) are taxed at 0% while your total taxable income stays at or below $51,050 (single), $102,100 (married filing jointly) or $68,350 (head of household) in 2027.
  • Gains stack on top of your other income. Your 0% room is the threshold minus your other taxable income.
  • With no other income, a single filer can realize about $67,650 of gains federal-tax-free, and a married couple about $135,300, thanks to the standard deduction.
  • Anything above the threshold is taxed at 15%, not all of it.

How the 0% capital gains rate works

When you sell an investment you've held for more than one year at a profit, the gain is a long-term capital gain. It's taxed at 0%, 15% or 20%, depending on your total taxable income, not on the size of the gain.

The 2027 thresholds:

Filing status 0% rate on taxable income up to 2026 limit, for comparison
Single $51,050 $49,450
Married filing jointly $102,100 $98,900
Head of household $68,350 —

Above those amounts, gains are taxed at 15%, and at 20% only for very high incomes (above $563,200 single and $633,600 married filing jointly in 2027). These are taxable income limits, after the standard deduction ($16,600 single, $33,200 married filing jointly in 2027). Qualified dividends use the same rates.

The key idea: gains stack on top

Your ordinary income (wages, interest, IRA withdrawals, pensions, most of your Social Security) fills the brackets first. Long-term gains sit on top. Whatever room is left below the 0% threshold can be filled with gains at 0%.

0% room = 0% threshold − your other taxable income

How much can you sell at 0%? Examples for 2027

Situation Other taxable income Gains at 0%
Single, no other income $0 (with $16,600 of unused deduction) $67,650
Single, $40,000 salary $23,400 $27,650
Single, $60,000 salary, $10,000 to a traditional 401(k) $33,400 $17,650
Married, $90,000 wages $56,800 $45,300
Married, retired early, $20,000 of interest $0 (with $13,200 of unused deduction) $115,300
Married, $150,000 wages $116,800 $0 (all gains at 15%)

Two takeaways:

What happens if you go over

Only the part above the threshold is taxed at 15%. A single filer with a $40,000 salary who sells a $40,000 long-term gain in 2027 pays:

That's an effective rate of about 4.6% on the gain. Crossing the line doesn't wipe out the benefit.

Tax-gain harvesting

If you're in the 0% zone this year, you can sell and immediately buy back the same investment:

This works best in low-income years: early retirement, a sabbatical, a layoff year or a year of big deductions. You need a taxable brokerage account; gains inside a 401(k), IRA or Roth IRA aren't taxed this way at all.

Traps to watch

Why this matters for early retirees

Early retirees who live off a taxable account often pay no federal tax on years of spending, because most of each sale is their original money and only the gain counts as income. It's a common way to cover the 5-year bridge before a Roth Conversion Ladder starts paying out.

The bottom line

In 2027, long-term gains are taxed at 0% up to $51,050 of taxable income for singles and $102,100 for married couples. Subtract your other taxable income to find your room, use it in low-income years, and consider tax-gain harvesting to reset your basis for free. For the full picture of how gains are taxed, see Capital Gains Tax Explained.

Figures: 2027 IRS thresholds and standard deduction, federal tax only, USD. State taxes vary.

Elizabeta’s take

The 0% capital gains bracket is one of the most underused breaks in the tax code, mostly because people assume it's only for people with almost no income. A married couple can have six figures of total income and still pay nothing on their gains. If you're in a lower-income year, I'd check your number before December 31. Selling and buying right back to reset your cost basis costs you nothing and can save real tax later.

— , founder of RiskStock

Frequently asked questions

What is the 0% capital gains bracket for 2027?

Long-term capital gains and qualified dividends are taxed at 0% on the part of your taxable income at or below $51,050 for single filers, $102,100 for married couples filing jointly and $68,350 for heads of household in 2027. In 2026 the limits were $49,450 and $98,900.

How much stock can I sell without paying taxes?

Subtract your other taxable income from the 0% threshold. For example, a single filer earning $40,000 in wages in 2027 has $23,400 of taxable income after the $16,600 standard deduction, so they can realize about $27,650 of long-term gains at 0%. Gains above that are taxed at 15%.

Does the 0% rate apply to my whole income?

No. It applies only to long-term gains and qualified dividends, and only to the part that falls below the threshold. Your wages and other ordinary income are still taxed at normal rates, and they fill the space under the threshold first.

If my gain pushes me over the limit, is the whole gain taxed?

No. Only the part above the threshold is taxed at 15%. A single filer with $27,650 of 0% room who realizes a $40,000 gain pays 0% on $27,650 and 15% on $12,350, about $1,853.

What is tax-gain harvesting?

It's selling investments with a long-term gain while you're in the 0% bracket and buying them back right away. You owe no federal tax, and your cost basis resets higher, so future gains are smaller. The wash-sale rule only applies to losses, so you can rebuy immediately.

Do short-term gains qualify for 0%?

No. Gains on assets held one year or less are short-term and taxed as ordinary income at your regular rates. They also count toward your taxable income, which shrinks your 0% room for long-term gains.

Does selling at 0% have any hidden costs?

It can. Gains raise your adjusted gross income, which can make more of your Social Security taxable, reduce ACA health insurance subsidies, affect college aid and, from age 63, raise Medicare premiums two years later. Most states also tax capital gains as ordinary income.

Primary sources

Data & disclaimer: This article is for educational purposes only and is not financial or investment advice. Figures reflect data available as of Dec 5, 2026, and conditions change — always confirm current pricing, rates and rules with the provider before you act. Written by Elizabeta Dimoska. See our editorial standards and disclosure.

ED
About the author

Elizabeta Dimoska

Founder and writer of RiskStock. Self-directed investor covering ETFs, long-term investing, tax-advantaged accounts (TFSA, RRSP, Roth IRA, 401(k)), retirement, macro, and markets — in plain English, with every claim tied to a primary source. Not a licensed financial advisor; RiskStock is educational. See our editorial standards.

More from Elizabeta Dimoska →

RiskStock is independent and free to read. No paywall. Some articles contain affiliate links, which we always label. If this piece helped you, you can support our work.

☕ Buy me a coffee

Comments

Want More Like This?

Get our weekly newsletter with market recaps, educational explainers, and honest takes — delivered every Sunday.

Subscribe Free