You owe 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
Capital gains tax applies to the profit you make when you sell something you own — a house, stock, cryptocurrency, or other property. The moment you sell at a gain, you have a taxable event. You do not pay the tax when you buy; you pay it when you sell. The amount owed depends on how long you held the asset before selling it, your total income that year, and your filing status.
The important date to report and pay capital gains tax is the same as your regular income tax important date: April 15 of the following year (or the next business day if April 15 falls on a weekend). If you owe more than $1,000 in capital gains tax, you may need to make estimated tax payments during the year to avoid penalties, though most people handle this through withholding or a lump-sum payment at tax time.
Key Takeaways
- Capital gains tax is owed in the year you sell an asset at a profit, not when you buy it or hold it.
- Long-term capital gains (assets held over one year) are taxed at lower rates than short-term gains, which are taxed as ordinary income.
- You report capital gains on Schedule D of your tax return, and the tax is due by April 15 of the following year.
- If you expect to owe more than $1,000 in capital gains tax, you may need to make quarterly estimated tax payments to avoid underpayment penalties.
The difference between long-term and short-term capital gains
How long you owned the asset before selling it determines which tax rate applies. Long-term capital gains come from assets you held for more than one year. These are taxed at preferential rates: 0%, 15%, or 20%, depending on your income level and filing status. Most people fall into the 15% bracket.
Short-term capital gains come from assets you held for one year or less. These are taxed as ordinary income at your regular tax bracket, which can be as high as 37%. The difference is significant: selling a stock after 13 months instead of 11 months can cut your tax bill substantially.
The holding period starts the day after you buy the asset and ends the day you sell it. If you bought stock on March 15 and sold it on March 16 the following year, that counts as long-term.
How to calculate your capital gain or loss
Your capital gain is the sale price minus what you paid for the asset, minus any costs directly tied to the sale (such as broker fees or real estate commissions). If you bought 100 shares at $50 each and sold them at $75 each, your gain is $2,500 before costs. If you paid $150 in broker fees, your taxable gain is $2,350.
If you sell at a loss, you have a capital loss. You can use capital losses to offset capital gains in the same year. If your losses exceed your gains, you can deduct up to $3,000 of the net loss against ordinary income. Any loss beyond $3,000 carries forward to future years.
Keep records of your purchase price, purchase date, sale price, sale date, and any fees. For inherited assets, the purchase price is reset to the market value on the date of death, which often eliminates or reduces the gain.
When you must report capital gains on your tax return
You report capital gains on Schedule D of Form 1040. If you sold only one or two assets and had a small gain, some tax software will walk you through it automatically. If you had multiple sales, losses, or complex transactions, Schedule D becomes more detailed.
You must file Schedule D even if you had no tax liability overall — for example, if your capital gains were offset by losses. The IRS receives a copy of your sale from your broker (Form 1099-B for stocks, Form 1099-S for real estate), so reporting is expected.
The important date is April 15 of the year following the sale. If you file an extension, you have until October 15, but the tax itself is still due by April 15 — an extension only delays filing, not payment.
Estimated tax payments if you expect a large gain
If you know you will owe more than $1,000 in capital gains tax and you do not have enough tax withheld from other income, you should make estimated tax payments during the year. These are quarterly payments due on April 15, June 15, September 15, and January 15.
You calculate estimated tax by projecting your total tax for the year and dividing it by four. You can pay online through the IRS website, by mail, or through your tax software. If you do not make these payments and you owe a large amount at tax time, the IRS will charge you an underpayment penalty — typically a few percent of the unpaid amount.
Many people avoid this by selling assets gradually throughout the year rather than all at once, spreading the tax burden across multiple years. Others hold assets until they retire and move to a lower tax bracket.
Special situations: real estate, inherited assets, and primary residences
If you sell a primary residence, you may not owe tax on the gain at all. 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 five years before the sale.
If you inherit an asset, the cost basis is reset to the market value on the date of death. This means 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 for $420,000, you owe tax only on the $20,000 gain, not the $320,000 appreciation that happened before you inherited it.
If you sell real estate used in a business or held as an investment, different rules may explore. Depreciation you claimed in prior years may be recaptured at a higher tax rate. Consult a tax professional if you are selling rental property or business assets.
State and local capital gains taxes
Federal capital gains tax is only part of the picture. Some states also tax capital gains. Washington, Illinois, and a few others have recently enacted capital gains taxes, usually on gains above a threshold (often $250,000). California, New York, and most other states tax capital gains as ordinary income at their state income tax rates.
A few states — including Florida, Texas, and Wyoming — have no income tax and therefore no capital gains tax. If you are considering moving before a large sale, state tax can be a factor, though you must actually move and establish residency before the sale to benefit.
Check your state's tax website or speak with a tax professional about your state's rules. Local taxes in some cities may also explore.
Frequently Asked Questions
Do I owe capital gains tax if I sell at a loss?
No. If you sell an asset for less than you paid for it, you have a capital loss, not a gain. You can use the loss to offset other capital gains in the same year. If losses exceed gains, you can deduct up to $3,000 against ordinary income, and carry the rest forward to future years.
What if I sold cryptocurrency or an NFT?
Cryptocurrency and NFTs are treated as property by the IRS. Any gain when you sell is a capital gain, taxed at long-term or short-term rates depending on how long you held it. If you traded one cryptocurrency for another without converting to cash, that trade is also a taxable event. Keep detailed records of every transaction.
Can I avoid capital gains tax by holding an asset forever?
Yes, as long as you do not sell. You owe tax only when you sell. However, if you die while holding the asset, your heirs inherit it at the stepped-up basis (the market value on the date of death), so they can sell without owing tax on the appreciation that happened during your lifetime.
Do I have to pay capital gains tax if I reinvest the money?
Yes. The tax is based on the gain, not on what you do with the proceeds. Whether you spend the money, reinvest it, or leave it in a bank account does not change the tax owed. The only exception is if you sell a primary residence and reinvest in another primary residence — but even then, the tax break is based on the home ownership rule, not reinvestment.
What happens if I do not report a capital gain?
The IRS receives a report from your broker showing the sale. If you do not report it on your tax return, the IRS will likely send you a notice of underreported income. You will owe the tax plus interest and penalties, which can add 20% or more to the original amount. It is far cheaper to report the gain when due.