In short: Gain loss calculator: enter a buy price, sell price and share count to see your profit, loss and percent return.
It sounds simple, but many investors only look at the dollar change. The percent return lets you compare trades of different sizes. Enter your buy and sell prices and the number of shares to see both.

Remember that fees and taxes reduce what you keep.
Keep learning about gain loss calculator
Reading is a start, practice makes it stick. Run the numbers in our investor tools, test yourself in Stock Jeopardy, or follow the start here guides to see what to read next after gain loss calculator.
Further reading: Investor.gov from the U.S. SEC and the Canadian Securities Administrators investor education site offer free, independent guides for new investors.
The three numbers behind every result
A gain or loss needs only three inputs: what you paid, what you sold for, and how many shares. Multiply the difference between the two prices by the shares, and you have the dollar result. Divide that by what you paid in total, and you have the percentage. The calculator does both, but it helps to see the steps.
A worked example, with fees
Say you bought 50 shares at $40, for $2,000. You later sell them at $46, for $2,300. The gain is $300, or 15% of the $2,000 you put in.
Now add costs. If your broker charged $10 each time you bought and sold, that is $20. Your real gain is $280, which is 14%. A small fee takes a bigger bite out of a small trade. On a $200 trade, the same $20 would be 10% of your money.
Taxes come after that. In many countries, profits are taxed, and the rate can depend on how long you held the stock. Rules differ by country, so check the official guidance where you live. The U.S. reader can start at Investor.gov.
Why losses are harder to recover than they look
Percentages are not symmetrical. If a $100 position falls 50%, it is worth $50. To get back to $100, it must rise 100%. A 20% loss needs a 25% gain. A 10% loss needs about 11.1%. The deeper the hole, the steeper the climb.
This is a reason many investors think about limiting loss size before they buy, and not after. Use the calculator on a few pretend trades and watch how the recovery number grows as the loss grows.
Mistakes in reading results
- Comparing dollars. A $300 gain on $2,000 is not the same as $300 on $20,000.
- Forgetting dividends. If you collected them, they are part of your total return.
- Ignoring time. A 15% gain in one month and a 15% gain over five years are very different results.
- Mixing up several buys. If you bought at different prices, use your average cost first.
- Judging a choice only by the result. A good decision can lose, and a poor one can win.
What to do next
If you bought a stock in several pieces, start with the average cost basis calculator to find the right purchase price. If you want a view that includes the time you held, try the return on investment calculator.
A habit worth building is to keep a simple record of each trade: why you bought, what you expected, and what happened. After a few entries you will see patterns in your own behavior. Those patterns teach more than any single result.
The glossary can help with any term that is new. All of these numbers are made up, and this is education only, not investment advice.
Looking at results with a clear head
Seeing a gain feels good and seeing a loss feels bad, and both feelings can push you to poor choices. People often sell winners too quickly to lock in the good feeling, and hold losers too long to avoid admitting the mistake. Writing the numbers down plainly, as the calculator does, takes some of the feeling out of it.
A useful question after any trade is: what did I learn that I can use next time? Maybe the price you paid was too high compared with earnings. Maybe you sized the position too large for how sure you were. Maybe the idea was fine and the timing was just unlucky. Each answer points to a different lesson.
Gains on paper versus gains you keep
A number on the screen is not money until you sell, and what you keep after fees and taxes is smaller. Plan for that gap when you think about goals. If you hope to have $10,000 after a sale, the pre tax result needs to be higher. Practicing with the calculator, with a made up tax rate added in your head, helps you see the difference between a headline gain and a net one.
Questions people ask about gains and losses
How is percent return calculated?
Subtract your buy price from your sell price, multiply by the number of shares, and divide the result by what you paid. The answer is your percent return. A negative number means a loss. The calculator does these steps for you.
Why is my result different from my broker statement?
Statements may include fees, commissions, dividends or tax details that a simple calculator leaves out. They may also use different dates or share counts. Compare each line carefully, and ask your broker if a number still looks wrong.
Does a loss of 50 percent need a gain of 50 percent to recover?
No. It needs a gain of 100 percent. If a stock falls from 100 to 50, it must double to return to 100. This is why limiting large losses matters. Small losses are much easier to recover from.
Are unsold gains and losses real?
They are called unrealized. The value on paper can change before you sell. A gain or loss is usually counted for taxes only after a sale. Tax rules differ by country, so check the rules that apply to you.
Quick recap
A gain and loss calculator shows profit and percent return from buy price, sell price and shares. Fees and taxes lower what you keep. Losses need larger gains to recover. Use the calculators to practice, and remember that past results do not predict future ones.
Education only, not investment advice. Numbers in examples are made up.

