You pay capital gains tax through your annual tax return, not when you sell

Capital gains tax is not a separate payment you make to the IRS when you sell a stock, rental property, or other investment. Instead, you report the gain (or loss) on your tax return for the year you sold it, and the tax is calculated as part of your overall income tax bill. The IRS does not know about your sale until you tell them on the return.

If you sold something in 2024, you will report it on your 2024 tax return, which you file in early 2025. The payment happens then — either as part of your refund calculation, as additional tax owed, or as part of your regular withholding if you have a job.

The one exception: if you sold something through a brokerage account (stocks, mutual funds, bonds), the brokerage sends you and the IRS a document called Form 1099-B that lists what you sold and for how much. The IRS already has a copy, so they will notice if your return does not match.

Key Takeaways

  • You report capital gains on Schedule D of your tax return, not through a separate payment to the IRS.
  • Brokerages send Form 1099-B to both you and the IRS, so your return must match what they reported.
  • Long-term gains (assets held over one year) are taxed at lower rates than short-term gains, which are taxed as regular income.
  • You can reduce your tax bill by reporting losses from other sales in the same year, or carrying losses forward to future years.
  • If you owe additional tax on capital gains, you pay it when you file your return or through quarterly estimated tax payments if the amount is large.

Where capital gains go on your tax return

Capital gains are reported on Schedule D, which is a worksheet that attaches to your Form 1040. Schedule D asks you to list each sale separately: what you sold, the date you bought it, the date you sold it, what you paid for it, and what you sold it for. The difference is your gain or loss.

If you only have a few sales, you can fill out Schedule D by hand. If you sold many things or use tax software, the software walks you through the information and builds Schedule D for you. The software also calculates whether your gains are long-term (held over one year) or short-term (held one year or less), because the tax rate depends on which category they fall into.

At the bottom of Schedule D, you get a total gain or loss. That number carries forward to your Form 1040, where it becomes part of your taxable income for the year. If you had a loss, you can use it to reduce other income — up to $3,000 per year against wages, interest, or other income. Any loss above $3,000 rolls forward to future years.

The difference between long-term and short-term capital gains tax rates

Long-term capital gains are taxed at preferential rates: 0%, 15%, or 20%, depending on your total income for the year. These rates are much lower than the regular income tax rates (which go up to 37%). You get the long-term rate if you held the asset for more than one year before selling it.

Short-term capital gains are taxed at your regular income tax rate, which can be anywhere from 10% to 37%. You have a short-term gain if you held the asset for one year or less. This is why holding an investment a little longer can save you thousands in tax.

Your tax software or return preparer will sort your sales into these two buckets automatically. You do not have to calculate the rates yourself — you just need to report the purchase date and sale date accurately so the software knows which category each sale belongs to.

What Form 1099-B means and why it matters

If you sold stocks, mutual funds, bonds, or other securities through a brokerage, the brokerage sends you Form 1099-B by January 31 of the following year. This form lists every sale you made in that account during the year: the security name, the number of shares, the sale date, and the sale price.

The brokerage also sends a copy to the IRS. This means the IRS already knows you sold something and for how much. If your Schedule D does not match the 1099-B, the IRS computer will flag it, and you may receive a notice asking you to explain the difference.

The 1099-B does not show what you originally paid for the investment — only what you sold it for. You have to find your original purchase records (your brokerage statement, confirmation email, or old tax returns) to calculate your gain. Keep those records for at least three years after you file the return.

How to handle sales of real estate and other property

If you sold a house, land, a business, or other real property, you still report it on Schedule D, but you will not receive a 1099-B. Instead, you will receive a Form 1099-S from the title company or real estate attorney who handled the closing. This form shows the sale price but usually not your original purchase price or closing costs.

You have to gather your own records: the original purchase deed, the purchase price, any capital improvements you made (like a new roof or addition), and the closing statement from the sale. These reduce your gain. For example, if you bought a house for $300,000, spent $50,000 on improvements, and sold it for $500,000, your gain is $150,000, not $200,000.

There is one major exception: if you sold your primary residence, you may not owe any tax at all. The IRS allows you to exclude up to $250,000 of gain if you are single, or $500,000 if you are married filing jointly, as long as you owned and lived in the house for at least two of the last five years. This exclusion is claimed on Schedule D, and it can eliminate your capital gains tax entirely.

When you owe tax before you file your return

Usually, you pay capital gains tax when you file your return in the spring. But if you sold something for a very large gain and you do not have enough tax withheld from a job, you may owe estimated tax before then.

Estimated tax is a quarterly payment you make directly to the IRS if you expect to owe more than $1,000 when you file. You calculate it based on your expected income for the year, including the capital gain. The payments are due April 15, June 15, September 15, and January 15 of the following year.

If you do not make estimated payments and you owe a large amount at filing time, the IRS charges you a penalty for underpayment. The penalty is small — usually a few percent of the unpaid tax — but it adds up. If you think you will owe more than $1,000, talk to a tax preparer about whether you need to make estimated payments.

Using losses to reduce your capital gains tax

If you sold some investments at a loss in the same year you sold others at a gain, you can use the losses to cancel out the gains. For example, if you had a $10,000 gain on one stock and a $3,000 loss on another, your net gain is $7,000, and you only pay tax on $7,000.

If your losses exceed your gains, you can use up to $3,000 of the excess loss to reduce other income — wages, interest, dividends, or rental income. Any loss above $3,000 carries forward to the next year, where you can use it again. This can go on for many years if you have large losses.

This strategy is called tax-loss harvesting. Some investors deliberately sell losing positions late in the year to offset gains from winning positions. Just remember: if you sell a stock at a loss and then buy the same stock back within 30 days before or after the sale, the IRS disallows the loss under the wash-sale rule. You have to wait at least 31 days to repurchase the same security.

State capital gains tax and special situations

Most states do not have a separate capital gains tax — they tax capital gains as regular income at their state income tax rate. But a few states (Washington, Illinois, and others) have enacted capital gains taxes on certain types of gains, usually on the sale of stocks and securities above a certain threshold. If you live in one of these states, you will owe state tax in addition to federal tax.

Some gains are not taxed at all. If you inherited an investment, you get a stepped-up basis, which means the IRS treats your cost basis as the value on the date of death, not what the original owner paid. If you sell it shortly after inheriting it, you may have little or no gain. Gifts work differently — if someone gives you an investment, your cost basis is what they paid, and you owe tax on the full gain when you sell.

If you sold a home at a loss, you cannot deduct it. Home sales are not treated as investments for tax purposes, even if you rented it out. Only investment property losses can be deducted.

Frequently Asked Questions

Do I have to pay capital gains tax the same year I sell, or can I wait until I file my return?

You pay when you file your return, not when you sell. The IRS does not expect payment until you report the gain on your tax return in the spring. The only exception is if you owe more than $1,000 and do not have enough tax withheld from a job — then you may need to make quarterly estimated tax payments.

What if I sold something but did not get a 1099 form?

You still have to report it on Schedule D. The 1099-B is only required for brokerage sales. If you sold a car, collectible, or other personal property through a private sale, you report it yourself. Keep your own records of the sale price and original cost.

Can I avoid capital gains tax by not selling?

Yes. Capital gains tax is only owed when you sell. If you hold an investment indefinitely, you never pay tax on the gain during your lifetime. When you die, your heirs get a stepped-up basis and can sell without owing tax on the gain that built up while you owned it.

What happens if I make a mistake on Schedule D?

If the mistake is small, the IRS may not notice. But if your Schedule D does not match a 1099-B the brokerage sent them, they will send you a notice. You can file an amended return (Form 1040-X) to correct it. The sooner you correct it, the smaller any penalty will be.

Do I have to report gains if I reinvested the money?

Yes. It does not matter what you did with the money after you sold. If you sold an investment for a profit, you owe tax on that profit in the year you sold it, whether you spent the money, reinvested it, or left it in cash.