Capital gains tax is the federal income tax on the profit from selling a capital asset for more than its adjusted basis. The gain equals the amount realized from the sale minus adjusted basis, and the rate depends on how long you held the asset, your taxable income, and the asset type.

How much is capital gains tax in 2026?

Most long-term capital gains are taxed at 0%, 15%, or 20% in 2026. Net short-term gains are taxed as ordinary income, with a top rate of 37%, and high-income filers may owe an additional 3.8% net investment income tax.

Filing status0% rate applies up to15% rate applies up to20% rate applies above
Single$49,450$545,500$545,500
Married filing jointly / 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
Estates and trusts$3,300$16,250$16,250

Those thresholds use taxable income, not gross income. The 2026 standard deduction is $16,100 for single filers, $32,200 for married filing jointly, and $24,150 for head of household, so the income that fills the 0% bracket is measured after deductions.

What counts as a capital asset and how is the gain figured?

Almost everything owned and used for personal or investment purposes is a capital asset, including a home, household furnishings, stocks, and bonds. The taxable gain is the amount realized from the sale minus adjusted basis; when the sale price is below basis, the result is a capital loss.

Basis is generally cost, but special basis rules apply to gifts and inheritances under Publication 551. A seller cannot always use the original purchase price, and inherited assets may need a different starting basis. The IRS treats personal-use property losses differently from investment losses.

How do short-term and long-term gains differ?

An asset held more than one year produces a long-term gain or loss; one held one year or less produces a short-term gain or loss. The holding period starts the day after acquisition and runs through the disposition day.

Net short-term capital gain is taxed as ordinary income at graduated rates. Net long-term capital gain gets the 0%, 15%, or 20% rates, with exceptions for collectibles, section 1202 qualified small business stock, and unrecaptured section 1250 gain.

How do you calculate capital gains tax step by step?

Start with the sale proceeds, subtract adjusted basis, count the holding period, net gains and losses, then apply the bracket that fits your taxable income. The order matters because a long-term gain can cross more than one rate bracket.

Step 1: Find the amount realized and adjusted basis

Amount realized is what you receive from the sale, including cash and the value of property or services received. Adjusted basis is generally cost, adjusted for items such as improvements or depreciation depending on the asset.

Step 2: Count the holding period

Long-term treatment requires holding the asset more than one year. Count from the day after acquisition through the disposition day; one year or less is short-term.

Step 3: Net capital gains and losses

Combine long-term gains and losses, and short-term gains and losses. Net capital gain is net long-term capital gain minus net short-term capital loss; long-term losses and carryovers reduce long-term gains first.

Step 4: Stack long-term gain on ordinary income

Long-term gains sit on top of ordinary taxable income. Part of the gain may fall in the 0% bracket even when your salary alone is below the ceiling, while the rest can land in the 15% or 20% bracket.

Step 5: Add NIIT if income is above the threshold

After regular tax, check the 3.8% net investment income tax. It applies to the lesser of net investment income or modified adjusted gross income above the threshold, so a large gain can trigger it even when the regular capital gain rate is 15%.

For example, a single filer has $40,000 of ordinary taxable income and a $30,000 long-term capital gain, so taxable income is $70,000. The 0% bracket runs to $49,450, leaving $9,450 of the gain at 0%. The remaining $20,550 is taxed at 15%, or $3,082.50.

If the same $30,000 were short-term, the gain would be ordinary income. The tax on the gain from $40,000 to $70,000 is $10,400 at 12% ($1,248) plus $19,600 at 22% ($4,312), or $5,560.

Does the 0% capital gains rate mean I pay no tax?

Not always. The 0% rate applies only to the part of a net long-term capital gain that falls within the 0% bracket. Ordinary income still follows the ordinary brackets, and short-term gains are still taxed as ordinary income.

For example, a single filer with $45,000 of ordinary taxable income and a $10,000 long-term gain has $4,450 of the gain in the 0% bracket ($49,450 minus $45,000). The other $5,550 is taxed at 15%, or $832.50.

When does the 3.8% net investment income tax apply?

NIIT is 3.8% of the lesser of net investment income or modified adjusted gross income above the threshold. The thresholds are $250,000 for married filing jointly or a qualifying surviving spouse, $125,000 for married filing separately, and $200,000 for single or head of household. Gain on a personal residence that is excluded from gross income for regular tax is also excluded from NIIT.

Net investment income includes interest, dividends, capital gains, rental and royalty income, and non-qualified annuities. It generally excludes wages, unemployment compensation, Social Security benefits, alimony, and most self-employment income. The 0.9% Additional Medicare Tax applies to wages, compensation, and self-employment income, not to net investment income; a taxpayer may owe both taxes but not on the same income.

For example, a married couple filing jointly with $300,000 of MAGI and $50,000 of net investment income has $50,000 of MAGI above the $250,000 threshold. The NIIT is 3.8% of the lesser $50,000, or $1,900.

What special rates apply to collectibles and other assets?

Collectibles gains can face a maximum 28% rate. Section 1202 qualified small business stock also has a maximum 28% rate, and unrecaptured section 1250 gain has a maximum 25% rate.

These exceptions matter because a sale that looks like a standard long-term gain may not fit the 0%, 15%, or 20% table. Check the asset type before using the regular long-term brackets.

How do capital losses reduce capital gains tax?

Capital losses first offset capital gains. If net losses exceed gains, you can deduct up to $3,000 against ordinary income, or $1,500 if married filing separately, and carry the excess forward to later years.

Losses on personal-use property such as a home or car are not deductible. Investment losses can reduce tax, but the $3,000 limit applies to the net capital loss after gains, not to each sale.

How is capital gains tax handled on a rental property sale?

A rental property sale can produce more than one tax layer. The gain is the sale amount minus adjusted basis, but the basis is reduced by depreciation taken, and depreciation recapture can be taxed at a maximum 25% rate for unrecaptured section 1250 gain. The remaining long-term gain can use the 0%, 15%, or 20% rates.

A rental owner should separate the unrecaptured section 1250 gain from the rest of the gain before applying the regular long-term brackets. Rental records for improvements and depreciation also affect basis, so the tax on the sale can differ from a simple purchase-price calculation. See Rental Property Tax Deductions for the records that matter.

Do I need to make estimated tax payments after a big gain?

A taxable capital gain may require estimated tax payments, especially when the sale happens late in the year and withholding does not cover the tax. Recompute your expected tax after the sale and adjust the next payment or withholding.

A large gain can create a balance due even when the regular rate is 15%, because the 3.8% NIIT may also apply. Waiting until the return is filed can lead to a penalty, so review the payment rules before the next due date.

Common mistakes

  • Treating the full sale price as taxable gain instead of subtracting adjusted basis.
  • Miscounting the holding period and reporting a short-term gain as long-term, or the reverse.
  • Deducting a loss on personal-use property such as a home or car.
  • Using only the purchase price as basis for gifted or inherited assets without applying special basis rules.
  • Assuming every long-term gain fits the 0%, 15%, or 20% rates and missing the 28% collectibles rate, 28% section 1202 rate, or 25% unrecaptured section 1250 rate.
  • Forgetting the separate 3.8% NIIT and its modified adjusted gross income thresholds.
  • Skipping estimated tax payments after a large gain, then facing a balance due.
  • Not reporting capital transactions on Form 8949 and Schedule D when required.