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

Advertiser Disclosure

Capital Gains Tax on Stocks in 2026: Rates & Examples

Capital Gains Tax on Stocks in 2026: Rates & Examples

Capital Gains Tax on Stock Sales in 2026: Short-Term vs. Long-Term Rates With Example Calculations

Selling a stock for a profit can create a federal tax bill, but the amount depends on more than the size of the gain. Your holding period, taxable income, filing status, adjusted cost basis, and available capital losses can all affect the result.

For the 2026 tax year, gains on stocks held for one year or less are generally taxed at ordinary income tax rates. Gains on stocks held for more than one year generally qualify for the federal long-term capital gains rates of 0%, 15%, or 20%. Additional federal and state taxes may also apply.

This guide explains the 2026 capital gains tax on stock sales using practical examples. The calculations are simplified estimates and are not personalized tax advice.

2026 Capital Gains Tax on Stocks: The Quick Answer

  • Short-term capital gains apply to stocks held for one year or less. Net short-term gains are taxed at ordinary federal income tax rates.
  • Long-term capital gains apply to stocks held for more than one year. The standard federal rates are 0%, 15%, and 20%.
  • Your taxable income, filing status, adjusted cost basis, holding period, and capital losses help determine the final tax.
  • A stock sale completed in 2026 is reported on your 2026 federal income tax return, which is generally filed in 2027.
  • State income or capital gains taxes may apply separately from federal tax.

Capital gains brackets are progressive. If a gain crosses a bracket threshold, one portion may be taxed at one rate and the remaining portion at another. Multiplying the entire gain by the highest rate shown for your income can therefore produce an inaccurate estimate.

How to Calculate a Stock Capital Gain

The basic formula is:

Sale proceeds − adjusted cost basis = capital gain or capital loss

Suppose you purchase stock for $10,000 and later sell it for $14,000. If there are no additional costs or basis adjustments, the calculation is:

$14,000 − $10,000 = $4,000 capital gain

If you sell the shares for $8,500 instead, you have a $1,500 capital loss before considering other transactions.

What Is Adjusted Cost Basis?

Cost basis generally begins with the amount paid for the investment. The basis or sale proceeds may need to be adjusted for items such as:

  • Brokerage commissions or transaction fees
  • Dividends reinvested in additional shares
  • Stock splits and reverse stock splits
  • Mergers, spin-offs, and return-of-capital distributions
  • Expenses directly connected to the sale

Reinvested dividends require particular attention. A dividend may be taxable when paid even if it is automatically used to purchase more shares. The reinvested amount generally becomes cost basis in those additional shares. Omitting that basis could cause you to report too much gain when the shares are sold.

A stock split usually changes the basis allocated to each share without changing the total basis of the position. After a two-for-one split, for example, an investor generally owns twice as many shares with half as much basis assigned to each share.

Realized vs. Unrealized Gains

A stock-price increase is generally not taxed merely because the investment is worth more. If shares purchased for $10,000 rise to $14,000 but remain in your brokerage account, the $4,000 increase is an unrealized gain. In a regular taxable account, the gain generally becomes taxable when the shares are sold and the profit is realized.

Mutual funds and exchange-traded funds can be an exception to this practical rule. A fund may distribute taxable capital gains generated by transactions inside its portfolio even when you have not sold your fund shares.

Short-Term Capital Gains Tax Rates for 2026

A gain is generally short-term when you sell stock held for one year or less. The holding-period calculation follows tax rules; it is not determined simply by whether the purchase and sale occurred in different calendar years.

Net short-term capital gains are added to ordinary taxable income and taxed through the ordinary federal income tax brackets:

  • 10%
  • 12%
  • 22%
  • 24%
  • 32%
  • 35%
  • 37%

These are marginal rates. Income is taxed in layers, so being in the 24% bracket does not mean every dollar of income is taxed at 24%. A short-term gain that begins near the top of one bracket may be divided between two or more rates.

Short-Term Gain Example

Assume an investor has a $4,000 net short-term gain and the entire gain falls within the investor’s 24% marginal federal bracket. The simplified calculation is:

$4,000 × 24% = $960

The estimated federal income tax attributable to the gain is $960. This estimate excludes state taxes, the Net Investment Income Tax, deductions, credits, and the effect of other capital gains or losses.

Long-Term Capital Gains Tax Rates for 2026

Long-term treatment generally applies when stock is sold after it has been held for more than one year. The standard federal long-term capital gains rates for 2026 are 0%, 15%, and 20%.

The applicable rate is based on taxable income, including the gain, rather than on the gain alone. Long-term gains generally sit on top of ordinary taxable income for purposes of applying the brackets. As a result, different portions of one gain can be taxed at different rates.

Filing status 0% rate 15% rate 20% rate
Single $0 to $49,450 $49,451 to $545,500 $545,501 or more
Married filing jointly $0 to $98,900 $98,901 to $613,700 $613,701 or more
Head of household $0 to $66,200 $66,201 to $577,600 $577,601 or more
Married filing separately Consult current IRS guidance or a reputable tax publication for the precise 2026 thresholds.

The figures in the table refer to taxable income, not gross income or the value of the stock sold. Taxable income is determined after applying applicable adjustments and deductions.

Example of a Gain Crossing Two Brackets

Suppose a single filer has $47,450 of taxable income before adding a $5,000 net long-term capital gain. In this simplified example, the first $2,000 of the gain fills the remaining space below the $49,450 ceiling of the 0% bracket. The other $3,000 falls into the 15% bracket.

  • $2,000 taxed at 0% = $0
  • $3,000 taxed at 15% = $450
  • Estimated federal capital gains tax = $450

This example shows why applying one rate to the entire gain can produce the wrong estimate. It also demonstrates that qualifying for the 0% bracket does not necessarily make an investor’s entire long-term gain tax-free. Other taxable income may use some or all of the available 0% bracket.

Short-Term vs. Long-Term Example Calculation

Consider an investor who buys stock for $10,000 and later sells it for $14,000. Assuming no adjustments, the investor has a $4,000 capital gain.

Sale scenario Tax treatment Assumed rate Estimated federal tax
Stock sold after eight months Short-term 24% $960
Stock sold after 18 months Long-term 15% $600
  • Short-term calculation: $4,000 × 24% = $960
  • Long-term calculation: $4,000 × 15% = $600
  • Estimated difference: $960 − $600 = $360

Long-term treatment reduces the estimated federal tax by $360 in this simplified example. However, waiting to sell is not automatically the best decision. The stock price could decline, the investor’s income could change, or the position might no longer fit the investor’s financial plan or risk tolerance.

The comparison also assumes that the entire short-term gain falls in the 24% bracket and the entire long-term gain falls in the 15% bracket. Actual results depend on total taxable income, filing status, deductions, losses, other investment income, and state tax rules.

Other Rules That Can Change the Tax Bill

Capital Losses Can Offset Gains

Capital losses are generally used first to offset capital gains. Short-term gains and losses are netted against each other, as are long-term gains and losses. The resulting short-term and long-term totals are then combined under federal netting rules.

If total capital losses exceed total capital gains, an individual may generally deduct up to $3,000 of the net loss against other income for the year. The limit is generally $1,500 for married taxpayers filing separately. Unused losses can normally be carried forward to later tax years.

Investors using tax-loss harvesting should also consider the wash-sale rule. Selling stock at a loss and acquiring substantially identical securities within the restricted period can defer the loss rather than create an immediate deduction.

The 3.8% Net Investment Income Tax May Apply

Certain higher-income taxpayers may owe the 3.8% Net Investment Income Tax, or NIIT, in addition to regular capital gains tax. It generally applies to the lesser of net investment income or the amount by which modified adjusted gross income exceeds the applicable threshold.

The commonly applicable thresholds are $200,000 for single and head-of-household filers, $250,000 for married couples filing jointly, and $125,000 for married taxpayers filing separately. Capital gains can be included in net investment income, although the complete calculation depends on the taxpayer’s circumstances.

Retirement Accounts Follow Different Rules

Buying and selling stocks inside an IRA, 401(k), or another tax-advantaged retirement account generally does not create a current capital gains tax each time a trade occurs. Instead, the account’s contribution and withdrawal rules determine the tax treatment.

Qualified Roth IRA withdrawals may be tax-free, while taxable withdrawals from a traditional retirement account are generally treated as ordinary income. Long-term capital gains rates normally do not apply to distributions from a traditional retirement account.

Funds Can Distribute Gains Without a Share Sale

Mutual funds can sell investments inside their portfolios and distribute net capital gains to shareholders. An investor holding the fund in a taxable account may owe tax on the distribution without selling any fund shares. ETFs can also make capital gain distributions, although their structure may make those distributions less frequent in some circumstances.

State Taxes May Increase the Total Cost

Federal rates are only part of the calculation. Some states tax capital gains as ordinary income, while others apply different rules or provide exclusions. Residency, the type of investment, and state-specific requirements can materially change the total tax bill.

How Stock Sales Are Reported

A brokerage generally reports taxable stock sales on Form 1099-B. The form may include the proceeds, cost basis, acquisition date, sale date, and whether the transaction was short-term or long-term.

Compare the brokerage’s information with your own records, especially for older investments, shares transferred between firms, reinvested dividends, inherited or gifted shares, and corporate reorganizations. Brokerage basis information may be missing or require correction in some situations.

Stock sales are commonly reported on Form 8949 and summarized on Schedule D of the federal income tax return. A large gain may also require an estimated tax payment or an increase in payroll withholding to avoid an underpayment penalty.

What to Do Before Selling Stock in 2026

  1. Confirm the purchase date. Determine whether the shares will qualify for long-term treatment by the planned sale date.
  2. Verify the cost basis. Review purchase records, commissions, reinvested dividends, stock splits, and other adjustments.
  3. Choose the tax lot carefully. If you bought the same stock at different times and prices, the shares selected for sale can affect both the gain and the holding period.
  4. Estimate total taxable income. Consider wages, business income, interest, dividends, and other expected gains when evaluating the applicable rate.
  5. Review available losses. Current-year and carried-forward capital losses may offset part or all of the gain.
  6. Check for additional taxes. Account for the possible 3.8% NIIT and applicable state taxes.
  7. Plan for payment. Set aside an appropriate portion of the proceeds and determine whether estimated payments or additional withholding may be necessary.

What to Do Next

Before placing a trade, download your brokerage’s cost-basis and tax-lot records. Estimate the gain or loss for each available lot, identify whether it will be short-term or long-term, and compare the result with your projected 2026 taxable income.

A basic estimate can help prevent an unexpected tax bill. Large transactions, missing basis records, concentrated stock positions, carried-forward losses, and multi-state tax situations can make the calculation more complicated. Consider consulting a qualified tax professional before completing a sale that could materially affect your taxes.