Capital Gains Calculator
Use this capital gains calculator to estimate the profit or loss from selling an investment or property-like asset. It is useful for investors, traders, and anyone comparing sale scenarios before selling. Enter your purchase price, sale price, buying and selling costs, and an optional tax rate to see your net gain, estimated tax, and after-tax result.
A capital gains calculator helps you estimate how much profit you actually made when you sell an asset after accounting for transaction costs. Instead of looking only at the difference between the buying price and the selling price, this tool adjusts for purchase costs and selling costs so you get a more realistic picture of your result.
This is useful when you are reviewing a stock sale, investment property transaction, business asset disposal, or another taxable sale. You can also add an estimated capital gains tax rate to see how much of your profit may remain after tax. Because tax rules vary by country, filing status, holding period, and exemptions, the tax figure should be treated as a planning estimate rather than a final tax calculation.
How to Use This Calculator
- Enter the original purchase price of the asset.
- Add any purchase costs that should increase your cost basis, such as brokerage fees, legal fees, or closing costs if they apply to your situation.
- Enter the selling price you received or expect to receive.
- Add your selling costs, such as agent commissions, platform fees, transfer fees, or legal expenses tied to the sale.
- If you want an estimate of tax, enter your capital gains tax rate as a percentage. Leave it blank or set it to zero if you only want the gain or loss.
- Submit the form to see your net sale proceeds, adjusted cost basis, gain or loss, estimated tax, and after-tax amount.
Formula
The calculator uses this basic structure:
Capital gain or loss = (Selling price − Selling costs) − (Purchase price + Purchase costs)
If you enter a tax rate, the estimate is:
Estimated capital gains tax = Capital gain × Tax rate
Tax is only estimated when the result is a positive gain. A loss does not create tax in this calculator.
Example Calculation
Suppose you bought an investment for $12,000 and paid $250 in purchase fees. Later, you sold it for $16,500 and paid $600 in selling costs.
- Adjusted cost basis = $12,000 + $250 = $12,250
- Net sale proceeds = $16,500 − $600 = $15,900
- Capital gain = $15,900 − $12,250 = $3,650
If you use a 15% estimated tax rate, the estimated tax would be $547.50 and the after-tax gain would be $3,102.50.
How to Interpret the Result
A positive result means you sold the asset for more than your adjusted cost basis after costs. A negative result means you sold at a loss. The tax estimate helps you compare sale scenarios, but it does not replace tax filing rules, exemptions, or professional advice.
- Higher gain: more profit before tax, but also possibly a larger tax bill.
- Lower gain: less profit, which may change whether the sale is worth making now.
- Capital loss: no tax is shown in this calculator, but losses may matter for planning depending on your local rules.
Things to Watch For
- Do not forget commissions, legal fees, platform fees, or closing costs if they belong in your cost basis or sale costs.
- Use the same currency for every field.
- Do not enter the tax rate as a decimal. Enter 15 for 15%, not 0.15.
- Make sure you are not double-counting costs already included in the purchase or selling price.
- This calculator does not handle depreciation recapture, exemptions, wash sale rules, inflation adjustments, or tiered tax systems.
Who Can Use This Calculator
This calculator can help individual investors, landlords, traders, property sellers, and small business owners quickly estimate whether a sale creates a gain or loss. It is especially useful when comparing multiple selling prices or deciding how much room there is for fees and taxes.
Tips for Better Accuracy
- Use your actual recorded purchase price and sale price rather than rounded estimates when possible.
- Review statements or settlement documents to confirm transaction costs.
- If tax treatment depends on short-term versus long-term holding rules, use the rate that best matches your likely scenario.
- Run the calculator more than once with different sale prices or tax rates to compare outcomes before you sell.
This tool is best used as a quick planning calculator. It gives you a clean estimate of gain, loss, and possible tax impact so you can make more informed decisions before completing a sale.
Frequently Asked Questions
What does this capital gains calculator actually show?
It estimates your gain or loss after adjusting for purchase costs and selling costs. If you enter a tax rate, it also shows an estimated tax amount and an after-tax result.
Can I use this calculator for stocks, crypto, real estate, or other assets?
Yes, as long as the same basic logic applies: you have a purchase price, a selling price, and related transaction costs. The tax rules may differ by asset type, but the gain estimate is still useful for planning.
What should I include in purchase costs?
Purchase costs can include fees that increase your cost basis, such as brokerage commissions, legal fees, transfer costs, or closing expenses when they apply to your situation.
What should I include in selling costs?
Selling costs often include agent commissions, brokerage fees, platform fees, advertising costs tied to the sale, legal charges, and other direct expenses related to disposing of the asset.
Why is my tax estimate zero even though I entered a tax rate?
If your calculation results in no gain or a capital loss, this calculator shows zero estimated tax. It only applies the tax rate when the gain is positive.
Should I enter my tax rate as 15 or 0.15?
Enter it as a percentage. For a 15% rate, type 15. The calculator converts the percentage automatically.
Does this result match my actual tax return?
Not necessarily. Actual tax can depend on holding period, exemptions, local rules, filing status, offsets, and whether special rates apply. Use this as a planning estimate, not a final filing result.
What if my result is negative?
A negative result means you sold the asset for less than your adjusted cost basis after costs. That is a capital loss, not a taxable gain in this calculator.
Can I leave the tax rate blank?
Yes. If you only want to know the gain or loss before tax, leave the tax rate blank or enter zero.
Why does my gain seem smaller than the difference between buy and sell price?
That usually happens because costs were included. Once you subtract selling costs and add purchase costs, the adjusted gain is often lower than the simple price difference.
Similar Calculators
Self-Employment Tax Calculator
Estimate your self-employment tax based on income and expenses.
Tax Refund Estimate Calculator
Estimate how much tax refund you may receive or how much you owe.
VAT Calculator
Calculate price with or without VAT easily.
Corporate Income Tax Calculator
Estimate corporate income tax based on revenue and expenses.