You pay capital gains tax in the year you sell an asset for more than you paid for it

Capital gains tax is owed on the profit you make when you sell something — a stock, a house, cryptocurrency, or other property — for more than you bought it for. The tax is due in the year of the sale, not when you buy, not when you plan to sell, and not when you receive the money. If you sell in March, you owe tax on that gain by April 15 of the following year when you file your federal return.

The amount you owe depends on how long you held the asset. If you owned it for one year or less, the profit is taxed as short-term capital gains, which means it is taxed at your ordinary income tax rate — anywhere from 10% to 37% depending on your income bracket. If you owned it for more than one year, it is long-term capital gains, taxed at a lower rate: 0%, 15%, or 20% depending on your income.

You do not owe tax on a gain until you actually sell. Holding an asset that has gone up in value does not trigger a tax bill. Only the sale itself does.

Key Takeaways

  • Capital gains tax is owed in the year you sell the asset, reported on your tax return due April 15 of the following year.
  • Short-term gains (held one year or less) are taxed at your regular income tax rate, which is higher than the long-term rate.
  • Long-term gains (held more than one year) are taxed at 0%, 15%, or 20% depending on your total income for the year.
  • You owe no tax until you sell; straightforward owning an asset that has increased in value does not create a tax obligation.
  • State capital gains taxes vary by location — some states have no capital gains tax, while others tax it as income.

How the holding period affects your tax rate

The length of time you own an asset before selling it determines which tax rate applies. If you buy a stock on January 15 and sell it on January 14 of the next year, you have held it for less than one year, and the gain is short-term. If you sell on January 16, you have held it for more than one year, and the gain is long-term.

Short-term gains are added to your other income for the year and taxed at your marginal tax bracket. If you earn $60,000 in wages and have a $10,000 short-term gain, you are taxed as if you earned $70,000. Long-term gains are taxed separately at preferential rates: 0% if your income is below $44,625 (single filer in 2023), 15% if it is between $44,625 and $492,300, and 20% if it exceeds $492,300. These income thresholds change each year.

This difference matters significantly. A $50,000 short-term gain could cost you $18,500 in federal tax if you are in the 37% bracket. The same gain as long-term capital gains would cost $10,000 at the 20% rate.

What counts as a capital asset and what does not

Capital gains tax applies to the sale of capital assets — property you own for investment or personal use. This includes stocks, bonds, mutual funds, real estate, cryptocurrency, art, jewelry, and vehicles. When you sell any of these for more than your cost basis (what you paid, plus improvements), the difference is a capital gain.

Some sales do not trigger capital gains tax. If you sell your primary residence, you may 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 past five years. If you sell a vehicle at a loss, you cannot deduct the loss on your federal return. If you sell collectibles or certain metals, the long-term rate is capped at 28% instead of 20%.

Ordinary business inventory does not create capital gains — it is taxed as ordinary income. If you are a dealer in real estate or securities, sales are treated as business income, not capital gains. The distinction depends on your intent and activity, not the type of asset alone.

Federal versus state capital gains taxes

Federal capital gains tax is what most people think of first, but many states also tax capital gains. Some states treat capital gains as ordinary income and tax them at your state income tax rate, which can range from 3% to 13% depending on the state. Other states have a separate capital gains tax rate, usually lower than the income tax rate. A handful of states — Alaska, Florida, Nevada, South Dakota, Tennessee, Texas, Washington, and Wyoming — have no income tax and no capital gains tax.

California taxes capital gains as ordinary income at rates up to 13.3%. New York taxes them at rates up to 10.9%. Massachusetts has a 5% capital gains tax on gains over $250,000. If you live in a state with no capital gains tax but sell property in a state that has one, you may owe tax to both states, though you can usually claim a credit for taxes paid to the other state.

Your total tax bill on a capital gain is the federal tax plus your state tax. A $100,000 long-term gain could cost you $15,000 in federal tax (at the 15% rate) plus $5,000 to $13,000 in state tax, depending on where you live.

Reporting capital gains on your tax return

When you sell an asset, your broker or the person who bought it from you will send you a Form 1099-B (for stocks and securities) or Form 1099-S (for real estate) showing the sale price. You use this form to calculate your gain or loss and report it on Schedule D of your Form 1040. Short-term gains and losses go in Part I; long-term gains and losses go in Part II.

You must report the sale even if you did not receive a 1099 form. If you sold cryptocurrency, collectibles, or property in a private sale, you are still required to report the gain. The IRS matches 1099 forms to your return, so underreporting is likely to trigger a notice.

If you have losses in the same year, you can use them to offset gains. If your losses exceed your gains, you can deduct up to $3,000 of the excess loss against your ordinary income in that year. Any remaining loss carries forward to future years.

Timing strategies and wash sales

Because the tax rate depends on the holding period and your income bracket, some people time sales strategically. Selling in a year when your income is lower can mean your long-term gains are taxed at 0% or 15% instead of 20%. Holding an asset just past the one-year mark can save you thousands in tax by moving it from short-term to long-term rates.

The IRS has one major rule about timing: the wash sale rule. If you sell a stock at a loss and buy the same or a substantially identical stock within 30 days before or after the sale, you cannot deduct the loss. The loss is added to the cost basis of the new shares instead. This rule prevents you from harvesting losses for tax purposes while keeping the same investment.

Other strategies, like donating appreciated assets to charity instead of selling them, or using a stepped-up basis when property passes to heirs, can reduce or eliminate capital gains tax in specific situations. These require planning with a tax professional.

Installment sales and deferred payment

If you sell an asset but do not receive the full payment in the year of sale — for example, the buyer pays you over several years — you may be able to use the installment method to spread the gain across multiple years. This can lower your tax bill if it keeps you in a lower bracket each year instead of pushing you into a higher one in a single year.

To use the installment method, you must receive at least one payment in a tax year after the year of sale. You calculate the gain as a percentage of the total sale price, then explore that percentage to each payment you receive. If you sell a house for $400,000 with a $100,000 gain and receive $100,000 down and $300,000 over five years, you report 25% of each payment as gain.

Not all sales may have access to for installment treatment. Sales of publicly traded securities do not. Sales of inventory do not. If you are unsure whether your situation qualifies, a tax professional can advise you.

Frequently Asked Questions

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

No, you do not owe tax on a loss. You can use the loss to offset capital gains from other sales in the same year. If losses exceed gains, you can deduct up to $3,000 against ordinary income and carry the rest forward to future years.

What if I inherited an asset — do I owe capital gains tax when I sell it?

Inherited assets receive a stepped-up basis, meaning your cost basis is the asset's value on the date of the person's death, not what they paid for it. If you sell shortly after inheriting, you likely owe little or no capital gains tax. This applies to most inherited property, though some assets like IRAs have different rules.

Can I avoid capital gains tax by not selling?

Yes. Capital gains tax is only owed when you sell. If you hold an asset until you die, your heirs inherit it at stepped-up basis and owe no tax on the gain that occurred during your lifetime. This is one reason some people hold appreciated assets indefinitely.

Do I have to pay capital gains tax quarterly or only when I file my return?

If you expect to owe more than $1,000 in capital gains tax for the year, you may need to make quarterly estimated tax payments to avoid penalties. These are due April 15, June 15, September 15, and January 15. If you have taxes withheld from wages or other income, you may not need to pay quarterly.

What if I sold cryptocurrency — is it treated the same as stocks?

Yes. Cryptocurrency is treated as property for tax purposes. Gains are capital gains, taxed at short-term or long-term rates depending on how long you held it. You must report every sale, including trades from one cryptocurrency to another, even if you did not convert to dollars.