You owe capital gains tax when you sell an investment or property for more than you paid for it, and the tax is due the year of the sale

Capital gains tax is not a separate bill that arrives in the mail. It is part of your regular income tax, calculated on your tax return for the year you sold the asset. If you sold stock in March, a rental property in September, or cryptocurrency in December, you report all those gains on your tax return filed the following April (or whenever you file). The IRS does not send a separate notice — the tax obligation exists the moment you complete the sale, but you pay it through your annual return.

The timing of when you owe the tax and when you pay it are different things. You owe it in the year of sale. You pay it when you file your return, usually by April 15 of the following year. If you expect a large gain, you can make estimated tax payments throughout the year to avoid a big bill later, but this is optional unless you owe more than $1,000 in taxes that will not be covered by withholding.

Key Takeaways

  • Capital gains tax is owed in the year you sell the asset, reported on your tax return filed the following spring.
  • Short-term gains (assets held less than one year) are taxed as ordinary income at your regular tax rate.
  • Long-term gains (assets held more than one year) are taxed at lower rates: 0%, 15%, or 20% depending on your income.
  • You must report the sale on Schedule D of your tax return, including the purchase price, sale price, and date held.
  • If you sold at a loss, you can deduct up to $3,000 of losses against other income each year, carrying forward unused losses to future years.

How holding time changes your tax rate

The length of time you owned the asset before selling it determines which tax rate applies. If you held it for one year or less, it is a short-term capital gain, taxed at your ordinary income tax rate — the same rate as your salary or wages. If you held it for more than one year, it is a long-term capital gain, taxed at a preferential rate of 0%, 15%, or 20% depending on your total income.

The one-year clock starts the day after you buy. If you bought stock on June 15, 2023, and sold it on June 15, 2024, it qualifies as long-term. If you sold it on June 14, 2024, it is short-term. This distinction matters enormously: a $10,000 long-term gain might cost you $1,500 in tax at the 15% rate, while the same gain as short-term could cost $2,400 to $3,700 depending on your income bracket.

Long-term capital gains rates and income thresholds

Long-term capital gains are taxed at 0%, 15%, or 20%. Which rate applies depends on your taxable income for the year, not on the size of the gain itself. The thresholds change annually and differ based on your filing status.

Tax RateSingle Filers (2024)Married Filing Jointly (2024)Head of Household (2024)
0%Up to $47,025Up to $94,050Up to $62,975
15%$47,025 to $518,900$94,050 to $583,750$62,975 to $551,350
20%Over $518,900Over $583,750Over $551,350

These thresholds include all your income for the year — wages, interest, dividends, and capital gains combined. If you are single, earn $40,000 in salary, and have a $15,000 long-term capital gain, your total taxable income is $55,000. The first $7,025 of the gain falls in the 0% bracket, and the remaining $7,975 falls in the 15% bracket, resulting in a tax of about $1,196 on the gain.

What you must report and where

You report capital gains on Schedule D (Form 1040), which is part of your federal tax return. For each sale, you list the asset description, the date acquired, the date sold, the purchase price (called your basis), the sale price, and the gain or loss. If you sold only one or two items, this is straightforward. If you sold many shares of stock or multiple properties, your broker or investment firm will send you a statement that summarizes these details.

Your broker sends you a Form 1099-B (for stocks, bonds, and options) or Form 1099-S (for real estate) showing the sale proceeds. The IRS receives a copy of this form, so your return must match. If the numbers do not align, the IRS will contact you. Many tax software programs import this data directly from your broker, reducing the chance of error.

State income tax also applies to capital gains in most states. A few states (Alaska, Florida, Nevada, South Dakota, Tennessee, Texas, Washington, Wyoming) do not tax capital gains at all. Others tax them at your ordinary income rate. A handful tax them at a separate, higher rate. Check your state's tax authority website for the rate in your state.

Capital losses and how to use them

If you sold an asset for less than you paid for it, you have a capital loss. You can use losses to offset gains. If you had a $5,000 gain and a $3,000 loss in the same year, you report a net gain of $2,000 and pay tax only on that amount.

If your losses exceed your gains, you can deduct up to $3,000 of the excess loss against other income (wages, interest, rental income, etc.) in that year. If you have more than $3,000 in excess losses, you carry the remainder forward to future years and use it the same way — $3,000 per year against other income, with any remaining loss carried forward again. This process continues until the loss is fully used.

Example: You had $2,000 in capital gains and $8,000 in capital losses in 2024. You offset the $2,000 gain, leaving $6,000 in losses. You deduct $3,000 against other income in 2024, reducing your taxable income. You carry forward the remaining $3,000 loss to 2025.

Special rules for real estate and inherited property

If you sell a primary residence, you may exclude up to $250,000 of gain (or $500,000 if married filing jointly) if you owned and lived in the home for at least two of the five years before the sale. This exclusion applies once every two years. If you sell a rental property or investment property, this exclusion does not apply — you owe tax on the full gain.

If you inherited property, your cost basis is "stepped up" to the fair market value on the date of the owner's death, not the price the original owner paid. If your parent bought a house for $100,000 and it was worth $400,000 when they died, your basis is $400,000. If you sell it a month later for $410,000, you owe tax only on the $10,000 gain, not the $310,000 appreciation that occurred during your parent's lifetime. This step-up in basis is a significant tax benefit of inherited property.

Estimated tax payments if you expect a large gain

If you know you will have a substantial capital gain in the current year — from selling a business, real estate, or a large investment position — you can make estimated tax payments to the IRS throughout the year. This spreads the tax bill across four quarterly payments (due April 15, June 15, September 15, and January 15) rather than one large payment the following April.

Estimated payments are not required unless you expect to owe more than $1,000 in taxes that will not be covered by withholding from your paycheck. If you are self-employed or have significant investment income, you may already be making estimated payments. If you are an employee with a W-2 job, you can adjust your withholding with your employer to cover the expected tax instead of making separate estimated payments.

The IRS provides Form 1040-ES to calculate estimated payments. You can also use the IRS website calculator. If you underpay, you may owe a penalty, though the penalty is usually small if you pay at least 90% of your current year tax or 100% of your prior year tax (110% if your prior year income exceeded $150,000).

Frequently Asked Questions

Do I owe capital gains tax if I have not sold yet?

No. Tax is owed only when you sell. If you own stock worth $50,000 that you bought for $30,000, you have an unrealized gain of $20,000, but you owe no tax until you sell. Once you sell, the gain becomes real and taxable in that year.

What if I sold at a loss — do I still file Schedule D?

Yes. You report losses on Schedule D so you can use them to offset gains or deduct them against other income. If you do not report the loss, you cannot use it. Your broker will send you a 1099-B showing the loss, and the IRS will expect to see it on your return.

Can I avoid capital gains tax by holding the asset longer?

Holding longer than one year changes your tax rate from short-term (ordinary income rates) to long-term (0%, 15%, or 20%), which is usually a significant savings. But you cannot avoid the tax entirely by holding longer — you still owe it when you sell. The only way to avoid it is to not sell, or to sell at a loss.

What if I sold cryptocurrency or digital assets?

Cryptocurrency is treated the same as stock or other property. If you held it more than one year, it is a long-term gain taxed at preferential rates. If you held it one year or less, it is short-term and taxed as ordinary income. You report it on Schedule D just like any other asset.

Do I owe capital gains tax on gifts or inherited property?

No tax is owed when you receive a gift or inheritance. Tax is owed only if you later sell the property. With inherited property, your basis is stepped up to the value at death, so you typically owe little or no tax if you sell soon after inheriting.