Capital Gains Tax Calculator
Calculate capital gain, tax due and net proceeds from your sale price, cost basis, fees and a tax rate you enter yourself. No jurisdiction tables.
Breakdown
| Cost basis (purchase + buying costs) | $5,010.00 |
| Net proceeds (sale − selling costs) | $8,490.00 |
| Capital gain | $3,480.00 |
| Less exempt allowance | $0.00 |
| Return on cost | 69.46% |
| Effective rate on the gain | 15.00% |
Held for 1,202 days (3.29 years). Many tax systems apply a lower rate beyond a holding threshold — check yours and enter the matching rate above.
No jurisdiction rates or brackets are built in: the tax rate and any allowance are entered by you and applied to a single sale. Everything is calculated in your browser and nothing is uploaded. Estimates for planning only, not tax advice — confirm the applicable rate with your tax authority or an accountant.
What is the Capital Gains Tax Calculator?
The ByteTools Capital Gains Tax Calculator works out the taxable gain on an asset sale and what you keep after tax.
- Gain calculated from proceeds minus cost basis minus both-side fees
- Holding period computed from your purchase and sale dates
- Optional tax-free allowance deducted before the rate is applied
- Handles capital losses without producing a negative tax figure
- No hardcoded brackets — the rate is always yours to enter
- Fully offline in your browser; estimates only, not tax advice
How to use the Capital Gains Tax Calculator
- 1
Enter the purchase price, quantity and any buying costs or commissions.
- 2
Enter the sale price and any selling costs.
- 3
Set the purchase and sale dates to see the holding period.
- 4
Type the capital gains tax rate that applies to you, plus any exempt allowance.
- 5
Read the taxable gain, tax due, net proceeds and effective rate.
About the Capital Gains Tax Calculator
The ByteTools Capital Gains Tax Calculator works out the taxable gain on an asset sale and what you keep after tax. The gain is your proceeds minus the cost basis minus buying and selling costs; the tax is that gain multiplied by a rate you type in. It handles losses too, showing the loss available to offset other gains rather than a negative tax bill.
Because capital gains rules differ in every country and change most tax years, this tool deliberately contains no bracket tables and no jurisdiction logic. You enter the rate that applies to you — short-term or long-term, federal, state, provincial or combined — and can add an exemption or annual allowance that is deducted before tax is applied.
The holding period is computed from your purchase and sale dates so you can see at a glance which rate you should be entering, and everything runs locally in your browser with nothing uploaded. Results are estimates to help you plan; confirm the applicable rate with your tax authority or an accountant before filing.
Frequently asked questions
How do you calculate capital gains tax?
Subtract your cost basis and all buying and selling fees from the sale proceeds to get the gain, deduct any tax-free allowance, then multiply what is left by your capital gains tax rate. This calculator shows each of those steps separately.
What counts as the cost basis?
The cost basis is what you paid for the asset plus the costs of acquiring it, such as commissions and transfer fees. Adding those fees to the basis lowers the taxable gain, which is why the tool asks for them separately rather than folding them into the price.
Why doesn't this calculator know my tax rate?
Because capital gains rates depend on your country, your income, the asset type and the tax year, and they are revised regularly. A hardcoded table would be silently wrong within a year, so the rate is an input you control and can update whenever the rules change.
What is the difference between short-term and long-term capital gains?
Many tax systems apply a lower rate to assets held beyond a threshold — commonly one year, but it varies. This tool shows your holding period in days and years so you can decide which of your own rates to enter.
What happens if I sold at a loss?
The tool reports a capital loss and sets the tax due to zero rather than showing a negative tax. In most systems a realised loss can offset gains elsewhere, and sometimes be carried forward, but the rules are jurisdiction-specific so check yours.
Related tools
Crypto Profit Calculator
Calculate crypto profit, loss and ROI from buy price, sell price, quantity and both-side fee percentages, with break-even and target price planning.
Stock Average Calculator
Calculate your weighted average cost per share across multiple buy lots, the break-even price after brokerage, and profit or loss at any price you enter.
Sales Tax Calculator
Add sales tax to a net price or extract tax from a gross price at any rate. See the net, tax and gross amounts instantly for receipts and invoices.
ROI Calculator
Calculate return on investment, net profit and annualized ROI from the amount invested and returned. Compare investments over any holding period.
Dividend Calculator
Work out annual dividend income, dividend yield and yield on cost, then project reinvested DRIP growth from a dividend growth rate you set yourself.