Capital gains tax is paid through your annual tax return, not separately to the IRS
You do not write a check to the IRS for capital gains tax on its own. Instead, you report the sale on your tax return using Schedule D (Form 1040), and the tax owed becomes part of your total tax bill for that year. The IRS calculates what you owe based on your gains, your income level, and how long you held the asset. You then pay that total amount when you file — either by sending a check, using electronic payment, or claiming it against a refund.
The timing and method depend on whether you sold the asset in the current tax year or a previous one, and whether you owe taxes or expect a refund. If you sold something in 2024, you report it on your 2024 return, filed in 2025. If you already filed but forgot to report a sale, you file an amended return.
Key Takeaways
- Report capital gains on Schedule D (Form 1040), which feeds into your main tax return and determines your total tax bill for the year.
- You need the purchase price, sale price, and sale date for each asset; your broker or investment company provides this on a 1099-B form.
- Long-term gains (assets held over one year) are taxed at lower rates than short-term gains, so the holding period matters for what you owe.
- You pay capital gains tax as part of your total tax return payment, using the same methods as any other tax: check, electronic payment, or refund offset.
- If you sold an asset in a previous year and did not report it, you file Form 1040-X (amended return) to report it now and pay any tax owed plus interest.
Gather your sale documents before you start
Before you open your tax software or meet with a tax preparer, collect the paperwork for every asset you sold during the year. Your broker or investment company sends you a Form 1099-B (Proceeds from Broker and Barter Exchange Transactions) by January 31 of the following year. This form lists each sale, the sale date, the proceeds (sale price), and sometimes the cost basis (what you paid for it).
If you sold a home, real estate, or other property not held through a broker, you will not receive a 1099-B. Instead, gather your own records: the original purchase price, any improvements you made (which add to your cost basis), the sale date, and the final sale price. For a home sale, you also need to know whether you lived in it for at least two of the last five years, because that determines whether you can use the primary residence exclusion (up to $250,000 in gains if single, $500,000 if married filing jointly).
If you inherited an asset and sold it, find the date of death of the person who left it to you — that becomes your cost basis, not what they originally paid. This is called a "stepped-up basis" and usually means you owe little or no tax on inherited assets you sell shortly after inheriting them.
Determine whether your gains are long-term or short-term
The IRS taxes long-term and short-term capital gains at different rates, so you must know which category each sale falls into. A long-term capital gain is a profit on an asset you held for more than one year. A short-term capital gain is a profit on an asset you held for one year or less. The holding period starts the day after you buy and ends the day you sell.
Long-term gains are taxed at 0%, 15%, or 20% depending on your total income for the year. Short-term gains are taxed as ordinary income at your regular tax bracket rate, which can be 10%, 12%, 22%, 24%, 32%, 35%, or 37%. This means short-term gains often cost you more in tax than long-term gains on the same dollar amount.
Your 1099-B form usually shows which sales are long-term and which are short-term. If it does not, count the days yourself: if you bought on March 15, 2023 and sold on March 16, 2024, that is long-term. If you sold on March 15, 2024, that is short-term.
Report your gains on Schedule D
Schedule D (Form 1040) is the IRS form where you list every capital gain and loss. It has two parts: Part I for short-term gains and losses, and Part II for long-term gains and losses. You fill in the sale date, the asset description, the cost basis (what you paid), the sale proceeds (what you sold it for), and the gain or loss (proceeds minus cost basis).
If you use tax software like TurboTax, H&R Block, or TaxAct, the software walks you through these fields and imports data from your 1099-B automatically if you provide it. If you prepare your return by hand or with a tax preparer, you enter the information from your 1099-B and your own records into the Schedule D boxes.
At the bottom of Schedule D, you total your short-term gains and losses, total your long-term gains and losses, and then combine them. If you have a net loss (losses exceed gains), you can deduct up to $3,000 of that loss against other income in the current year. Any loss over $3,000 carries forward to future years.
Understand how capital gains affect your total tax bill
Your net capital gain (or loss) from Schedule D flows into your main Form 1040 tax return. The IRS then calculates your taxable income and applies the correct tax rate to your long-term gains based on your total income for the year. This is why your income level matters: the same $50,000 long-term gain might be taxed at 15% if your other income is low, but at 20% if your other income is high.
If you have both long-term and short-term gains, the IRS applies long-term rates to the long-term portion and ordinary income rates to the short-term portion. If you have losses, they reduce your gains dollar-for-dollar, and any remaining loss reduces your other income (up to $3,000 per year).
Your tax software or preparer calculates this automatically once you enter your gains and losses. You do not have to do the math yourself — the software applies the correct rates and shows you the result.
Pay your capital gains tax when you file
Once your return is complete, the IRS knows what you owe in total tax (including capital gains tax). You pay this amount using one of three methods: a check or money order mailed with your return, an electronic payment through the IRS website (IRS.gov/payments), or a credit or debit card through an approved payment processor.
If you owe money, you must pay by the tax important date (usually April 15). If you pay late, you owe interest and penalties. If you expect a refund, the IRS sends it to you automatically — no separate payment is needed.
If you sold an asset late in the year and are unsure whether you will owe tax, you can make an estimated tax payment before year-end using Form 1040-ES. This avoids penalties if you end up owing money. However, most people wait until they file their return to pay.
Report a missed capital gain on an amended return
If you filed your return but forgot to report a capital gain, you must file Form 1040-X (Amended U.S. Individual Income Tax Return) to correct it. You complete a new Schedule D with the missing sale, recalculate your total tax, and send Form 1040-X to the IRS with a check for any additional tax owed.
The IRS charges interest on unpaid tax from the original due date, even if you file the amended return years later. If you owe more than $10,000, penalties may also explore. Filing the amended return stops additional penalties from accruing, so it is worth doing even if you cannot pay the full amount when ready.
You have three years from the original filing important date to file an amended return without the IRS initiating contact. After three years, you can still file, but the IRS may not process it or may deny the refund if you are owed one.
Frequently Asked Questions
Do I have to pay capital gains tax if I sold at a loss?
No. If you sold an asset for less than you paid for it, you have a capital loss, not a gain. You report it on Schedule D, and it reduces any capital gains you have. If your losses exceed your gains, you can deduct up to $3,000 of the net loss against your other income in that year, with any remaining loss carrying forward to future years.
What if I sold stock through my employer's 401(k) or IRA?
Sales inside a 401(k) or traditional IRA are not taxed as capital gains when they happen. You only pay tax when you withdraw money from the account in retirement, and it is taxed as ordinary income. Sales inside a Roth IRA are never taxed. You do not report these sales on Schedule D.
Can I reduce my capital gains tax by donating the asset to charity instead of selling it?
Yes. If you donate an appreciated asset (stock, real estate, etc.) directly to a may have access to charity, you avoid the capital gains tax entirely and can deduct the fair market value of the asset as a charitable contribution. You must itemize deductions on Schedule A for this to benefit you. Consult a tax preparer or financial advisor about whether this strategy makes sense for your situation.
What if I sold a home and lived in it for only one year?
You may still may have access to for the primary residence exclusion if you lived in the home for at least two of the last five years before the sale. If you do not meet this test, you report the gain on Schedule D like any other asset sale. Some exceptions exist for job relocation or unforeseen circumstances — a tax preparer can determine whether you may have access to.
Do I owe capital gains tax in the year I buy an asset, or only when I sell it?
Only when you sell it. Buying an asset does not trigger any tax. Tax is due only when you sell and realize a gain (or loss). Until you sell, the increase in value is unrealized and not taxed.