The sample lot, line by line
30% on the chart. 34% in the account. 15.8% a year once the gain compounds.
This stock return calculator opens on a made-up lot. Read the finished slip, then swap in your own shares. The sample is 100 shares, bought at $50, marked today at $65, with $200 of cash dividends across 2 years and no commission.
Cost basis is 100 times $50, so $5,000. Market value is 100 times $65, so $6,500. The price rose $15 a share. On the lot, that is $1,500, or 30% of the money put in.
The $200 dividend is extra cash. Total money made is $1,700, or 34% of $5,000.
Hold the shares, keep the dividends in cash, and the pile is $6,700. Compound that pile back to the $5,000 start and the yearly rate is about 15.8%. Divide 34 by 2 and you get 17%. The shortcut is larger because year two is scored against the original $5,000, not against a balance that had already grown.
| Line | Figure |
|---|---|
| Cost basis | $5,000 |
| Market value | $6,500 |
| Price gain | $1,500 (30.0%) |
| Cash dividends | $200 |
| Total return | $1,700 (34.0%) |
| Annualized | 15.8% a year |
| Total divided by years | 17.0% |
A friend who says "up 30%" is reading the price. A friend who says "17% a year" divided the total by the calendar. Both numbers sit on the slip, next to the compounded rate, before either one gets repeated.
A 30% price move that was a 34% return
Screenshots show the price. Brokerage tax packets show the cash. The gap between those two documents is the whole point of the slip.
- Price return
- (today's price − buy price) ÷ buy price. On the sample, ($65 − $50) ÷ $50 = 30%. Dividends stay off this line. Fees stay off this line too.
- Total return
- (market value − cost + cash dividends − fees) ÷ cost. On the sample, ($6,500 − $5,000 + $200) ÷ $5,000 = 34%. This is the money result.
- Annualized
- The yearly rate that compounds the start into the ending pile. Ending pile is market value plus cash dividends minus fees. On the sample, $6,700 against $5,000 over 2 years is 15.8% a year.
A stock that never pays makes the first two lines match. A payer makes price return the smaller one, and the smaller one is what a chart exports. Five years of a flat 2% cash yield is about ten points of return with no mark on the price line. More, if the dividend itself grew.
Reinvested payouts are already shares. If the broker spent every dividend on more stock, those shares sit inside today's count. Set cash dividends to 0. Typing both the new shares and the cash counts one payout twice, and the return comes out too high.
Cash you withdrew is the opposite case. Type the dollars. Leave the share count at what you still hold.
Dividing by the years flatters the hold
Annualized return = (ending ÷ start) ^ (1 ÷ years) − 1
Ending is market value plus cash dividends minus fees. Start is the share count times the buy price. A commission is subtracted at the end, so the percentage falls without pretending the fee was part of the investment. Some brokers fold the buy commission into cost basis instead. Dollar profit matches either way. The percentage shifts by a fraction of a point on a $5,000 lot, and by much more on an $80 odd lot with a flat ticket charge. The exponent is the step the shortcut skips. Year-one profit is treated as still invested, earning the same rate again. Dividing the total percentage by the number of years skips that step, and the longer the hold, the kinder the shortcut looks. A position that doubled over 10 years shows 100% total, 10% if you divide by ten, and about 7.2% once the same doubling is compounded.
Type 0.25 for a quarter. Type 0.5 for half a year. Type 0 when you only want the dollars.
A trade closed the same week has a total return and no yearly rate worth repeating. Stretching a 2% gain over three days into a yearly figure produces a number nobody earned. Under three months, the slip still prints the compounded rate, then tells you to quote the total instead.
One purchase price, then a hard stop
The slip is a single buy. Three buys at three prices need one blended cost: dollars spent on the shares you still hold, divided by that share count. Type the blended price, the full share count, and the cash dividends from every lot in one box.
Past a single lot, stop.
- Several tickers are a portfolio. Add the dollar results by hand. A project spend with no share price belongs on the ROI calculator.
- Yield is the yearly payout divided by a price. Different ratio, different page. The dividend calculator is built for yield and a payout that grows.
- Inflation stays in the number. A 15.8% annualized gain during a stretch of high inflation buys less than 15.8% of extra goods. The inflation calculator takes the same span of years.
- No future price is guessed. Nothing here projects the holding. For a rate you choose to assume, use the future value calculator or the investment return calculator when you also add money along the way.
- Tax stays out. Holding period, qualified dividends, and whether the shares sit in a taxable account or an IRA decide the cash you keep. The slip is pre-tax on purpose.
- Short sales, option premiums, and margin interest follow different payoff math. Forcing them into these boxes invents a return.
One lot's 15.8% is not a verdict on the company. The figure has no benchmark until you line it up with an index over the same dates, with dividends treated the same way. Beating a price-only index with a total-return number flatters the lot.
Splits, a zero price, and a fee that only sometimes matters
You paid $5,000 for 100 shares. After a 2-for-1 split you hold 200 shares, and the adjusted buy price is $25. Enter 200 and $25, or enter 100 and $50. Both describe the same trade. Entering 200 shares against the old $50 price doubles the cost basis and invents a loss you never took.
A current price of 0 is allowed. The shares are a total loss. Dividends you already received still count in the total. The compounded yearly rate stays blank once the ending pile is zero or below. There is no tidy yearly percentage from a positive start down to nothing.
A $10 commission on the sample $5,000 lot barely moves 34%. The same $10 on a small odd lot is most of the result, so type the commission. Leave the fee box at 0 when the broker charged nothing.
The currency menu changes the symbol on the slip. The menu does not convert a foreign quote into dollars. Convert first with the currency converter, then enter every figure in one currency. Mixing a dollar buy price with a euro quote makes the return nonsense.
Negative prices and negative share counts are rejected. Selling short is a different trade, and this form will not pretend otherwise.