Equity investing

Stock Calculator

Enter your buy price, sell price and number of shares to see the profit or loss and the return.

  • Free
  • No sign-up
  • Updated for 2026

Trade details

$
$

Enter the buy price, sell price and shares to see the result.

Worked example

With these example inputs:

  • Buy price$50
  • Sell price$65
  • Number of shares100

Profit / loss: $1,500

  • Return30.0%
  • Amount invested$5,000

Add this calculator to your site

Free to embed. Copy the snippet below, it drops the live calculator straight into any page.

What this stock calculator does

This calculator finds your profit or loss on a trade. You enter the buy price, sell price, and number of shares. The tool then shows the result in your currency. It also shows your percentage return. This is a quick trading tool. Try a range of inputs to compare. The result helps you size a trade.

What profit or loss is

Profit or loss is the gain on your shares. It is the change in price times the shares. A higher sell price means a profit. A lower one means a loss. The figure can be positive or negative. So it is your gain or your loss. You see it in your chosen currency.

How it is calculated

The tool takes the sell price. It subtracts the buy price. That gives the gain per share. It then multiplies by the number of shares. The result is your profit or loss. The calculator does the math for you.

What the result tells you

The result shows your profit or loss. Buy at fifty and sell at sixty-five on one hundred shares for a profit of fifteen hundred. A higher sell price raises it. A higher buy price lowers it. So it shows what you made or lost. It is a simple final figure.

The buy and sell price

The buy and sell price set your gain. The buy price is your cost per share. The sell price is what you got. The gap between them is your gain per share. So a wide gap means a big profit. A negative gap means a loss. Enter both prices carefully.

The number of shares

The number of shares scales the result. It multiplies your gain per share. More shares mean a bigger profit or loss. So size affects the dollar figure. But it does not change the percentage return. So the rate stays the same per share. Enter the shares you hold.

The percentage return

The percentage return shows the gain in relative terms. It is the gain divided by your cost. A thirty percent return beats a small dollar gain. So it lets you compare trades fairly. It ignores the size of the position. So it shows the quality of the trade. Watch the return, not just the dollars.

How to use it

Enter the buy price first. Add the sell price and the shares. Read your profit or loss in your currency. See the percentage return too. Then try different prices. Compare a few trades. Use it to size a trade.

The limits of this calculator

It has a few clear limits. It ignores trading fees and commissions. It does not include any taxes. Dividends are not counted here. A real return can be lower after costs. So treat it as an approximation. So read the result with a clear head.

Common mistakes to avoid

A common mistake is ignoring fees and taxes. They cut into your real profit. Another is forgetting dividends received. They add to the true return. Some confuse dollars with percentage. Others mismatch the share count. A clear number keeps you from these slips.

A final tip

Use this to size a trade. Remember it is the gain times the shares. Watch the percentage return closely. Subtract fees and taxes for the real figure. Add any dividends you received. Do not judge by dollars alone. A careful check guides your view.

Frequently asked questions

How is stock profit calculated?

Subtract the buy price from the sell price and multiply by the number of shares. Buying 100 shares at $50 and selling at $65 gives a $1,500 profit, a 30% return.

Does this include fees or taxes?

No, the result is the gross gain before commissions and taxes. Subtract any trading fees and account for capital gains tax to see your true net return.