How Much Stock Can I Sell Without Paying Tax?

For 2026, a single filer can sell stock at a long-term profit and owe zero federal capital gains tax as long as total taxable income stays at or below $49,450. Married couples filing jointly get that treatment up to $98,900, and heads of household up to $66,200.1Internal Revenue Service. 2026 Adjusted Items Beyond those income lines, how much stock you can sell without paying tax depends on which shelter you’re using: a Roth IRA, harvested losses, inherited shares with a stepped-up basis, qualified small business stock, or a direct donation to charity.

The 0% Long-Term Capital Gains Bracket in 2026

Federal law taxes long-term capital gains at 0%, 15%, or 20%, and which rate applies depends on your total taxable income for the year, not the size of the gain alone.2Office of the Law Revision Counsel. 26 USC 1 – Tax Imposed For 2026, the 0% rate covers long-term gains that fit under these taxable-income ceilings:1Internal Revenue Service. 2026 Adjusted Items

  • Single or married filing separately: $49,450
  • Married filing jointly or surviving spouse: $98,900
  • Head of household: $66,200

Taxable income is gross income minus deductions, so the standard deduction adds real headroom. For 2026 that deduction is $16,100 for single filers, $32,200 for joint filers, and $24,150 for heads of household.3Internal Revenue Service. IRS Releases Tax Inflation Adjustments for Tax Year 2026 A single filer with no other income could pull in about $65,550 in gross income ($49,450 plus $16,100) and still sit entirely within the 0% bracket.

The more common case is someone with a paycheck. Say you earn $35,000 in salary, take the $16,100 standard deduction, and have no other adjustments. Your taxable income before any sale is $18,900, which leaves $30,550 of room under the 0% ceiling. You could realize up to $30,550 in long-term gains and owe nothing federally on them.4Internal Revenue Service. Topic No. 409, Capital Gains and Losses Only the portion of gain that pushes taxable income past the threshold gets taxed, and it steps up to 15% at that point.

The One-Year Holding Rule

Everything above depends on holding the stock for more than one year before selling. That’s the line between long-term and short-term.5Office of the Law Revision Counsel. 26 USC 1222 – Other Terms Relating to Capital Gains and Losses The clock starts the day after purchase and runs through the day of sale. Buy on March 1, 2025, and the earliest you can sell for long-term treatment is March 2, 2026.

Sell before that date and the full profit is taxed as ordinary income at the same graduated rates as wages, which for 2026 climb from 10% to a top of 37%.3Internal Revenue Service. IRS Releases Tax Inflation Adjustments for Tax Year 2026 There is no 0% bracket for short-term gains. Selling a few months early is the most common way people end up owing tax on a sale they thought would be free.

Selling Inside a Roth IRA or 401(k)

Stocks held in retirement accounts don’t produce a taxable event when you sell. Inside a traditional 401(k) or similar employer plan, you can buy and sell as often as you want without triggering capital gains tax; the tax comes later, when you withdraw, and it’s charged as ordinary income.6Office of the Law Revision Counsel. 26 USC 401 – Qualified Pension, Profit-Sharing, and Stock Bonus Plans

A Roth IRA is the stronger tool if the goal is a tax-free sale. Roth contributions are made with after-tax money, so qualified distributions of both your contributions and all their growth come out completely tax-free.7Office of the Law Revision Counsel. 26 USC 408A – Roth IRAs $10,000 that grows to $500,000 over decades can be withdrawn without a dollar of capital gains tax.

To qualify, you generally need to be at least 59½ and to have held the Roth for at least five years. Pull earnings out earlier and you’ll face ordinary income tax plus a 10% early-withdrawal penalty.8Internal Revenue Service. Topic No. 557, Additional Tax on Early Distributions From Traditional and Roth IRAs Your original contributions, as distinct from earnings, can always come out penalty-free.

Offsetting Gains With Losses

Losses on other stock sales cancel out gains dollar for dollar. Sell one position for a $20,000 profit and another for a $15,000 loss in the same year, and only the net $5,000 is taxed. If losses exceed gains, you can deduct up to $3,000 of the leftover against ordinary income like wages, or $1,500 if married filing separately.9Office of the Law Revision Counsel. 26 USC 1211 – Limitation on Capital Losses

Anything beyond that $3,000 carries forward. Unused losses roll into the next tax year, and the year after that, for as long as it takes to use them up.10Office of the Law Revision Counsel. 26 USC 1212 – Capital Loss Carrybacks and Carryovers A $50,000 loss in a bad year can absorb gains across many future returns.

The Wash Sale Trap

If you sell a stock at a loss and buy the same stock, or something substantially identical, within 30 days before or after the sale, the loss is disallowed for that year.11Office of the Law Revision Counsel. 26 USC 1091 – Loss From Wash Sales of Stock or Securities The disallowed amount gets added to the basis of the replacement shares, so it isn’t gone forever, but it can’t offset gains now. To claim the loss in the current year, wait at least 31 days before buying back in.

Qualified Small Business Stock

Shares in qualifying small businesses carry one of the largest exclusions in the tax code. If the stock is in a C corporation with gross assets under $50 million at the time it was issued, you may be able to exclude most or all of the gain when you sell.12Office of the Law Revision Counsel. 26 USC 1202 – Partial Exclusion for Gain From Certain Small Business Stock

For stock acquired on or before July 4, 2025, the exclusion is 100% of the gain, up to the greater of $10 million or ten times your adjusted basis, provided you hold the shares for more than five years. A founder or early investor who put in $100,000 could potentially exclude up to $10 million of profit and pay no federal tax on the sale.

For stock acquired after July 4, 2025, the One Big Beautiful Bill Act phases the exclusion in with holding period: 50% after three years, 75% after four, and 100% after five. The per-issuer cap on those newer shares is $15 million or ten times basis, whichever is greater. The company has to be an active C corporation in a qualifying trade or business throughout substantially all of the holding period, and industries like finance, law, and hospitality are excluded.

Inherited Stock and the Step-Up in Basis

When you inherit stock, your cost basis resets to the fair market value on the date of the original owner’s death.13Office of the Law Revision Counsel. 26 USC 1014 – Basis of Property Acquired From a Decedent Decades of appreciation vanish for capital gains purposes. If a parent bought shares for $5,000 that were worth $200,000 at death, your basis becomes $200,000; selling them the next day at $200,000 produces no gain.

Inherited shares also qualify for long-term treatment automatically, even if you sell within a year of the death.14Office of the Law Revision Counsel. 26 USC 1223 – Holding Period of Property It’s one of the few situations where you can sell almost immediately and still get the preferential rates.

Gifting Stock to Someone in a Lower Bracket

Giving appreciated stock to a family member who sits in the 0% bracket can eliminate the tax on the sale. In 2026, you can gift up to $19,000 per recipient per year without triggering gift tax reporting.15Internal Revenue Service. What’s New – Estate and Gift Tax The recipient takes your cost basis and your holding period, so if their taxable income is below the 0% ceiling, they can sell the shares tax-free.

Watch the kiddie tax if the recipient is a child under 19, or under 24 if a full-time student. Their unearned income above certain limits gets taxed at the parent’s rate, which can erase the benefit of shifting the gain.

Donating Appreciated Stock to Charity

Donating shares directly to a qualified charity is one of the cleanest ways to eliminate capital gains tax on an appreciated position. When you donate stock held for more than a year, you pay no capital gains tax on the appreciation and you can deduct the full fair market value of the shares.16Internal Revenue Service. Publication 526, Charitable Contributions

The deduction for appreciated stock given to public charities and donor-advised funds is capped at 30% of adjusted gross income for the year, and any unused portion carries forward for up to five additional years. Donating the shares directly, rather than selling and giving cash, avoids both the capital gains tax and the net investment income tax on the appreciation.

Two Things That Can Still Create a Bill

The Net Investment Income Tax

Higher earners face a separate 3.8% surtax on investment income, and it sits on top of the 0%, 15%, or 20% rate.17Office of the Law Revision Counsel. 26 USC 1411 – Imposition of Tax It applies to the lesser of your net investment income or the amount your modified adjusted gross income exceeds $200,000 for single filers and heads of household, $250,000 for joint filers, and $125,000 for married filing separately.18Internal Revenue Service. Topic No. 559, Net Investment Income Tax Those thresholds aren’t indexed for inflation, so they catch more taxpayers each year. If a large sale pushes your income near them, the surtax can add a meaningful amount that isn’t captured in the headline rates.

State Tax

Most states tax capital gains as ordinary income, with rates that range from 0% in states with no income tax to over 13% in the highest-tax states. A few states carve out partial exclusions or reduced rates for long-term gains, but the majority simply fold them into your regular state return. A sale that produces no federal tax can still produce a state bill, so factor that in before deciding whether to sell in a given year.