The Average Price is calculated based on FIFO  i.e. first-in-first out basis.


If you trade in the same scrip multiple times, you will notice the present average price of your holdings or positions changes. The buy average price is calculated on a FIFO basis (first-in-first-out).

To understand how FIFO works, let's assume you have made the below trades:

Trade DateSymbolTypeQtyRate
11-4-2019SBIB60450
16-4-2019SBIB40455
21-4-2019SBI
S30500
27-4-2019SBIB20490

In the above example, 30 quantity is sold in the third row, as per FIFO method this will be deducted from 50 quantity in the first row. So net 30 quantity will be remaining which is taken into consideration while calculating the buy average.

So the buy average of ITC that would display in your holdings is = Rs 261 i.e (30*260) + (30*256) + (20*270) / (50+30-20+20).

To know how the buy average will be calculated when you trade intra-day in the stocks you hold, refer to this article.

In some scenarios where the buy average calculation shown on Console can be incorrect. But this error will not impact your actual margins or P&L . Learn more in this article .

Note: FIFO is followed even for BTST trades.