Skip to main content

Capital Gains and Dividend Tax

BeginnerPersonal FinanceAlso known as: taxes on investments, short term vs long term gains, after tax proceeds, tax loss offset

Finds: the tax cost of a sale and of dividends.

When to use it: Use it to estimate the tax cost of selling or of holding income-paying investments. Holding past the long-term threshold often cuts the rate, and losses can offset gains. Rules differ widely by country (some have no capital gains tax, others tax gains as ordinary income), so enter the rates and thresholds from your own tax rules. The rates below are illustrative.

The formula

Tax\displaystyle \text{Tax}=rcg×max⁡(P−Basis−Losses,0)+rd×Dividends\displaystyle =r_{cg}\times\max(P-\text{Basis}-\text{Losses},0)+r_{d}\times\text{Dividends}

In words: Capital gain = sale proceeds − cost basis; Taxable gain = gain minus any capital losses used against it (not below 0); Tax = capital gains rate (short-term or long-term depending on holding period) x taxable gain + dividend tax rate x dividends

What each symbol means

PSale proceedsmoney
BasisWhat you paid, plus eligible costsmoney
r_cgCapital gains rate: usually lower if held more than a set period (for example one year)percent
r_dTax rate on dividendspercent

Worked example

You sell shares bought for 8,000 for 15,000, and you also received 1,200 of dividends. You have a 500 capital loss to use. The short-term rate is 32% and the long-term rate is 15%; dividends are taxed at 15%.

Capital gain15,000 − 8,0007,000
Taxable gain after lossesmax(7,000 − 500, 0)6,500
Rate applied0.15 if 1==1 else 0.3215%
Tax on the gain6,500 × 0.15975
Tax on dividends1,200 × 0.15180
Total tax975 + 1801,155
Kept from the sale after tax on the gain15,000 − 97514,025
Tax on the gain if short-term6,500 × 0.322,080
Saving from the long-term rate2,080 − 6,500 × 0.151,105
The answer

The gain is 7,000, and 6,500 is taxable after using the loss. At the 15.0% rate the tax on the gain is 975, plus 180 on dividends, so 1,155 in total. After tax you keep 14,025 from the sale. Had the shares been held short-term, the tax on the gain would have been 2,080, a difference of 1,105.

Want every formula on a few pages?Get the free Cheat Sheet (PDF) →

Calculator

Capital gain7,000
Tax on the gain975
Total tax1,155
Kept from the sale after tax on the gain14,025

Keep going