1. Home
  2. Calculators
  3. Capital Gains Tax Calculator

Capital Gains Tax Calculator

See how much tax a sale triggers and how holding a little longer could change it.

Free, no sign-up. Runs in your browser: nothing is uploaded.

How to use Capital Gains Tax Calculator

  1. Enter your numbers, or press a sample to see an example.
  2. Read the results and the table under them.
  3. Copy the results or download the table as a CSV file.

Features

  • Gain after buying and selling costs
  • Short-term or long-term by holding period
  • Your own rates, allowance and cess
  • Money left after tax
  • Tax if you had waited, or sold earlier

Supported formats

Input

  • Typed numbers

You get

  • On-screen results
  • CSV

Private by design

Everything you enter is processed by your browser on this device. Nothing is sent to openWorkstand or anyone else, so the Capital Gains Tax Calculator is safe for private and work data. After you have used it once while online, it also works without an internet connection. How local processing works

Good to know

  • Rates, holding periods and allowances differ by asset and country; they are inputs.
  • Indexation and loss set-off are not modelled.

Guide

Capital gains tax: short-term against long-term, with your own rates and allowance

When you sell something for more than you paid for it, the difference is a capital gain, and most tax systems tax it. The rate usually depends on how long you held the asset: a quick sale is treated like ordinary income or at a higher rate, while a long holding gets a lower rate. The detailed rules vary by country and by type of asset, so this calculator does not hide them; it asks for the rates, thresholds and allowances and does the arithmetic.

The gain

Gain = selling price − buying price − costs. The costs are those of buying and selling, such as brokerage, fees and taxes paid on the transaction. For property, they might include registration and legal costs and, in some systems, the cost of improvements. A negative result is a loss, which is not taxed. The page shows the gain first so that you know what the tax rates apply to.

Short-term or long-term

The holding period is the number of months from the purchase to the sale. If it is greater than the threshold, the gain is long-term. The threshold is an input because it depends on the asset: for listed shares and equity funds in India it is 12 months, for property and unlisted shares 24 months, and in the United States a gain on an asset held more than one year is long-term. The page labels the result and uses the matching rate.

A worked example

The first sample sells shares bought for 5,00,000 for 9,00,000, with 2,000 of costs, after 18 months. The gain is 3,98,000, which is long-term. With the allowance of 1,25,000 and a rate of 12.5%, the taxed part is 2,73,000 and the tax is 34,125, which is 35,490 with 4% cess, or 8.92% of the gain. If the same sale had happened after 8 months, the gain would be short-term and taxed at 20%: 82,784 with cess. The page shows the pair, so you can see that waiting saves 47,294. These are the Indian rates for listed equity at the time of writing.

Property and other countries

The property sample has a purchase of 45,00,000, a sale at 70,00,000, 1,20,000 of costs and 30 months of holding with a 24-month threshold. The gain is 23,80,000, taxed at 12.5% with no allowance, 2,97,500 plus cess is 3,09,400, which is 13.00% of the gain. For a US stock bought for 10,000 and sold for 16,000 after 14 months, with a 15% long-term rate and no cess, the gain is 5,980 and the tax 897. Selling before the year would have meant a rate of 24% in the example, 1,435.

Allowance and cess

Some systems exempt part of the long-term gain each year, as India does for listed equity, so the first 1,25,000 of gains is not taxed. The page subtracts the allowance you enter, and applies it only to long-term gains. Cess or a surcharge is a percentage added to the tax; use the figure for your system, or zero. Whether the allowance applies per year or per sale depends on the rules, so enter what is left of it.

Edge cases

A sale price of zero gives a loss equal to the buying price plus the costs. A holding of exactly the threshold counts as short-term, since the rule requires more than the threshold. Rates must be between 0 and 100. The “if you had waited” line looks at the other category using the same figures.

Limits

Indexation, special treatment of some assets, exemptions for reinvesting in property or bonds, the set-off of losses and the effect of your slab rate are not modelled. For short-term gains taxed at your ordinary rate, enter that rate. This is not tax advice; check the rules for your country and year.

Checked against the current version of the Capital Gains Tax Calculator on .

Troubleshooting

The download did not start

Look for your browser’s download bar or icon. Some browsers ask once before a site may download files; allow it and click the button again.

Frequently asked questions

Why does the page ask for the holding threshold?

Because it differs by asset and country. Listed shares and equity funds in India become long-term after 12 months, property and unlisted shares after 24, and in the United States a gain is long-term after more than a year. Enter the threshold for your case and the page decides the type.

What happens to a loss?

No tax is due, and the page says so. In many systems a loss can be set against other gains of the same kind and carried forward to later years, but the rules differ, so the page leaves that out.

What are the Indian rates for listed shares?

At the time of writing, short-term gains are taxed at 20% and long-term gains at 12.5% above 1,25,000 of gains in a year, plus 4% cess. Check the current rates.

Can I use it for other countries?

Yes. Enter the holding period that makes a gain long-term in your country and the rates that apply to you; the US sample shows the idea.

Keep working with the result

After you download, choose “Save to Workstand” to keep the result in a folder on your computer, attach it to a project and create a follow-up task. It is saved by your browser, not uploaded.