Capital Gains Tax Calculator
Estimate capital gains tax, with the holding period and cost basis rules that change the bill most.
Last reviewed by the Radiatus Cloud team
Output
Planning cloud or compliance spend?
Our team optimises cloud cost & risk for finance leaders.
The holding period is the biggest lever
In most systems, assets held beyond a threshold — commonly one year — are taxed at preferential long-term rates, while shorter holdings are taxed as ordinary income. The difference is frequently 10 to 20 percentage points. Selling a week before the anniversary rather than a week after can cost more than the price movement you were trying to capture, which makes the purchase date worth checking before any sale.
Cost basis is what you actually pay tax on
The gain is proceeds minus basis, and basis is more than the purchase price. It includes commissions, transfer taxes and, for property, capital improvements. Reinvested dividends increase basis and are routinely omitted, which causes people to pay tax twice on the same money — once as dividend income and again as an inflated capital gain. Records matter more than the calculation.
Which shares you sold changes the answer
With multiple purchase lots, FIFO assumes the oldest first, while specific identification lets you nominate lots where permitted. Choosing high-basis lots reduces the taxable gain. Some jurisdictions mandate a pooled average instead and remove the choice entirely. The method must generally be applied consistently rather than selected per trade.
Losses offset gains, and the rules have teeth
Realised losses reduce realised gains, and unused losses often carry forward. Wash sale rules block claiming a loss if a substantially identical asset is repurchased within a defined window, commonly 30 days either side, and the disallowed loss is added to the new position's basis rather than lost. Buying back the same fund a week later is the usual way this rule is triggered accidentally.
Nothing is owed until you sell
Unrealised gains are not taxed in most systems, which is why holding defers the liability indefinitely. This is also why forced selling — rebalancing, a fund closing, an inherited position being liquidated — creates a tax event that had nothing to do with your own decision.
This is an estimate
Rates depend on jurisdiction, total income, filing status, asset type and any exemptions such as a primary residence allowance. Investment property, collectibles and crypto are frequently treated differently from listed shares. Use the figure for planning and a professional for anything binding.
Related tools
- Compound Interest Calculator — Project how savings or investments grow with compound interest and regular contributions, in both nominal and inflation-adjusted terms.
- Mortgage Calculator — Calculate mortgage payments from price, deposit, rate and term, with total interest, amortisation and the costs beyond principal and interest.
- EMI Calculator — Calculate equated monthly instalments for a loan, with total interest, amortisation breakdown and the effect of prepayment.
- Paycheck / Salary Calculator — Work out net pay per paycheck after tax and deductions, including the extra-paycheck months.
Frequently Asked Questions
Why does the holding period matter so much?
Because long-term gains are usually taxed at preferential rates while short-term gains are taxed as ordinary income, often a 10 to 20 point difference. Selling just before the anniversary can cost more than the price move.
What counts towards cost basis?
The purchase price plus commissions, transfer taxes and capital improvements, and importantly reinvested dividends. Omitting reinvested dividends means paying tax twice on the same money.
Which shares am I deemed to have sold?
FIFO assumes the oldest lot unless your jurisdiction permits specific identification, in which case nominating high-basis lots reduces the gain. Some systems mandate a pooled average instead.
Can I claim a loss and buy back in?
Not immediately. Wash sale rules disallow the loss if a substantially identical asset is repurchased within a defined window, commonly 30 days either side, and add it to the new basis.
Do I owe tax on gains I have not sold?
In most systems no. Unrealised gains are untaxed, which is why holding defers the liability, and why forced selling creates a tax event you did not choose.
Privacy & Security
Calculated locally in your browser. Tax depends on country and holding period.
How to Use
Enter buy/sell details to compute gain or loss.
Disclaimer: This tool is provided "as is" without warranty of any kind. Results are for educational and utility purposes.
Related Tools
Compound Interest Calculator
FinanceProject how savings or investments grow with compound interest and regular contributions, in both nominal and inflation-adjusted terms.
Mortgage Calculator
FinanceCalculate mortgage payments from price, deposit, rate and term, with total interest, amortisation and the costs beyond principal and interest.
EMI Calculator
FinanceCalculate equated monthly instalments for a loan, with total interest, amortisation breakdown and the effect of prepayment.