What is the Capital Gains Tax Calculator?
A capital gain arises when an asset is sold for more than it cost. Most tax systems treat gains differently from ordinary income, and almost all distinguish between assets held briefly and assets held for longer — often with materially different rates.
This calculator gives an indicative estimate of tax on a gain. Actual treatment depends on the asset type, holding period, jurisdiction and any indexation or exemption available, so use it for planning rather than filing.
What each input means
- What did you sell?
- Listed shares and equity mutual funds follow one set of rules. Property, gold, debt funds and unlisted shares follow another, with a longer holding period and no equity exemption.
- Purchase price
- What you paid for the asset.
- Sale price
- What you received on the sale, before tax.
- Costs you can add to the purchase
- Expenses that reduce the gain: brokerage and transaction charges, and for property the cost of improvements and the fees paid when buying and selling.
- Months held
- Time from purchase to sale. It decides whether the gain is short-term or long-term, which usually changes the rate.
- Your income tax slab rate
- The top rate your other income is taxed at. It is only used for short-term gains on assets other than listed equity, which are added to your income.
How this calculation works
The gain is the sale price less the acquisition cost and allowable expenses. Tax is then applied at the rate corresponding to the asset class and holding period.
The holding period is often the decisive variable. Crossing the threshold that separates short-term from long-term treatment can change the applicable rate substantially, which is why timing a sale sometimes matters more than negotiating the price.
Formula: Tax = (sale price − purchase price − costs − any exemption) × rate, plus 4% cess
Getting the most out of the result
- Check the holding period threshold for your specific asset class — it differs between listed securities, property and other assets.
- Include every allowable cost: purchase price, improvement costs, brokerage, legal fees and transfer charges all reduce the gain.
- Where indexation is available, it can significantly reduce the taxable gain on long-held assets.
- Losses can often be set against gains and sometimes carried forward. Do not overlook them.
- Investigate reinvestment exemptions before selling, particularly for property, since they usually require action within a defined window.
Common mistakes to avoid
The most expensive error is selling just before a holding period threshold and paying a materially higher rate for want of a few weeks. Sellers also compute the gain on sale price alone, forgetting that acquisition costs, improvements and transaction expenses all reduce it. Failing to claim available losses is common, as is missing reinvestment exemptions that must be acted on within a strict window. Assuming one rate applies to all assets is another: treatment varies considerably by class.
Frequently asked questions
What separates short-term from long-term gains?
The holding period, measured from acquisition to sale. The qualifying threshold differs by asset class — listed securities typically have a shorter threshold than property. Long-term treatment usually carries a lower rate.
Which costs can I deduct from the gain?
Generally the acquisition cost, capital improvements, and expenses directly related to the transfer such as brokerage and legal fees. Routine maintenance is normally not deductible. Keep documentation for everything claimed.
What is indexation?
An adjustment to the acquisition cost for inflation over the holding period, so tax applies to real rather than nominal gain. Availability varies by asset and jurisdiction and has been restricted in some systems.
Can capital losses reduce my tax?
Usually yes. Losses can typically be set against gains, sometimes with restrictions on which types can offset which, and unused losses can often be carried forward. Rules on carry-forward frequently require reporting the loss in the year it arises.
Are there exemptions for reinvesting?
Many systems offer relief where proceeds are reinvested, particularly into residential property or specified instruments, subject to time limits and conditions. These are valuable but strictly time-bound, so plan before selling.
Does this calculator handle all asset types?
It separates listed shares and equity funds from other assets such as property, gold and debt funds, using FY 2026-27 rates. It does not handle the indexation option on property bought before July 2024, setting losses off against gains, or surcharge, so treat the result as an estimate.
When is the tax actually payable?
Generally in the tax year the sale occurs, and many systems require advance payment during the year rather than at filing. A large gain can therefore create an obligation well before the return is due.