You claim a capital gains tax refund by filing an amended return if you paid tax on a loss, or by correcting your cost basis on your original return
A capital gains tax refund happens when you've overpaid tax on investment sales. This occurs most often when you sold an asset at a loss but reported it as a gain, when you miscalculated your cost basis (what you originally paid), or when you failed to claim a loss carryforward from a previous year. The IRS does not automatically refund this money — you have to report the correction yourself, either on your original return before filing or on an amended return afterward.
The method depends on timing. If you haven't filed your tax return yet, you correct the numbers on Schedule D (Capital Gains and Losses) before you submit. If you've already filed, you file Form 1040-X (Amended U.S. Individual Income Tax Return) with a corrected Schedule D attached. Both routes go through the IRS, and both take time to process.
Key Takeaways
- Capital gains refunds require you to file either a corrected original return or an amended return — the IRS does not catch these errors on its own.
- You need your original purchase price (cost basis), the sale price, the sale date, and any fees or commissions paid to calculate the correct gain or loss.
- If you haven't filed yet, correct Schedule D before submitting your return; if you've already filed, use Form 1040-X to amend.
- Amended returns take 8 to 12 weeks to process by mail, or 3 to 5 weeks if you file electronically through a tax software or preparer.
- You can track an amended return using the IRS's Where's My Amended Return tool on IRS.gov, available 24 hours after you file.
Correcting cost basis before you file
If you haven't yet filed your tax return for the year you sold the asset, the simplest path is to get the numbers right on Schedule D the first time. Schedule D is the form where you report all capital gains and losses. You list each asset sold, the date acquired, the date sold, the sales proceeds, the cost basis, and the resulting gain or loss.
The most common error is cost basis. Your cost basis is not just the price you paid — it includes commissions, fees, and the cost of improvements if you're selling real estate. If you bought 100 shares at $50 per share and paid a $25 commission, your cost basis is $5,025, not $5,000. If you sold those shares for $5,100, your gain is $75, not $100. Brokers and investment platforms usually report cost basis to the IRS on Form 1099-B, but they sometimes get it wrong, especially for older purchases or inherited assets.
Gather your trade confirmations, brokerage statements, or closing documents from the sale. Verify the exact purchase price, sale price, and date of each transaction. Enter these figures on Schedule D before you file your return. If you're using tax software, it will walk you through each transaction and calculate the gain or loss automatically once you enter the numbers correctly.
Filing an amended return with Form 1040-X
If you've already filed your return and now realize you overpaid capital gains tax, you file Form 1040-X to amend it. You must file the amended return within three years of the original filing date or two years of the date you paid the tax, whichever is later. In most cases, this means you have three years from the original due date.
On Form 1040-X, you report your original figures in column A, the changes you're making in column B, and the corrected totals in column C. Attach a corrected Schedule D showing the right cost basis, sale price, or loss carryforward. Write a brief explanation on the form or on a separate sheet — for example, "Corrected cost basis for Apple stock sale; original basis was understated by $2,000."
You can file Form 1040-X by mail or electronically. If you file by mail, send it to the IRS address for your state (listed on the form itself). If you file electronically through a tax preparer or software that supports amended returns, the filing is faster and you receive a confirmation number immediately. Electronic filing takes 3 to 5 weeks to process; paper filing takes 8 to 12 weeks.
Calculating the correct gain or loss
To claim the right refund, you need to calculate your capital gain or loss correctly. The formula is: Sale Price minus Cost Basis equals Gain or Loss.
Start with the sale price — the amount you received when you sold the asset. If you sold stock, this is the number of shares times the price per share on the sale date. If you sold real estate, this is the purchase price from the closing statement, minus any selling costs like realtor commissions or title transfer fees.
Next, determine your cost basis. For stocks and mutual funds, this is the purchase price plus any commissions or fees paid to buy. For real estate, this is the purchase price plus the cost of any capital improvements (a new roof, a deck, a furnace), but not repairs or maintenance. For inherited assets, the cost basis is usually the fair market value on the date of death, not what the original owner paid. For assets received as a gift, the cost basis is typically the donor's original cost basis, not the gift value.
Subtract cost basis from sale price. If the result is negative, you have a capital loss. If it's positive, you have a capital gain. Long-term gains (assets held more than one year) are taxed at a lower rate than short-term gains, so the holding period matters for your tax rate, but not for whether you owe a refund.
Tracking your amended return status
Once you file Form 1040-X, you can track its progress using the IRS's Where's My Amended Return tool on IRS.gov. The tool becomes available 24 hours after you file electronically, or about four weeks after the IRS receives a paper return. You'll need your Social Security number, filing status, and the exact refund amount you're expecting.
The tool shows one of four statuses: received (the IRS has your return but hasn't started processing), under review (the IRS is examining it), approved (the IRS has accepted your changes), or sent (your refund has been issued). If your return is approved, the refund is typically issued within two weeks, though it can take longer if the IRS needs to verify information or if there are other issues on your account.
If you filed by mail and more than four weeks have passed, you can call the IRS at 1-800-829-1040 to ask about your return status. Have your Social Security number, filing status, and the date you mailed the return ready. The IRS can usually tell you whether the return has been received and what stage of processing it's in.
What to do if the IRS denies your refund claim
The IRS may reject your amended return if the cost basis you claimed doesn't match what the brokerage reported on Form 1099-B, or if you didn't provide enough documentation to support the loss. If this happens, the IRS will send you a notice explaining the reason and asking for more information or clarification.
If you disagree with the IRS's position, you have the right to respond. Gather any documents that support your cost basis — trade confirmations, brokerage statements, purchase receipts, or closing documents. Write a letter explaining why your basis is correct and attach copies of the supporting documents. Send this to the IRS address listed on the notice within 30 days of the date on the notice.
If the IRS still denies the refund after you've provided additional documentation, you can file a formal protest or take the case to Tax Court. These steps require more time and often benefit from help from a tax professional or CPA, especially if the amount in dispute is large.
Special cases: inherited assets and wash sales
If you inherited stock or real estate and sold it, your cost basis is the fair market value on the date the original owner died, not what they paid for it. This is called a "step-up in basis" and is one of the most common reasons people overpay capital gains tax — they use the original owner's purchase price instead of the stepped-up value. If you made this error, you can amend your return and claim a refund for the overpaid tax.
A wash sale occurs when you sell an investment at a loss and buy the same or a substantially identical investment within 30 days before or after the sale. The IRS disallows the loss in the year of the sale and adds it to the cost basis of the new purchase instead. If you claimed a loss that was actually a wash sale, you'll need to amend your return to remove the loss and adjust the basis of the replacement investment. This doesn't eliminate the loss — it just defers it — but it does change your refund.
Frequently Asked Questions
How long does it take to get a capital gains tax refund?
If you file an amended return electronically, the IRS typically processes it in 3 to 5 weeks. Paper returns take 8 to 12 weeks. Once approved, the refund itself is usually issued within two weeks, though delays can occur if the IRS needs to verify information or if your account has other issues.
Do I need a tax professional to file an amended return for capital gains?
No, you can file Form 1040-X yourself using tax software or by hand. However, if your situation is complex — multiple assets, inherited property, or a large refund amount — a CPA or tax preparer can help ensure the numbers are correct and reduce the risk of an IRS audit.
What if I sold an asset years ago and just realized I overpaid the tax?
You can still file an amended return, but only within three years of the original filing date or two years of the date you paid the tax, whichever is later. If you're past that deadline, you cannot claim the refund through an amended return, though you may have other options depending on your situation.
Can I claim a capital loss if I sold an asset for less than I paid?
Yes. Capital losses offset capital gains dollar-for-dollar. If you have no gains, you can deduct up to $3,000 of net capital losses against other income in a single year. Any loss beyond $3,000 carries forward to future years. If you didn't claim this loss on your original return, you can amend to do so.
What documents do I need to keep for a capital gains refund claim?
Keep your trade confirmations or brokerage statements showing the purchase price, sale price, and date of each transaction. For real estate, keep the closing statement from the purchase and the sale. For inherited assets, keep the death certificate and a statement of the asset's fair market value on the date of death. The IRS may request these documents to verify your cost basis.