Capital Gains Tax Calculator
Estimate how much tax you may owe when selling an investment for a profit. Enter your purchase and sale details along with your capital gains tax rate to see your gain and estimated tax.
How it works
Your capital gain is simply the sale price minus your cost basis (purchase price plus any fees or commissions). The formula is: Gain = Sale Price − Purchase Price.
If the result is positive, you have a taxable gain. The estimated tax is calculated as Gain × (Tax Rate ÷ 100). If the result is negative, you have a capital loss, which is not taxed and may even offset other gains.
Net proceeds after tax show what you keep: Sale Price minus the estimated tax owed.
Tips
Holding an asset longer than one year usually qualifies it for lower long-term capital gains rates, often 0%, 15%, or 20% in the U.S., depending on your income.
Don't forget to include transaction fees and commissions in your cost basis — they reduce your taxable gain. Capital losses can be used to offset gains and lower your tax bill.
FAQ
What is the difference between short-term and long-term capital gains?
Short-term gains apply to assets held one year or less and are taxed as ordinary income. Long-term gains apply to assets held longer than one year and typically enjoy lower tax rates.
Do I owe tax if I sold at a loss?
No. If your sale price is below your cost basis, you have a capital loss, which is not taxed. You may be able to deduct losses against other gains or income.
What should I include in my cost basis?
Include the original purchase price plus any commissions, fees, or reinvested dividends. A higher cost basis reduces your taxable gain and therefore your tax.