Home/Financial tools/Capital Gains Calculator

Investing · Browser calculator

Capital Gains Calculator

Estimate a taxable investment gain and tax from purchase, sale, fees and an entered rate. Change the assumptions to compare scenarios.

Calculation, not advice. Results are educational illustrations.

01

Your assumptions

$
$
$
%
02

Your result

Illustrative

Estimated capital-gains tax

—

Based on the assumptions entered.

How it works

One model, every assumption visible.

Estimate a taxable investment gain and tax from purchase, sale, fees and an entered rate. The calculation runs locally in your browser. Inputs are not placed in the URL or stored by this page.

Real outcomes can differ because rules, rates, taxes, fees, timing and personal circumstances change. Verify consequential decisions against current official guidance or a qualified professional.

Worked example

Worked example: a $10,000 gain, three rates

An investment bought for $20,000 sells for $30,000, with $200 of buying and selling fees. The gain is $9,800 (the $10,000 difference less fees). At an entered 15% rate the estimated tax is $1,470 and net proceeds are $28,330. At 20% the tax is $1,960 and net proceeds $27,840. At 0% the tax is zero and proceeds are $29,800.

Losses are shown too. A position bought for $12,000 and sold for $9,000 with $100 of fees has a gain of negative $3,100, and the tax line is $0. The calculator does not carry that loss forward or apply it against another gain, which is a separate calculation.

Inputs and limits

Inputs that decide the answer

Enter the total purchase cost including anything that adds to your cost basis, and the total sale proceeds before fees. Reinvested dividends, stock splits and return of capital can change the basis, so use the figures from your brokerage statement rather than the original lump sum. A wrong basis is the most common reason an estimate differs from the real result.

The rate field is yours to supply. Which rate applies can depend on how long the asset was held, your total income, the type of asset and where you live, and this tool does not look any of that up. Wash-sale rules, loss offsets, additional surtaxes and state taxes are not applied. Use the output for rough planning and rely on official guidance or a tax professional for filing.

Frequently asked

Capital Gains Calculator questions

Does this use live financial data?

No. It uses only the assumptions shown above.

Are the results guaranteed?

No. They are mathematical illustrations, not forecasts, quotes, eligibility decisions or financial advice.

Does the calculator know whether my gain is short or long term?

No. You choose the rate that matches your situation. It does not use holding periods.

Can I offset gains with losses?

Not here. The tool floors tax at zero for a loss and does not net multiple positions.

More on this topic

Tax on income and investments