Home · Finance · Stock Return Calculator

Stock Return Calculator

The honest result of a stock trade — buy price, sell price and shares, with dividends received added in and trading fees counted in the cost. Results update as you type.

Examples

Your numbers

Units

Example result — edit any value to make it yours

What this calculator is for

Scoring a finished trade properly. The price gain alone is not the result — dividends received along the way added to it, and fees took from it. Enter the buy and sell prices, the share count, the dividends and the fees, and the result is the true profit and the percentage return on everything you laid out.

Method and sources

Total cost = buy price × shares + fees · Proceeds = sell price × shares + dividends · Profit = proceeds − cost · Return = profit ÷ cost × 100

This is the total-return convention used in performance reporting: every cash flow attached to the position counts, income on the proceeds side and trading costs on the cost side. Nothing is annualized and no benchmark is involved — the calculation describes one closed position, built entirely from your five inputs.

Reading your result

The big figure is the profit in money. The return percentage below it is measured on the total cost including fees, so it is the figure to compare against other trades. The bars put cost and proceeds side by side — on a losing trade the proceeds bar comes up short, with dividends sometimes visibly softening the loss.

Worked example

Buy 100 shares at $50 and sell at $75: the cost is 100 × $50 plus $10 of fees = $5,010.00. Proceeds are 100 × $75 plus $250 of dividends = $7,750.00. The profit is $2,740.00, a return of 54.69% — the price gain alone would have said 50%. Every figure here is produced by the same function the calculator uses.

Common mistakes

Quoting the price change as the return. Price-only math ignores dividends and fees in both directions. Double-counting reinvested dividends — if they bought more shares that you then sold, they are inside the proceeds already. Forgetting the sell-side fee by entering only the buy commission; the fees field should carry the round trip. Comparing total returns across different holding periods as if they were yearly rates.

Quick reference: the example trade at other sell prices

100 shares bought at $50, with $250 of dividends and $10 of fees, computed by the same function:

Sell priceProfitReturn
$40.00$-760.00-15.17%
$50.00$240.004.79%
$60.00$1,240.0024.75%
$75.00$2,740.0054.69%
$90.00$4,240.0084.63%

Your prices, shares, dividends and fees will change these figures — the calculator above uses your real numbers.

Common questions

Why are the fees added to the cost instead of subtracted from the proceeds?

Either placement gives the same profit; adding them to the cost is the convention here because it makes the percentage honest — the return is measured against everything you actually laid out. A $10 fee on a $5,000 trade barely moves the result, but on small trades fees can quietly eat several percent, which is exactly what this layout surfaces.

Should dividends really count toward the return?

Yes — they are cash the holding paid you, and leaving them out understates what the investment did. In the example they add $250 to the proceeds, worth about five percentage points of return. If you reinvested the dividends instead of receiving them as cash, they are already inside your sell proceeds through the extra shares, so enter zero here to avoid counting them twice.

Is this return annualized?

No — it is the total return over the whole holding period, however long that was. A 54.69% return over six months and over six years are very different performances wearing the same number. For a per-year figure, take the total multiple to the ROI Calculator, which annualizes it properly.

What about stock splits and extra purchases?

Fold them into the inputs: after a split, adjust the buy price and share count so their product still equals what you paid, and if you bought in several lots, use the total cost divided by the total shares as the buy price. The calculator prices one blended position, which is all the return arithmetic needs.