Capital Gains Tax on Selling Stocks in 2026: Short-Term vs. Long-Term Rates and Planning Strategies
Selling a winning stock can create a federal tax bill even if you immediately reinvest the proceeds. The size of that bill generally depends on your profit, how long you held the shares, your other taxable income, your filing status, and whether the 3.8% Net Investment Income Tax applies.
The key dividing line is one year. Gains on shares held for one year or less are short-term gains taxed at ordinary income rates. Gains on shares held for more than one year generally qualify for the lower long-term capital-gains rates.
This article discusses federal rules for investments held in taxable accounts. State taxes and the rules for retirement accounts, employee stock compensation, options, and other specialized investments may produce different results. It is general educational information, not individualized tax or investment advice.
2026 Capital Gains Tax on Stocks: The Quick Answer
- Short-term capital gains: Apply when shares are held for one year or less. The gain is taxed at ordinary federal income tax rates ranging from 10% to 37% in 2026.
- Long-term capital gains: Apply when shares are held for more than one year. The usual federal rates are 0%, 15%, or 20%, depending on taxable income and filing status.
- Net Investment Income Tax: Some higher-income taxpayers owe an additional 3.8% on all or part of their net investment income.
- State taxes: A state may tax capital gains as ordinary income, use a different system, or impose no individual income tax.
- Tax year: A stock sale completed in 2026 is generally reported on the 2026 federal return filed in 2027.
The tax rate applies to the taxable gain, not the stock’s total sale price. A $50,000 sale does not create a $50,000 gain if the shares originally cost $35,000.
How Stock Capital Gains Are Calculated
The basic calculation is:
Capital gain or loss = net sale proceeds − adjusted cost basis
Net proceeds are the amount received after applicable selling expenses. Adjusted cost basis usually begins with the purchase price plus acquisition costs, but it can change over time.
Example: Calculating a Stock Gain
Assume an investor buys 100 shares for $40 per share, creating an initial basis of $4,000. The shares are later sold for net proceeds of $6,500.
$6,500 net proceeds − $4,000 adjusted basis = $2,500 capital gain
If the shares were held for one year or less, the $2,500 is generally short-term. If they were held for more than one year, it is generally long-term.
Basis Adjustments to Review
- Reinvested dividends: Dividends used to buy additional shares generally create basis in those new shares. Failing to include that basis can result in paying tax twice on the same money.
- Commissions and transaction fees: Relevant purchase or sale costs may affect basis or net proceeds.
- Stock splits: A split generally changes the basis per share but not the position’s total basis. For example, after a two-for-one split, twice as many shares normally divide the same aggregate basis.
- Mergers, spin-offs, and return-of-capital distributions: These events may require basis allocations or reductions.
A price increase is an unrealized gain while the shares remain unsold. It generally becomes a realized, reportable gain when the investor sells. One exception worth recognizing is that a mutual fund or exchange-traded fund may distribute gains generated inside the fund even when the investor has not sold fund shares.
Why Tax Lots Matter
Shares of the same company purchased at different times are separate tax lots. Each lot can have its own basis and holding period. If you bought 50 shares at $20 and another 50 at $45, the tax result depends on which shares you sell.
Specific-lot identification may allow you to direct the broker to sell particular shares. The identification generally must be made properly at the time of the transaction and documented by the broker. Without valid identification, the broker may apply its default method, often first in, first out. Mutual funds may also offer average-cost accounting.
Before filing, compare the broker’s Form 1099-B with trade confirmations, transfer records, and your own basis history. Brokers do not always have complete basis information for transferred or older shares. Stock transactions are commonly reconciled on Form 8949 and summarized on Schedule D.
2026 Short-Term Capital Gains Tax Rates
Short-term gains do not receive the preferential long-term rates. After capital-gain and loss netting, a net short-term gain is generally taxed at the same graduated rates that apply to wages and other ordinary taxable income.
| 2026 rate | Single | Married filing jointly | Head of household |
|---|---|---|---|
| 10% | Up to $12,400 | Up to $24,800 | Up to $17,700 |
| 12% | $12,401–$50,400 | $24,801–$100,800 | $17,701–$67,450 |
| 22% | $50,401–$105,700 | $100,801–$211,400 | $67,451–$105,700 |
| 24% | $105,701–$201,775 | $211,401–$403,550 | $105,701–$201,750 |
| 32% | $201,776–$256,225 | $403,551–$512,450 | $201,751–$256,200 |
| 35% | $256,226–$640,600 | $512,451–$768,700 | $256,201–$640,600 |
| 37% | $640,601 or more | $768,701 or more | $640,601 or more |
These are marginal brackets. Reaching the 24% bracket does not cause all taxable income to be taxed at 24%; only the portion within that bracket receives that rate.
Example: A Gain Spanning Two Brackets
Suppose a single filer has $100,000 of taxable income before a $20,000 net short-term gain. Using the stated 2026 brackets, the first $5,700 of additional income fills the remaining 22% bracket and the other $14,300 falls in the 24% bracket.
The federal tax attributable to the gain would be approximately:
($5,700 × 22%) + ($14,300 × 24%) = $4,686
This simplified example excludes the NIIT, state tax, interactions with capital losses, and changes to deductions or credits. A large realized gain can increase adjusted gross income and affect provisions that use income-based limits.
2026 Long-Term Capital Gains Brackets by Filing Status
Net long-term capital gains generally use the following federal brackets for 2026:
| Rate | Single | Married filing jointly | Married filing separately | Head of household |
|---|---|---|---|---|
| 0% | $0–$49,450 | $0–$98,900 | $0–$49,450 | $0–$66,200 |
| 15% | $49,451–$545,500 | $98,901–$613,700 | $49,451–$306,850 | $66,201–$579,600 |
| 20% | $545,501 or more | $613,701 or more | $306,851 or more | $579,601 or more |
The thresholds apply to taxable income, not merely to the gain. Long-term gains sit on top of ordinary taxable income when the capital-gains brackets are calculated. A gain can therefore span the 0% and 15% brackets—or the 15% and 20% brackets.
Example: Part of a Gain Taxed at 0%
Assume a single filer has $40,000 of ordinary taxable income and then realizes a $20,000 net long-term gain. Ignoring special-rate assets and other tax interactions, the first $9,450 of gain fills the 0% bracket through $49,450. The remaining $10,550 falls in the 15% bracket.
Estimated long-term capital-gains tax: $10,550 × 15% = $1,582.50
The investor does not receive the 0% rate on the full $20,000 merely because ordinary taxable income began below $49,450.
These standard rates do not cover every capital asset. Collectibles, qualified small business stock, depreciation recapture, and certain real-estate gains can follow special rules.
Additional Taxes and Reporting Rules to Check
The 3.8% Net Investment Income Tax
The NIIT may apply when modified adjusted gross income exceeds:
- $200,000 for single and head-of-household filers;
- $250,000 for married couples filing jointly; or
- $125,000 for married taxpayers filing separately.
The tax is generally 3.8% of the lesser of net investment income or the amount by which modified adjusted gross income exceeds the applicable threshold. Capital gains from stocks held in taxable accounts are commonly included in net investment income.
As a result, a high-income investor could face a 23.8% federal rate on some long-term gains: the 20% capital-gains rate plus the 3.8% NIIT. A short-term gain could face a combined federal marginal rate of 40.8% before considering state tax.
State Taxes and Estimated Payments
Federal tax is only part of the forecast. State treatment varies widely, and a taxpayer’s residence at the time of sale may matter. Some states apply ordinary income-tax rates to capital gains, while others provide exclusions or impose no individual income tax.
A large or irregular gain may also require an estimated payment during 2026. Waiting until the 2027 filing deadline can produce an underpayment penalty even if the full balance is paid with the return. Federal safe-harbor rules may protect taxpayers who pay enough through withholding and timely estimated payments, but the calculation depends on current-year and prior-year tax information.
Planning Strategies for Selling Stocks in 2026
1. Consider the One-Year Holding Date
If shares are close to qualifying for long-term treatment, compare the potential tax savings with the risk of continuing to hold them. A tax benefit does not guarantee that waiting is financially sensible. Company-specific risk, portfolio concentration, cash needs, and market volatility may be more important than the tax rate.
Confirm the exact acquisition and sale dates rather than relying on the month shown in a portfolio summary. “One year” is not enough; long-term treatment generally requires holding the shares for more than one year.
2. Use Specific-Lot Identification
When selling only part of a position, selecting high-basis shares can reduce the realized gain. Lot selection may also help choose between short-term and long-term shares.
For example, selling 100 shares worth $70 each creates a $5,000 gain if the selected lot has a $20 basis per share, but only a $1,000 gain if the selected lot has a $60 basis. Review the broker’s lot-selection procedure before placing the trade and retain its confirmation.
3. Harvest Capital Losses
Capital losses first offset capital gains under the tax netting rules. If total losses exceed gains, an individual can generally deduct up to $3,000 of net capital loss against ordinary income for the year, or $1,500 if married filing separately. Unused losses normally carry forward.
Do not sell a sound investment solely to generate a deduction. Consider transaction costs, market exposure, portfolio objectives, and the wash-sale rule.
4. Avoid Accidental Wash Sales
A wash sale generally occurs when stock or securities are sold at a loss and substantially identical securities are acquired during the period beginning 30 days before the sale and ending 30 days after it. The disallowed loss is usually added to the replacement shares’ basis, although purchases in an IRA or Roth IRA can create a less favorable result.
Review automatic dividend reinvestment, recurring purchases, transactions in a spouse’s account, and purchases in retirement accounts. Looking only at the taxable account where the loss occurred may miss a replacement purchase.
5. Spread Sales Across Tax Years
Dividing a planned sale between late 2026 and early 2027 can keep more of a long-term gain in a lower bracket or reduce NIIT exposure. This approach is most useful when market risk and the financial plan allow flexibility. It does not eliminate tax, and the second year’s income and tax thresholds may change.
6. Harvest Gains in the 0% Bracket
An investor with room below the 0% long-term threshold may intentionally realize a gain and immediately repurchase the investment, increasing its basis. The wash-sale rule restricts losses, not gains.
However, a nominally 0% federal gain can still increase adjusted gross income, affect credits or deductions, cause more Social Security benefits to become taxable, increase future Medicare premiums, or generate state tax. Model the full return before acting.
7. Use Tax-Advantaged Accounts for Future Investing
Trades inside an IRA or qualified workplace retirement plan generally do not create current capital-gains tax. The trade-off is that withdrawals follow the account’s tax rules rather than the favorable long-term capital-gains schedule. Roth accounts can provide tax-free qualified withdrawals, while traditional account withdrawals are generally taxed as ordinary income.
8. Evaluate Charitable Gifts and Opportunity Zones Carefully
Donating appreciated shares held for more than one year directly to an eligible charity may avoid realizing the gain and may produce a charitable deduction, subject to deduction limits, substantiation requirements, and itemization rules. Selling first and donating cash generally realizes the gain.
Qualified Opportunity Zone investments involve complex eligibility, timing, reporting, liquidity, fee, and investment-risk issues. Under the original program, deferred gains face mandatory recognition no later than December 31, 2026, which limits the remaining deferral value of a late-2026 transaction. Any potential treatment of later appreciation and the transition to newer rules should be reviewed with qualified tax and legal professionals.
What to Do Before Selling
- Build a tax-lot list. Record the purchase date, number of shares, adjusted basis, current value, unrealized gain or loss, and expected holding-period classification for every lot.
- Estimate taxable income twice. Prepare one projection without the sale and another including the expected gain.
- Apply capital losses. Include current losses and any capital-loss carryforwards before estimating the net gain.
- Compare tax outcomes. Model short-term rates, long-term brackets, NIIT, state tax, and any income-sensitive deductions or credits.
- Review lot instructions. Confirm the broker will accept and document specific-lot identification before the order is executed.
- Reserve money for taxes. Do not treat all sale proceeds as available for spending or reinvestment.
- Check payment requirements. Determine whether additional withholding or a quarterly estimated payment is appropriate.
What to Do Next
Start by downloading your tax-lot and cost-basis records from the brokerage account. Identify positions that are close to the one-year mark, lots with substantially different bases, and losses that could offset planned gains. Then calculate the sale’s effect on total taxable income rather than applying a capital-gains percentage to the profit in isolation.
Ask a qualified tax professional to review the transaction if it involves a concentrated position, restricted stock, employee stock options, an inherited or gifted asset, incomplete cost-basis records, a major charitable gift, an Opportunity Zone investment, or an unusually large gain.
Finally, recheck official IRS guidance and enacted legislation before filing. Inflation-adjusted brackets can change annually, and later legislation or administrative guidance can affect the final calculation. The practical objective is not simply to minimize tax—it is to make a sound investment decision while understanding and planning for the tax consequences.

