Average share price is calculated by adding all closing price of shares of a particular inventory for a specific period of time and then dividing it with total number of closing days or period. In case of shares bought in various time duration, the average is calculated by sum of all price of shares divided by total number of shares.