How the Capital Gains Yield Calculator works
Capital gains yield measures the price change of an investment as a percentage of what you paid for it — nothing more. It is one of the two building blocks of total return, the other being income (dividends or interest). Keeping the two apart matters: a stock that stays perfectly flat in price but pays a 4% dividend has a 0% capital gains yield and a 4% total return, while a stock that rises 10% but pays nothing has a 10% capital gains yield that also equals its total return.
The formula
For a purchase price P0 and a current or selling price P1, the capital gains yield is:
CGY = (P1 − P0) ÷ P0 × 100
Multiply the price change per share by the number of shares held to get the total dollar capital gain. To compare holding periods of different lengths on equal footing, the calculator also annualizes the yield using a compound growth formula: Annualized CGY = ((P1 ÷ P0)12/months − 1) × 100. This converts any holding period into the equivalent per-year rate, the same logic behind compound annual growth rate (CAGR).
Worked example
Buy 100 shares at $50 and later sell (or mark them) at $65, after receiving $1.50 per share in dividends over a 12-month holding period. The capital gains yield is (65 − 50) / 50 × 100 = 30%, for a total capital gain of $1,500. Because the holding period is exactly 12 months, the annualized yield is also 30%. Adding the dividend yield of 1.50 / 50 = 3% gives a total return of 33% for the year.
What the numbers mean
- Capital gains yield: price appreciation only — it excludes dividends, interest, and any fees or taxes you paid on the transaction.
- Total return vs. capital gains yield: total return = capital gains yield + dividend yield. A high-dividend stock can have modest price appreciation but a competitive total return.
- Annualized yield: converts any holding period to a per-year equivalent so you can compare a 3-month trade with a 5-year position on the same basis.
Sanity-check your inputs
- Use the actual price you paid and the actual price today (or at sale), not a quoted 52-week high or low.
- This calculator does not subtract brokerage fees, commissions, or capital gains tax — those reduce your realized proceeds separately.
- A negative capital gains yield simply means the price fell — dividends received can still make total return positive.