You pay capital gains tax only if you sold an asset for more than you paid for it, and only on the profit itself — not the full sale price

Capital gains tax applies to the difference between what you paid for something and what you sold it for. If you bought stock for $1,000 and sold it for $1,200, your capital gain is $200. You owe tax on that $200, not on the full $1,200. If you sold it for less than you paid, you have a capital loss instead, which can reduce your tax bill in other ways.

Whether you actually owe tax depends on three things: whether your gain is long-term or short-term, how much the gain is, and what your total income looks like that year. Some people with small gains owe nothing. Others with larger gains may owe 0%, 15%, or 20% depending on their income bracket. The IRS requires you to report the sale on your tax return even if you owe zero tax.

Key Takeaways

  • You only pay tax on the profit from a sale, not the full amount you received.
  • Long-term capital gains (assets held over one year) are taxed at lower rates than short-term gains, which are taxed as ordinary income.
  • Your total income for the year determines which tax rate applies to your long-term gains — 0%, 15%, or 20%.
  • You must report all capital gains and losses on your tax return, even if you owe no tax.
  • Losses can reduce your gains and up to $3,000 of other income in the same year.

How holding time changes your tax rate

The IRS splits capital gains into two categories based on how long you owned the asset. Short-term capital gains come from assets you held for one year or less. These are taxed as ordinary income at your regular tax bracket rate — which can be 10%, 12%, 22%, 24%, 32%, 35%, or 37% depending on your income.

Long-term capital gains come from assets you held for more than one year. These get preferential tax rates: 0%, 15%, or 20%. Which rate you pay depends entirely on your income level that year, not on how much the asset itself appreciated. A person in the 22% ordinary income bracket might pay 15% on long-term gains. Someone in the 37% bracket pays 20%.

The holding period starts the day after you buy and ends the day you sell. If you bought stock on March 15 and sold it on March 15 the next year, you held it for exactly one year and may have access to for long-term rates. If you sold on March 14, it counts as short-term.

Income thresholds that determine your capital gains tax rate

For 2024, the long-term capital gains tax brackets are based on your taxable income, not your total income. The thresholds vary by filing status:

Filing Status0% Rate15% Rate20% Rate
SingleUp to $47,025$47,026 to $518,900Over $518,900
Married Filing JointlyUp to $94,050$94,051 to $583,750Over $583,750
Head of HouseholdUp to $62,975$62,976 to $551,350Over $551,350

These numbers change each year. The IRS publishes updated brackets in late 2023 for the following tax year. If your taxable income falls in the 0% bracket, you owe no federal capital gains tax on long-term gains — though you still report them on your return. If it falls in the 15% bracket, you pay 15% on the gain. If it exceeds the top threshold, you pay 20%.

Your taxable income includes wages, interest, dividends, and capital gains combined. If you earned $40,000 in wages and had a $10,000 long-term capital gain, your taxable income is $50,000. That puts you in the 15% bracket as a single filer, so you would owe 15% on the $10,000 gain.

When you have no capital gains tax bill

You owe no federal capital gains tax if your long-term gains fall entirely within the 0% bracket for your filing status. For a single filer in 2024, that means gains up to $47,025. For married filing jointly, it means gains up to $94,050. These thresholds assume you have no other income pushing you into higher brackets.

You also owe no tax if you sold an asset for less than you paid. A loss does not trigger a tax bill — instead, it reduces your other gains. If you had $5,000 in long-term gains and $7,000 in long-term losses in the same year, you have a net loss of $2,000. You report this on your return, and the loss can reduce up to $3,000 of your other income (wages, interest, and so on) in that year. Any loss beyond $3,000 carries forward to future years.

Some assets never trigger capital gains tax at all. If you inherited property, your cost basis resets to its value on the date of death, so you owe no tax on appreciation that happened before you inherited it. If you sold your primary home and meet the ownership and use tests, you can exclude up to $250,000 of gain (or $500,000 if married filing jointly) from tax.

State and local capital gains taxes

Federal capital gains tax is only part of the picture. Several states also tax capital gains. Washington, Illinois, and California have capital gains taxes that explore to certain sales. New York taxes gains on the sale of artwork and collectibles. Most other states do not have a separate capital gains tax but include gains in ordinary income tax.

If you live in a state with a capital gains tax, you will owe that tax in addition to federal tax. The rates and rules vary by state. Some states use the same long-term/short-term distinction as the federal system. Others tax all gains the same way. You will report state capital gains on your state income tax return, which is filed separately from your federal return.

How to report capital gains on your tax return

You report capital gains on Schedule D (Form 1040), which is part of your federal tax return. Schedule D has two sections: one for short-term gains and losses, and one for long-term gains and losses. For each sale, you list the date you bought it, the date you sold it, the sale price, your cost basis (what you paid plus any improvements), and the gain or loss.

If you sold stocks, mutual funds, or bonds, your broker sends you a Form 1099-B showing the sales. If you sold real estate, you receive a Form 1099-S from the title company or closing agent. These forms go to the IRS, so your return must match them. If you sold only one or two assets with small gains, you might still use Schedule D even though the form looks complex — it is the official place the IRS expects to see these transactions.

After you complete Schedule D, the totals transfer to your Form 1040. Your tax software usually handles this transfer automatically. The IRS uses Schedule D to verify that you reported all sales and calculated gains correctly.

Common situations where people are unsure about capital gains tax

If you sold cryptocurrency, the IRS treats it as property, not currency. Any gain from the sale is a capital gain subject to the same rules as stock or real estate. If you traded one cryptocurrency for another, that counts as a sale of the first coin, triggering a capital gain or loss.

If you sold a rental property, you owe capital gains tax on the appreciation since you bought it. However, you may also owe depreciation recapture tax at a 25% rate on the depreciation deductions you claimed while renting it out. This is separate from capital gains tax and applies even if your long-term capital gains rate would normally be lower.

If you received stock as compensation from your employer, your cost basis is the fair market value on the day you received it, not the price you paid if you bought more shares later. If the stock price rose after you received it, only that appreciation counts as a capital gain.

Frequently Asked Questions

Do I have to report a capital gain if I owe no tax on it?

Yes. You must report all capital gains and losses on Schedule D, even if your gain falls in the 0% tax bracket or if losses offset all your gains. The IRS matches your return to the 1099-B or 1099-S your broker or title company sent them, so omitting the sale can trigger a notice.

What if I sold something at a loss — do I still file Schedule D?

Yes. Report the loss on Schedule D so it reduces your other gains and up to $3,000 of other income. Any loss beyond $3,000 carries to future years, but only if you report it. Without the report, the IRS will not know you have a loss to carry forward.

Can I avoid capital gains tax by not selling?

Yes. Capital gains tax applies only when you sell. If you hold an asset and it appreciates, you owe no tax until you sell it. If you pass the asset to your heirs, they inherit it at its value on your death, so they owe no tax on the appreciation that happened during your lifetime.

Do I owe capital gains tax on inherited property?

No tax on the inheritance itself. Your cost basis resets to the property's fair market value on the date of death. If you later sell it for more than that value, you owe tax only on the new appreciation, not on gains that occurred before you inherited it.

What is the difference between capital gains and dividends?

Capital gains come from selling an asset for more than you paid. Dividends are payments a company makes to shareholders from its profits. may have access to dividends are taxed at the same long-term capital gains rates (0%, 15%, or 20%). Nonqualified dividends are taxed as ordinary income. Both appear on your tax return but in different places.