What is the Average Buying Price of a stock?

Average Buying Price of a stock is “the total amount invested in the stock” divided by “the total number of shares purchased of the stock”.

Buying Average Price=amount invested in the stocktotal number of shares purchased\text{Buying Average Price}=\frac{\text{amount invested in the stock}}{\text{total number of shares purchased}}

Average Buying Price using Arithmetic mean

One way of calculating Average Buying Price is using the arithmetic mean. In a sense, Average Buying Price is the arithmetic mean of individual share’s price that you have bought over time.

Example 1

Say you have bought three shares of a company at prices: 1, 2, and 3, then Average Buying Price would be:


You can say that you paid 2 for each of the three shares.

Example 2

Say you have bought five shares: three shares for 2 and the rest for 4, then Average Buying Price would be:


You have purchased five shares for 2.8 each.

Average Buying Price using Weighted Average

In practice, it is not easy to add up individual share prices. It can be simplified using a mathematical formulation called Weighted Average, which takes purchased quantity and the price (for which many shares are collected).

average price=p1×q1+p2×q2+...+pn×qnq1+q2+...+qn\text{average price}=\frac{{\text{p}}_1\times{\text{q}}_1+p_2\times q_2+\text{...}+p_n\times q_n}{q_1+q_2+\text{...}+q_n}
  • p1 is the price at share unit
  • q1 is the number of shares bought at price p1so on

In a grand sense, you reach back to the invested amount of a transaction by multiplying purchased units with unit price. Weighted Average helps you calculate the average price over multiple transactions.

average price=investment1+investment2+...+investmentnq1+q2+...+qn  =  total invested amounttotal purchased shares\text{average price}=\frac{{\text{investment}}_1+{\text{investment}}_2+\text{...}+{\text{investment}}_n}{q_1+q_2+\text{...}+q_n}\;=\;\frac{\text{total invested amount}}{\text{total purchased shares}}

In practice

Let’s understand Weighted Average formulation with an example:
Say you have bought five shares: three shares for 2 and the rest for 4, then Buying Average Price would be:

2(p1)×3(q1)+4(p2)×2(q2)5=2.8 \frac{2(p_1)\times3(q_1)+4(p_2)\times2(q_2)}5=2.8

Significance of Average Buying Price

Average Buying Price acts as a reference for calculating your profit & loss. Selling or purchasing some shares requires calculating the new Average Price. Understanding how the new price is calculated helps in making well-informed decisions.

Let's understand it with an example:

Extending example 2, let’s say you buy five additional shares for 3; you need to recalculate the average price:

2×3+4×2+3×510=2.9 \frac{2\times3+4\times2+3\times5}{10}=2.9

You don’t need to add the individual share price to your calculation; instead, you can use the previously calculated average price, i.e., 2.8

2.8×5+3×510=2.9 \frac{2.8\times5+3\times5}{10}=2.9

You don’t need to remember or apply the formula on your own; We have created a tool for you for such calculation.

weighted average
Tap to use tool


In simple understanding, Average Buying price is the total amount invested divided by the total number of shares purchased. It acts as a reference price for communication and calculating profit & loss.

In real life, you don’t buy shares in a single transaction; you might need to estimate the “future buying average” before you invest more in the stock. So, understanding how average buying calculation works can save you from blunders.

Don't hesitate to contact us at @5cripo for any feedback or suggestions.


  • Pricing data on the website is frequently delayed and MAY NOT be correct. If any financial transaction is executed based on the provided pricing information, we will not be held liable for any monetary losses.
  • The logos used on the website are subjected to the copyright & intellectual ownership of respected companies. These logos were obtained with FAIR USAGE INTENT from companies' websites or social media accounts. Please get in touch with @5scripo for any concerns.


  • The stunning chart presented on the website is made possible by Trading View.