Capital Gains Tax Guide

When you sell an investment for more than you paid, the profit is a capital gain. This guide explains how long you hold it, how your income sets the rate, how losses help and which special rules matter.

Updated October 13, 20265 min readBy FinTools USA Editorial TeamChecked against official sourcesHow we review
Key takeaways
  • A capital gain is the profit when you sell an asset for more than your basis, usually what you paid. You owe tax only when you sell, not while the value rises.
  • Assets held more than one year produce long-term gains, taxed at 0%, 15% or 20%. Assets held one year or less produce short-term gains, taxed as ordinary income.
  • For 2026, a single filer's 0% rate applies up to $49,450 of taxable income and the 15% rate up to $545,500. For joint filers the limits are $98,900 and $613,700.
  • Capital losses offset gains, and up to $3,000 of extra losses ($1,500 if married filing separately) reduces other income each year, with the rest carried forward.
In this article
  1. Gain, basis and when the tax is due
  2. Short-term vs long-term
  3. The 2026 long-term rates
  4. Worked example: how the stack works
  5. Capital losses
  6. Special rates and exceptions
  7. Ways people legally manage the tax
  8. Common mistakes
  9. Frequently asked questions
  10. Sources

You owe capital gains tax when you sell an asset, such as stock, a fund, a coin or a rental property, for more than your cost. The tax rate depends on how long you owned the asset and how much other income you have. Holding for more than one year usually lowers the tax substantially, which is the most useful single fact to know about this subject.

Gain, basis and when the tax is due

Your gain is the sale price minus your basis. Basis is generally what you paid, plus certain costs such as commissions. If you bought shares for $8,000 and sold them for $11,000, your gain is $3,000. The gain is unrealized while you still own the asset, and it only becomes taxable when you realize it by selling. Dividends and interest are separate income and are taxed in the year you receive them.

Inside a 401(k), traditional IRA or Roth IRA, you do not owe capital gains tax on sales within the account. Traditional accounts are taxed as ordinary income when you withdraw, and qualified Roth withdrawals are tax-free. See what is a 401(k) for the account rules.

Short-term vs long-term

Short-term Long-term
Holding period One year or less More than one year
Tax rate Your ordinary income rate, 10% to 37% 0%, 15% or 20%
Rate depends on Your total taxable income and brackets Your taxable income, including the gain
Planning idea Avoid selling just before the one-year mark if you can Holding past the mark can reduce tax

The IRS counts the holding period from the day after you acquire the asset through the day you sell it. A sale one day too early can turn a long-term gain into a short-term one.

The 2026 long-term rates

Your long-term gain is stacked on top of your other taxable income. The part of the gain that falls below the 0% line is untaxed, the next part is taxed at 15% and anything above the 15% ceiling is taxed at 20%.

Filing status 0% up to 15% up to 20% above
Single $49,450 $545,500 $545,500
Married filing jointly $98,900 $613,700 $613,700
Head of household $66,200 $579,600 $579,600
Married filing separately $49,450 $306,850 $306,850

These are amounts of taxable income, after the standard deduction. Revenue Procedure 2025-32 is the source for the 2026 amounts.

Worked example: how the stack works

A single filer has a $20,000 long-term gain. The table shows how different amounts of wages change the tax on the gain. Taxable income is wages minus the $16,100 standard deduction, before adding the gain.

Wages Taxable income before gain Gain at 0% Gain at 15% Gain at 20% Tax on the gain
$30,000 $13,900 $20,000 $0 $0 $0
$50,000 $33,900 $15,550 $4,450 $0 $668
$70,000 $53,900 $0 $20,000 $0 $3,000
$150,000 $133,900 $0 $20,000 $0 $3,000
$600,000 $583,900 $0 $0 $20,000 $4,000

The first row shows why a low-income investor can sometimes sell at a profit and owe nothing. At $50,000 of wages the gain straddles the 0% line, so part of it is taxed at 0% and part at 15%. The capital gains tax calculator does this stacking for your own numbers.

Now compare with a short-term gain. If the same $20,000 gain were short-term for a filer with $70,000 of wages, it would be added to ordinary income and taxed at ordinary rates.

Long-term Short-term
Ordinary taxable income before the gain $53,900 $53,900
Tax on the gain $3,000 $4,400

Waiting past the one-year mark saves this filer $1,400 in this example. That is a tax saving only. Keep investment risk in mind: it is rarely wise to hold an asset only for the tax treatment.

Capital losses

A loss occurs when you sell for less than your basis. Losses first offset gains of the same type, short-term against short-term and long-term against long-term, and then net across the types. If your losses exceed your gains, you can deduct up to $3,000 of the excess against other income each year, or $1,500 if you are married filing separately. Unused losses carry forward to later years until used.

For example, if you have $5,000 of gains and $9,000 of losses, your net loss is $4,000. You deduct $3,000 this year against other income and carry $1,000 forward.

The wash sale rule denies a loss deduction if you buy the same or a substantially identical security within 30 days before or after the sale. The disallowed loss is added to the basis of the new shares instead. Check the IRS guidance before using losses in a taxable account.

Special rates and exceptions

  • Collectibles, such as coins and art, and the taxable part of gain on qualified small business stock can be taxed at up to 28%.
  • Unrecaptured Section 1250 gain from real estate depreciation can be taxed at up to 25%.
  • Net investment income tax of 3.8% applies when modified adjusted gross income is above $200,000 for single filers, $250,000 for joint filers and $125,000 for married filing separately. It applies to the smaller of your net investment income and the amount over the threshold.
  • Selling your home: you can exclude up to $250,000 of gain, or $500,000 for joint filers, if you owned and lived in the home for at least two of the five years before the sale.
  • Crypto and other digital assets are treated as property, so selling or trading them can produce gains and losses.
  • State tax: many states tax capital gains as ordinary income, and a few have no income tax.

Ways people legally manage the tax

  1. Hold longer than a year when it fits your goals.
  2. Use tax-advantaged accounts. Growth inside a 401(k) or IRA is not taxed each year.
  3. Match gains with losses within the same year, subject to the wash sale rule.
  4. Be aware of your income in the year you sell. A year with lower income can bring a 0% rate.
  5. Give appreciated assets to charity rather than selling them, if you itemize and plan to give. The rules are detailed, so confirm them with the IRS.
  6. Keep basis records. Without a record you may have to treat the whole sale price as gain.

Common mistakes

  1. Paying tax on unrealized gains. There is no tax until you sell.
  2. Forgetting reinvested dividends, which raise your basis.
  3. Selling a day before one year passes.
  4. Ignoring state tax.
  5. Triggering a wash sale by rebuying the same fund within 30 days.
  6. Assuming the rate depends on the gain alone. It depends on total taxable income.
Capital Gains Tax CalculatorEnter a sale and see the federal tax, including NIIT and state tax.
Open the calculator

Frequently asked questions

What is the long-term capital gains tax rate in 2026?

It is 0%, 15% or 20%, depending on your taxable income and filing status. A single filer pays 0% up to $49,450 of taxable income.

How long must I hold an asset for long-term treatment?

More than one year. Selling at one year or less produces a short-term gain taxed as ordinary income.

Do I pay capital gains tax on my home?

Only on the gain above the exclusion of $250,000 ($500,000 for joint filers) if you meet the ownership and use tests.

Can capital losses reduce my taxes?

Yes. They offset gains, and up to $3,000 a year of extra losses reduces other income. The rest carries forward.

Do I owe tax when I reinvest the proceeds?

Yes. Selling is the taxable event, whether or not you buy something else with the money.

Sources

Disclaimer: This page is for educational purposes only and is not financial, tax or legal advice. Figures are estimates based on the assumptions shown. See our full disclaimer and editorial policy.

Free calculators for this topic

Keep reading