Stock Profit Calculator

In short: 100 shares bought at $50 and sold at $65, with $10 commission each way and $150 of dividends, made a net profit of $1,630 on $5,010 invested — a 32.53 percent return (15.12 percent a year over two years). Thanks to the dividends, the break-even selling price is $48.70 — below the $50 purchase price.

The three numbers every trade should end with

Most people close a trade knowing one number: the price went up (or down). That number flatters almost every trade, because it ignores what the trade cost to make and what it paid along the way. The honest closing report has three figures. Net profit is the cash truth — everything that came back, including dividends, minus everything that went in, including both commissions. The percentage return puts that profit against the money actually committed, so a small trade and a large one can be compared. And the break-even price, calculated before you sell rather than after, tells you the exact line between a winning and a losing exit — the number a limit order should be built around.

Dividends are the most commonly dropped piece. A portfolio of income shares can look stagnant on price alone while quietly paying out several percent a year; a growth stock looks brilliant on price while paying nothing. Total return — price change plus income — is the only measure under which the two compete fairly, and it is the measure every professional benchmark uses. This calculator counts dividends by default rather than as an afterthought.

How the calculation works

Total invested = shares × buy price + buy commission. Sale proceeds = shares × sell price − sell commission. Net profit = proceeds + dividends − invested, and the return is net profit ÷ invested × 100. The break-even sell price turns the same algebra around: (invested − dividends + sell commission) ÷ shares — the price at which the net profit is exactly zero. If you give a holding period, the calculator also annualises the return with the compound formula, (final ÷ initial)1/years − 1, applied to the total position. Nothing here includes tax: capital gains tax and dividend tax are real costs, but their rates and allowances are personal and national, so they belong in your own final adjustment, not in a general tool pretending to know them.

Worked examples

The default trade: 100 shares, $50 → $65, $10 commission each way, $150 dividends. Invested $5,010; proceeds $6,490; net profit $1,630, return 32.53 percent, break-even $48.70. Over two years that annualises to 15.12 percent a year.

A losing trade: 200 shares bought at $30, sold at $24, $5 commission each way, no dividends. Invested $6,005; proceeds $4,795; net loss $1,210, return −20.15 percent. Note the loss is worse than the 20 percent price fall alone — the commissions deepen it, and the break-even of $30.05 sits above the buy price for the same reason.

The flat trade that was not: 50 shares bought and sold at $120 with zero commission and no dividends returns exactly 0.00 percent — the control case. Add $200 of dividends to the same prices and it becomes a 3.33 percent return, which is the whole argument for counting income.

Costs that hide outside the commission line

Zero-commission trading moved the costs rather than removing them. The bid-ask spread means you buy at the ask and sell at the bid; on an illiquid small-cap, that gap can exceed 1 percent each way. Foreign shares add a currency conversion margin, typically a few tenths of a percent buried in the exchange rate you are given. Some markets charge transaction taxes — the UK's 0.5 percent stamp duty on share purchases is the famous one — and many platforms charge custody, inactivity or withdrawal fees that never appear next to any single trade. None of this is an argument against investing; it is an argument for entering your true all-in costs in the two commission fields, because a return calculated on imaginary zero costs is a story, not a figure.

Frequently asked questions

How do you calculate profit on a stock?

Take what the sale brought in — shares times the sell price, minus the selling commission — add any dividends received, and subtract everything you paid: shares times the buy price, plus the buying commission. One hundred shares bought at $50 and sold at $65, with $10 commission each way and $150 of dividends, made $1,630 net on $5,010 invested, a return of 32.5 percent.

What is the break-even price of a stock?

The selling price at which you get back exactly what you put in — no profit, no loss. It is your total invested amount, minus dividends received, plus the selling commission, divided by the number of shares. In the example above it is $48.70: even though the shares were bought at $50, the dividends received mean the position breaks even below the purchase price.

Should dividends be counted in the return?

Yes, if you want the total return, which is the figure that compares fairly with other investments. A share whose price is flat for two years but which paid 4 percent a year in dividends returned about 8 percent, not zero. Price-only returns systematically underrate income shares and overrate growth shares, which is why professional performance figures are almost always total return.

Do commissions still matter with zero-commission brokers?

Less, but the other costs have not vanished: the bid-ask spread (you buy at the higher ask price and sell at the lower bid), currency conversion fees on foreign shares, stamp duty or transaction taxes in some countries, and platform or custody fees. On a small trade, a 1 percent spread costs more than most commissions ever did — which is why this calculator keeps both commission fields: enter your real all-in costs.

Is a 32 percent return good?

Only the time frame can say. The example's 32.5 percent over two years is 15.1 percent a year annualised — comfortably ahead of long-run market averages. The same 32.5 percent over ten years is 2.9 percent a year, behind inflation in most years. Always annualise before celebrating, and remember that one winning trade is not a rate of return: the honest figure is across all your trades, including the losers.

Note: For guidance only, before tax. It is not investment advice; past trades say nothing reliable about future ones.

Related tools

Formulas and worked examples last verified: 24 November 2026. Everything is calculated in your browser — nothing you type is sent anywhere.