Photo: Unknown author (Unsplash) / Wikimedia Commons (public domain)
0% Capital Gains Tax (2027): How Much Stock You Can Sell Without Paying Federal Tax
- 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:
- Unused standard deduction counts. With no other income, the deduction absorbs gains first, so the real tax-free amount is the threshold plus the deduction.
- Pre-tax 401(k) contributions add room. They lower your taxable income, which leaves more space under the threshold.
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:
- 0% on the first $27,650
- 15% on the remaining $12,350, or about $1,853
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:
- You owe $0 federal tax on the gain.
- Your cost basis resets to today's price, so future gains, which might be taxed at 15%, are smaller.
- The wash-sale rule only applies to losses, so rebuying right away is fine.
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
- Short-term gains (held one year or less) are taxed as ordinary income and use up your 0% room.
- Social Security. Gains raise the income used to decide how much of your benefit is taxable. Each extra dollar of gain can make up to 85 cents of benefits taxable, so some retirees pay tax even when the gain itself is at 0%.
- ACA subsidies, college aid and Medicare (IRMAA) are based on income that includes gains.
- State tax. Most states tax capital gains as ordinary income.
- Roth conversions compete for the same room. A conversion is ordinary income, so it pushes gains above the threshold. Decide which matters more each year (see Roth Conversion in a Low-Income Year).
- Net investment income tax (3.8%) only starts above $200,000 of modified AGI for singles and $250,000 for couples, so it doesn't affect the 0% bracket.
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.
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
- IRS — Topic no. 409, Capital gains and losses
- IRS — Rev. Proc. 2026-35 (2027 capital gains thresholds, brackets and standard deduction)
- IRS — Publication 550, Investment Income and Expenses (wash sales)
- IRS — Topic no. 559, Net investment income tax
- Social Security Administration — Income taxes and your Social Security benefit
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.
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