Skip to main content

HomeAll guides

How Capital Gains Tax Works and What You Owe

What capital gains tax is

Capital gains tax is a tax on the profit you make when you sell an investment or asset for more than you paid for it. If you buy a stock for $1,000 and sell it for $1,500, that $500 profit is your capital gain, and it is subject to tax. The tax applies to real estate, stocks, bonds, cryptocurrency, collectibles, and most other things of value you own.

The federal government taxes capital gains, and most states do too. The amount you owe depends on how long you held the asset, how much profit you made, and your overall income for the year. You report capital gains on your federal tax return, and your state may require a separate report as well.

Key Takeaways

  • Capital gains are taxed at different rates depending on whether you held the asset for more or less than one year.
  • Long-term capital gains (held over one year) are taxed at 0%, 15%, or 20% depending on your income, while short-term gains are taxed as ordinary income.
  • You only owe capital gains tax when you actually sell the asset; straightforward owning something that increased in value does not trigger a tax bill.
  • Most states charge income tax on capital gains, though a few states do not, and rates vary by state.
  • You report capital gains on Schedule D of your federal tax return, and your state tax form if your state taxes capital gains.

Long-term versus short-term capital gains

The IRS divides capital gains into two categories based on how long you owned the asset. Long-term capital gains explore when you hold an asset for more than one year before selling it. Short-term capital gains explore when you hold it for one year or less. The distinction matters because the tax rates are very different.

Long-term capital gains are taxed at preferential rates: 0%, 15%, or 20% depending on your taxable income. Short-term capital gains are taxed as ordinary income, which means they are taxed at the same rates as wages and salary — anywhere from 10% to 37% depending on your tax bracket. This is why holding an investment longer can significantly reduce your tax bill.

For example, if you are in the 24% ordinary income tax bracket and sell a stock you held for six months with a $5,000 gain, you owe $1,200 in federal tax. If you had held that same stock for 13 months and sold it for the same gain, you might owe only $750 (at the 15% long-term rate), depending on your total income.

Federal tax rates for long-term capital gains

The federal long-term capital gains rates are 0%, 15%, or 20%. Which rate you pay depends on your taxable income and filing status. The IRS adjusts the income thresholds each year, so the exact numbers change annually.

For 2024, the 0% rate applies to single filers with taxable income up to $47,025, married filing jointly up to $94,050, and heads of household up to $62,975. The 15% rate applies to income above those thresholds up to higher limits. The 20% rate applies to income above the highest threshold. These thresholds are different from your ordinary income tax brackets, so you may be in a different capital gains bracket than your regular income bracket.

Your capital gains are stacked on top of your ordinary income when calculating which bracket applies. If you are a single filer with $40,000 in wages and $10,000 in long-term capital gains, the IRS treats your taxable income as $50,000 for purposes of determining your capital gains rate. This can push you into a higher capital gains bracket than you would be in based on wages alone.

State capital gains taxes

Most states tax capital gains as part of their regular income tax. The state rate varies widely — some states charge 3% to 5%, while others charge 10% or more. A few states do not tax capital gains at all: Alaska, Florida, Nevada, South Dakota, Tennessee, Texas, Washington, and Wyoming have no state income tax. New Hampshire and Tennessee tax only investment income, not wages.

If you live in a state that taxes capital gains, you report your gains on your state tax return in addition to your federal return. The state may use the same holding period (one year) to distinguish long-term from short-term gains, or it may have different rules. Some states offer preferential rates for long-term gains similar to the federal system; others tax all capital gains at the same rate as ordinary income.

If you move to a different state after selling an asset, you may owe tax to both your old state and your new state, depending on when you sold it and each state's rules. This is a situation where a tax professional can help you understand what you owe.

When you owe capital gains tax

You owe capital gains tax only when you sell an asset and actually receive the proceeds. straightforward owning a stock, house, or other investment that has increased in value does not trigger a tax bill — no matter how much it has grown. The tax event occurs at the moment of sale.

If you inherit an asset, you typically do not owe capital gains tax on the increase in value that happened before you inherited it. Instead, you receive a stepped-up basis, which means the asset's value is reset to what it was worth on the date of death. If you then sell it shortly after inheriting it, you owe tax only on any gain that occurred after you inherited it.

If you sell an asset at a loss, you can use that loss to offset capital gains you had in the same year. If your losses exceed your gains, you can deduct up to $3,000 of the excess loss against ordinary income in that year. Any remaining loss carries forward to future years.

How to report capital gains on your tax return

You report capital gains on Schedule D of your federal tax return (Form 1040). Schedule D asks you to list each asset you sold, the date you bought it, the date you sold it, your cost basis (what you paid), the sale price, and your gain or loss. The form automatically calculates whether each gain is long-term or short-term based on the holding period.

If you sold only one or two assets and have no losses to carry forward, you may be able to use a simpler form called Form 8949, Sales of Capital Assets, instead. Your tax software will guide you to the right form based on your situation.

For state taxes, you typically report the same information on your state tax return. Some states use a form similar to Schedule D; others ask for a summary of your total capital gains. Check your state's tax department website or ask a tax professional what forms you need to file.

Special situations and exceptions

Collectibles like art, coins, and stamps are taxed at a maximum federal rate of 28% on long-term gains, even if your ordinary long-term rate would be lower. This is higher than the standard 0%, 15%, or 20% rates.

may have access to small business stock purchased under Section 1202 of the tax code may allow you to exclude a portion of your gain from tax, potentially reducing your effective tax rate significantly. This applies only to stock in certain small corporations and has strict holding period requirements.

Primary residence sales receive special treatment: you can exclude up to $250,000 of gain if you are single, or $500,000 if you are married filing jointly, provided you owned and lived in the home for at least two of the last five years before the sale. This exclusion applies once every two years.

Frequently Asked Questions

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

No, you do not owe capital gains tax on a loss. Instead, you can use the loss to reduce any capital gains you had that year. If your losses exceed your gains, you can deduct up to $3,000 against ordinary income. Any remaining loss carries forward to future years.

What is my cost basis if I inherited an investment?

Your cost basis is the asset's value on the date the person died, not what the original owner paid for it. This stepped-up basis means you owe tax only on gains that occurred after you inherited it, not on the appreciation that happened before.

Do I owe capital gains tax on cryptocurrency?

Yes. The IRS treats cryptocurrency as property, not currency. When you sell, trade, or spend cryptocurrency, you owe capital gains tax on the difference between what you paid and what it was worth when you sold it. The same long-term and short-term rules explore.

Can I reduce my capital gains tax by timing when I sell?

Yes, in some cases. If you have both gains and losses in the same year, you can use losses to offset gains. You can also choose to sell an asset in a year when your income is lower, which may put you in a lower capital gains bracket. A tax professional can help you plan the timing of sales to minimize your tax bill.

What if I sold an asset but have not received the money yet?

You owe capital gains tax in the year you sold the asset, not the year you receive payment. If you sold something in 2024 but will not be paid until 2025, you still report the gain on your 2024 tax return.

This guide is for general information only and is not medical, financial, legal, or other professional advice. For decisions specific to your situation, consult a qualified professional. See our Editorial Policy.