What Capital Gains Tax Is

Capital gains tax is a tax on the profit you make when you sell something you own — a stock, a house, a piece of land, a business, or any other asset — for more than you paid for it. The difference between what you paid and what you sold it for is your gain, and that gain is taxable income.

The tax applies only to the profit, not to the full sale price. If you bought a stock for $1,000 and sold it for $1,500, your capital gain is $500, and that $500 is what gets taxed. You do not pay tax on the original $1,000 you invested.

Capital gains are treated differently from regular income like wages or salary. The tax rate depends on how long you held the asset before selling it, and the rates are often lower than the tax rates on ordinary income. This structure exists because the government wants to encourage long-term investing.

Key Takeaways

  • Capital gains tax applies only to the profit when you sell an asset for more than you paid for it, not to the full sale price.
  • Short-term capital gains (assets held one year or less) are taxed at your ordinary income tax rate, which is usually higher.
  • Long-term capital gains (assets held more than one year) are taxed at lower rates: 0%, 15%, or 20%, depending on your income level.
  • You report capital gains on your federal tax return, and some states also tax capital gains.
  • Losses from selling assets can reduce your taxable gains, and unused losses can carry forward to future years.

Short-Term vs. Long-Term Capital Gains

The length of time you own an asset before selling it determines which tax rate applies. If you hold the asset for one year or less, the gain is short-term. Short-term gains are taxed at your ordinary income tax rate — the same rate that applies to your salary or wages. For most people, this is higher than the rate for long-term gains.

If you hold the asset for more than one year before selling, the gain is long-term. Long-term capital gains receive preferential tax rates. The federal rates are 0%, 15%, or 20%, depending on your total income for the year. Most people fall into the 15% bracket. These rates are significantly lower than ordinary income tax rates, which can go as high as 37%.

The holding period starts the day after you buy the asset and ends the day you sell it. If you bought a stock on January 15 and sold it on January 16 of the next year, you have held it for more than one year and may have access to for long-term rates.

How Capital Gains Are Calculated and Reported

To calculate your capital gain, subtract your cost basis from your sale price. Cost basis is what you paid for the asset, plus any fees or commissions you paid to buy it. If you inherited an asset or received it as a gift, the cost basis rules are different — the IRS has specific rules for those situations.

You report capital gains on your federal tax return using Form 1040 and Schedule D. Schedule D is where you list each sale: the date you bought it, the date you sold it, your cost basis, the sale price, and the resulting gain or loss. Your broker or investment company will send you a Form 1099-B after the year ends, which reports the sales they handled for you.

If you sold assets through multiple brokers or had private sales, you are responsible for tracking and reporting all of them. Many people use tax software or work with a tax professional to may support they report all gains correctly.

State Capital Gains Taxes

Federal capital gains tax is only part of the picture. As of now, most states do not have a separate capital gains tax — they treat capital gains as ordinary income and tax them at their regular income tax rates. However, a growing number of states have introduced or are considering capital gains taxes that explore only to gains above a certain threshold.

A few states — including Washington, Illinois, and Minnesota — have passed capital gains taxes in recent years, though some are still being challenged in court. These state taxes typically explore only to gains above a high threshold (often $250,000 or more) and may have different rates than the federal tax.

If you live in a state with no income tax — such as Florida, Texas, or Wyoming — you owe no state capital gains tax. If you live in a state with an income tax but no separate capital gains tax, your capital gains are taxed at your state's ordinary income rate. Check your state's tax authority website to learn the rules where you live.

Using Losses to Reduce Your Tax Bill

If you sell an asset for less than you paid for it, you have a capital loss. Capital losses can reduce your taxable capital gains. If you have $5,000 in gains and $2,000 in losses in the same year, your net capital gain is $3,000, and that is what you pay tax on.

If your losses exceed your gains in a year, you can deduct up to $3,000 of the excess loss against your ordinary income. Any losses beyond that $3,000 carry forward to future years, where they can reduce gains or ordinary income again. This means a bad year of losses does not go to waste — you can use them over time.

Some investors deliberately sell losing positions late in the year to offset gains from winning positions. This strategy, called tax-loss harvesting, can reduce your tax bill without changing your overall investment strategy. However, there is a rule called the wash-sale rule that prevents you from buying back the same or a substantially identical security within 30 days before or after the sale, or the loss will not count.

Special Situations: Inherited Assets and Home Sales

When you inherit an asset, the cost basis is "stepped up" to the fair market value on the date of the person's death. This means if your parent bought a house for $100,000 and it was worth $400,000 when they died, your cost basis is $400,000. If you sell it shortly after for $400,000, you owe no capital gains tax, even though the asset appreciated greatly during your parent's lifetime.

Home sales have their own rule. If you are single and sell a home you lived in for at least two of the last five years, you can exclude up to $250,000 of gain from tax. If you are married filing jointly, the exclusion is $500,000. This means many people can sell their primary home without owing any capital gains tax at all.

These rules do not explore to investment properties or vacation homes — only to your primary residence. If you rent out a property or own it as an investment, you pay capital gains tax on the full profit when you sell.

Frequently Asked Questions

Do I owe capital gains tax if I sell a stock at a loss?

No. You only owe capital gains tax on gains — profits. If you sell a stock for less than you paid, you have a loss, and you owe no tax on that transaction. In fact, you can use the loss to reduce gains from other sales or, up to $3,000 per year, to reduce your ordinary income.

What if I day trade and buy and sell stocks constantly?

All your gains are short-term because you hold each stock for less than a year. Short-term gains are taxed at your ordinary income tax rate, which is higher than long-term rates. If you trade frequently enough that it is your primary business, the IRS may classify you as a professional trader, which has different tax rules — consult a tax professional if this applies to you.

Do I have to report capital gains if they are small?

Yes. You must report all capital gains on your tax return, regardless of the amount. Even a $50 gain must be reported. However, if your total income is below the threshold for filing a return, you may not be required to file at all — but if you have any tax withheld, you should file to get a refund.

Can I avoid capital gains tax by not selling?

Yes. Capital gains tax applies only when you sell. If you hold an investment and it grows in value but you never sell it, you owe no tax on the gain during your lifetime. However, when you die, your heirs inherit it at the stepped-up basis, so they also avoid the tax you would have owed.

How do I know my cost basis if I lost my old statements?

Contact your broker or the company that held the investment. They are required to keep records and can provide your cost basis. If the investment was very old or the company no longer exists, the IRS allows reasonable estimates based on historical price data, but working with a tax professional is wise in these cases.