Skip to content
CalcuMetro

Capital Gains Calculator

Calculate capital gains

Calculate the capital gain or loss when you sell an asset —shares, funds or property— including fees, and estimate the tax at the rate you enter. Tax rules vary by country: you enter the rate.

Calculate your capital gain

The rate in your country; the starting value is just an example.

Result

Gain or loss

€3,960.00

Cost basis
€8,020.00
Net sale proceeds
€11,980.00
Estimated tax
€792.00
Gain after tax
€3,168.00

Formula version: 1.0.0

How to use the capital gains calculator

  1. Enter the purchase price and its costs.
  2. Enter the sale price and its costs.
  3. Enter the applicable tax rate if you want an estimate, and review the net gain.

Capital gain formula

Gain = (sale − sale costs) − (purchase + purchase costs) · Tax = gain × rate

Purchase costs add to the cost basis and sale costs reduce the proceeds, which lowers the taxable gain.

Capital gain example

You bought for €8,000 with €20 of costs and sell for €12,000 with another €20: the gain is €3,960. At 20%, tax would be €792, leaving €3,168.

Illustrative example with the data shown; not a guaranteed outcome.

Assumptions and limitations

  • You enter the rate and it's applied flat; many countries use brackets.
  • Exemptions, loss offsets and inflation adjustments are not included.

Frequently asked questions

Which rate should I use?

The one your country sets for that type of gain; in many countries it's progressive by bracket.

What if I sell at a loss?

There's no tax; in many countries the loss can offset gains in other years.

Related calculators

See investments calculators

Indicative result for information only; not financial or tax advice. Read the legal notice · How we calculate results

Spotted a possible error in this calculator? Let us know