When You Have to Pay Capital Gains Tax on Your Investments and Property
You pay capital gains tax when you sell an asset for more than you paid for it, and the tax is due in the year of the sale
The moment you owe capital gains tax is the moment you sell — not when you buy, not when the investment grows, but when you actually complete the sale and lock in your profit. If you sell a stock, rental property, or piece of land in 2024, you report that gain on your 2024 tax return, which you file in 2025. The tax itself is due by April 15 of the following year, along with the rest of your income taxes.
The timing matters because capital gains tax only applies to realized gains — the profit you actually take out of an investment. If you own a house worth $500,000 more than you paid for it but never sell, you owe nothing. The moment you sell it, the $500,000 gain becomes taxable in that tax year.
Key Takeaways
- Capital gains tax is owed in the year you sell an asset, reported on your tax return filed the following spring.
- Short-term gains (assets held one year or less) are taxed as ordinary income at your regular tax rate, which can be 10% to 37% depending on your income.
- Long-term gains (assets held more than one year) are taxed at lower rates: 0%, 15%, or 20%, depending on your total income for the year.
- You report the sale on Schedule D of your tax return, and the IRS matches it against your broker's records, so underreporting creates a mismatch notice.
- Some sales are tax-free: your primary home (up to $250,000 if single, $500,000 if married), inherited assets, and certain charitable donations.
How holding time changes your tax rate
The length of time you own an asset before selling it determines which tax rate applies. If you hold it for one year or less, it is a short-term capital gain, and you pay tax at your ordinary income tax rate — the same rate as your salary or wages. For 2024, that ranges from 10% to 37% depending on your total income.
If you hold it for more than one year, it becomes a long-term capital gain, and the tax rate drops to 0%, 15%, or 20%. Which of those three rates applies depends on your total income for the year, not on how much profit you made. A person in the 15% long-term bracket might pay 15% on a $10,000 gain and 15% on a $1 million gain — the rate does not change based on the size of the profit.
The one-year clock starts the day after you buy. If you buy on January 15, 2024, and sell on January 15, 2025, it is a long-term gain. If you sell on January 14, 2025, it is short-term.
When you sell real estate versus stocks and mutual funds
Real estate and securities follow the same capital gains rules but have different reporting timelines. When you sell a stock or mutual fund through a broker, the broker sends you a Form 1099-B by January 31 of the following year, showing the sale date, purchase price, and sale price. You report this on Schedule D of your tax return.
When you sell real estate, there is no automatic 1099 unless the sale goes through an escrow company or title company that files Form 8288-B. If you sell a rental property or investment land directly, you still owe capital gains tax on the profit, but you report it yourself on Schedule D. The IRS does not always receive a matching document, so the burden is on you to report it accurately.
Primary home sales are different: you can 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 home for at least two of the last five years. This exclusion applies even if you do not report the sale on your tax return — you straightforward do not owe tax on that portion of the gain.
Inherited assets and the step-up in basis
When someone dies and leaves you an asset, you inherit it at its value on the date of death, not at what the original owner paid for it. This is called a step-up in basis. If your parent bought a stock for $5,000 and it was worth $50,000 when they died, your basis is $50,000. If you sell it the next day for $50,000, you owe no capital gains tax because you have no gain.
This rule applies to all inherited assets: stocks, real estate, art, vehicles. The step-up happens automatically; you do not have to do anything. When you eventually sell the inherited asset, you calculate your gain from the date-of-death value, not the original purchase price.
The step-up is one reason some people hold appreciated assets until death rather than selling them during life — the heirs avoid the capital gains tax entirely. However, this strategy depends on your personal situation and tax law, which can change.
Installment sales and when tax is due
If you sell an asset but the buyer pays you over time instead of all at once, you still owe capital gains tax in the year of the sale, even though you have not received all the money yet. You report the entire gain in the year the sale closes, not spread across the years you receive payments.
This is true for real estate sold on an installment plan, private loans, or any arrangement where the buyer pays you in multiple installments. The tax is due by April 15 of the following year, even if you will not receive the final payment for several years. You may owe estimated taxes during the year if the gain is large enough.
Losses and how they offset gains
If you sell an asset for less than you paid for it, you have a capital loss. You can use capital losses to offset capital gains in the same year. If you sold one stock for a $10,000 gain and another for a $6,000 loss, you report a net gain of $4,000 and pay tax only on that amount.
If your losses exceed your gains in a year, you can deduct up to $3,000 of the excess loss against your ordinary income (salary, wages, interest). Any loss beyond that $3,000 carries forward to future years, where you can use it to offset future gains or take another $3,000 deduction against ordinary income.
This is why some investors sell losing positions late in the year — to offset gains and reduce their tax bill. The strategy is called tax-loss harvesting. However, there is a rule called the wash-sale rule: if you sell a security at a loss and buy the same or a substantially identical security within 30 days before or after the sale, the loss is disallowed and added to the basis of the new purchase instead.
Reporting the sale on your tax return
You report capital gains and losses on Schedule D of Form 1040. You list each sale separately: the asset, the date acquired, the date sold, the cost basis, the sale price, and the gain or loss. If you have many transactions, you may attach a separate statement listing them all.
Your broker sends you Form 1099-B showing the sales they handled. You enter the information from that form onto Schedule D. If the IRS receives a 1099-B from your broker but your Schedule D shows different numbers, the IRS will send you a notice asking for an explanation.
After you complete Schedule D, you transfer the net gain or loss to the main Form 1040. Long-term gains go on a separate line from short-term gains, because they are taxed at different rates. Tax software usually handles this automatically if you enter the transaction details correctly.
Frequently Asked Questions
Do I owe capital gains tax if I sell at a loss?
No, you owe no tax on a loss. Instead, you can use the loss to offset gains from other sales in the same year. If losses exceed gains, you can deduct up to $3,000 against your regular income, with any remaining loss carrying forward to future years.
What if I sell a stock and buy it back a week later?
You still owe capital gains tax on the sale, even if you repurchase the same stock when ready. However, if you sold at a loss and repurchased within 30 days before or after the sale, the wash-sale rule disallows the loss. The loss is added to the basis of the new shares instead.
Do I owe capital gains tax on dividends or interest?
No. Dividends and interest are ordinary income, taxed at your regular income tax rate, not capital gains rates. Capital gains tax only applies when you sell an asset for more than you paid for it.
Can I defer capital gains tax by not selling until next year?
Yes. The tax is due in the year you sell, so delaying the sale into the next calendar year delays the tax bill by one year. However, this does not eliminate the tax — it only postpones it. If you hold the asset long enough to may have access to for long-term rates, the tax rate itself may be lower.
What happens if I do not report a capital gain?
If your broker reports the sale on a 1099-B and you do not report it on your tax return, the IRS will likely notice the mismatch and send you a notice. You will owe the tax plus interest and possibly penalties. Underreporting is one of the most commonly detected errors because the IRS receives copies of 1099 forms from brokers.
This guide is for general information only and is not medical, financial, legal, or other professional advice. For decisions specific to your situation, consult a qualified professional. See our Editorial Policy.