You report capital gains on your tax return and pay tax on the profit when you file

Capital gains tax is not a separate payment you make to the IRS on the day you sell a stock or property. Instead, you report the profit from the sale on your annual tax return — either Form 1040 if you file yourself, or through your tax preparer — and pay the tax owed when you file that return or make quarterly estimated payments if the gain is large.

The amount you owe depends on how long you held the asset. If you owned it for more than one year, you pay the long-term capital gains rate, which is lower than your regular income tax rate. If you owned it for one year or less, you pay the short-term capital gains rate, which is the same as your ordinary income tax rate.

The IRS does not send you a bill for capital gains tax. You calculate what you owe, report it on your return, and either have it withheld from other income or pay it directly when you file.

Key Takeaways

  • Capital gains tax is reported on your annual tax return using Schedule D, not paid separately to the IRS when you sell.
  • Long-term gains (assets held over one year) are taxed at 0%, 15%, or 20% depending on your income; short-term gains are taxed at your ordinary income rate.
  • Your broker sends you a Form 1099-B after the year ends, which lists all your sales and helps you calculate your gain or loss.
  • If your gain is large, you may need to make quarterly estimated tax payments during the year rather than waiting until tax time.
  • You can reduce capital gains by reporting losses from other sales in the same year, a strategy called tax-loss harvesting.

How to calculate your capital gain or loss

Your capital gain is the difference between what you paid for an asset and what you sold it for, minus any costs directly tied to the sale. If you bought 100 shares of stock at $50 per share and sold them at $75 per share, your gain is $2,500 before any fees.

If you paid a broker commission or trading fee to sell, subtract that from your sale price first. If you paid a fee to buy the asset, add that to your original cost. These adjustments lower your taxable gain.

If you sold for less than you paid, you have a capital loss. You can use losses to reduce gains from other sales in the same year, and if losses exceed gains, you can deduct up to $3,000 of the net loss against your ordinary income in that year. Any remaining loss carries forward to future years.

Reporting capital gains on Schedule D

You report all capital gains and losses on Schedule D, a form that attaches to your Form 1040. You list each sale separately: the asset name, the date you bought it, the date you sold it, your cost basis (what you paid), the sale price, and your gain or loss.

Schedule D automatically sorts your sales into two groups: long-term (held over one year) and short-term (held one year or less). The form then calculates your net long-term gain or loss and your net short-term gain or loss. If you have both, they are combined on your return.

Your broker will send you a Form 1099-B after the year ends, usually by mid-February. This form lists every sale you made through that broker and includes the sale price and date. You use this form to fill out Schedule D, though you will still need to enter your original cost basis yourself unless your broker reported it on the 1099-B.

Understanding long-term versus short-term rates

Long-term capital gains are taxed at preferential rates: 0%, 15%, or 20%, depending on your total income for the year. Short-term gains are taxed at your ordinary income tax bracket, which can be as high as 37%.

To may have access to for the long-term rate, you must have owned the asset for more than one year. The IRS counts from the day after you buy it to the day you sell it. If you buy on January 15 and sell on January 15 the next year, that is exactly one year and does not may have access to; you need to sell on January 16 or later.

The long-term rate thresholds change each year based on inflation. For 2024, the 15% rate applies to single filers with income between roughly $47,000 and $518,000, and the 20% rate applies to those above that. The 0% rate applies to those below roughly $47,000. These ranges are wider for married filers and narrower for heads of household. Your tax software or preparer will explore the correct rate based on your income.

When to make quarterly estimated payments

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 rather than waiting until you file your return. This applies mainly if you sold a large asset, such as a house or business, and do not have enough tax withheld from a job to cover the gain.

Estimated payments are due on April 15, June 15, September 15, and January 15 of the following year. You calculate your expected tax for the year, divide it by four, and pay each quarter using Form 1040-ES or through the IRS website.

If you do not make estimated payments and owe more than $1,000 when you file, you may owe a penalty for underpayment. The penalty is small — roughly 8% annually — but it adds up if the shortfall is large. Your tax preparer can tell you whether you need to make estimated payments based on your situation.

Special rules for certain assets

Real estate sales are reported on Schedule D just like stock sales, but the calculation is more complex because you can deduct depreciation if you rented the property, and you may owe an additional 3.8% net investment income tax if your income exceeds certain thresholds.

If you inherited an asset, you receive a "step-up in basis," meaning your cost basis is the asset's value on the date of death, not what the original owner paid. This can eliminate or greatly reduce the capital gains tax when you sell.

Collectibles such as art, coins, and gems are taxed at a maximum rate of 28%, even if you held them for more than one year. This rate is higher than the standard long-term rate and applies regardless of your income.

How to reduce or defer capital gains tax

Tax-loss harvesting is a strategy where you sell investments at a loss to offset gains from other sales in the same year. If you have a $10,000 gain from one stock and a $3,000 loss from another, you can net them to report a $7,000 gain. This reduces your tax bill without changing your overall investment position — you can often buy a similar investment right away.

Holding assets for more than one year before selling is the simplest way to reduce your tax rate. The difference between short-term and long-term rates can be substantial. A $50,000 gain taxed at short-term rates (37% for high earners) costs $18,500 in federal tax; the same gain at long-term rates (20%) costs $10,000.

Donating appreciated assets to charity instead of selling them lets you avoid capital gains tax entirely while receiving a charitable deduction for the full fair market value. This works best for assets that have appreciated significantly.

Frequently Asked Questions

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

No, you do not owe capital gains tax on a loss. You report the loss on Schedule D, and you can use it to reduce gains from other sales in the same year. If losses exceed gains, you can deduct up to $3,000 against your ordinary income, with any remainder carrying forward to future years.

What if I do not receive a 1099-B from my broker?

Contact your broker and ask for a corrected form or a transaction history. You are required to report all sales on your tax return regardless of whether you receive a 1099-B. If you cannot get the form, use your own records of the purchase and sale dates and prices to fill out Schedule D.

Can I avoid capital gains tax by not selling?

Yes. You owe capital gains tax only when you sell or exchange an asset. If you hold an investment indefinitely, no tax is due during your lifetime. When you die, your heirs receive a step-up in basis, meaning they can sell without owing tax on the gain that occurred while you held it.

Do I owe capital gains tax on cryptocurrency?

Yes. The IRS treats cryptocurrency as property, not currency. When you sell or trade crypto, you report the gain or loss on Schedule D just like a stock sale. Even trading one cryptocurrency for another is a taxable event.

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 preferential rates as long-term capital gains; ordinary dividends are taxed at your regular income rate. Both are reported on your tax return, but on different lines.