You owe capital gains tax when you sell an asset for more than you paid for it, and the tax is due the year of the sale
The moment you trigger a taxable event — selling stock, real estate, cryptocurrency, or other property at a profit — you have created a capital gain. You do not owe the tax immediately at the moment of sale. Instead, you report the gain on your tax return for that calendar year, and the tax payment is due by the standard tax deadline: April 15 of the following year (or the next business day if April 15 falls on a weekend).
The amount you owe depends on how long you held the asset. Long-term capital gains — from assets held more than one year — are taxed at lower rates (0%, 15%, or 20% depending on your income). Short-term capital gains — from assets held one year or less — are taxed as ordinary income at your regular tax bracket, which can be much higher. The difference between these two categories can mean hundreds or thousands of dollars in tax on the same sale.
Key Takeaways
- Capital gains tax is due on April 15 of the year after you sell the asset, not on the day of the sale itself.
- Assets held longer than one year may have access to for long-term rates (0%, 15%, or 20%); assets held one year or less are taxed as ordinary income.
- You report the gain on Schedule D of your tax return, and the IRS matches it against your brokerage's Form 1099-B records.
- If you sell at a loss, you can deduct up to $3,000 per year against ordinary income, with unlimited carryover of excess losses to future years.
- Estimated tax payments may be required if your total tax liability will be high; missing them can result in penalties even if you pay in full by April 15.
How the IRS knows about your sale
Your broker or financial institution sends Form 1099-B to both you and the IRS, reporting every sale you made during the year. This form includes the sale price, the date acquired, the date sold, and the proceeds. The IRS cross-references this against your tax return; if you do not report a gain that appears on a 1099-B, the IRS will notice the discrepancy.
If you sold through a broker that has held your shares since before 2011, the cost basis (what you originally paid) may not appear on the 1099-B. In that case, you are responsible for tracking your original purchase price and calculating the gain yourself. Keep your purchase confirmations and statements; the IRS may ask for them if there is a mismatch.
Long-term versus short-term: the one-year rule
The holding period is measured from the purchase date to the sale date. If you buy stock on March 15, 2024, and sell it on March 15, 2025, you have held it exactly one year and it qualifies as long-term. If you sell on March 14, 2025, it is short-term.
Long-term capital gains rates for 2024 are 0% (if your income is below $47,025 for single filers), 15% (income $47,025 to $518,900), or 20% (income above $518,900). These thresholds adjust annually for inflation. Short-term gains are taxed at your ordinary income rate, which ranges from 10% to 37% depending on your tax bracket. On a $10,000 gain, the difference between long-term and short-term can be $1,500 or more.
When you must pay estimated taxes
If you expect to owe $1,000 or more in taxes for the year (after accounting for withholding), you may be required to make estimated tax payments quarterly: April 15, June 15, September 15, and January 15. These payments are due even if you will ultimately pay the full amount by April 15 of the following year. Missing a quarterly deadline can trigger penalties and interest, even if your final tax bill is paid in full and on time.
Estimated payments are most common for self-employed people, but they also apply if you have large capital gains and little or no withholding from an employer. You can calculate what you owe using Form 1040-ES, or you can pay based on your prior year's tax liability (which is often simpler). If you are unsure whether you need to pay, a tax professional can advise you based on your specific situation.
Capital losses and how to use them
If you sell an asset at a loss, you can use that loss to offset capital gains from other sales in the same year. If your losses exceed your gains, you can deduct up to $3,000 of the net loss against ordinary income (wages, salary, interest, and so on). Any loss beyond $3,000 carries forward to future years with no expiration date, so you can use it whenever you have gains or income to offset.
Example: You sell Stock A for a $5,000 gain and Stock B for a $2,000 loss. Your net gain is $3,000, and you report that on your tax return. If instead Stock B had been a $6,000 loss, your net loss would be $1,000; you would deduct $1,000 against ordinary income, and carry forward the remaining $5,000 to use in future years.
Real estate sales and the primary residence exclusion
If you sell a home you lived in for at least two of the last five years, you can exclude up to $250,000 of the gain from tax (or $500,000 if you are married filing jointly). This exclusion applies once every two years. The gain is still calculated the same way — sale price minus your cost basis — but the excluded portion is not reported on your tax return at all.
Cost basis for a home includes the purchase price plus the cost of improvements (a new roof, addition, or major renovation), but not routine maintenance or repairs. If you inherited the home, your cost basis is stepped up to the fair market value on the date of death, which often eliminates or greatly reduces the gain. Keep records of all improvements; they reduce your taxable gain dollar for dollar.
What happens if you do not report a gain
The IRS receives a copy of every 1099-B your broker files. If you do not report a gain that appears on that form, the IRS will send you a notice proposing a tax assessment based on the 1099-B data. You will owe the tax, plus interest (currently around 8% per year), plus penalties (typically 20% of the underpaid tax for negligence, or 75% for fraud).
If the discrepancy is small or you have a reasonable explanation, you can respond to the notice and work it out. But the burden is on you to prove your position. Reporting the gain on your return, even if you believe you owe less tax than the IRS calculated, is far simpler and cheaper than fighting an audit later.
Frequently Asked Questions
Do I owe capital gains tax the day I sell, or only when I file my tax return?
You owe the tax in the year of the sale, but you do not pay it until the tax deadline (April 15 of the following year). However, if you expect to owe more than $1,000, you may be required to make estimated payments during the year to avoid penalties. The tax is not due the moment you sell.
What if I sold stock at a loss — do I still have to report it?
Yes, you should report it on Schedule D. Losses offset gains, and if your losses exceed gains, you can deduct up to $3,000 against ordinary income. Excess losses carry forward indefinitely. Reporting losses also creates a paper trail in case the IRS questions your gains in other years.
Can I delay paying capital gains tax by not selling until next year?
Delaying the sale delays the tax, but it does not eliminate it. The tax is due the year you sell, not the year you buy. If you hold an asset longer than one year before selling, you will may have access to for the lower long-term rate, which often saves more money than delaying the sale itself.
What if my broker did not send me a 1099-B?
Contact your broker and request it; they are required to send it by January 31. If you sold through a platform that does not issue 1099-Bs (some international or peer-to-peer platforms), you are still responsible for reporting the gain. Keep your own records of purchase price, sale price, and dates, and report the gain on Schedule D even without a 1099-B.
Do I owe capital gains tax on inherited stock?
No, not on the inheritance itself. Your cost basis is stepped up to the fair market value on the date of death, so if you inherit stock worth $50,000 and it was worth $30,000 when the person died, your basis is $50,000. You only owe tax on gains after you inherit it. If you sell immediately, you typically owe nothing.