1. Home
  2. Knowledge Base
  3. StocksCafe Mechanics
  4. How to Calculate Average Share Price

How to Calculate Average Share Price

When there are several transactions made for the same stock, StocksCafe uses Weighted Average for computation (read about the different methods out there on this page).

StocksCafe chose Weighted Average for a few reasons:

  1. You can then average up or average down.
  2. Averaging is the simplest to understand in all scenarios.
  3. It is what most, if not all, brokerages use.

My Average Share Price is Wrong!

There’s a good chance it isn’t wrong, just different from how you think it is calculated. The following example might help you better understand how Weighted Average works.


ActionQuantityTransacted PriceTotal CostTotal SharesAverage Price
Buy1,00020.54(43,840 + 1000*20.54) = 64,3803,00021.46
Sell1,00017.92(82,690 – 1000*20.6725) = 62,017.53,00020.6725

To put it simply, when a Buy transaction occurs, the average price is recalculated.

When a Sell transaction occurs, it is the latest average price used in calculations, not the transacted price. The transacted price is irrelevant in calculating average price of shares.

We hope this helps you better understand how StocksCafe calculates average price. Feel free to reach out if you have any further questions.

Updated on 22 April 2021

Was this article helpful?

Related Articles

Need Support?
Searched through StocksCafe Academy and can't find what you're looking for? We're here to help!