CCalclabhub

Tax

Capital gain

The profit subject to capital gains tax.

Last updated

The Formula

Gain = sale proceeds - cost basis

The profit subject to capital gains tax.

SymbolMeaning
PSale proceeds
BCost basis

What Each Symbol Means

Pcurrency

Sale proceeds

What you received.

Bcurrency

Cost basis

What you paid, including fees.

See It Worked With Real Numbers

A formula on its own does not tell you which number goes where. The how to calculate capital gains tax page applies this equation to a concrete case, shows every intermediate step, and names the mistakes that produce a wrong answer even when the algebra is right.

Where This Formula Appears

This equation is the working core of How To Calculate Capital Gains Tax, filed under Finance. Every number the guide produces comes from substituting into this one line.

Common Questions

What is the formula for Capital gain?

The formula for Capital gain is Gain = sale proceeds - cost basis. The profit subject to capital gains tax.

What units should I use with Capital gain?

Substitute P in money (any currency, as long as every money input uses the same one), B in money (any currency, as long as every money input uses the same one). Convert every input to those units before you start, because the equation only returns the right answer when the units on both sides agree.

What is a common mistake when using Capital gain?

Forgetting fees in the cost basis. Commissions and purchase fees add to the basis and reduce the taxable gain. Omitting them overstates the gain and the tax.