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.

Enter all amounts in the same currency. Include only direct buying and selling costs related to this asset.

Tip: if you only want the gain or loss before tax, leave the tax rate blank.

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

  1. Enter the original purchase price of the asset.
  2. 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.
  3. Enter the selling price you received or expect to receive.
  4. Add your selling costs, such as agent commissions, platform fees, transfer fees, or legal expenses tied to the sale.
  5. 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.
  6. 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.

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.

Things to Watch For

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

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