You report capital gains on your tax return, then pay the tax owed when you file
Capital gains tax is not a separate payment you make to the IRS at the time you sell an investment. Instead, you report the profit from the sale on your annual tax return (Form 1040), calculate what you owe based on your tax bracket and how long you held the asset, and pay it as part of your total tax bill when you file. The IRS does not send you a bill for capital gains alone — the amount owed is part of your overall tax liability.
The timing and method depend on whether you owe money or are getting a refund. If you owe, you pay when you file your return. If you are getting a refund, the capital gains tax is already accounted for in that refund amount. Some people with very high income or large gains may need to make quarterly estimated tax payments during the year, but most people handle it all at filing time.
Key Takeaways
- Capital gains are reported on Schedule D (Form 1040), where you list each sale, the purchase price, the sale price, and the profit or loss.
- Short-term gains (assets held one year or less) are taxed as ordinary income at your regular tax rate; long-term gains (held over one year) are taxed at lower rates of 0%, 15%, or 20% depending on your income.
- You pay the tax owed when you file your return in April, either by sending a check, using electronic payment, or having it deducted from a refund.
- If you sold investments during the year and expect to owe more than $1,000, you may need to make quarterly estimated tax payments to avoid penalties.
- Losses from investments can offset gains dollar-for-dollar, and unused losses can carry forward to future years.
How to report capital gains on your tax return
You report capital gains using Schedule D, which is part of Form 1040. On this form, you list every investment you sold during the year: the date you bought it, the date you sold it, what you paid for it, what you sold it for, and the profit or loss. The IRS uses this to verify that you reported the gain correctly.
Your brokerage or investment firm will send you a Form 1099-B in January or February showing all the sales you made in the previous year. This form includes the sale date and proceeds, though it may not have your original purchase price — you have to find that in your own records. Match the information from the 1099-B to your own records, calculate the gain or loss for each sale, and enter the totals on Schedule D.
If you only sold one or two investments and have a straightforward situation, you can do this by hand. If you sold many investments or have losses to track, tax software like TurboTax or TaxAct will walk you through Schedule D step by step and calculate the totals for you. A tax preparer can also handle it if you prefer not to do it yourself.
The difference between short-term and long-term capital gains tax rates
How long you held the investment before selling it determines which tax rate applies. If you held it for one year or less, the gain is short-term and is taxed as ordinary income — the same rate as your wages or salary. If you held it for more than one year, the gain is long-term and gets a lower rate.
Long-term capital gains rates are 0%, 15%, or 20%, depending on your total income for the year. Most people in the middle income range pay 15%. The 0% rate applies to lower-income filers, and the 20% rate applies to high-income filers. These rates are much lower than the ordinary income rates, which go up to 37%, so holding an investment past the one-year mark can save you significant tax.
For example, if you are in the 24% tax bracket and sell a stock you held for six months, you pay 24% tax on the gain. If you sell the same stock after holding it for 13 months, you pay 15% tax on the gain instead. The difference adds up quickly on large gains.
How to pay the tax when you file
When you complete your tax return and calculate your total tax owed, the capital gains tax is already included in that number. You do not pay it separately. If you owe money overall, you have three main ways to pay: by check, by electronic transfer from your bank account, or by credit or debit card (though card payments charge a processing fee).
The IRS website (irs.gov) has a payment tool where you can pay online directly. You can also mail a check with Form 1040-V (the payment voucher) to the address shown in the tax return instructions. If you are filing through a tax preparer or software, they will usually offer payment options at the end of the process.
If your total refund is larger than the tax you owe, the capital gains tax is already subtracted from that refund. You do not need to do anything extra — the refund amount you receive already accounts for it.
Quarterly estimated tax payments if you expect a large gain
If you know you will owe more than $1,000 in federal income tax for the year (including capital gains), the IRS expects you to pay some of it during the year rather than waiting until April. These are called estimated tax payments, and they are due on April 15, June 15, September 15, and January 15 of the following year.
You calculate your expected income and tax for the year, divide it by four, and send in a payment for each quarter. If you do not make these payments and end up owing a large amount at tax time, you may owe a penalty on top of the tax itself. However, if you are an employee and your employer withholds taxes from your paycheck, you may not need to make estimated payments — the withholding may cover it.
To make an estimated payment, use the IRS Direct Pay tool on irs.gov or mail Form 1040-ES with a check. Tax software can also help you calculate whether you need to make these payments based on your situation.
Using investment losses to reduce capital gains tax
If you sold some investments at a loss during the year, you can use those losses to offset your gains. If you had $10,000 in gains and $3,000 in losses, you report a net gain of $7,000 and pay tax only on that amount. This is called loss harvesting and is a common strategy to reduce tax liability.
If your losses are larger than your gains, you can deduct up to $3,000 of the net loss against your ordinary income in that year. Any losses beyond $3,000 carry forward to future years, so you can use them to offset gains in the next year or the year after that. This means a bad investment year can reduce your taxes for several years to come.
Keep careful records of all your sales, both gains and losses. When you file, you will report both on Schedule D, and the software or preparer will calculate the net amount for you.
Special situations: inherited investments and mutual funds
If you inherited an investment, the tax rules are different. You get a step-up in basis, which means your cost basis is set to the value on the date the person died, not what they originally paid. If you sell the inherited investment shortly after inheriting it, you usually owe little or no capital gains tax, even if the original owner bought it for much less.
Mutual funds and index funds work the same way as individual stocks for capital gains purposes. When you sell shares, you calculate the gain or loss based on what you paid and what you sold it for. If the fund made distributions during the year, those are also reported on your 1099-B and may create additional capital gains tax.
Frequently Asked Questions
Do I have to pay capital gains tax the same year I sell the investment?
No. You report the gain on your tax return filed in April of the following year, and you pay the tax then. For example, if you sell stock in November 2024, you report it on your 2024 tax return filed in April 2025 and pay the tax at that time. The only exception is if you owe more than $1,000 and need to make quarterly estimated payments during the year.
What if I sold an investment at a loss?
Report the loss on Schedule D just like a gain. Losses offset gains dollar-for-dollar. If losses exceed gains, you can deduct up to $3,000 against your regular income. Any remaining loss carries forward to future years and can offset future gains or income.
Do I owe capital gains tax on investments in a 401(k) or IRA?
No. Investments inside retirement accounts are not subject to capital gains tax when you sell them. You only pay tax when you withdraw money from the account, and the tax is based on your ordinary income rate, not capital gains rates. This is one of the main benefits of using these accounts.
Can I avoid capital gains tax by not selling?
Yes. Capital gains tax only applies when you sell and realize the gain. If you hold an investment and it grows in value but you never sell it, you owe no tax on the growth during your lifetime. However, when you pass it to heirs, they receive a step-up in basis and typically owe no tax either.
What if I made a mistake reporting capital gains on a previous year's return?
You can file an amended return using Form 1040-X for any of the past three years. The IRS will recalculate your tax and either send you a refund or bill you for the additional amount owed, plus interest. It is better to correct a mistake yourself than to wait for the IRS to find it.