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 here).

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.

If you ever wondered why the calculations for average price appears different from what you expected, the following example might help you better understand how Weighted Average works.

Example:

ActionQuantityTransacted PriceTotal CostTotal SharesAverage Price
Buy2,00021.9243,8402,00021.92
Buy1,00020.54(43,840 + 1000*20.54) = 64,3803,00021.46
Buy1,00018.3182,6904,00020.6725
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 comment below if you have any further questions.

Leave a Reply 0

Your email address will not be published. Required fields are marked *