A capital gains yield calculator shows how much an investment's price has risen or fallen as a percentage of what you paid. Enter the purchase price and the sale or current price, and the calculator works out the capital gains yield. Add the dividends or other income received to see the income yield and the total return, also called the holding period return, and add the years held to see the annualised return.
The capital gains yield formula
Capital gains yield = (end price − purchase price) ÷ purchase price
Income yield = income received ÷ purchase price
Holding period return = capital gains yield + income yield
Annualised return = (1 + holding period return)^(1 ÷ years) − 1
The capital gain yield is the change in the stock price divided by the initial price, and the dividend yield is the dividends received divided by the initial price. Adding the two gives the total percent return over the holding period. Annualising that return means raising one plus the holding period return to the power of one over the number of years, minus one.
How to use the capital gains yield calculator
- Enter the purchase price, per share or for the whole holding.
- Enter the sale price or the current price on the same basis.
- Optionally enter dividends or income received while you held it.
- Optionally enter the years held, such as 0.5 for six months.
- Press Calculate.
Worked example
Take a share bought for $100 that pays a dividend of $1 each quarter and is worth $99 at the end of the year. The capital gains yield is ($99 − $100) ÷ $100 = −1 percent, but the $4 of dividends add an income yield of 4 percent, so the holding period return is 3 percent. The price fell slightly, yet the investment still made money because of the income.
As a second example, a share bought for $40 and sold for $50 after two years, with $2 of dividends, has a capital gains yield of 25 percent, an income yield of 5 percent and a total return of 30 percent. Annualised over two years, that is about 14 percent a year.
Capital gains yield and dividend yield
The two parts of the return behave differently. The capital gains yield depends entirely on the price when you sell, so it can swing widely and can be negative. The income yield comes from cash actually paid out, so it is usually steadier and is never negative. Growth companies that pay little or no dividend rely almost entirely on capital gains, while mature companies and many funds deliver a larger share of their return as income. Looking at both parts shows where your return really came from.
Why annualise?
A 30 percent return sounds better than a 20 percent return, until you notice that the first took five years and the second took one. Annualising puts returns over different periods on the same footing. The annualised figure assumes the same rate would keep compounding, which is a convenient simplification rather than a forecast. For growth over many years, the CAGR calculator does the same calculation from a start and end value, and the stock calculator works in shares and dollars.
Quick reference
| Bought | Now | Income | Capital gains yield | Total return |
|---|---|---|---|---|
| $100 | $99 | $4 | −1% | 3% |
| $40 | $50 | $2 | 25% | 30% |
| $80 | $72 | $0 | −10% | −10% |
| $25 | $30 | $1 | 20% | 24% |
Gains and taxes
The capital gains yield here is before tax. In many countries capital gains are taxed differently from dividends, and the rate can depend on how long the investment was held. A gain that has not been sold is usually not taxed until it is realised. For tax on a sale, try the US capital gains tax calculator.
Using total amounts instead of prices
You can enter the whole holding instead of a single share. If you invested $5,000, received $150 in dividends and the holding is now worth $5,600, enter 5,000, 5,600 and 150. The capital gains yield is 12 percent, the income yield 3 percent and the total return 15 percent. Using totals is easier when you bought shares at different times, as long as the starting figure is the total amount you paid.
Reinvested dividends
If your dividends were reinvested in more shares, they are already part of the end value. In that case, leave the income box empty and enter the current value of all the shares, including the ones bought with dividends. Entering the dividends again would count them twice.
Comparing investments
To compare two investments fairly, use the same start date and the annualised total return for each, so that both price changes and income are counted over the same period.
Common mistakes
- Leaving out dividends. The capital gains yield alone understates the return on income-paying investments.
- Mixing per-share and total figures. Use the same basis for every input.
- Comparing returns over different periods without annualising.
- Forgetting costs. Fees and commissions reduce the real return.
Two more capital gains yield examples
A share bought for $20 that pays $1 of dividends and is worth $26 after three years has a capital gains yield of 30 percent and an income yield of 5 percent, a total return of 35 percent. Enter 3 years held and the calculator annualises it to 10.521 percent a year, because 1.35 raised to the power of one third is about 1.105.
Short holding periods work the other way. A share bought for $50, sold for $45 after six months, with $1.50 of dividends, has a capital gains yield of −10 percent, an income yield of 3 percent and a total return of −7 percent. Entered as 0.5 years, the annualised return is −13.51 percent, a larger figure, because a loss over half a year is scaled up to a full year. Treat annualised figures for periods under a year with care.
What next
Use this often? Add Capital Gain to your Home screen.
Frequently asked questions
How does a capital gains yield calculator work?
It subtracts the purchase price from the end price and divides by the purchase price. With income added, it also adds the income yield for the total return.
What is the capital gains yield formula?
(End price − purchase price) ÷ purchase price. A share bought for $40 and sold for $50 has a capital gains yield of 25 percent.
What is the difference between capital gains yield and total return?
Total return also includes dividends or other income. A share bought for $100 that pays $4 of dividends and ends at $99 has a −1% capital gains yield but a 3% total return.
How do you annualise a return?
Raise one plus the total return to the power of one over the years held, then subtract one.
Can capital gains yield be negative?
Yes, when the price falls below what you paid.
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.