Capital gains taxes on U.S. stock investments in 2026

Selling a stock at a profit in 2026 triggers a federal tax bill that depends on more than just the gain itself. The proceeds from that sale become part of a taxpayer’s income, which can push the applicable capital gains rate higher and, for incomes near certain fixed thresholds, activate an additional 3.8% surtax. Understanding how these layers interact matters far more than memorizing a single rate.

2026 Long-Term Capital Gains Tax Brackets by Filing Status

The IRS adjusts long-term capital gains thresholds annually for inflation. Revenue Procedure 2025-32 sets the 2026 figures. Short-term gains, by contrast, are taxed at ordinary income rates, which currently reach as high as 37%.

You may also like: IPO investing risks in the U.S. market

Tax Rate Single Filer Married Filing Jointly
0% Taxable income up to the inflation-adjusted threshold Taxable income up to roughly double the single threshold
15% Income above the 0% ceiling through the 15% ceiling Income above the 0% ceiling through the 15% ceiling
20% Income above the 15% ceiling Income above the 15% ceiling

One detail the table does not show is that the gain from the sale itself counts toward the taxable income used to determine which bracket applies. A taxpayer whose salary sits comfortably in the 0% zone can land in the 15% zone once a large realized gain is added to the total.

Woman and financial advisor discussing U.S. stock investment capital gains tax strategy in a modern brokerage office

Related reading: Stock market volatility during U.S. earnings season

How a Year-End Stock Sale Can Change Your Capital Gains Rate and Trigger the NIIT

This is where planning gets granular. Consider a single filer whose salary and other income place modified adjusted gross income (MAGI) just below $200,000. A December stock sale generating a sizable long-term gain does two things at once.

First, the gain adds to taxable income, potentially pushing part of that gain from the 15% bracket into the 20% bracket. Second, if the total MAGI crosses the $200,000 NIIT threshold for single filers (or $250,000 for married couples filing jointly), the 3.8% Net Investment Income Tax kicks in on the lesser of net investment income or the amount exceeding the threshold.

The result: a taxpayer who expected to owe 15% on a long-term gain could face an effective federal rate of 23.8% on some or all of that gain. That 23.8% combines the top 20% long-term rate with the 3.8% NIIT.

Why the NIIT Thresholds Are a Growing Problem

Unlike the capital gains brackets, the NIIT thresholds are not indexed for inflation. They have remained at $200,000 (single) and $250,000 (joint) since the tax was introduced. As wages and investment returns rise with inflation, more filers cross these lines each year.

Data from processed returns illustrates the trend: roughly 6% of returns in 2025 included NIIT, up from 3.7% in 2021. For an investor whose income hovers near the threshold, even a modest stock sale in a strong market year can trigger the surtax.

Short-Term vs. Long-Term Capital Gains on Stock Sales

The holding period divides gains into two tax regimes. Shares held for one year or less generate short-term gains, taxed at ordinary income rates. Shares held for more than one year qualify for the lower long-term rates outlined above.

  • Short-term gains are added directly to ordinary income and taxed at rates up to 37%, making them significantly more expensive for high earners
  • Long-term gains benefit from the preferential 0%, 15%, or 20% rate schedule, but the gain itself still counts toward the income that determines which rate applies
  • Both types of gains count toward MAGI for NIIT purposes, so even a short-term gain can push a taxpayer past the fixed $200,000 or $250,000 threshold

Waiting an extra day to cross the one-year mark can produce a meaningful difference in after-tax proceeds. For a taxpayer in the 37% ordinary bracket, switching a gain from short-term to long-term drops the base rate to at most 20%, a spread of 17 percentage points before the NIIT is even considered.

Capital Losses and the $3,000 Deduction Limit

Losses on stock sales offset gains dollar for dollar when both are realized in the same tax year. If net losses exceed net gains, the IRS allows a deduction of up to $3,000 against ordinary income per year ($1,500 for married filing separately). Unused losses carry forward indefinitely.

This creates a tactical lever. Selling a losing position before December 31 can reduce the taxable gain from a winning position, lowering both the capital gains rate bracket exposure and the chance of crossing a NIIT threshold.

  • Short-term losses offset short-term gains first, then long-term gains
  • Long-term losses offset long-term gains first, then short-term gains
  • The wash-sale rule prohibits repurchasing a substantially identical security within 30 days before or after the sale if the investor wants to claim the loss

Timing Sales Across Tax Years

Splitting gains across two calendar years can keep income below a bracket breakpoint in each year. An investor sitting near the 15%-to-20% boundary in December might defer part of a sale to January, keeping both years in the 15% zone. The same logic applies to the NIIT thresholds: two years at $195,000 MAGI beat one year at $240,000 for a single filer trying to avoid the surtax.

Man calculating capital gains taxes on U.S. stock investments in 2026 with a tablet and handwritten notes at a kitchen counter

Reporting Stock Capital Gains to the IRS

Brokerages report cost basis and sale proceeds on Form 1099-B. Taxpayers then report gains and losses on Schedule D, supported by Form 8949 for individual transactions. Errors in cost basis, particularly for shares acquired through reinvested dividends or stock splits, are a common source of overpayment.

Taxpayers who owe the NIIT file Form 8960 alongside their return. For large gains that significantly change the annual tax liability, the IRS may require estimated tax payments to avoid an underpayment penalty.

The 2026 capital gains brackets will adjust again for inflation in the 2027 tax year per IRS procedure, while the NIIT thresholds remain fixed absent new legislation. For investors whose incomes keep pace with inflation, the gap between adjusted brackets and static NIIT limits narrows every year, making the interaction between a stock sale’s size, its timing, and the resulting tax rate a calculation worth running before clicking “sell.”

Most popular

9 Min Read Stocks

Retirement accounts for stock investing: 401(k)s and IRAs

Every dollar you put toward stocks inside a retirement account lands in one of two tax…

9 Min Read News

U.S. housing market trends as mortgage rates reshape homebuying

The U.S. housing market entered 2026 with cautious optimism. The average 30-year fixed-rate mortgage had dipped…