Holding Period Return Calculator

Calculate the total return from stocks, including capital gains and dividend yield.

The holding period return calculator measures your total stock return over the period you owned an investment, combining the change in share price with dividends received. It shows your capital gains yield, dividend yield, and overall holding period return (HPR) as percentages of the purchase price.

stock market chart

How to use the holding period return calculator

  1. Bought Price: Enter the price you paid for one share. This must be greater than zero because it is the starting value used to calculate your return.
  2. Sell Price: Enter the sale price per share. If you still own the stock, use its market price at the end of the period you are measuring; the price gain or loss will then be unrealized.
  3. Dividend per share: Enter the total dividends received per share during that same holding period. Add all relevant payments together, and enter zero if you received none.

Use per-share dollar amounts throughout. For example, if you held a stock for two years, enter all dividends received during those two years—not just the latest quarterly payment or the current annual dividend.

The calculator does not ask for dates or the number of shares. Its result covers your entire holding period and is not automatically an annual return.

What is holding period return?

Holding period return is the gain or loss on an investment, including income received, divided by its initial value. For this stock calculator, the two components are:

  • Capital gains yield: The percentage increase or decrease in the share price relative to your purchase price.
  • Dividend yield: Total dividends received during the holding period as a percentage of your purchase price.

Adding these components lets you compare a dividend-paying stock with one that produces returns mainly through price appreciation. For a fair comparison, use the same measurement period and consider differences in risk.

Holding period return formula

The holding period return formula, also called the holding period yield formula, is:

HPR (%) = [(s − b + d) ÷ b] × 100

Here, b is the bought price per share, s is the sell price or ending market price per share, and d is the total dividend per share received during the holding period.

The calculator breaks this into three results:

  • Capital Gains Yield (%) = [(s − b) ÷ b] × 100
  • Dividend Yield (%) = (d ÷ b) × 100
  • Holding Period Return (%) = Capital Gains Yield + Dividend Yield

The dividend yield shown here is based on your original purchase price and dividends received over the full holding period. It is not necessarily the stock’s quoted annual dividend yield, which is commonly based on its current market price.

Example: a stock bought for $100

Suppose you buy a share for $100, receive $4 in dividends while holding it, and sell it for $120.

Measure Calculation Result
Capital gains yield ($120 − $100) ÷ $100 × 100 20%
Dividend yield $4 ÷ $100 × 100 4%
Holding period return 20% + 4% 24%

Your total gain is $24 per share: $20 from the price increase plus $4 in dividends. If you held 10 shares throughout the period, the gain would be $240 on a $1,000 initial investment, with the same 24% HPR, before costs and taxes.

How to interpret your result

  • Positive HPR: Price changes and dividends together produced a nominal gain.
  • Zero HPR: Dividends exactly offset any price loss, or neither the price nor dividend income changed your starting value.
  • Negative HPR: The price loss exceeded the dividends received.

A falling share price does not necessarily mean a negative total return. Buying at $100, selling at $98, and receiving $4 in dividends produces a 2% HPR. But selling at $90 with only $2 in dividends produces an 8% loss.

Use the component results to see what drove performance: price appreciation, dividend income, or both. Track dollar gains as well as percentages when reviewing your net worth, since the same percentage return can represent very different amounts of money.

Can you compare returns from different holding periods?

Not directly. A 24% return over three years is not equivalent to a 24% return over one year. HPR measures the whole period without adjusting for its length.

For a single initial investment with no additional contributions or withdrawals, an equivalent annualized return can be calculated separately:

Annualized return (%) = [(1 + HPR ÷ 100)1/n − 1] × 100

Here, n is the holding period in years. For example, a 24% HPR over two years is equivalent to approximately 11.36% per year compounded. This does not mean the investment actually earned that rate each year.

Limitations and common mistakes

calculator

  • Costs and taxes are excluded. There are no separate inputs for commissions, account fees, or taxes, so these can reduce your actual net return.
  • Inflation is excluded. A positive nominal HPR does not guarantee an increase in purchasing power.
  • Dividend reinvestment is not modeled. The formula adds dividends as cash income; it does not track additional shares purchased with those payments.
  • Cash-flow timing is not captured. Multiple purchases, partial sales, or contributions at different dates require a more detailed analysis.
  • Price data must be consistent. Use a consistent per-share basis if a stock split occurred. Avoid using dividend-adjusted prices and then adding the same dividends again.
  • HPR does not measure risk. It uses starting and ending prices, so it does not reveal volatility or losses experienced along the way. It does not assume returns were constant.

A higher HPR indicates a higher measured return for the period, not necessarily a more suitable investment. Consider risk, liquidity, costs, and your investment goals before drawing broader conclusions.

Related calculators and next steps

For a different question—how much of a company’s value reflects expected future growth—explore the Present Value of Growth Opportunities. It is a valuation measure, not a measure of your realized investment return.

Build a return calculator for your website

Financial educators and investment publishers can use Calcopolis to build a customized return calculator for WordPress, helping visitors compare price changes and dividend income using examples relevant to their audience.