Type every buy you made — how many shares and at what price — then the price you sold at. The page pools the buys into one average cost, charges the fee on the way in and the fee on the way out, and answers the one question a stock return calculator is asked: after all of it, what did selling the whole position actually leave me with? The break-even sell price is included, with both fees counted. The figure the page lands on is the realized gain on the position, before tax: sell above your cost and it reads as a realized gain calculator, sell below it and the same page reads as a stock loss calculator, and the break-even price is the line between the two. The arithmetic is printed underneath, using your own numbers.
Each buy is costed on its own, the buys are pooled into one share count and one average cost, and then the sale is measured against everything that went in — shares, money and both fees. The same run produces the two shapes people ask a stock return calculator or an ROI calculator for: the profit in money, and the return as a percentage of what you paid in. Read it as a share profit calculator and nothing changes: the page is still measuring money in against money out, with the fee on each side taken off before the answer is printed.
Average cost per share = (q1×p1 + q2×p2 + … + qn×pn) ÷ (q1 + q2 + … + qn)
where q is the number of shares bought and p is the price paid per share. It is the same weighted average used everywhere on this site: the shares do the weighting, so a big buy at one price moves the average more than a small one. If the sell fee is given as a percentage, the break-even line changes shape — the fee is taken on the proceeds, so the price has to clear the cost and the fee taken out of it:
Break-even sell price = total cost ÷ (total shares × (1 − fee rate))
Worked example: 100 shares at 50.00 and 50 shares at 60.00, a 5.00 buy fee, sold at 62.00 with a 7.00 sell fee. Money paid in is 5,000.00 + 3,000.00 = 8,000.00 for 150.0000 shares, so the average cost is 8,000.00 ÷ 150.0000 = 53.3333. Total cost is 8,000.00 + 5.00 = 8,005.00. Gross proceeds are 150.0000 × 62.00 = 9,300.00, net proceeds 9,300.00 − 7.00 = 9,293.00, and the net profit is 9,293.00 − 8,005.00 = 1,288.00, a return of 16.08%. The break-even sell price is (8,005.00 + 7.00) ÷ 150.0000 = 53.4133 — below the average cost of 53.3333 it would be a loss, and the gap between the two is what the two fees cost you per share. Type those rows in and the page returns every one of those figures.
The same 150 shares at three prices. The break-even sits above the average cost, and the gap between them is what the two fees come to per share.
Rounding: every figure on this page is rounded down, never up — the same rule as the rest of the site. Share counts and per-share prices are shown to four decimals, amounts and percentages to two, so the number you read is never larger than the one that was computed. Total shares is the sum of the buy rows exactly as they were typed, and the money paid in is the sum of the per-buy costs printed beside each row, so the column and the total agree with each other.
A single price is rarely how a position gets built. You buy some, the price moves, you buy more — and after that no one of those prices is the number the sale should be measured against. What matters is the average of them, weighted by how many shares each buy actually got.
Plenty of profit calculators skip that step and simply ask you to bring an average cost with you, copied off your brokerage screen. This page does the step itself: give it the buys and it produces the average, then charges both fees against it. Nothing has to be copied from anywhere, and because the arithmetic is printed underneath, you can check the average against your own records before you trust the profit figure that comes out of it.
One thing worth watching: the average cost per share on this page is the money paid in divided by the shares, which is a before-fee figure, while the profit and the break-even are worked from the total cost, which has the buy fee in it. Both are printed side by side, and the difference between them is what the buy fee came to.
This page uses only the share counts, the prices, the fees and the sell price you type in. Nothing else goes into the arithmetic.
It is a simple stock profit calculator on purpose: three kinds of input — the buys, the two fees, the sell price — and no settings, no account and nothing to configure.
The result describes the sale you entered — these buys, these fees, this price. It is not a view on whether that sale was the right thing to do, and this page takes no position on it.
The break-even line is not a fixed step above your average cost, and it is worth knowing what sets the distance. It is the two fees divided by your share count. That is the whole of it. Keep the buys in the same proportion and the average cost does not move by a hundredth across the rows below, while the break-even climbs.
| Position | Money paid in | Average cost | Both fees | Break-even | Gap |
|---|---|---|---|---|---|
| 150.0000 shares | 8,000.00 | 53.3333 | 12.00 | 53.4133 | 0.0800 |
| 75.0000 shares | 4,000.00 | 53.3333 | 12.00 | 53.4933 | 0.1600 |
| 30.0000 shares | 1,600.00 | 53.3333 | 12.00 | 53.7333 | 0.4000 |
| 15.0000 shares | 800.00 | 53.3333 | 12.00 | 54.1333 | 0.8000 |
| 6.0000 shares | 320.00 | 53.3333 | 12.00 | 55.3333 | 2.0000 |
Break-even sell price − average cost per share = (buy fee + sell fee) ÷ total shares
Check the last column: 12.00 ÷ 150.0000 = 0.0800 and 12.00 ÷ 6.0000 = 2.0000. The gap on the smallest position is 25 times wider than the gap on the largest, for the same 5.00 in and the same 7.00 out. Nothing about the trade got worse. The same money was spread a twenty-fifth as far.
The return is where it lands. Sold at 62.00 in every row, this trade earns 16.08% on 150 shares and 12.30% on 6. The two fees are 0.15% of the money paid in at the top of the table and 3.75% at the bottom, and that distance is the distance between those two returns.
None of this is an argument for bigger positions, and this page does not make one. It is what a flat fee does: it is charged per trade, not per share, so it thins out as the trade grows. Change either fee on this page from an amount to a rate and the behaviour goes with it, because a fee charged as a percentage of the money scales with the position instead of sitting still, and the break-even line then stops moving with the size.
The average cost is 53.3333 in all five rows because the buys stay in the same proportion. The break-even is not a fixed step above it: it is the two fees divided by however many shares you hold, so the same 12.00 costs 0.0800 a share at 150 shares and 2.0000 a share at 6.
The gain this page returns is realized: it exists because a sale happened, at a price you typed, and the page reads that price against what the shares cost you. While you still hold them, the same money is an unrealized gain or loss and it moves with the market every day. Nothing here tracks that. The sell price box is you telling the page the sale has already taken place, so if what you type there is the quote on your screen rather than a price you were actually filled at, then the figure that comes back is the gain you would realize by selling, not one you have realized.
When the arithmetic lands below your cost the same run comes back as a loss, and the break-even sell price is the figure that says what the shares have to reach before that stops being true — with both fees counted, which is why it sits above the average cost per share printed beside it.
Two things this figure is not. It is before tax: no rate, no bracket and no holding period goes into it, so the same number is the starting point for what a short-term sale and a long-term sale would each leave you, and the page works out neither of them. And it is a whole-position figure: there is no field for a partial sale, so the gain on part of a holding is not what comes back here.
In everyday use, yes — all three names are used for the same job: money in, money out, and the difference between them. This page does that job and prints both forms of the answer: the profit as an amount of money and the return as a percentage of what you paid in, fees included on both sides. A stock return calculator asks what the money that went in came back as, and the two lines that answer it sit next to each other in the result block.
Same thing, under two other word orders. A calculator stock profit and a stock market calculator profit both describe this page: the buys pooled into one average cost, a fee on the way in and a fee on the way out, a sell price, and the profit or loss left after all of it. Which of the three you searched for makes no difference to what is worked out here.
From the figures you type: your total shares, the money you paid in, your average cost per share, and your total cost including the buy fee. With a sell price it adds the gross proceeds, the net proceeds after the sell fee, the net profit or loss in money and as a percentage. It also gives the break-even sell price — the price at which the sale covers everything, both fees counted.
The return line is the ROI for the sale: the net profit or loss divided by the total cost, as a percentage. Both fees are already inside those two figures, which is the part usually left out when ROI is worked out by hand.
Because the buys are what produce the average, and entering them is what lets you check it. Type each purchase — shares and price — and the page pools them into one average cost, then charges the fee on the way in and the fee on the way out against it. You do not have to go and copy an average off your brokerage screen first, and if the average looks wrong you can see which buy is pulling it. If you already have an average cost and simply want to use it, put it in as one row: your total shares at that price.
Either. Each fee box has a switch next to it: Amount for a flat charge in money, Percent for a rate. A percentage buy fee is taken on the money you paid in; a percentage sell fee is taken on the gross proceeds of the sale. Leave either box empty and that fee counts as zero.
It is the sell price at which the sale covers everything you put in — the shares, the buy fee and the sell fee — so the profit is exactly zero. Below it you lose money, above it you make money. Because both fees are in it, the number is higher than a break-even worked out on the average cost alone, and the gap between the two is what the fees cost you per share.
No. There is no price lookup on this page and no connection to any market data source, by design — a fetched price can be wrong, delayed, or for the wrong ticker, and this page would rather show nothing than show a number it did not get from you. Type the prices yourself.
No. There is no tax field anywhere on this page, so every figure it returns is before tax. What a sale leaves you with after tax depends on your own circumstances and on how long you held the shares, and none of that is asked for here.
Not on this page. It sells the whole position at one price with one fee. For a partial sale, enter only the buys and the share count that the sale covers — but note that this page does not choose which shares were sold, so the average it uses is the average of everything you typed.
As many as you need. The page starts with two buys — one buy on its own just returns the price you typed — then use + Add buy for each extra one and the × on a row to remove it. There is no cap.
They stop at the cost; this page carries on to the sale. The stock average calculator pools buys into an average cost, the average down calculator shows what one more purchase does to it, the DCA calculator takes the money you invest each period instead of the share counts, and the dividend reinvestment calculator handles dividends put back into shares. This is the one that adds the fees on both sides, the sale, and the break-even price.
No, and nothing here should be read that way. The page does the arithmetic on the sale you describe; it does not compare holding against selling, rank the two, or tell you what to do with your money. It answers one question only: given these buys, these fees and this sell price, what did I net?
Yes to the first, and no to the second. The fields stack to a single column on a narrow screen and the results stay inside the width of the page. There is no sign-up, no pop-up and nothing to install: the whole calculation runs in your browser, and your numbers are not sent anywhere.
This page is a calculator, not investment advice. A profit figure is not a reason to sell, and a loss is not a reason to hold. Contact: contact@stockavg.com