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

Advertiser Disclosure

Capital Gains Tax on Stocks in 2026: Rates & Tax Tips

Capital Gains Tax on Stocks in 2026: Rates & Tax Tips

Capital Gains Tax on Stocks in 2026: Federal Rates, Holding Periods, and Tax-Saving Strategies

Selling a winning stock can create a tax bill, but the amount depends on more than the size of your profit. Your holding period, total taxable income, filing status, investment losses, state of residence, and exposure to the Net Investment Income Tax can all affect the result.

For 2026, long-term stock gains are generally taxed federally at 0%, 15%, or 20%. Short-term gains are taxed at ordinary federal income-tax rates, which range from 10% to 37%. Understanding these rules before placing a trade can help you avoid an unexpected bill and identify legitimate tax-saving opportunities.

This article provides general educational information, not individualized tax, legal, or investment advice.

What Is Capital Gains Tax on Stocks?

A capital gain occurs when you sell stock for more than your adjusted cost basis. The gain generally becomes taxable when it is realized through a sale or other taxable disposition.

  • Realized gain: You sell an investment for a profit. The gain is generally reportable for that tax year.
  • Unrealized gain: The investment has increased in value, but you still own it. Price appreciation alone generally does not create a federal capital gains tax bill.

A simplified calculation is:

Taxable capital gain = sale proceeds − adjusted cost basis − eligible selling costs

Suppose you bought shares for $12,000, paid $10 in acquisition costs, and later sold them for $17,000 while incurring $10 in selling costs. Your adjusted gain would generally be $4,980:

$17,000 − $12,010 − $10 = $4,980

Stock sales completed during 2026 are generally reported on the 2026 federal income-tax return filed in 2027. Your broker will typically issue Form 1099-B showing sale proceeds and, when available, cost-basis information.

Taxable Accounts Versus Tax-Advantaged Accounts

Capital gains rules most directly affect regular taxable brokerage accounts. Selling appreciated stock inside a traditional IRA, Roth IRA, 401(k), or similar tax-advantaged account generally does not create a current capital gains tax bill.

Those accounts have separate rules. Traditional retirement-account withdrawals may be taxed as ordinary income, while qualified Roth withdrawals may be federally tax-free. Contribution limits, early-withdrawal restrictions, required distributions, and account-specific eligibility rules can also apply.

2026 Federal Capital Gains Tax Rates

Most long-term gains on publicly traded stocks are subject to one of three federal rates: 0%, 15%, or 20%. The applicable rate depends on filing status and total taxable income, including the gain.

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

These are taxable-income thresholds—not salary or sale-price thresholds. Taxable income is calculated after applicable adjustments and deductions, and the taxable gain itself is included when determining how much falls into each capital-gains bracket.

Long-term gains generally stack on top of ordinary taxable income. As a result, one stock sale can span multiple brackets. For example, if a single filer has $45,000 of taxable income before a $20,000 net long-term gain, only the remaining space below $49,450 may qualify for the 0% rate. The rest would generally fall into the 15% bracket, assuming no other complicating factors.

The 3.8% Net Investment Income Tax

Higher-income investors may also owe the 3.8% Net Investment Income Tax, or NIIT. It is separate from the regular 0%, 15%, or 20% long-term capital gains tax.

The NIIT generally applies to the lesser of net investment income or the amount by which 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.

Because these thresholds use modified adjusted gross income rather than taxable income, an investor can encounter the NIIT even when the regular capital-gains bracket calculation produces a different result.

Short-Term Versus Long-Term Stock Gains

A stock’s holding period determines whether a gain is short-term or long-term.

  • Short-term gain: Profit from stock held for one year or less. It is generally taxed at ordinary federal income-tax rates, ranging from 10% to 37% in 2026.
  • Long-term gain: Profit from stock held for more than one year. It generally qualifies for the 0%, 15%, or 20% federal rates.

Waiting until a position qualifies for long-term treatment can reduce the federal rate, especially for an investor whose ordinary marginal rate is higher than the applicable long-term rate. Taxes should not be the only consideration, however. Holding a volatile or concentrated position solely for a tax benefit can expose the investor to additional market risk.

Holding-Period Example

Assume an investor buys stock on January 10, 2025. The holding period begins on January 11. A sale on January 10, 2026, generally produces short-term treatment because the shares were held for no more than one year. A sale on January 11, 2026, generally qualifies as long-term because the holding period exceeds one year.

This is why the purchase date and sale date matter. Investors approaching the one-year boundary should verify settlement and trade records before assuming that a gain is long-term.

How to Calculate Your Taxable Stock Gain

Calculating a gain can be straightforward for a single purchase, but multiple tax lots, dividend reinvestments, stock splits, mergers, and other corporate actions can complicate the cost basis.

Items That Can Change Cost Basis

  • Commissions and transaction costs: Certain acquisition and selling costs may adjust basis or reduce proceeds.
  • Reinvested dividends: Reinvested dividends generally buy additional shares and create new tax lots. The dividends may still be taxable when paid even though they were reinvested.
  • Stock splits: A split usually reallocates the existing basis across a larger or smaller number of shares rather than creating immediate taxable income.
  • Mergers and spinoffs: These actions may require basis to be allocated among multiple securities.
  • Return-of-capital distributions: These generally reduce basis and may create a gain after basis reaches zero.

Choosing Which Shares to Sell

If you bought the same investment at different prices, the tax result depends on which shares are treated as sold.

  • FIFO: First in, first out assumes the earliest purchased shares are sold first. This is a common broker default.
  • Specific identification: You instruct the broker to sell particular tax lots. This can help control the amount and character of the gain, but the identification must be completed and documented according to the applicable rules.
  • Average cost: This method may be available for eligible mutual-fund shares and certain dividend reinvestment plan shares. It generally is not the standard method for individual stocks.

Review the broker’s default disposal method before trading. A default FIFO sale might dispose of low-basis shares and create a larger gain than selling a newer, higher-basis lot.

Netting Gains and Losses

Capital gains and losses are netted through a sequence that preserves their short-term or long-term character. Short-term gains are first combined with short-term losses, and long-term gains are combined with long-term losses. The resulting net amounts are then netted against each other.

If total capital losses exceed total capital gains, an individual can generally deduct up to $3,000 of the remaining net loss against ordinary income for the year. The limit is generally $1,500 for a married taxpayer filing separately. Unused losses generally carry forward to later tax years until absorbed, subject to the applicable rules.

Form 8949 and Schedule D are commonly used to report stock transactions and calculate net capital gain or loss. Broker-reported information should be checked against personal records because cost basis may be missing or require adjustment.

Tax-Saving Strategies for Stock Investors in 2026

1. Hold Appreciated Shares for More Than One Year

When investment objectives and risk tolerance permit, waiting until a gain becomes long-term may reduce its federal tax rate. Before waiting, compare the potential tax savings with the risk that the stock’s price could decline.

2. Harvest Investment Losses

Selling an investment below its adjusted basis can generate a capital loss that offsets realized gains. If an investor has a $12,000 long-term gain and realizes a qualifying $5,000 long-term loss, the initial net long-term gain would be reduced to $7,000.

The wash-sale rule can postpone a loss deduction when substantially identical stock or securities are purchased within 30 days before or after the loss sale. That creates a 61-day window surrounding the sale date. Purchases in an IRA, a spouse’s account, or through automatic dividend reinvestment can also create problems in some situations. Review all relevant accounts before harvesting a loss.

3. Use Available Space in the 0% Bracket

A lower-income year may offer an opportunity to realize long-term gains at a 0% federal rate. For example, retirement, a career break, or an unusually large business deduction could reduce taxable income.

Estimate taxable income with the proposed gain included. Realizing too much can push part of the gain into the 15% bracket and may affect income-based tax provisions, credits, Medicare premiums, or other financial calculations.

4. Donate Appreciated Shares

An investor who itemizes deductions may be able to donate appreciated stock directly to a qualified charity or donor-advised fund. When the requirements are met, the investor may avoid realizing the embedded capital gain and potentially claim a charitable deduction based on the stock’s eligible value.

Deduction limits, substantiation requirements, appraisal rules, and carryforward provisions can apply. Donating shares directly is often more tax-efficient than selling them first and donating the cash, but individual circumstances matter.

5. Use Tax-Advantaged Accounts for Future Investments

IRAs, workplace retirement plans, and health savings accounts can shelter eligible investment activity from annual capital-gains taxation. The tradeoff is that these accounts have contribution limits, eligibility rules, investment restrictions, and withdrawal requirements. Traditional retirement withdrawals may also be taxed as ordinary income.

6. Spread a Large Sale Across Tax Years

Selling part of a position in December 2026 and another part in January 2027 may keep more of the gain in a lower bracket than completing the entire sale in one year. This approach can also help manage NIIT exposure and state taxes.

The strategy adds market risk because the remaining shares continue to fluctuate. It also requires updated calculations for each year.

7. Select Tax Lots Deliberately

Specific identification may allow an investor to sell high-basis shares, harvest a targeted loss, or choose between short-term and long-term lots. Confirm the selected lots with the broker at the time of sale and retain the written confirmation.

State Taxes, NIIT, and Other Costs to Check

A 0% federal long-term capital gains rate does not necessarily mean the transaction is tax-free. Many states tax capital gains, often at the same rates used for ordinary income. Some cities and local jurisdictions also impose income taxes. State treatment can differ from federal law, and moving between states may create residency or sourcing questions.

The 3.8% NIIT is another separate cost. An investor subject to the 20% long-term rate and the NIIT can face a combined federal rate of 23.8% on the affected gain before state and local taxes.

Special investments may require additional analysis:

  • Restricted stock and restricted stock units can produce compensation income as well as capital gains.
  • Incentive and nonqualified stock options have different exercise and sale rules.
  • Employee stock purchase plans may generate both ordinary income and capital gain or loss.
  • Mutual funds can distribute taxable capital gains even when the investor does not sell fund shares.
  • ETFs can also make taxable capital-gain distributions, although their structure may make such distributions less frequent in many cases.

A large gain may require quarterly estimated tax payments or an increase in paycheck withholding. Waiting until the return is filed could result in an underpayment penalty even if the full balance is paid by the filing deadline.

What to Do Before Selling Stocks in 2026

Use this checklist before placing a trade in a taxable account:

  1. Calculate the expected gain or loss for every tax lot under consideration.
  2. Confirm the adjusted basis, including reinvested dividends and relevant corporate actions.
  3. Estimate total 2026 taxable income with the proposed sale included.
  4. Check the exact acquisition date to determine whether each lot is short-term or long-term.
  5. Identify current-year losses and capital-loss carryforwards from prior returns.
  6. Review all accounts for purchases that could trigger the wash-sale rule.
  7. Compare federal capital-gains tax, NIIT, and state or local tax consequences.
  8. Consider whether selling in stages would better manage brackets without creating unacceptable investment risk.
  9. Choose and document the intended tax lots before the trade settles.
  10. Keep trade confirmations, basis records, corporate-action notices, and Form 1099-B for tax preparation.

Investors with concentrated positions, employee stock options, restricted stock, large gains, missing basis records, or multistate filing obligations should consider consulting a qualified tax professional before selling.

What to Do Next

Start by downloading the unrealized gain-and-loss report from your brokerage account. Separate short-term and long-term lots, estimate your 2026 taxable income, and model the sale under different lot-selection and timing scenarios.

The central lesson is simple: the sale price alone does not determine the tax bill. Holding period, adjusted basis, total taxable income, capital losses, NIIT exposure, and state law all matter. Reviewing those factors before trading gives you more control than trying to repair the tax outcome after the sale is complete.