You don't pay capital gains tax immediately in most cases — you pay it when you file your tax return for the year you sold the asset

Capital gains tax is not due the moment you sell a stock, property, or other investment. Instead, the IRS expects you to report the sale on your tax return and pay any tax owed by the tax filing deadline — typically April 15 of the following year. If you sold an asset in 2024, you report it on your 2024 tax return, which you file in 2025.

The timing changes only if you owe estimated taxes or if your employer withholds money from the sale. Some brokers automatically withhold a percentage when you sell, which reduces what you owe at tax time. If you made a large gain and did not have taxes withheld, you may need to make a quarterly estimated tax payment to avoid penalties — but this is still not "immediate" in the sense of owing money the day you sell.

Key Takeaways

  • Capital gains tax is reported on your annual tax return, due by April 15 of the year after you sold the asset, not when you complete the sale.
  • If your broker withholds taxes at the time of sale, that money goes toward your tax bill, reducing what you owe later.
  • Large gains may trigger quarterly estimated tax payments if you expect to owe more than a certain amount, but these are still scheduled payments, not immediate ones.
  • Short-term gains (assets held less than one year) are taxed as ordinary income and may push you into a higher tax bracket, affecting your total tax bill.
  • Long-term gains (assets held over one year) usually have lower tax rates, but you still do not pay until you file your return.

How withholding at the time of sale works

When you sell an investment through a brokerage account, the broker may withhold a percentage of your gain for federal taxes. This withholding is not a separate payment you make — it happens automatically, and the broker sends the withheld amount to the IRS on your behalf. The amount withheld depends on the type of account and the size of the transaction.

Withholding reduces your tax bill when you file. If the broker withheld $5,000 and you owe $6,000 in capital gains tax for the year, you pay the remaining $1,000 when you file. If the broker withheld more than you owe, you receive a refund. This system exists to collect tax throughout the year rather than waiting until April.

Estimated tax payments and when they apply

If you expect to owe more than $1,000 in federal income tax for the year (or $500 if you are self-employed), and your employer is not withholding enough, you may need to make quarterly estimated tax payments. These are due on April 15, June 15, September 15, and January 15 of the following year — not immediately after you sell.

Estimated payments apply mainly to self-employed people, investors with large gains, and others whose income is not subject to payroll withholding. If you sold a rental property or made a substantial investment gain and expect your total tax bill to be high, you calculate what you think you will owe and divide it into four payments. Missing these payments can result in penalties, but the payments themselves are scheduled, not due on demand.

You do not have to guess. The IRS provides a worksheet to calculate estimated taxes, and many tax software programs will tell you whether you need to make these payments based on your income and withholding so far.

The difference between short-term and long-term gains

How long you held the asset before selling affects both your tax rate and your total tax bill — but not the timing of when you pay. Short-term capital gains (assets held one year or less) are taxed as ordinary income at your regular tax bracket rate, which can be as high as 37 percent. Long-term capital gains (assets held more than one year) are taxed at preferential rates: 0 percent, 15 percent, or 20 percent, depending on your income.

A large short-term gain can push you into a higher tax bracket for the entire year, increasing not just the tax on the gain but also the tax on your other income. Long-term gains are usually taxed separately and at lower rates, which is why holding an investment longer than one year often saves money. Neither type of gain is taxed immediately — both are reported on your tax return and paid by the April filing deadline.

State and local taxes on capital gains

Some states and cities tax capital gains separately from federal tax, and the timing rules vary. A few states (California, New York, and others) impose state income tax on capital gains at rates ranging from 5 to 13 percent. Some cities, including New York City, add an additional tax. These are also reported on your state and local tax returns, not paid at the time of sale.

A small number of states have recently introduced dedicated capital gains taxes that are separate from income tax. Washington State, for example, taxes long-term capital gains at 7 percent, reported on a separate form. The filing deadline for state taxes is usually the same as federal (April 15), though some states allow extensions. Check your state's tax authority website to understand what applies to you.

What happens if you do not pay by the deadline

If you owe capital gains tax and do not pay by April 15, the IRS charges interest on the unpaid amount starting the day after the deadline. Interest rates change quarterly and are currently around 8 percent per year. You may also face a failure-to-pay penalty of 0.5 percent per month of the unpaid tax, up to 25 percent total.

If you filed your return late or did not file at all, additional penalties apply. Filing an extension (Form 4868) moves your deadline to October 15, but it does not extend the payment deadline — tax is still due by April 15, or you owe interest and penalties. If you cannot pay in full, the IRS allows payment plans and offers in compromise in some cases; contact them directly or work with a tax professional to discuss options.

Frequently Asked Questions

Do I have to pay capital gains tax if I reinvest the money right away?

No. Reinvesting the proceeds does not change when you owe tax or how much. You owe tax on the gain itself, regardless of what you do with the money afterward. The tax is due when you file your return, not when you spend or reinvest the proceeds.

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

You still owe tax in the year of the sale, not when you receive payment. For example, if you sold a house in 2024 but closing is in 2025, you report the gain on your 2024 return. The timing of payment to you does not change the tax year.

Can I defer capital gains tax by not selling?

Yes. You only owe capital gains tax when you sell or dispose of the asset. If you hold it indefinitely, no tax is due. However, if you pass the asset to heirs, they receive a "stepped-up basis," meaning their cost basis resets to the asset's value at your death, potentially eliminating the tax entirely.

What if my brokerage withheld too much tax?

You will receive a refund when you file your tax return. The withheld amount is credited against your total tax bill for the year. If it exceeds what you owe, the IRS refunds the difference, usually within a few weeks of processing your return.

Do I need to report the sale if I had a loss instead of a gain?

Yes. Capital losses must be reported on your tax return. You can use losses to offset gains and reduce your taxable income by up to $3,000 per year; any excess carries forward to future years. Reporting losses correctly can lower your overall tax bill.