Finance / Capital Gains Tax

Capital Gains Tax calculator

Estimate the tax bill on an investment sale and the cash you would actually keep.

Your answer will appear here.

Formula: Gain = (sale price − purchase price) × shares − fees. Tax = max(0, gain) × tax rate ÷ 100. Net proceeds = sale price × shares − fees − tax.

The basics

Gain first, tax second

Only the profit is taxed, not the whole sale. Cost basis includes what you paid plus purchase fees, while sale fees reduce the gain. A flat rate keeps this estimate simple, but real rules may use brackets, holding periods, and loss offsets. Treat the result as a planning number rather than tax advice.

In practice

Worked examples

Input

Buy 100, sell 150, 10 shares, 15% tax, 10 fees

Answer

Gain 490 · Tax 73.50 · Net 1,416.50

Input

Buy 100, sell 80, 10 shares, 20% tax, 5 fees

Answer

Loss −205 · Tax 0 · Net 795

Good to know

Frequently asked questions

You supply one flat rate. Use your short-term rate for positions held a year or less and your long-term rate for longer holdings.

Keep going