Live a richer life. Independent financial guidance for smarter decisions.

Advertiser Disclosure

Capital Gains Tax on Stocks in 2026: Rates & Ways to Save

Capital Gains Tax on Stocks in 2026: Rates & Ways to Save

Capital Gains Tax on Stocks in 2026: Short-Term vs. Long-Term Rates and Legal Ways to Reduce Your Bill

Selling a winning stock can create an immediate tax consequence. The amount you owe depends on more than the size of the profit: your holding period, taxable income, filing status, cost basis, other investment gains and losses, and state of residence can all affect the final bill.

For federal taxes in 2026, stock held for one year or less generally produces a short-term capital gain taxed at ordinary income rates. Stock held for more than one year may qualify for the lower long-term capital-gains rates of 0%, 15%, or 20%. Some investors may also owe the 3.8% Net Investment Income Tax, or NIIT.

Capital Gains Tax on Stocks in 2026: The Quick Answer

Capital-gains tax generally applies when you sell stock for more than its adjusted cost basis. Simply owning appreciated stock normally does not create a taxable capital gain; the gain is generally recognized when you sell or otherwise dispose of the shares.

  • Short-term capital gain: The stock was held for one year or less. The gain is generally taxed at ordinary federal income-tax rates ranging from 10% to 37%.
  • Long-term capital gain: The stock was held for more than one year. The gain generally qualifies for a 0%, 15%, or 20% federal rate, depending on taxable income and filing status.
  • Additional taxes: State or local income tax may apply, and qualifying higher-income investors may owe the 3.8% NIIT.

The long-term brackets work progressively. A large gain can cross more than one capital-gains bracket, so part of the gain may be taxed at one rate and the remainder at another.

How Stock Capital Gains Are Calculated

A stock’s taxable gain or loss starts with four basic figures:

  • Sale proceeds: The gross amount received from selling the shares.
  • Cost basis: Generally, the amount paid for the shares, including applicable purchase commissions or fees.
  • Adjusted basis: Cost basis after required adjustments for events such as stock splits, reinvested distributions, returns of capital, gifts, or inherited property.
  • Realized gain or loss: The financial result created when the shares are sold.

A simplified calculation is:

Capital gain or loss = sale proceeds − adjusted cost basis − selling costs

Basic calculation example

Suppose you bought 100 shares for $8,000 and later sold them for $12,500. If you incurred $25 of selling costs, the realized gain would be:

$12,500 − $8,000 − $25 = $4,475 capital gain

The gain is generally reported for the tax year in which the sale occurs. Brokerage sales commonly appear on Form 1099-B, with the transactions reconciled on Form 8949 and summarized on Schedule D of the federal return.

Events that can change cost basis

  • Reinvested dividends: A dividend is generally taxable when paid, even if automatically reinvested. The reinvested amount normally becomes the basis of the newly purchased shares. Failing to include it can result in taxing the same money twice.
  • Stock splits: A split usually changes the number of shares and the basis per share without changing the total basis of the position.
  • Return-of-capital distributions: These distributions may reduce basis rather than being taxed immediately as ordinary dividends.
  • Gifted shares: Basis can depend on the donor’s basis, the fair market value at the time of the gift, and whether the shares are eventually sold for a gain or loss.
  • Inherited shares: Inherited property commonly receives a basis tied to its fair market value at the owner’s death, although exceptions and special valuation rules can apply.

Basis errors can materially change the reported gain. Investors should not assume that every brokerage record is complete, particularly for old positions or shares transferred from another firm.

2026 Short-Term vs. Long-Term Capital Gains Rates

Short-term gains are included with ordinary taxable income. For 2026, the federal ordinary income-tax rates range from 10% to 37%. The marginal rate that applies to a short-term gain depends on the investor’s total taxable income and filing status.

Long-term gains receive separate preferential brackets. The following thresholds apply to qualifying long-term capital gains realized during the 2026 tax year:

2026 federal rate Single Married filing jointly Married filing separately Head of household
0% Up to $49,450 Up to $98,900 Up to $49,450 Up to $66,200
15% $49,451–$545,500 $98,901–$613,700 $49,451–$306,850 $66,201–$579,600
20% Over $545,500 Over $613,700 Over $306,850 Over $579,600

These thresholds are based on taxable income, not simply salary or the size of the stock gain. Long-term gains generally stack on top of ordinary taxable income. For example, ordinary income may use most of the 0% capital-gains band, leaving only part of a long-term gain eligible for the 0% rate.

Gain type Holding period 2026 federal rate Common planning implication
Short-term One year or less Ordinary rates of 10%–37% Waiting for long-term eligibility may reduce federal tax if investment and liquidity considerations permit.
Long-term More than one year 0%, 15%, or 20% Timing sales in lower-income years may make more of the gain eligible for a lower rate.

Worked Examples: What Holding One More Year Can Change

Assume an investor has a $20,000 stock gain, is in the 24% ordinary-income bracket, and would pay a 15% long-term capital-gains rate. Also assume the full gain remains within those respective brackets.

Sale after 11 months

The gain is short-term because the stock was held for one year or less:

$20,000 × 24% = $4,800 estimated federal tax

Sale after 13 months

The gain is long-term because the stock was held for more than one year:

$20,000 × 15% = $3,000 estimated federal tax

Under these assumptions, long-term treatment reduces the estimated federal tax by $1,800. The comparison excludes state taxes, NIIT, credits, deductions, other gains and losses, and any changes in the stock’s price while the investor waits.

Tax considerations should not override investment risk. A stock could decline by more than the expected tax savings before reaching the long-term date. Liquidity needs and portfolio concentration also matter.

The holding period generally begins the day after the shares are acquired and includes the day they are sold. Stock purchased on June 1, for example, generally must be held beyond June 1 of the following year to qualify as long-term. Verify the exact eligible sale date with the brokerage or a tax professional before trading.

Legal Ways to Reduce Capital Gains Tax on Stock Sales

1. Wait for long-term treatment

If shares are close to the one-year threshold, delaying the sale may produce a lower federal rate. This strategy is most appropriate when the investor can tolerate the market risk and does not need immediate liquidity.

2. Use tax-loss harvesting

Selling an investment at a loss can offset realized capital gains. Short-term losses first offset short-term gains, while long-term losses first offset long-term gains. Any remaining net loss is then applied against the other category.

Watch the wash-sale rule. A loss may be disallowed if the investor buys the same or a substantially identical security within 30 days before or after the loss sale. Purchases in another account, including certain retirement-account purchases, can create additional complications.

3. Harvest gains during a lower-income year

An investor whose taxable income falls within the 0% long-term capital-gains bracket may be able to realize some gains without federal capital-gains tax. This opportunity may arise during retirement, a sabbatical, a period between jobs, or a year with unusually large deductions.

The sale itself increases taxable income, however. Investors should calculate how much room remains in the 0% bracket and consider possible effects on credits, deductions, Medicare premiums, and other income-based provisions.

4. Donate appreciated stock directly

Someone who itemizes deductions and plans to support a qualified charity may benefit from donating eligible appreciated shares instead of selling the shares and donating cash. A direct donation can potentially avoid recognition of the embedded capital gain while providing a charitable deduction subject to applicable limits and documentation rules.

The charity should receive the stock directly. Selling first generally realizes the gain in the donor’s account.

5. Select specific tax lots

Investors who purchased the same stock at different prices may be able to identify which shares to sell. Choosing higher-basis shares usually produces a smaller current gain than selling lower-basis shares.

For example, selling shares with a $90 basis at $110 creates a $20 gain per share. Selling shares with a $40 basis at the same price creates a $70 gain. Specific-lot instructions normally must be provided by the brokerage’s deadline and properly documented.

6. Use tax-advantaged accounts for future investments

Trades inside an IRA or qualified workplace retirement plan generally do not create current taxable capital gains. Traditional-account withdrawals are usually taxed under ordinary-income rules, while qualified Roth withdrawals may be tax-free.

Existing shares in a taxable brokerage account generally cannot simply be transferred into an IRA to erase their gain. IRA contributions normally must be made in cash, subject to eligibility and contribution limits, so selling appreciated taxable shares may still trigger tax.

7. Seek advice for advanced strategies

Exchange funds, charitable remainder trusts, donor-advised funds, prepaid variable forwards, and other concentrated-position strategies can involve long commitments, investment restrictions, fees, and complex tax rules. Qualified small business stock may receive favorable treatment under Internal Revenue Code Section 1202, but only when detailed company, issuance, holding-period, and taxpayer requirements are satisfied.

These strategies require individualized legal, investment, and tax analysis. They should not be treated as automatic solutions.

Taxes That Can Increase the Final Bill

The 3.8% Net Investment Income Tax

The NIIT can apply when modified adjusted gross income exceeds $200,000 for single or 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, dividends, interest, and certain other investment income may be included in the calculation. The NIIT thresholds are separate from the long-term capital-gains brackets.

State and local taxes

Federal capital-gains rates do not include state or local tax. Some states tax capital gains at ordinary state income-tax rates, while others have different rules or no individual income tax. Residency, the type of asset, and state-specific adjustments can affect the result.

Capital-loss deductions

If total capital losses exceed total capital gains, an individual may generally deduct up to $3,000 of the net loss against ordinary income each year, or $1,500 if married filing separately. Unused losses can generally be carried forward to later tax years.

Interaction with other income

A short-term gain adds to ordinary taxable income and can push part of that income into a higher marginal bracket. A long-term gain can also affect income-based tax provisions even when the gain itself qualifies for a preferential rate.

Retirement accounts follow different rules from taxable brokerage accounts. Buying and selling inside an IRA generally does not generate annual capital-gains reporting, but distributions may be taxable and early withdrawals can trigger additional taxes.

2026 Stock-Sale Checklist and What to Do Next

  1. Download year-to-date realized gain-and-loss reports from every taxable brokerage account.
  2. Review purchase dates, tax lots, adjusted basis, and whether each potential sale would be short-term or long-term.
  3. Estimate 2026 taxable income, including wages, business income, interest, dividends, and planned investment sales.
  4. Calculate potential federal capital-gains tax, state tax, and NIIT before placing a large sell order.
  5. Check whether waiting until the long-term holding date would materially change the result.
  6. Look for available capital losses, but evaluate replacement investments and the wash-sale rule before harvesting them.
  7. Submit specific-lot instructions when selling only part of a position and retain the brokerage confirmation.
  8. Consider whether a large gain requires an estimated tax payment or increased withholding to avoid an underpayment penalty.
  9. Consult a qualified tax professional for concentrated stock positions, employee options, private-company shares, exchange funds, QSBS claims, or charitable transactions.

Bottom line: The most important distinction is whether the stock was held for one year or less or for more than one year. Long-term treatment can substantially reduce federal tax, but the actual result depends on taxable income, filing status, basis records, losses, state law, and possible NIIT exposure. Reviewing those factors before selling provides more planning flexibility than trying to repair the outcome after the trade.

This article provides general educational information and is not personalized tax, legal, or investment advice. Tax rules can change, and individual circumstances vary. Consult qualified professionals before making a significant transaction.