Capital Gains Tax on Stocks in 2026: What You Owe When You Sell
How a stock sale is taxed in 2026
Your gain is the sale price minus your adjusted basis, which for stock is generally what you paid plus commissions, adjusted for splits and reinvested dividends. If you held the shares more than one year, the gain is long-term and taxed at 0%, 15% or 20% in 2026. If you held them one year or less, it is short-term and taxed as ordinary income at 10% to 37% in 2026.
| 2026 long-term rate | Single | Married filing jointly |
|---|---|---|
| 0% (2026) | Taxable income up to $49,450 | Up to $98,900 |
| 15% (2026) | Up to $545,500 | Up to $613,700 |
| 20% (2026) | Above $545,500 | Above $613,700 |
The thresholds are from Revenue Procedure 2025-32. They apply to taxable income, after the standard or itemized deduction, and a long-term gain is stacked on top of your ordinary income to decide which rates it falls into. Qualified dividends use the same rates. See the full 2026 long-term capital gains brackets for head of household and married filing separately.
Worked examples: from the 0% bracket to a California concentrated position
A married couple earning $80,000 sells shares for a $150,000 long-term gain in Texas. Part of the gain fills the 0% bracket and the rest is taxed at 15%, for a federal total of $14,835, with no state income tax.
A single California filer earning $400,000 who sells a concentrated position at a $300,000 gain pays $100,527, made up of $55,896 federal tax, $11,400 net investment income tax and $33,232 California tax. California taxes gains at its ordinary income rates, up to 13.3% (2026).
The bracket can work in your favor too. A retired couple with $50,000 of income and a $40,000 long-term gain pays $0 in Florida. If the same $40,000 were a short-term gain it would cost $4,660, which is why the one-year line matters most in low brackets. For the comparison in detail, see short-term vs long-term capital gains.
Choosing which shares you sell: basis methods
If you bought the same stock in several lots at different prices, the lot you sell sets your gain. Brokers default to first-in, first-out (FIFO), which sells your oldest and often cheapest shares first and produces the largest gain.
Under the regulations you may instead identify specific lots at the time of the sale (Treas. Reg. 1.1012-1(c)), and many brokers also offer average cost for mutual funds. Picking the highest-basis lots realizes the smallest gain today.
Always give the broker the instruction before the trade settles. Choosing later, after you see the numbers, is not allowed. Basis and holding period for covered securities are reported on Form 1099-B and carried to Form 8949 and Schedule D.
Wash sales: the 61-day rule on losses
If you sell a stock at a loss and buy the same or a substantially identical security within 30 days before or after the sale, the loss is disallowed for now (IRC 1091).
The disallowed loss is added to the basis of the replacement shares and the holding period carries over, so the loss is deferred rather than lost. The window covers 61 days in total, and it applies across your accounts, including an IRA, so repurchasing in a retirement account can permanently erase the loss.
The rule applies only to losses. A sale at a gain followed by an immediate repurchase raises no wash-sale issue. Selling at a loss to harvest it and buying a similar but not substantially identical fund is the usual workaround.
Losses, the $3,000 limit and carryovers
Capital losses first offset capital gains of the same kind, then the other kind. If losses exceed gains for the year, you can deduct up to $3,000 ($1,500 if married filing separately) against ordinary income, and carry the rest forward with no expiration (IRC 1211(b), 1212(b)).
Losses carried forward keep their short-term or long-term character. Because the deduction is so small compared with a large loss, harvesting losses in a year you also realize a large gain does the most good. The mechanics are in capital loss carryover.
The 3.8% surtax and state tax
Stock gains are net investment income. The 3.8% net investment income tax applies to the lesser of your net investment income or the amount your modified AGI exceeds $250,000 joint or $200,000 single (IRC 1411).
Those thresholds are set by statute and are not adjusted for inflation, so more households cross them each year; see the 3.8% tax on a sale.
States are the second layer: several states have no income tax on wages, and a few tax gains differently, such as Washington's separate capital gains excise tax on large gains. Check your state in the 50-state capital gains table.
Ways to reduce tax on a stock sale
The legitimate levers are timing, basis and character. Hold past one year before selling. Pick high-basis lots.
Pair gains with losses in the same year. Realize gains in a low-income year to use the 0% bracket (0% harvesting).
Donate appreciated shares held over a year to a charity or donor-advised fund, which avoids the gain and can produce a deduction of fair market value up to 30% of AGI (IRC 170(b)(1)(C)). Hold until death, so heirs receive a stepped-up basis (IRC 1014; see step-up at death).
Publicly traded stock cannot be sold on an installment note and defer the gain; the installment method is closed to securities traded on an established market (IRC 453(k)(2)). Large sellers of closely held stock have more options, covered under selling a business.
What to know
Holding a concentrated position to save tax exposes you to the price risk of that one stock, which can exceed the tax saved. Donating shares removes them from your estate and your cash flow. Results here use 2026 federal tables (Rev. Proc. 2025-32) and modeled state rules, and assume the incomes in each example. This is general information, not tax advice.
How much tax does this sale cause? A worked example
Married couple, $80,000 of wages, sell shares held for years at a $150,000 gain. No state income tax. Single filer, $400,000 of wages, sells a concentrated stock position at a $300,000 long-term gain in California.
Retired joint filers with $50,000 of income and a $40,000 long-term gain from a brokerage account. Florida has no income tax. The same couple sells before the one-year mark, so the $40,000 gain is taxed as ordinary income.
| Engine run | Joint filers, $150,000 gain, Texas | Single filer, $300,000 gain, California | Retired couple in the 0% bracket, Florida | Same gain, one year earlier (short-term), Florida |
|---|---|---|---|---|
| Filing status | Married, joint | Single | Married, joint | Married, joint |
| State | Texas | California | Florida | Florida |
| Other income (wages, pension, interest) | $80,000 | $400,000 | $50,000 | $50,000 |
| Long-term capital gain | $150,000 | $300,000 | $40,000 | $0 |
| Ordinary income from the sale (short-term gain, inventory, non-compete) | $0 | $0 | $0 | $40,000 |
| Federal income tax on the sale | $14,835 | $55,896 | $0 | $4,660 |
| Net investment income tax (3.8%) | $0 | $11,400 | $0 | $0 |
| State income tax on the sale | $0 | $33,232 | $0 | $0 |
| Total tax caused by the sale | $14,835 | $100,527 | $0 | $4,660 |
| Effective rate on the gain | 9.9% | 33.5% | 0.0% | 11.7% |
| Gain kept after these taxes | $135,165 | $199,473 | $40,000 | $35,340 |
Computed November 6, 2026 by the Big Sale Tax engine (engine.js yearTax): federal brackets, 0/15/20% thresholds and AMT from Rev. Proc. 2025-32 (OBBBA-adjusted) and the One Big Beautiful Bill Act (P.L. 119-21); NIIT under IRC 1411 (thresholds not indexed); state tax from the engine's state table. "Tax caused by the sale" = tax with the sale minus tax without it. Excludes selling costs, local taxes and estimated-tax timing. Education only.
How much tax would you owe? Run your own numbers
2026 law from the engine: federal 0/15/20% brackets (Rev. Proc. 2025-32), 25% cap on unrecaptured 1250 gain, ordinary rates on 1245 recapture, 3.8% NIIT over $200,000 single / $250,000 joint (IRC 1411), AMT, and your state's rules (California on the FTB 2026 schedules).
What was sold and years held only matter in a few states: Washington exempts real estate, Ohio and New Mexico treat a business sale differently, Arizona subtracts 25% for assets bought after 2011 and Oklahoma deducts gain on Oklahoma property held 5 years or more.
Tax shown is the tax caused by the sale. Excludes local taxes other than Maryland's county tax (3.2% used). Tick the active-owner box if you materially participate in the business. Education only.
Long-Term vs Short-Term Capital Gains (2026)
The one-year holding rule, the 2026 0/15/20% thresholds for every filing status, NIIT, recapture, the state layer and a worked $200,000 example: 11 months vs 13 months, and what spreading the gain can save.
Frequently asked questions
What is the capital gains tax rate on stocks in 2026?
How much tax do I pay on $100,000 of stock gains?
Do I pay capital gains tax if I reinvest the proceeds?
What is the wash sale rule?
How much stock loss can I deduct in a year?
Do I owe tax on stock gains inside an IRA or 401(k)?
Sources
- Rev. Proc. 2025-32, 2026 inflation adjustments (IRS)
- IRS Topic 409: Capital gains and losses
- IRS Topic 703: Basis of assets
- IRC 1091: loss from wash sales (Cornell LII)
- IRC 453: installment method (Cornell LII)
- IRC 170: charitable contributions (Cornell LII)
- Treas. Reg. 1.1012-1 (Cornell LII)
Figures as of October 7, 2026; each rate and limit above names its source and year. Education only, not legal or tax advice.
Keep reading
Capital gains tax calculator
The order of operations behind any capital gains calculator, with four worked sales: a rental, a business, a home over the exclusion and a common input mistake.
ReadShort-term vs long-term gains
The 2026 rates side by side, how the holding period is counted, and the dollar cost of selling one day too early.
Read0% capital gains harvesting
Fill the 0% long-term capital gains bracket on purpose each year, by harvesting gains or by spreading a sale with an installment note.
ReadLoss carryovers
Old capital losses, frozen passive losses and NOLs can soak up a big gain, but each one follows its own ordering rules and caps.
ReadNet investment income tax on a sale
The 3.8% surtax can add tens of thousands to a big sale; here is when it applies, when it does not, and how timing shrinks it.
ReadStep-up at death (hold)
Holding an appreciated asset until death can erase the built-in gain for heirs; here is when that beats selling now and when it does not.
ReadKnow your number before you sign.
Start with a free scope call: a short call to see whether the Big Sale Tax Analysis is worth it for your sale. No obligation.
Prefer email? Request the analysis by email.
You talk to Hans Goldstein. Enrolled Agent, admitted to practice before the IRS.