A capital gain is the profit when you sell an investment or other capital asset for more than your basis, which is usually what you paid. Gains on assets you held one year or less are taxed at the same rates as wages; gains on assets held more than a year are generally taxed at 0%, 15% or 20%, depending on your taxable income. For 2026, long-term gains that fall within the first $49,450 of taxable income for single filers, or $98,900 for married couples filing jointly, are taxed at 0%.

What counts as a capital gain or loss

The IRS says almost everything you own for personal use or investment is a capital asset, including stocks, bonds, your home and household furnishings. When you sell one, the difference between your adjusted basis and the amount you get from the sale is a capital gain or loss.

For stocks and bonds, your basis is generally the purchase price plus costs of buying, such as commissions. Inherited and gifted property follow different rules, covered below. A loss on personal-use property, such as your home or car, isn't deductible. Selling stocks, bonds, mutual funds, real estate held as an investment and crypto can all produce capital gains or losses. The IRS treats digital assets such as cryptocurrency as property, so the same rules apply.

Short term or long term

If you held the asset more than one year, the gain or loss is long-term. If you held it one year or less, it is short-term. Count from the day after you bought it through the day you sold it. For stocks and other securities traded on an established market, use the trade date, not the settlement date.

  • Short-term gains are taxed as ordinary income at your regular rates, which run from 10% to 37% for 2026.
  • Long-term gains get the lower 0%, 15% or 20% rates.
  • Inherited property is treated as long-term no matter how long you held it.
  • Mutual fund and REIT capital gain distributions are reported as long-term gains, however long you owned the shares.

2026 long-term capital gains rates

The rate depends on your total taxable income, with your gains counted on top of your other income. These thresholds come from IRS Revenue Procedure 2025-32 and apply to tax year 2026, the return you file in 2027.

On a small screen, scroll the table sideways to read every column.

2026 long-term capital gains rates by taxable income
Filing status0% up to15% up to20% above
Single$49,450$545,500$545,500
Married filing jointly or qualifying surviving spouse$98,900$613,700$613,700
Married filing separately$49,450$306,850$306,850
Head of household$66,200$579,600$579,600

Qualified dividends are taxed at these same rates. A few gains have higher maximum rates: 28% for collectibles such as coins or art and for the taxable part of gain on certain small business stock, and 25% for unrecaptured section 1250 gain from selling depreciated real estate. The IRS adjusts the thresholds for inflation each year, so check the figures for the year you sell.

Hypothetical example: Sam is single and has 2026 taxable income of $60,000, made up of $40,000 of ordinary income after deductions and a $20,000 long-term gain on stock held for three years. The ordinary income fills the first $40,000. The next $9,450 of the gain, up to $49,450, is taxed at 0%. The remaining $10,550 is taxed at 15%, or $1,582.50. Tax on the $40,000 of ordinary income is $4,552 using the 2026 rate schedule, so Sam's total federal income tax before credits is $6,134.50. If the stock had been held only 11 months, the whole $60,000 would be taxed at ordinary rates, for $7,912, which is $1,777.50 more.

The 3.8% net investment income tax

Higher-income households may also owe the net investment income tax (NIIT). According to IRS Topic 559, it is 3.8% of the smaller of your net investment income or the amount by which your modified adjusted gross income is over:

  • $200,000 if you are single or head of household
  • $250,000 if you are married filing jointly or a qualifying surviving spouse
  • $125,000 if you are married filing separately

These thresholds are not adjusted for inflation. Net investment income includes interest, dividends and capital gains. The NIIT doesn't apply to wages or to home sale gain you can exclude. You figure it on Form 8960.

Selling your home

If you sell your main home at a gain, you may be able to exclude up to $250,000 of the gain from income, or up to $500,000 on a joint return. Under IRS Topic 701, you generally qualify if you owned the home and lived in it as your main home for at least 2 years of the 5 years before the sale. The 2 years of ownership and use don't have to be the same 2 years. On a joint return, either spouse can meet the ownership test, but both must meet the use test. You generally can't use the exclusion if you used it on another home sale in the 2 years before this one.

You must report the sale if you get Form 1099-S or if part of your gain is more than the exclusion. Members of the uniformed services, the Foreign Service and the intelligence community on qualified extended duty can choose to suspend the 5-year period for up to 10 years. A loss on the sale of your home can't be deducted. IRS Publication 523 has the full rules and worksheets.

Losses and the wash sale rule

Capital losses offset capital gains. If your losses are bigger than your gains for the year, you can deduct up to $3,000 of the net loss against other income, or $1,500 if you are married filing separately. Any loss above that carries forward to future years.

Under the wash sale rule in IRS Publication 550, you can't deduct a loss on stock or securities if, within 30 days before or after the sale, you buy substantially identical stock or securities, get an option or contract to buy them, or acquire them for your IRA or Roth IRA. It also applies when your spouse buys them. The disallowed loss is normally added to the basis of the new shares, which postpones the loss until you sell those. A loss disallowed because of an IRA or Roth IRA purchase is not added to basis.

Keep basis records

Your gain or loss is only as accurate as your basis. When you sell through a brokerage account, you get Form 1099-B showing the proceeds. For covered securities, which generally means securities you acquired after 2010, the broker also reports your basis. For older shares, you may need your own records. Brokers report digital asset transactions on Form 1099-DA.

  • Bought in several lots? If you can identify which shares you sold, you use their basis. If you can't, the shares you bought first are treated as sold first. Some mutual fund shares can use an average basis.
  • Reinvested dividends buy new shares, and each one has its own holding period that starts the day after it was bought, so one sale can produce both short-term and long-term results. You report the dividends as income even when they are reinvested, so keep a record of what each purchase cost.
  • Inherited property generally takes its fair market value on the date of death as its basis, according to IRS Publication 551.
  • Gifts generally carry over the giver's basis. If the property was worth less than the giver's basis when you received it, a different basis applies for figuring a loss.

You report most sales on Form 8949 and total them on Schedule D. A taxable gain may also mean you need to make estimated tax payments during the year. State income tax treatment of capital gains varies, so check your state tax agency; our guide to state income taxes covers moves between states. A VITA or TCE site may help with a basic return. For a home sale with an exclusion question, a large inherited portfolio, crypto with incomplete records or business real estate, get help from a credentialed tax professional.

Spotted something wrong or out of date? Report a correction and include this page’s address.