Stock Profit Loss Calculator

Stock Profit Loss Calculator

Your inputs

Live results

Total cost — Shares times the buy price, plus the buy fee
Total from the sale — Shares times the sell price, minus the sell fee
Capital gain or loss — Sale total minus total cost, dividends not included
Net profit or loss including dividends — Capital gain or loss plus cash dividends
Result — Profit, loss, or break even
Return on cost — Net profit or loss divided by total cost
Break-even sale price per share — Price per share that returns your total cost
$$\text{Net} = (S \times P_{\text{sell}} - F_{\text{sell}}) - (S \times P_{\text{buy}} + F_{\text{buy}}) + D$$

In plain text

Net = (S × P_sell - F_sell) - (S × P_buy + F_buy) + D

What does this calculator measure?

It measures what a stock position made or lost from start to finish. You enter the cost of the shares, the value you received or could receive, and any fees and dividends along the way. The result tells you whether the position is in profit, in loss, or exactly even, and by how much.

How do I use it?

Enter the price you paid per share and the number of shares. Enter the price you sold at, or the current price if you are checking a position you still hold. Add the buy and sell fees from your broker statement, and any cash dividends you received while you held the shares. The results update as you type.

How does the calculation work?

Total cost is the shares multiplied by the buy price, plus the buy fee. Total from the sale is the shares multiplied by the sell price, minus the sell fee. The capital gain or loss is the total from the sale minus the total cost. The net result adds the dividends to that figure.

Return on cost is the net result divided by the total cost, shown as a percentage. The break-even price is the price per share that would make the net result zero, after fees and dividends.

Is a current price the same as a sale?

No. If you enter the current price, the result is unrealized. It can change as the market moves, and it is not a final gain or loss until you sell. A completed sale also fixes the result in your records, which matters for tax reporting.

Why are dividends shown separately?

The capital gain or loss only looks at the change in the share price. Dividends are cash paid to you while you held the shares, so they are added in the net result. Keeping them apart shows you how much of the return came from the price and how much came from payouts.

What can the calculator not tell me?

The calculator does not include taxes on gains or dividends, and it does not know your cost basis if you bought the shares in several lots at different prices. It does not model stock splits, rights issues, or currency changes for overseas shares. If you enter several purchases, combine them into an average buy price first.

Use the result as an estimate, and check your broker's statement for the exact figures.

Why does a loss still need a break-even price?

The break-even price tells you how far the share price must move to recover your total cost, after fees. If the current price is below it, the position is at a loss. That helps you judge how much recovery a position needs before it returns to even.

About the author

Monica Tulips

Monica Tulips

Finance Writer, Moni Calculator Pro

Monica Tulips writes the personal finance, savings, and loan guides on Moni Calculator Pro. Each calculator's math is covered by automated tests before its page is published, and the guides explain that math in plain language.